#include "nw_i0_plot" //#include "nw_i0_tool" void main() { object oPC; object oSpawnPoint; int iLevel; int iGold; int iPCGold; oPC = GetPCSpeaker(); iGold = 100; iPCGold = GetGold(oPC); if (iPCGold >= iGold) { TakeGold(iGold,oPC); oSpawnPoint = GetObjectByTag("EN4_Respawn"); AssignCommand(oPC,JumpToLocation(GetLocation(oSpawnPoint))); } else { SpeakString("You don't have enough gold."); } }