18 lines
431 B
Plaintext
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));
|
||
|
}
|
||
|
|