Jump to content

Recommended Posts

Posted
Syntax

  • bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>};

 

I think the usage of (gm)level is outdated and we now will use group_id instead of level.

How can I restrict the usage of an atcommand (with bindatcmd) to an special group_id?

 

For example there is a group_id 10 which should be allowed to use the atcommand, but a group_id 20 should not be allowed to use the atcommand. When using

bindatcmd "test","acmd_test::OnAtcommand",10; 

this atcommand can be used by chars with group_id 10 and 20. A char with group_id 20 should not be allowed to use the command.

Posted

Interesting~ I move this topic in script discussion

 

I believe we could drop the 'atcommand level' and change it to 'group id' permission

bindatcmd "command","<NPC object name>::<event label>"{,<group id 1>,<group id 2>,...};
Posted

Interesting~ I move this topic in script discussion

 

I believe we could drop the 'atcommand level' and change it to 'group id' permission

bindatcmd "command","<NPC object name>::<event label>"{,<group id 1>,<group id 2>,...};

that would be perfect

Posted

I forgot the char/at command permission, maybe like that ?

bindatcmd "command","<NPC object name>::<event label>"{,<group id 1>: [ true, false ],<group id 2>: [ true, false ],...};
  • Upvote 1
Posted

I forgot the char/at command permission, maybe like that ?

bindatcmd "command","<NPC object name>::<event label>"{,<group id 1>: [ true, false ],<group id 2>: [ true, false ],...};

yeah thats perfect

Join the conversation

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

Guest
Reply to this topic...

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