EN4_PRC8/_module/nss/en4_smaster.nss

28 lines
429 B
Plaintext
Raw Permalink Normal View History

#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.");
}
}