Initial commit. Updated release archive.
This commit is contained in:
9
_module/nss/gz_grave_used.nss
Normal file
9
_module/nss/gz_grave_used.nss
Normal file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user