UW2_PRC8/_module/nss/xp_withdraw_100k.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

26 lines
507 B
Plaintext

#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.");
}