summaryrefslogtreecommitdiff
path: root/npc/custom
diff options
context:
space:
mode:
authorEmistry <equinox1991@gmail.com>2015-03-29 17:13:06 +0800
committerEmistry <equinox1991@gmail.com>2015-03-29 17:13:06 +0800
commit31fded0454a53b280432410c33c8252a46f0a470 (patch)
treebdf1f4ee71b7df4248162ea4aed4b5f38ed4d08b /npc/custom
parent1b201f5b2cc254116fb84a827314ff55e5efe06d (diff)
downloadhercules-31fded0454a53b280432410c33c8252a46f0a470.tar.gz
hercules-31fded0454a53b280432410c33c8252a46f0a470.tar.bz2
hercules-31fded0454a53b280432410c33c8252a46f0a470.tar.xz
hercules-31fded0454a53b280432410c33c8252a46f0a470.zip
Avoid binding rental items.
Prevent the NPC to show rental items when players try to bind an items.
Diffstat (limited to 'npc/custom')
-rw-r--r--npc/custom/itembind.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt
index 7d2c4ba62..d1f2b59c9 100644
--- a/npc/custom/itembind.txt
+++ b/npc/custom/itembind.txt
@@ -32,8 +32,8 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{
getinventorylist();
for(.@i = 0; .@i < @inventorylist_count; .@i++) {
//We only show the items that you allow to be bound
- //Allows equipment (default)
- if(@inventorylist_bound[.@i])
+ //Allows equipment (default) or non-rental item
+ 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))) ||