Jump to content
  • 0

Permission Changer


Poring King

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.02
  • Content Count:  1016
  • Reputation:   191
  • Joined:  11/27/14
  • Last Seen:  

Hello rAthena

Is there a possible to change the player permission using updating there mysql ?

example : True = 1 false = 0
switch(select("(Enabled : Disable ")){
case 1:

Enabled query"bblablalbablalba "so on so fort ...

can_trade: true
case 2:
Disable

can_trade: false

 query"bblablalbablalba "so on so fort ...
}

Edited by Poring King
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   73
  • Joined:  10/20/12
  • Last Seen:  

You can create two (or more) groups in the groups conf and use the atcommand adjgroup.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.02
  • Content Count:  1016
  • Reputation:   191
  • Joined:  11/27/14
  • Last Seen:  

8 minutes ago, Jey said:

You can create two (or more) groups in the groups conf and use the atcommand adjgroup.

i already create a 4 group ^_^
1=normal

2= VIP silver

3= VIP Gold

4=VIP  Premium

The reason why i want to have it because to create a securty that enabled/disable .

this can_trade permission is disallowing this group >>> item drop , trade , sell , vend etc...

my idea is to enabled/disable 1 by 1 each of this by using script or what ever ?

Example:

Dropping item are current : Enabled
Allowing your account to trade : Disable
Allowing your account to sell : Enabled
Allowing your account to vend : Disable  

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   73
  • Joined:  10/20/12
  • Last Seen:  

You'd need to implement this behavior by yourself in the source.

Anyway there are already some other good options you could use:

- Client's item drop lock

- Using the hide_fav_sell config (hides favorite items from the selling window)

Accidentally trading or vending an item seems pretty unusual for me.

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