Ancordia_PRC8/_module/nss/grandius_xpback.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

18 lines
431 B
Plaintext

#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));
}