Jump to content
  • 0

requesting this script


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

the script that disables to equip a certain item on a particular map. instead use of mapflags.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

mapflag is the only way to do it without touching source

you mean certain players can equip knife, but certain players can't equip knife in the same map ?

EDIT: I regretted I post this

I shouldn't have support if the topic didn't provide enough information

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

While, I agree with Annie, on giving support, you can do this:

if(strcharinfo(3)=="map_name"){unequip(equipment_slot);}

Refer to: getequipid in - rAthena/doc/script_commands.txt, to figure out the equip-slots.

Just put that line of code in your item's script section and it should do what you want. However, it will constantly check to see if the player is on a said map.

Additionally, you can place this code in the: OnEquip script for your item, to force unequip the item, when equipped on said map. This will work, the same, except it won't do a constant check. So it won't help if they already have the item equipped.

Edited by GmOcean
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:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

oopps sorry here's the scenario. lets say the novice vs. zombie event. the novice seems to wear a certain shoes that gives speed i want to unequiped that on the map.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

this source mod should fix the movement speed in the map

http://www.eathena.ws/board/index.php?s=&showtopic=273944&view=findpost&p=1503295

regardless what kind of speed buff they get

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