musikyru Posted October 17, 2014 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 01/04/12 Last Seen: January 15, 2017 Share Posted October 17, 2014 can anyone help me about checking mob into certain map. like["+ getmapuser("prontera") +"] i just want to make an script looks like this Prontera[0]for checking player[0]for checking mob. ist this is correct term for checking mobs on map getmapmobs ["+ getmapmobs("prontera") +"] and how to make an pvp warper that checking the cartitem b4 warp. i just want to make an none donator ill use an setarray for those item can anyone made me a pvp waper for none donate by checking item into cart and inventory. setarray .NoDonator_ids[0], 26061, 26062, 26063; for( set .@i, 0; .@i <getarraysize(.NoDonator_ids); set .@i, .@i + 1 ) { if (countitem(.NoDonator_ids[.@i])) { mes "[^008000Battle Warper^000000]"; mes "You can not bring Donate items in this pvp."; close; } } THANKS YOU VERY MUCH IN ADVANCE rAthenianz Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 17, 2014 try this http://upaste.me/r/451fc6 Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 17, 2014 1. getapmobs has been removed long ago. You can check monster count on specific map using mobcount 2. setarray .item,5001,5002,5003; .item_size = getarraysize( .item ); .@has_cart = checkcart(); for ( .@i = 0; .@i < .item_size; .@i++ ) { if ( countitem( .item[.@i] ) ) { mes "Remove "+getitemname( .item[.@i] )+" from your inventory."; close; } else if ( .@has_cart ) { if ( cartcountitem( .item[.@i] ) ) { mes "Remove "+getitemname( .item[.@i] )+" from your cart."; close; } } } Quote Link to comment Share on other sites More sharing options...
musikyru Posted October 17, 2014 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 01/04/12 Last Seen: January 15, 2017 Author Share Posted October 17, 2014 @Emistry thankyou very much for fast reply..ill try it later im on work.. can i ask a little mod for this script? how to make this call func so that every time i add this script into npc before warp so that i will not copy all the script and my script less size and return to the conversation before warp the player. .@has_cart = checkcart(); for ( .@i = 0; .@i < .item_size; .@i++ ) { if ( countitem( .item[.@i] ) ) { mes "Remove "+getitemname( .item[.@i] )+" from your inventory."; close; } else if ( .@has_cart ) { if ( cartcountitem( .item[.@i] ) ) { mes "Remove "+getitemname( .item[.@i] )+" from your cart."; close; } } } is this posible for call func before warp? Quote Link to comment Share on other sites More sharing options...
musikyru Posted October 17, 2014 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 01/04/12 Last Seen: January 15, 2017 Author Share Posted October 17, 2014 how to apply this func for waper can you give me sample on how to work with is one http://upaste.me/r/451fc6 Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 17, 2014 =='' it's already shown in the link given. .@item = F_checkitem( 5022,607,608,5353 ); if ( .@item ) { mes "Please remove "+getitemname( .@item ); close; } warp "prontera",155,181; Quote Link to comment Share on other sites More sharing options...
musikyru Posted October 17, 2014 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 01/04/12 Last Seen: January 15, 2017 Author Share Posted October 17, 2014 thnx for helping me sir.really appreciate it. Quote Link to comment Share on other sites More sharing options...
musikyru Posted October 21, 2014 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 01/04/12 Last Seen: January 15, 2017 Author Share Posted October 21, 2014 @Emistry sir can i ask about the 2ng topic of the script.is this for hercules emulator im using rA emulator and igot error on cart checking.can you please make me one compatible for rA one.TIA ihope you help me agin for this one and sory for late reply about your post.more power rA Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 21, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 21, 2014 it's based on rAthena. the script command has been added into rAthena few month ago. some old achieve topic. http://rathena.org/board/topic/78149-rev1-countitem-storagecountitem-cartcountitem-count-how-many-item-in-player-inventorystoragecart/ http://rathena.org/board/topic/78276-cartcountitem-cartdelitem-script-count-or-delete-certain-item-in-cart-inventory/ Quote Link to comment Share on other sites More sharing options...
Question
musikyru
can anyone help me about checking mob into certain map.
like["+ getmapuser("prontera") +"]
i just want to make an script looks like this
Prontera[0]for checking player[0]for checking mob.
ist this is correct term for checking mobs on map getmapmobs ["+ getmapmobs("prontera") +"]
and how to make an pvp warper that checking the cartitem b4 warp.
i just want to make an none donator ill use an setarray for those item can anyone made me a pvp waper for none donate
by checking item into cart and inventory.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.