Jump to content
  • 0

Where to change this?


Jzz

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  02/29/12
  • Last Seen:  

When creating a character gm level 0 right?

How to change it to gm 1?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

In your SQL DB? o_O Login table?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  02/29/12
  • Last Seen:  

Login Table?

Where?

I mean I want newbie or new character will become gm lvl 1 when creating a new account.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  05/23/12
  • Last Seen:  

Login -> `level`

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  02/29/12
  • Last Seen:  

Hmm Is there anyway? Hmm btw Im going to add OnPCLoginEvent

which change their level.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  05/23/12
  • Last Seen:  

You want this :

If the account is level 0, put him level 1 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

I mean I want newbie or new character will become gm lvl 1 when creating a new account.

You can use this SQL query to make group_id default to 1.

ALTER TABLE `login` CHANGE `group_id` `group_id` TINYINT(3) DEFAULT 1 NOT NULL;

That should be compatible with most CPs because they insert new accounts with NULL for group_id, causing it to take the default defined in the SQL table.

PS: why not just give all the @commands to group_id 0, if all normal players are going to be in the same group?

Edited by Brian
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   2
  • Joined:  03/10/12
  • Last Seen:  

PS: why not just give all the @commands to group_id 0, if all normal players are going to be in the same group?

I agree! You can configure @commands on conf/groups.conf

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