WoR_PRC8/_module/nss/show_map_if.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

300 lines
12 KiB
Plaintext

#include "nw_i0_tool"
void main()
{
//EastAnimerCoast EastElwinarValley OwiddMountainz
//MallaGrasslands EastSaralShore NebrirPlains
//SadoorWoods SouthAnimerCoast SouthDuganPlains
//StraladForest StraltensCastleGrounds WestSaralShore
//TugerSwamp ThryndirJungle1 ThryndirJungle
//TheWyvernMountain1 TheMoorsOfStralad NebrirForest
//TheWyvernMountain2 TheLandOfReonyc4 HillsOfKalad
//TheWyvernMountain3 TheIslandOfTanzantorA HagarSwamp
//TheWyvernMountain4 NorthDuganPlains SouthSaralShore
//TheWyvernMountain5 EastElwinarValley1 WestAnimerCoast
//TheWyvernMountain6 GalumForest
//TheWyvernMountain7 EastElwinarValley2
//TheWyvernMountain8 NebrirWoods
//TheWyvernMountain9 GalumHills
object oPC = GetEnteringObject();
if(GetIsPC(oPC))
{
if (GetTag(OBJECT_SELF) == "TheCaveOfGrinak") {
if((!HasItem(oPC, "MAP_GRINAK")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCaveOfHuk") {
if((!HasItem(oPC, "MAP_HUK")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCavernsOfProurk") {
if((!HasItem(oPC, "MAP_PROURK")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCastleOfReonyc1") {
if((!HasItem(oPC, "MAP_REONYC")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCastleOfReonyc2") {
if((!HasItem(oPC, "MAP_REONYC")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCastleOfReonyc3") {
if((!HasItem(oPC, "MAP_REONYC")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCastleOfReonyc4") {
if((!HasItem(oPC, "MAP_REONYC")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheDungeonOfDordach1") {
if((!HasItem(oPC, "MAP_DORDACH")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheDungeonOfDordach2") {
if((!HasItem(oPC, "MAP_DORDACH")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheDungeonOfDordach3") {
if((!HasItem(oPC, "MAP_DORDACH")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheDungeonsOfZelifax1") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheDungeonsOfZelifax2") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheDungeonsOfZelifax3") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheLairOfGugdish") {
if((!HasItem(oPC, "MAP_TROLL")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheLostTempleOfZu1") {
if((!HasItem(oPC, "MAP_ZU")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheLostTempleOfZu2") {
if((!HasItem(oPC, "MAP_ZU")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheLostTempleOfZu3") {
if((!HasItem(oPC, "MAP_ZU")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "LostTempleOfZu4") {
if((!HasItem(oPC, "MAP_ZU")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheVortMines") {
if((!HasItem(oPC, "MAP_RORK")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheTowerOfZelifax4") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheTowerOfZelifax3") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheTowerOfZelifax2") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheTowerOfZelifaxLevel1") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TopOfZelifax") {
if((!HasItem(oPC, "MAP_ZELIFAX")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheVarynMines") {
if((!HasItem(oPC, "MAP_VARYN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "XanalanCellar") {
if((!HasItem(oPC, "MAP_XANALAN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "XanalanCastle") {
if((!HasItem(oPC, "MAP_XANALAN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TempleOfEtummus1") {
if((!HasItem(oPC, "MAP_ETUMMUS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TempleOfEtummus2") {
if((!HasItem(oPC, "MAP_ETUMMUS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TempleOfEtummus3") {
if((!HasItem(oPC, "MAP_ETUMMUS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "StraltensCastle1") {
if((!HasItem(oPC, "MAP_STALTEN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "StraltensCastle2") {
if((!HasItem(oPC, "MAP_STALTEN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "StraltensCastle3") {
if((!HasItem(oPC, "MAP_STALTEN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "StraladSewers") {
if((!HasItem(oPC, "MAP_STRASEW")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheFortressOfStralad") {
if((!HasItem(oPC, "MAP_STRALADCAS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "StraladCatacombs") {
if((!HasItem(oPC, "MAP_STRACOMBS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "CityOfTheDead") {
if((!HasItem(oPC, "MAP_STRALAD")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "CliffsOfOwidd") {
if((!HasItem(oPC, "MAP_RHUN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "CryptsOfEtum") {
if((!HasItem(oPC, "MAP_CRYPTS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "CryptsOfEtum1") {
if((!HasItem(oPC, "MAP_CRYPTS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "CryptsOfEtum2") {
if((!HasItem(oPC, "MAP_CRYPTS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "DadryForest") {
if((!HasItem(oPC, "MAP_RHUN")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "ElidorMinesz") {
if((!HasItem(oPC, "MAP_ELMINES")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "SewersOfEtum1") {
if((!HasItem(oPC, "MAP_SEWERS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "SewersOfEtum2") {
if((!HasItem(oPC, "MAP_SEWERS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "SewersOfEtum3") {
if((!HasItem(oPC, "MAP_SEWERS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "SewersOfEtum4") {
if((!HasItem(oPC, "MAP_SEWERS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "SewersOfEtum5") {
if((!HasItem(oPC, "MAP_SEWERS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "HillGiantLair") {
if((!HasItem(oPC, "MAP_HILLGINT")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "IceBladeHold1") {
if((!HasItem(oPC, "MAP_ICEBLADE")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "IceBladeHold2") {
if((!HasItem(oPC, "MAP_ICEBLADE")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "RuinsOfElwinar1") {
if((!HasItem(oPC, "MAP_RUINS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "RuinsOfElwinar2") {
if((!HasItem(oPC, "MAP_RUINS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "RuinsOfElwinar3") {
if((!HasItem(oPC, "MAP_RUINS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "RuinsOfElwinar4") {
if((!HasItem(oPC, "MAP_RUINS")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TempleOfTheMedusae1") {
if((!HasItem(oPC, "MAP_MEDUSA")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TempleOfTheMedusae2") {
if((!HasItem(oPC, "MAP_MEDUSA")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "PirbagsLair") {
if((!HasItem(oPC, "MAP_PIRBAG")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheCityOfTelith") {
if((!HasItem(oPC, "MAP_TELITH")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TelithsFortress") {
if((!HasItem(oPC, "MAP_TELITH")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TaerPrisonIsland") {
if((!HasItem(oPC, "MAP_PRISON")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TaerPrison") {
if((!HasItem(oPC, "MAP_PRISON")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TaerPrison2") {
if((!HasItem(oPC, "MAP_PRISON")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TaerPrison3") {
if((!HasItem(oPC, "MAP_PRISON")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TaerPrisonTunnels") {
if((!HasItem(oPC, "MAP_PRISON")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheUnderworld") {
if((!HasItem(oPC, "MAP_UNDER")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheUnderworld1") {
if((!HasItem(oPC, "MAP_UNDER")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else if (GetTag(OBJECT_SELF) == "TheUnderworld2") {
if((!HasItem(oPC, "MAP_UNDER")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
else {
if((!HasItem(oPC, "MAP_TAER")) == FALSE){
ExploreAreaForPlayer(OBJECT_SELF, oPC);}}
}
}