WoR_PRC8/_module/nss/xp_zelifax.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

19 lines
590 B
Plaintext

#include "nw_i0_tool"
void main()
{
object oArea = GetArea (OBJECT_SELF);
vector vPosition = GetPosition (OBJECT_SELF);
float fOrientation = GetFacing (OBJECT_SELF);
location lSpawn = Location (oArea, vPosition, fOrientation);
RewardPartyXP(200, GetPCSpeaker());
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ZelifaxSlvKey");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
CreateObject(OBJECT_TYPE_PLACEABLE, "zelifaxspawner", lSpawn, TRUE);
SetIsDestroyable(TRUE);
DestroyObject(OBJECT_SELF);
}