Jump to content
  • 0

Equipment on equip gives additional @commands


Question

Posted

Greetings,

 

May I request for a script for an equipment that can give additional commands to a player wearing it.

In example, a Police Hat gives a player the @jail, @ban and @mute commands when it is worn.

Thanks in advance.

2 answers to this question

Recommended Posts

Posted

Make a new group id in conf/groups.conf which inherit all commands of yours players + the news commands

 

Then in item_db, adjust the group with atcommand script on the equip/unequip part of the item

2601,Ring,Ring,5,30000,,100,,0,,0,0xFFFFFFFE,7,2,136,,20,0,0,{ },{ atcommand "@adjgroup 1 "+ strcharinfo(0); },{ atcommand "@adjgroup 0 "+ strcharinfo(0); }
  • Upvote 1
Posted

Make a new group id in conf/groups.conf which inherit all commands of yours players + the news commands

 

Then in item_db, adjust the group with atcommand script on the equip/unequip part of the item

2601,Ring,Ring,5,30000,,100,,0,,0,0xFFFFFFFE,7,2,136,,20,0,0,{ },{ atcommand "@adjgroup 1 "+ strcharinfo(0); },{ atcommand "@adjgroup 0 "+ strcharinfo(0); }

 

Thanks.  /no1

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