Initial upload
Initial upload
This commit is contained in:
25
_module/nss/xp_withdraw_100k.nss
Normal file
25
_module/nss/xp_withdraw_100k.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "xp_inc"
|
||||
#include "aps_include"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oFuck = GetModule();
|
||||
int oXP = GetXP(oPC);
|
||||
if (WithdrawCap == TRUE)
|
||||
{
|
||||
if (GetXP(oPC) >= (XPcap - 99999))
|
||||
{
|
||||
SpeakString(slvlcap);
|
||||
return;
|
||||
}
|
||||
}
|
||||
string sCDKey = GetPCPublicCDKey(oPC);
|
||||
int fXP = GetPersistentInt(oFuck, sCDKey, "pwdata") -100000;
|
||||
SetPersistentInt( oFuck, sCDKey, fXP, 0, "pwdata");
|
||||
GiveXPToCreature(oPC, 100000);
|
||||
SpeakString ("You have withdrawn 100,000 XP.");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user