karazu 33 Posted November 29, 2013 Hello is it possible to delete some items when entering/warping in this specific map? like when I have a Red Potion and Blue Potion in my Inventory or Cart and then I will enter in that map those items are automatically deleted? Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 29, 2013 (edited) Supports multiple items and multiple maps configuration ( check the OnInit part ) : - script Sample -1,{ OnPCLoadMapEvent: getmapxy .@map$, .@xx, .@yy, 0; for ( .@x = 0; .@x < getarraysize(.Maps$); .@x++ ) { for ( .@y = 0; .@y < .size; .@y++ ) { if ( .@map$ == .Maps$[.@x] && countitem(.item_id[.@y]) ) { dispbottom "Item " +getitemname(.item_id[.@y])+ " (" +countitem(.item_id[.@y])+ ") was deleted on your inventory"; delitem .item_id[.@y], countitem(.item_id[.@y]); } } } end; OnInit: setarray .Maps$[0],"prontera","payon","geffen"; setarray .item_id[0],501,502; .size = getarraysize(.item_id); for ( .@i = 0; .@i < getarraysize(.Maps$); .@i++ ) setmapflag .Maps$[.@i], mf_loadevent; end;} Edited November 29, 2013 by Patskie 3 caspe, Hadeszeus and karazu reacted to this Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 29, 2013 Why ur so great? Hahahah.. Any way, can u make me a simple warper like it will check if u have this specific item, if u click it, the npc will let you choose where part of the map u want to he teleported? For example north south east west of prontera Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 30, 2013 It would be great if you post all your request at your topic description so that people who will help you out will not re-write their initial script. 1 jaBote reacted to this Quote Share this post Link to post Share on other sites
0 Hadeszeus 15 Posted January 27, 2014 Aw! I need something similar to this Patskie can I request this script? http://herc.ws/board/topic/4156-can-i-request-this-awesome-script-i-hope-its-easy/ Quote Share this post Link to post Share on other sites
0 ShankS 0 Posted November 21, 2014 (edited) i used this script of Sir Patskie, delete item on inventory works fine, but delete item in cart wont work Edited November 21, 2014 by ShankS Quote Share this post Link to post Share on other sites
Hello is it possible to delete some items when entering/warping in this specific map?
like when I have a Red Potion and Blue Potion in my Inventory or Cart and then I will enter in that map those items are automatically deleted?
Share this post
Link to post
Share on other sites