#include "taip_r_header" #include "x2_inc_switches" #include "sha_subr_methds" void main() { object oPC = GetItemActivator(); string oTag = GetTag(GetArea(oPC)); if(oTag == "Void" || oTag == "DeathRow") { SendMessageToPC(oPC, "You cannot use any items while you are trapped here."); return; } SubraceOnItemActivated(); if (GetIsInCombat(oPC)){ ExecuteScript("recall_stone5", OBJECT_SELF);} else if (oTag == "TaerPrisonIsland"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TaerPrison"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TaerPrison2"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TaerPrison3"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TaerPrisonTunnels"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TheUnderworld"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TheUnderworld1"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "TheUnderworld2"){ ExecuteScript("recall_stone2", OBJECT_SELF);} else if (oTag == "AmnathkylsLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "BrybansLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "JubangansLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "LairOfCaraec"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "ScrycansLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "TyreksLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "WyzazonsLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "ZolgilnathsLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "ZyfusborsLair"){ ExecuteScript("recall_stone3", OBJECT_SELF);} else if (oTag == "TanzantorsCastle"){ ExecuteScript("recall_stone4", OBJECT_SELF);} else if (oTag == "TheHighSeasZ"){ ExecuteScript("recall_stone6", OBJECT_SELF);} else { ExecuteScript("recall_stone1", OBJECT_SELF); } object oItem = GetItemActivated(); ExecuteScript (GetTag(oItem), GetModule()); if (GetModuleSwitchValue(MODULE_SWITCH_ENABLE_TAGBASED_SCRIPTS) == TRUE) { SetUserDefinedItemEventNumber(X2_ITEM_EVENT_ACTIVATE); int nRet = ExecuteScriptAndReturnInt(GetUserDefinedItemEventScriptName(oItem),OBJECT_SELF); if (nRet == X2_EXECUTE_SCRIPT_END) { return; } } }