Legato Posted February 21, 2012 Posted February 21, 2012 (edited) Thanks to all those who posted. Case solved. Edited February 23, 2012 by Legato Quote
Peopleperson49 Posted February 21, 2012 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
Legato Posted February 22, 2012 Author 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
Peopleperson49 Posted February 22, 2012 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
Legato Posted February 22, 2012 Author 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
Peopleperson49 Posted February 22, 2012 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
Jonne Posted February 22, 2012 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
Gepard Posted February 23, 2012 Posted February 23, 2012 https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/item_noequip.txt Quote
Jonne Posted February 23, 2012 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
Emistry Posted February 23, 2012 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
Jonne Posted February 23, 2012 Posted February 23, 2012 Oh, that wasn't the case long ago afaik. Well then this whole thread is meaningless. Quote
Arcenciel Posted February 24, 2012 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
ngek202 Posted February 25, 2012 Posted February 25, 2012 i totally agree should be added to posting rules.. Quote
Legato Posted February 27, 2012 Author 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
Question
Legato
Thanks to all those who posted.
Case solved.
Edited by Legato13 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.