Jump to content
  • 0

Item restriction on specific maps.


Legato

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

Thanks to all those who posted.

Case solved.

Edited by Legato
Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   33
  • Joined:  12/24/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   33
  • Joined:  12/24/11
  • Last Seen:  

He wants it to be removed when someone moves onto the map with an item equipped that shoudln't be used on the map.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   33
  • Joined:  12/24/11
  • Last Seen:  

Oh, that wasn't the case long ago afaik. Well then this whole thread is meaningless.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

i totally agree should be added to posting rules..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...