#include "NW_I0_GENERIC" void main() { if(GetIsDay()) { // Do Nothing } else { ClearAllActions(TRUE); object oPC = GetFirstObjectInShape(SHAPE_SPHERE, 30.0, GetLocation(OBJECT_SELF), TRUE, OBJECT_TYPE_CREATURE); if (GetIsPC(oPC)) { //ActionStartConversation(oPC, "Sorry, store is closed. Please come back in the morning."); ActionSpeakString("Sorry, the establishment is closed. Please come back in the morning."); { if (GetTag(OBJECT_SELF) == "Etum_Bowyer_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("bowyerfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Weapon_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("weaponfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Cloth_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("clothfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Gem_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("gemsfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Leather_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("leatherfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "ETUM_POTION_SHOP") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("potionfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Smith_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("smithfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Mintrap_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("mintrapfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Avgtrap_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("avgtrapfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Strongtrap_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("strongtrapfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_DeadTrap_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("deadtrapsfront")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll1_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll1front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll2_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll2front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll3_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll3front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll4_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll4front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll5_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll5front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll6_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll6front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll7_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll7front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll8_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll8front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Banker") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("WP_LORDV_TRUST")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Etum_Scroll9_Shop") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("scroll9front")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "Glacial_General_Store") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("GLAC_GETOUT")))); ActionDoCommand(WalkWayPoints()); } else if (GetTag(OBJECT_SELF) == "MIXING_RM_MERCH") { ActionWait(2.0); ActionDoCommand(AssignCommand(oPC, ClearAllActions(TRUE))); ActionDoCommand(AssignCommand(oPC, JumpToObject(GetWaypointByTag("WP_MIXING_ROOM")))); ActionDoCommand(WalkWayPoints()); }}} else {} } }