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

26 lines
716 B
Plaintext

#include "xp_inc"
#include "aps_include"
void main()
{
object oPC = GetPCSpeaker();
object oFuck = GetModule();
if (GetLootable(oPC) <= 41)
{
int DepositXP = 100000/fraction;
string sDepositXP = IntToString(DepositXP);
string sCDKey = GetPCPublicCDKey( oPC);
// int fXP = GetCampaignInt( "XP", sCDKey) + DepositXP;
int fXP = GetPersistentInt(oFuck, sCDKey, "pwdata") + DepositXP;
int XP = GetXP(oPC) - 100000;
SetPersistentInt(oFuck, sCDKey, fXP, 0, "pwdata");
SetXP(oPC, XP);
SpeakString ("You have deposited "+ sDepositXP +" XP.");
DelayCommand(0.5, ExportSingleCharacter(oPC));
}
else
{
SpeakString ("Sorry, but you need to be less than level 40 to use this feature.");
}
}