28 lines
429 B
Plaintext
28 lines
429 B
Plaintext
#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("IP1_Respawn");
|
|
AssignCommand(oPC,JumpToLocation(GetLocation(oSpawnPoint)));
|
|
} else {
|
|
SpeakString("You don't have enough gold.");
|
|
}
|
|
|
|
|
|
}
|