Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
27
_module/nss/en3_onequip.nss
Normal file
27
_module/nss/en3_onequip.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user