21 lines
403 B
Plaintext
21 lines
403 B
Plaintext
#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.");
|
|
}
|