diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-30 21:36:12 +0530 |
---|---|---|
committer | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-30 21:36:12 +0530 |
commit | cbe69a98346e10ec39cb3de287614df52dd20172 (patch) | |
tree | 3d98f6c23802ea482f226c777c99bb09ec6834d6 /npc/custom | |
parent | d1d301737fbdc822665f60a6acbd2e205d15030f (diff) | |
download | hercules-cbe69a98346e10ec39cb3de287614df52dd20172.tar.gz hercules-cbe69a98346e10ec39cb3de287614df52dd20172.tar.bz2 hercules-cbe69a98346e10ec39cb3de287614df52dd20172.tar.xz hercules-cbe69a98346e10ec39cb3de287614df52dd20172.zip |
Fixes conditions in itembind.txt
Diffstat (limited to 'npc/custom')
-rw-r--r-- | npc/custom/itembind.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt index d1f2b59c9..efc8821ff 100644 --- a/npc/custom/itembind.txt +++ b/npc/custom/itembind.txt @@ -33,11 +33,16 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{ for(.@i = 0; .@i < @inventorylist_count; .@i++) { //We only show the items that you allow to be bound //Allows equipment (default) or non-rental item - if( @inventorylist_bound[.@i] || @inventorylist_expire[.@i] ) + if (@inventorylist_bound[.@i] || @inventorylist_expire[.@i]) continue; - if(((.allowbind & 1) && (getiteminfo(@inventorylist_id[.@i],2) == (4|5))) || - ((.allowbind & 2) && (getiteminfo(@inventorylist_id[.@i],2) == (0|2|11|18))) || - ((.allowbind & 4) && (getiteminfo(@inventorylist_id[.@i],2) == (3|6|7|8|10))) + if (((.allowbind & 1) && (getiteminfo(@inventorylist_id[.@i], 2) == IT_WEAPON || getiteminfo(@inventorylist_id[.@i], 2) == IT_ARMOR)) || + ((.allowbind & 2) && + (getiteminfo(@inventorylist_id[.@i], 2) == IT_HEALING || getiteminfo(@inventorylist_id[.@i], 2) == IT_USABLE || + getiteminfo(@inventorylist_id[.@i], 2) == IT_DELAYCONSUME || getiteminfo(@inventorylist_id[.@i], 2) == IT_CASH)) || + ((.allowbind & 4) && + (getiteminfo(@inventorylist_id[.@i], 2) == IT_ETC || getiteminfo(@inventorylist_id[.@i], 2) == IT_CARD || + getiteminfo(@inventorylist_id[.@i], 2) == IT_PETEGG || getiteminfo(@inventorylist_id[.@i], 2) == IT_PETARMOR || + getiteminfo(@inventorylist_id[.@i], 2) == IT_AMMO)) ) { set .@bindlist$, .@bindlist$ + ":" + getitemname(@inventorylist_id[.@i]) + " - " + @inventorylist_id[.@i]; set .@bindlist[.@j],.@i; |