Amon_PRC8/_module/nss/xp_deposit_50k.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

22 lines
527 B
Plaintext

#include "xp_inc"
void main()
{
object oPC =GetPCSpeaker();
if (GetHitDice(oPC) >= 16)
{
int DepositXP = 50000/fraction;
string sDepositXP = IntToString(DepositXP);
string sCDKey = GetPCPublicCDKey( oPC);;
int fXP = GetCampaignInt( "XP", sCDKey) + DepositXP;
int XP = GetXP(oPC) - 50000;
SetCampaignInt( "XP", sCDKey, fXP);
SetXP(oPC, XP);
SpeakString ("You have deposited "+ sDepositXP +" XP.");
}
else
{
SpeakString ("Sorry, but you need to be at least level 16 to use this feature.");
}
}