10 lines
329 B
Plaintext
10 lines
329 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetLastUsedBy();
|
|
int nXP = GetLocalInt(oPC,"T1_PLAYER_GRAVEEXP");
|
|
FloatingTextStringOnCreature ("You pray on your grave and get "+ IntToString(nXP) + " XP back",oPC,FALSE);
|
|
SetXP(oPC, GetXP(oPC)+nXP);
|
|
DeleteLocalInt(oPC,"T1_PLAYER_GRAVEEXP");
|
|
DestroyObject(OBJECT_SELF,4.0f);
|
|
}
|