Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
20
_module/nss/xevent_examine_a.nss
Normal file
20
_module/nss/xevent_examine_a.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "nwnx_events"
|
||||
#include "nwnx_object"
|
||||
#include "color_inc"
|
||||
#include "nwnx_deprecated"
|
||||
|
||||
// OnExamine AFTER event
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
if (!GetIsPC(oPC))
|
||||
return;
|
||||
|
||||
object oExamined = NWNX_Object_StringToObject(NWNX_Events_GetEventData("EXAMINEE_OBJECT_ID"));
|
||||
if (!GetIsObjectValid(oExamined) ||
|
||||
GetObjectType(oExamined) == OBJECT_TYPE_ITEM)
|
||||
return;
|
||||
|
||||
string sOldDesc = GetLocalString(oExamined, "XEVENT_EXAMINE_DESC");
|
||||
SetDescription(oExamined, sOldDesc);
|
||||
}
|
||||
Reference in New Issue
Block a user