//:://///////////////////////////////////////////// //:: zep_onequip //:: based pm functions (c) 2003 Bioware Corp. //::////////////////////////////////////////////// /* Put into: OnEquip Event */ //::////////////////////////////////////////////// //:: Original Bioware functions Created By: Georg Zoeller //:: Created On: 2003-07-16 //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Modified by: Loki Hakanin, CEP Anatomy //::////////////////////////////////////////////// #include "x2_inc_switches" #include "x2_inc_intweapon" //Following includes Added by Loki of CEP //First is for advanced Itemprop functions of hordes //Second is my own CEP Include file. #include "x2_inc_itemprop" #include "zep_inc_main" void main() { object oItem = GetPCItemLastEquipped(); object oPC = GetPCItemLastEquippedBy(); // ------------------------------------------------------------------------- // Intelligent Weapon System // ------------------------------------------------------------------------- if (IPGetIsIntelligentWeapon(oItem)) { IWSetIntelligentWeaponEquipped(oPC,oItem); // prevent players from reequipping their weapon in if (IWGetIsInIntelligentWeaponConversation(oPC)) { object oConv = GetLocalObject(oPC,"X2_O_INTWEAPON_SPIRIT"); IWEndIntelligentWeaponConversation(oConv, oPC); } else { //------------------------------------------------------------------ // Trigger Drain Health Event //------------------------------------------------------------------ if (GetLocalInt(oPC,"X2_L_ENSERRIC_ASKED_Q3")==1) { ExecuteScript ("x2_ens_dodrain",oPC); } else { IWPlayRandomEquipComment(oPC,oItem); } } } ZEPGenderRestrict(oItem,oPC); }