21 lines
411 B
Plaintext
21 lines
411 B
Plaintext
|
#include "xp_inc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC =GetPCSpeaker();
|
||
|
if (WithdrawCap == TRUE)
|
||
|
{
|
||
|
if (GetXP(oPC) >= (XPcap - 9999999))
|
||
|
{
|
||
|
SpeakString(slvlcap);
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
string sCDKey = GetPCPublicCDKey( oPC);;
|
||
|
int fXP = GetCampaignInt( "XP", sCDKey) -10000000;
|
||
|
|
||
|
SetCampaignInt( "XP", sCDKey, fXP);
|
||
|
GiveXPToCreature(oPC, 10000000);
|
||
|
SpeakString ("You have withdrawn 10,000,000 XP.");
|
||
|
}
|