From 31fded0454a53b280432410c33c8252a46f0a470 Mon Sep 17 00:00:00 2001 From: Emistry Date: Sun, 29 Mar 2015 17:13:06 +0800 Subject: Avoid binding rental items. Prevent the NPC to show rental items when players try to bind an items. --- npc/custom/itembind.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/custom/itembind.txt') 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))) || -- cgit v1.2.3-60-g2f50