Jump to content
  • 0
hadiesyafiq

How to set group id on script?

Question

Hi dev...how to set player get group id 10 when login for temporary and will be group id 0 when logout

example

i put this script on headgear if player wear it get group id 10 when take off it will be group id 0 is the script will be @ajgroup?

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

  • 0

The command to change group_id is @adjgroup <group_id> use @ if you want it on yourself.

Use #adjgroup to use it on a player! example: #adjgroup <char name> <parameters>.

 

Regarding the script item, I haven't tested but don't forget to add it in "OnEquipScript:" this will allow the player to switch to group_id 10 as soon as he equips the object. If he disconnects, the player will revert to the default value defined in the sql.

 

However, if the hat is still equipped when reconnecting, the group id will go back to 10 ( Thesis to be checked because it is not an OnPCLoginEvent : ).

To switch back to group_id 0 when unequipping the object, use the same functions as in "OnEquipScript:" in an "OnUnequipScript:" and set the value to 0

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.