//:://///////////////////////////////////////////// //:: Name: Custom Item Level Restriction //:: FileName: i_lvl_restrict //::////////////////////////////////////////////// /* Modified by: Taipan, and Shayan (26/02/2005) Original author: Talmud. */ #include "taip_r_header" void main() { //SUBRACE //ExecuteScript("sha_on_pceqpitem", GetModule()); //:: Replaced by PRC //END object oItem = GetPCItemLastEquipped(); object oPlayer = GetPCItemLastEquippedBy(); int iLevPC = GetHitDice(oPlayer); int iLevItem = GetRequiredLevel(oItem); if (GetIsPC(oPlayer) && !GetIsDM(oPlayer)) { int iType = GetBaseItemType(oItem); if(iType == BASE_ITEM_CREATUREITEM) { return; } else if ( iLevPC < iLevItem) { //AssignCommand(oPlayer, SHA_ActionForceUnequipItem(oItem)); //:: Handled by prc_ilr.nss } } }