Aschbourne_PRC8/_module/nss/nw_s3_actitem01.nss
Jaysyn904 5d27edafba Major update
Fixed CCOH, Fixed starting GP, Fixed DMFI languages, Fix cep weapon appearances, Fixed new player start up system.  Added PC deleter.  Added ACP 4.1.  Full compile.  Updated release archive.
2024-09-16 23:40:48 -04:00

33 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Actuvate Item Script
//:: NW_S3_ActItem01
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This fires the event on the module that allows
for items to have special powers.
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Dec 19, 2001
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
location lLocal = PRCGetSpellTargetLocation();
if (GetStringLeft(GetTag(oItem), 5) == "dmfi_" ||
GetStringLeft(GetTag(oItem), 8) == "hlslang_")
{
SetLocalObject(OBJECT_SELF, "dmfi_item", oItem);
SetLocalObject(OBJECT_SELF, "dmfi_target", oTarget);
SetLocalLocation(OBJECT_SELF, "dmfi_location", lLocal);
ExecuteScript("dmfi_activate", OBJECT_SELF);
return;
}
SignalEvent(GetModule(), EventActivateItem(oItem, lLocal, oTarget));
}