Jzz Posted May 26, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 45 Reputation: 0 Joined: 02/29/12 Last Seen: August 13, 2012 Share Posted May 26, 2012 When creating a character gm level 0 right? How to change it to gm 1? Quote Link to comment Share on other sites More sharing options...
Mystery Posted May 26, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted May 26, 2012 In your SQL DB? o_O Login table? Quote Link to comment Share on other sites More sharing options...
Jzz Posted May 26, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 45 Reputation: 0 Joined: 02/29/12 Last Seen: August 13, 2012 Author Share Posted May 26, 2012 Login Table? Where? I mean I want newbie or new character will become gm lvl 1 when creating a new account. Quote Link to comment Share on other sites More sharing options...
Aksl Posted May 26, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 35 Reputation: 2 Joined: 05/23/12 Last Seen: September 27, 2014 Share Posted May 26, 2012 Login -> `level` Quote Link to comment Share on other sites More sharing options...
Jzz Posted May 26, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 45 Reputation: 0 Joined: 02/29/12 Last Seen: August 13, 2012 Author Share Posted May 26, 2012 Hmm Is there anyway? Hmm btw Im going to add OnPCLoginEvent which change their level. Quote Link to comment Share on other sites More sharing options...
Aksl Posted May 26, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 35 Reputation: 2 Joined: 05/23/12 Last Seen: September 27, 2014 Share Posted May 26, 2012 You want this : If the account is level 0, put him level 1 ? Quote Link to comment Share on other sites More sharing options...
Brian Posted May 26, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted May 26, 2012 (edited) 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 May 26, 2012 by Brian Quote Link to comment Share on other sites More sharing options...
jedwynne Posted May 26, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 68 Reputation: 2 Joined: 03/10/12 Last Seen: July 12, 2012 Share Posted May 26, 2012 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 Quote Link to comment Share on other sites More sharing options...
Question
Jzz
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.