Jump to content
  • 0

requesting this script


Question

5 answers to this question

Recommended Posts

Posted (edited)

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
Posted (edited)

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
Posted

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.

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