Legato Posted February 21, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Share Posted February 21, 2012 (edited) Thanks to all those who posted. Case solved. Edited February 23, 2012 by Legato Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted February 21, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted February 21, 2012 (edited) Just put the nude command that is only activated on specific maps in the onequip block, lol. If they try to put it on they have all there stuff removed, ROFL... Peopleperson49 if(strcharinfo(3)=="prontera") { nude; } Edited February 21, 2012 by peopleperson49 Quote Link to comment Share on other sites More sharing options...
Legato Posted February 22, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Author Share Posted February 22, 2012 cool story bro. Please, don't spam in my thread. >.>@peopleperson49, thanks for the reply. I only want to limit the items and equipments usage on some maps. Anybody? Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted February 22, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted February 22, 2012 (edited) I want is that, some items cannot be used/equipped on specific map(s) I want. The reason why I posted is that I couldn't find a guide / answer on how could I add a check for a specific map. I guess I'm confused at what you were asking. I don't see why item_deny wouldn't work for you though. You can always make a simple onmaploadevent script that checks for specific items every time the character enters specified maps. From there you can make it remove the item, warp the character out of the map, unequip equipment, etc... Peopleperson49 Edited February 22, 2012 by peopleperson49 Quote Link to comment Share on other sites More sharing options...
Legato Posted February 22, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Author Share Posted February 22, 2012 Sorry if the information I gave was a bit vague. Have you checked the post #11 from the link I posted on my first post? I need the opposite mod of it. But, the mode or checks would be on specific map. Not mapflag. ItemID,mapname (The item or equipment inside this map cannot be used.) Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted February 22, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted February 22, 2012 Well you can easily make a script that checks for items equiped when a person first loads a map, but after that I'm not sure unless you make it loop to check for the items every few seconds. However, if a lot of people were on the map then it might slow your server a bit. Just crazy ideas. Peopleperson49 Quote Link to comment Share on other sites More sharing options...
Jonne Posted February 22, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 153 Reputation: 33 Joined: 12/24/11 Last Seen: September 30, 2024 Share Posted February 22, 2012 (edited) Here is a diff. I didn't test it, but it should work and do what you want it to do: Index: src/map/clif.c =================================================================== --- src/map/clif.c (revision 15627) +++ src/map/clif.c (working copy) @@ -9218,6 +9218,16 @@ mail_clear(sd); + { // Check if through equip if item is allowed on map [Jonne] + int i; + + for (i = 0; i < EQI_MAX; ++i) { + if (sd->equip_index[i] >= 0 && !pc_isequip(sd, sd->equip_index[i])) + pc_unequipitem(sd, sd->equip_index[i], 2); + } + } + + if(map[sd->bl.m].flag.loadevent) // Lance npc_script_event(sd, NPCE_LOADMAP); Edited February 22, 2012 by Jonne Quote Link to comment Share on other sites More sharing options...
Gepard Posted February 23, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 392 Reputation: 285 Joined: 12/19/11 Last Seen: January 23, 2022 Share Posted February 23, 2012 https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/item_noequip.txt Quote Link to comment Share on other sites More sharing options...
Jonne Posted February 23, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 153 Reputation: 33 Joined: 12/24/11 Last Seen: September 30, 2024 Share Posted February 23, 2012 https://rathena.svn....tem_noequip.txt He wants it to be removed when someone moves onto the map with an item equipped that shoudln't be used on the map. Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 23, 2012 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 February 23, 2012 https://rathena.svn....tem_noequip.txt He wants it to be removed when someone moves onto the map with an item equipped that shoudln't be used on the map. equipment will be automatically unequip when the item is listed in the restricted zone... Quote Link to comment Share on other sites More sharing options...
Jonne Posted February 23, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 153 Reputation: 33 Joined: 12/24/11 Last Seen: September 30, 2024 Share Posted February 23, 2012 Oh, that wasn't the case long ago afaik. Well then this whole thread is meaningless. Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted February 24, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted February 24, 2012 Just a note to everyone that asks for support.. Please don't edit your first post to remove your question when your problem has been solved. It is extremely selfish to edit it out as others won't be able to refer to your post if they are ever facing the same issue and It makes the whole thread invalid. Quote Link to comment Share on other sites More sharing options...
ngek202 Posted February 25, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted February 25, 2012 i totally agree should be added to posting rules.. Quote Link to comment Share on other sites More sharing options...
Legato Posted February 27, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Author Share Posted February 27, 2012 Just a note to everyone that asks for support.. Please don't edit your first post to remove your question when your problem has been solved. It is extremely selfish to edit it out as others won't be able to refer to your post if they are ever facing the same issue and It makes the whole thread invalid. Right. That was my bad. I did not want to spam the thread. That's all. Will never happen again. Thanks for reminding me Arcenciel. Quote Link to comment Share on other sites More sharing options...
Question
Legato
Thanks to all those who posted.
Case solved.
Edited by LegatoLink to comment
Share on other sites
13 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.