Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
27
_module/nss/en4_smaster.nss
Normal file
27
_module/nss/en4_smaster.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
#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.");
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user