Jump to content

Bindatcmd and group_id


HeikoS

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  01/08/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Hmm that's actually a valid point, why does it still use gm level?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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>,...};
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   37
  • Joined:  12/30/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   37
  • Joined:  12/30/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   54
  • Joined:  12/23/12
  • Last Seen:  

Why not just, min group ID instead of having a boolean... Rather keep it simple...

<Min Group ID>

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

×
×
  • Create New...