Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include "xp_inc"
void main()
{
object oPC =GetPCSpeaker();
if (WithdrawCap == TRUE)
{
if (GetXP(oPC) >= (XPcap - 499999))
{
SpeakString(slvlcap);
return;
}
}
string sCDKey = GetPCPublicCDKey( oPC);;
int fXP = GetCampaignInt( "XP", sCDKey) -500000;
SetCampaignInt( "XP", sCDKey, fXP);
GiveXPToCreature(oPC, 500000);
SpeakString ("You have withdrawn 500,000 XP.");
}