Initial Commit
Initial Commit
This commit is contained in:
17
_module/nss/grandius_xpback.nss
Normal file
17
_module/nss/grandius_xpback.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "x4_inc_functions"
|
||||
void ReturnXP(object oPC)
|
||||
{
|
||||
string sDB = GetLocalString(GetModule(), "DB");
|
||||
string sVariable = "STOREDXP_" + GetPCPlayerName(oPC);
|
||||
int nXP = GetCampaignInt(sDB, sVariable);
|
||||
SetXP(oPC, nXP);
|
||||
DeleteCampaignVariable(sDB, sVariable);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
ActionCastFakeSpellAtObject(SPELL_INVISIBILITY_PURGE, oPC);
|
||||
ActionDoCommand(ReturnXP(oPC));
|
||||
}
|
||||
|
Reference in New Issue
Block a user