Initial upload
Initial upload
This commit is contained in:
22
_module/nss/xp_deposit_500k.nss
Normal file
22
_module/nss/xp_deposit_500k.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "xp_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC =GetPCSpeaker();
|
||||
if (GetLootable(oPC) <= 41)
|
||||
{
|
||||
int DepositXP = 500000/fraction;
|
||||
string sDepositXP = IntToString(DepositXP);
|
||||
string sCDKey = GetPCPublicCDKey( oPC);
|
||||
int fXP = GetCampaignInt( "XP", sCDKey) + DepositXP;
|
||||
int XP = GetXP(oPC) - 500000;
|
||||
SetCampaignInt( "XP", sCDKey, fXP);
|
||||
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.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user