• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[GUIDE]Fixing The Auto GM

Status
Not open for further replies.
Banned
Banned
Joined
Apr 29, 2008
Messages
713
Reaction score
264
Here's a little fix to stop all players from being an admin when they create new characters.

PHP:
USE `newproject_db`;
ALTER TABLE `t_characters` 
MODIFY COLUMN `a_admin` tinyint(4) NOT NULL DEFAULT 0 AFTER `a_deletedelay`;

Or

Warmonger - [GUIDE]Fixing The Auto GM - RaGEZONE Forums


Warmonger - [GUIDE]Fixing The Auto GM - RaGEZONE Forums
 
Last edited by a moderator:
Experienced Elementalist
Joined
Mar 21, 2009
Messages
239
Reaction score
85
re: Fixing The Auto GM

how to use that code, do i have to use it in mysql ??
 
Banned
Banned
Joined
Apr 29, 2008
Messages
713
Reaction score
264
re: Fixing The Auto GM

Just paste it as a new query and execute it.
 
Experienced Elementalist
Joined
Jul 13, 2008
Messages
272
Reaction score
136
Re: Fixing The Auto GM

Its not a release also, but if i have to compare what its closest to then i would say its a guide since u are guiding in how to change the default value :p
 
Newbie Spellweaver
Joined
Aug 25, 2011
Messages
12
Reaction score
1
Re: Fixing The Auto GM

Can you give me a little more details on how to add this please. Sorry I like an extreme noob at this but I am a quick learner thanks :)
 
Newbie Spellweaver
Joined
Aug 18, 2011
Messages
31
Reaction score
1
Re: Fixing The Auto GM

I have put 4 in the table a_admin and it works, but when they create another Player it is 10.:S
 
Newbie Spellweaver
Joined
Sep 10, 2011
Messages
46
Reaction score
11
Re: Fixing The Auto GM

umm i gotta error

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE t_characters MODIFY COLUMN a_admin tinyint(4) NOT NULL DEFAULT 0 A' at line 2

What version of MYSQL should i be using ??

I'm using 5.5
 
Newbie Spellweaver
Joined
Aug 18, 2011
Messages
31
Reaction score
1
Re: Fixing The Auto GM

I'm using SQL of NEW data Pack Warmonger
 
Experienced Elementalist
Joined
Mar 21, 2009
Messages
239
Reaction score
85
Re: Fixing The Auto GM

maxiguti

try edit manually

go to navicat ---> newproject_db -------> t_characters

right click on t_characters then choose design table . in a_admin change the default value from 10 to 0 :D
 
Newbie Spellweaver
Joined
Sep 10, 2011
Messages
46
Reaction score
11
Re: Fixing The Auto GM

Code:
ALTER TABLE `t_characters` CHANGE `a_admin` `a_admin` TINYINT( 4 ) NOT NULL DEFAULT '0'

that worked for me :)
 
Status
Not open for further replies.
Back
Top