Initial upload
Initial upload
This commit is contained in:
22
_module/nss/xp_deposit_all.nss
Normal file
22
_module/nss/xp_deposit_all.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "xp_inc"
|
||||
//#include "sf_leto_inc"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
if (GetLootable(oPC) <= 41)
|
||||
{
|
||||
string sCDKey = GetPCPlayerName( oPC);
|
||||
int XP = GetCampaignInt( "XP", sCDKey) + (GetXP( oPC) /fraction);
|
||||
SetCampaignInt( "XP", sCDKey, XP, oPC);
|
||||
string sXP = IntToString((GetXP( oPC) /fraction));
|
||||
SpeakString ("You have deposited ALL your Experience Points! " + sXP + " XP");
|
||||
SetXP (oPC, 1);
|
||||
DelayCommand(3.5, ExportSingleCharacter(oPC));
|
||||
|
||||
}
|
||||
{
|
||||
SpeakString(sNO);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user