EN4_PRC8/_module/nss/en3_onequip.nss

28 lines
789 B
Plaintext
Raw Permalink Normal View History

// x2_mod_def_equ,prc_equip
/////////////////////////////////////////////////////////////////////
//
// This script has been auto-generated by HakInstaller to call
// multiple handlers for the onplayerequipitem event.
//
/////////////////////////////////////////////////////////////////////
#include "prc_x2_itemprop"
#include "x2_inc_treasure"
#include "rd_treasure"
#include "utl_i_sqlocals"
void main()
{
ExecuteScript("x2_mod_def_equ", OBJECT_SELF);
object oItem = GetPCItemLastEquipped();
object oPC = GetPCItemLastEquippedBy();
//This will remove temp properties if wielder isn't true wielder
if (!(SQLocals_GetString(oItem,"PCWielder")=="") && !(SQLocals_GetString(oItem,"PCWielder")==GetName(oPC)))
IPRemoveAllItemProperties(oItem);
GetSpecialWeaponBonus(oPC,oItem);
}