• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

MySQL How to create a GM/GOD in 3 simple steps

i305060731_66512_4.jpg


IT SAYS:

SQL query:

#---------------------------------------------------
INSERT INTO accounts( `id` , `password` , `type` , `group_id` )
VALUES (

@acc , @pass , 5, (

SELECT `id`
FROM groups
WHERE `name` = 'a god'
)
);

MySQL said:

#1146 - Table 'ot.groups' doesn't exist
 
Error

SQL query: Documentation

#---------------------------------------------------
INSERT INTO accounts( `id` , `password` , `type` , `group_id` )
VALUES (
@acc , @pass , 5, (

SELECT `id`
FROM groups
WHERE `name` = 'a god'
)
);

MySQL said: Documentation
#1146 - Table 'tibia.accounts' doesn't exist



:////
 
Help Please

:pSend me a side I can download php my admin please.. I really need it lool THE ONE WHO GIVES ME GET GM ON MY 8.50 FORGOTTEN!:)
 
How to create a GM/GOD in 3 simple steps
By Blue Charizard
Guide created for The Forgotten Server 0.2 (Mystic Spirit)


First of all, to make it clear, this guide is created with the database-structure of TFS 0.2 and PHPMyAdmin in mind,
if you use another server revision or another database manager, this guide may or may not work for you.

It was also created with the assumption that you are using plaintext passwords, and havent changed the "a god"-group, if you use md5 or sha1 passwords, or have changed the name of the "a god"-group, this guide wont work for you.



[WARNING!]
This tutorial will help you create a GM/GOD account and character on your server.
It should ONLY be used to create accounts/characters for people who you trust, since the GM/GOD character created will be able to execute ALL server commands!
[WARNING!]



---------------------------------------------------------------

Changelog:
09-24-2008 - Created the post

---------------------------------------------------------------

============================


Step 1.



First of all, log in on your PHPMyAdmin. Obviously since you have set up the database, you know how to do this, so this will not be explained.

Now, make sure you select the database that you use for your server, the most commonly used name would be "otserv".
You simply do this by clicking on the link in the leftmost part of the browser, as illustrated on this image:

dbselectkk9.png


Now, in the center of the screen, you should see a tab named "SQL":

sqltabsu6.png


Click on it.


Now, you should be in the part where you execute queries, and are now ready to proceed to step 2.



Step 2.



Okay, first of all, select the code in the codebox below, and copy it:

Code:
#--- Account Number of the GM/GOD Account ---
SET @acc = 123456;
#--------------------------------------------

#------ Password of the GM/GOD Account ------
SET @pass = "PASSWORD";
#--------------------------------------------

#------- Name of the GM/GOD Character -------
SET @name = "GM CHARACTER NAME";
#--------------------------------------------

# --- Coordinates where the character will spawn ---
SET @posx = 1000;
SET @posy = 1000;
SET @posz = 7;
#---------------------------------------------------


INSERT INTO accounts (`id`,`password`,`type`,`group_id`) VALUES (@acc,@pass,5,(SELECT `id` FROM groups WHERE `name` = 'a god'));
INSERT INTO players (`name`,`group_id`,`account_id`,`looktype`,`town_id`,`posx`,`posy`,`posz`,`save`) VALUES (@name,(SELECT `id` FROM groups WHERE `name` = 'a god'),@acc,75,1,@posx,@posy,@posz,1);
Now paste it into a texteditor of your choice, notepad works excellently.

And now we edit the variables....



#--- Account Number of the GM/GOD Account ---
SET @acc = 123456;
#--------------------------------------------


This is the account number for your GM/GOD character's account, change the number to whatever account number you want the character to have.

#------ Password of the GM/GOD Account ------
SET @pass = "PASSWORD";
#--------------------------------------------


This is the password for the GM/GOD character's account, change the text inside of the double quotes (" ") to whatever password you want.

#------- Name of the GM/GOD Character -------
SET @name = "GM CHARACTER NAME";
#--------------------------------------------


This is the GM/GOD characters name, change the text inside of the double quotes (" ") to whatever name you want on the character.

# --- Coordinates where the character will spawn ---
SET @posx = 1000;
SET @posy = 1000;
SET @posz = 7;
#---------------------------------------------------


This is the coordinates at which your GM/GOD character will spawn when you first log in. It is suggested that you change it to your temple position, so that you can log in on it.

And now we are done with the hard part, and can proceed to step 3.



Step 3.



As the final step, make sure you copy the text in your text editor by pressing CTRL + A to select it all, and then iether rightclick on it and choose "Copy" from the menu, or press CTRL + C.

Now, go to the PHPMyAdmin, and paste the text into the textbox, like this:

inputquerysa2.png


And then press the "Go" button:

querygobj9.png


Now, the site should refresh, and show a green bar stating that the query was successful:

queryokfu4.png



Congratulations, you have now created a GM/GOD character on your server!



I hope you found this guide helpful, if you have any questions, comments or requests, feel free to post them here.

Send me a side I can download php my admin please.. I really need it lool THE ONE WHO GIVES ME GET GM ON MY 8.50 FORGOTTEN!
 
INSERT INTO accounts( `id` , `password` , `type` , `group_id` )
VALUES (
@acc , @pass , 5, (

SELECT `id`
FROM groups
WHERE `name` = 'a god'
)
);
#1146 - Table 'xxx.groups' doesn't exist

^whatz the problem ? how to fix it ?
 
Or another way to do it:

1GO TO YOUR DATABASE
2GO TO PLAYERS TABLE
3CHOOSE THE PLAYER YOU WANT TO MAKE GM/GOD AND EDIT IT BY CLICKING ON THE PEN AT THE LEFT SIDE OF THE CHARACTER NAME/ACC
4NOW, CHANGE THE ACCESS TO 2/3/4 OR 5
 
I've done like you said, i actually just wanted to test it...so i directly copied your text, it worked perfectly with no errors but when i try to login it says account name or password is incorrect, so i went to check in database, the character was created but somehow i cannot login, any idea?
 
@Winnerandy acces in PHPmyAdmin doesent exists! But i can change name and levels and stuff!
 
Back
Top