Chocolate31 0 Posted December 7, 2015 Hi!Npc that warps the player into a given map with a wide list of restricted itemsIf the player have that item equiped or in the inventory they are not allowed to enter the map.Please help. Quote Share this post Link to post Share on other sites
0 Chocolate31 0 Posted December 12, 2015 @AnnieRuru @@Emistry @@Euphy.. @ some one? e.e Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted December 12, 2015 Hi! Npc that warps the player into a given map with a wide list of restricted items If the player have that item equiped or in the inventory they are not allowed to enter the map. Please help. here's the script by AngelMelody - script Vanilla1 -1,{OnPCLoadMapEvent:getmapxy(.@map$,.@mapx,.@mapy,0);if(.@map$ == "prtg_cas01"){ for(set .@i,0; .@i < getarraysize(.itemcheck); set .@i, .@i + 1){ if(countitem(.itemcheck[.@i])){ dispbottom "[ Info ] : item ["+getitemname(.itemcheck[.@i])+"] found (Inventory). Kicking.."; warp "prontera",200,180; end; } if(query_sql("SELECT `nameid` FROM `cart_inventory` WHERE `char_id` = " + getcharid(0), .itemcheck[0]) { dispbottom "[ Info ] : item ["+getitemname(.itemcheck[.@i])+"] found (Cart). Kicking.."; warp "prontera",200,180; end; } }end;OnInit:setarray .itemcheck[0],2383,2204,20025,20026,20027,20028,20029,20030,20031,20032,20033;end;}prtg_cas01 mapflag loadevent i just search it here Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted December 12, 2015 (edited) holy ... that method so unoptimized and using query_sql to check online player is not recommended, it only save periodically better use *getcartinventorylist; or its better to use db(pre-)remap_zone_db.conf and disabled_items: it to unequip the equipment has to add a config // Unequip the equipments that has disabled by map_zone_db.conf ? // 0 : disabled equipments and cards are nullify (official) // 1 : disabled equipments are unequip, disabled cards are nullify // 2 : disabled equipments are nullify, disabled cards will caused the equipment to unequip // 3 : disabled equipments are unequip, disabled cards will caused the equipment to unequip (1+2) unequip_restricted_equipment: 0 change to 3 EDIT: Euphy ? I thought Euphy only active in rathena .. Edited December 12, 2015 by AnnieRuru 1 Legend reacted to this Quote Share this post Link to post Share on other sites
Hi!
Npc that warps the player into a given map with a wide list of restricted items
If the player have that item equiped or in the inventory they are not allowed to enter the map.
Please help.
Share this post
Link to post
Share on other sites