WoR_PRC8/_module/nss/xp_ogre.nss

20 lines
658 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
#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(40, GetPCSpeaker());
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "OgresCageKey");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
AdjustReputation(GetPCSpeaker(), GetObjectByTag("ogre_captive"), 2);
CreateObject(OBJECT_TYPE_PLACEABLE, "invisobj001", lSpawn, TRUE);
SetIsDestroyable(TRUE);
DestroyObject(OBJECT_SELF);
}