Jump to content
  • 1

Item restriction on specific maps.


Question

13 answers to this question

Recommended Posts

Posted (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 by peopleperson49
Posted

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?

Posted (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 by peopleperson49
Posted

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.)

Posted

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

Posted (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 by Jonne
Posted

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.

Posted

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. /hmm

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...