Initial upload
Initial upload
This commit is contained in:
24
_module/nss/xp_settokens.nss
Normal file
24
_module/nss/xp_settokens.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "aps_include"
|
||||
#include "xp_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oFuck = GetModule();
|
||||
string sPenalty = IntToString(Penalty);
|
||||
SetCustomToken(698,sPenalty);
|
||||
object oPC = GetPCSpeaker();
|
||||
string sCDKey = GetPCPublicCDKey( oPC);
|
||||
//int XP = (GetCampaignInt( "XP", sCDKey));
|
||||
int XP = (GetPersistentInt(oFuck, sCDKey, "pwdata"));
|
||||
|
||||
string sXP = IntToString(XP);
|
||||
if (XP > 1)
|
||||
{
|
||||
SetCustomToken(699,sXP);
|
||||
}
|
||||
else
|
||||
{
|
||||
string zero = IntToString(0);
|
||||
SetCustomToken(699,zero);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user