generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
27
_module/nss/gzcc_bindst_stat.nss
Normal file
27
_module/nss/gzcc_bindst_stat.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
int iRet = TRUE;//(GetLocalInt(GetModule(), "T1_MODULE_CFG_NOGRAVES ") != TRUE);
|
||||
if (iRet == TRUE)
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
if (GetLocalInt(oPC,"T1_PLAYER_GRAVEEXP") >0 )
|
||||
{
|
||||
object oOldGrave = GetLocalObject(oPC,"T1_PLAYER_LASTGRAVE");
|
||||
SetCustomToken(110,GetName(GetArea(oOldGrave)));
|
||||
SetCustomToken(111,IntToString(GetLocalInt(oPC,"T1_PLAYER_GRAVEEXP")));
|
||||
}
|
||||
else
|
||||
{
|
||||
SetCustomToken(110,"not existant");
|
||||
SetCustomToken(111,IntToString(0));
|
||||
}
|
||||
|
||||
string sBP = GetLocalString(oPC,"T1_PLAYER_LASTBINDPOINT_NAME");
|
||||
if (sBP == "") sBP = "nowhere";
|
||||
SetCustomToken(112,sBP);
|
||||
}
|
||||
// Get Last Bindpoint here
|
||||
|
||||
return iRet;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user