- Joined
- Mar 20, 2008
- Messages
- 26
- Reaction score
- 0
This tutorial was originally made by andreddj2 at RagezoneBR. I'm translating it to English, so that you don't have any doubts. Some things I'll add by myself.
Let's go!
Here are the files you'll need to download:
The odbc files ↑ are the following:
.\Server\GameServer\odbc_internal.dsn
.\Server\GameServer\odbc_stat.dsn
.\Server\Center\odbc_internal.dsn
.\Server\Center\odbc_stat.dsn
Now, open these files:
.\Server\GameServer\config_server.LUA
.\Server\GameServer\config_server.LUA~
Go to line 71 with Ctrl + G and edit like this:
Init_NCashBillingInfo( 'Your IP goes here', 9500, 5, 0, 'odbc_internal.dsn' )
Go to line 31 and remove these --
Let's now edit the IPs at the SQL:
Open those tables on the database gc:
ConnectStatusDB
MsgRouter*
MsgServer*
At ConnectStatusDB, you are going to need to create 2 servers if you are going to make an online server: one with the local IP and another with external IP.
*They are going to be explained later.
We are almost done with the IPs! Let's go to the next step:
Let's set up them, so:
1st: MsgRouter
Protocols: config_mr.ini
We are done with MsgRouter/MsgServer. Let's move on to Accounts Creation!
Explaining the Picture:
Let's go!
- Description
- Files [Downloads]
- Tutorials:
- Restoring the database
- Setting up IP's
- CenterServer
- GameServer
- MsgRouter and MsgServer
- Creating an account/ Hash/Adding items to the account
- Editing your character
- Increasing rates
- Turning on the server
- Frequently Asked Questions (F.A.Q)
~Description~
I'm here to teach you how to make an GrandChase server. Although it's very hard, with this tutorial you are going to make it lightning fast!
It's legal to make your own GrandChase server without lucrative finallities. You can be arrested under the law if you do so.
~Files Download~
Here are the files you'll need to download:
- Server files - Must download
- Databases - Must download too
- Microsoft SQL Server 2005 Express - Necessary
- SQL Server Management Studio Express - CZ GrandChase Client, because it's in English.
~Restoring the Databases~
In order to restore the databases, you will need Microsoft SQL Server 2005 Express. I believe you've downloaded it.
So, in order to do this, you must do everything correctly!
Let's go:
1st: Open your SQL Server Management Studio Express. Before, when you install it, you MUST install it as SQL Authentication Mode, or else it won't work properly.
2nd: After logging in on SQL, click on Databases with mouse's right button, click on New Databases and create three new databases: gc, stat and web.
3rd: After doing this, right-click on gc (the database you've just created) and click on Task → Restore → Database. Select the appropriate .bak file (gc database uses gc.bak, stat database uses stat.bak etc.). Do the same process to the other 2 databases (stat and web)
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
After doing this, your databases are ready.
Thanks to Black Khaos for the pics!
~Setting Up IP's~
Let's begin with the ODBCs, as they are hard to set up.
Here is how it must be:
[ODBC]
DRIVER=SQL Server
UID=SQL User
Address=127.0.0.1,1433
Network=DBMSSOCN
DATABASE=gc
WSID=xmlab-coolcopy
APP=Microsoft Data Access Components
SERVER=(local)
Description=brazil internal
PWD=SQL Password
DRIVER=SQL Server
UID=SQL User
Address=127.0.0.1,1433
Network=DBMSSOCN
DATABASE=gc
WSID=xmlab-coolcopy
APP=Microsoft Data Access Components
SERVER=(local)
Description=brazil internal
PWD=SQL Password
The odbc files ↑ are the following:
.\Server\GameServer\odbc_internal.dsn
.\Server\GameServer\odbc_stat.dsn
.\Server\Center\odbc_internal.dsn
.\Server\Center\odbc_stat.dsn
Now, open these files:
.\Server\GameServer\config_server.LUA
.\Server\GameServer\config_server.LUA~
Go to line 71 with Ctrl + G and edit like this:
Init_NCashBillingInfo( 'Your IP goes here', 9500, 5, 0, 'odbc_internal.dsn' )
Go to line 31 and remove these --
Let's now edit the IPs at the SQL:
Open those tables on the database gc:
ConnectStatusDB
MsgRouter*
MsgServer*
At ConnectStatusDB, you are going to need to create 2 servers if you are going to make an online server: one with the local IP and another with external IP.
*They are going to be explained later.
We are almost done with the IPs! Let's go to the next step:
~CenterServer~
This program controls the "Login Server", ie, it controls the logins and passwords registered at the databases. I'll explain later how to create accounts.
This program uses ConnectStatusDB table. I've already taught how to set up this table.
~GameServer~
This program controls the characters, the missions, the PvPs, the EXP, so, everything you do in-game goes to it.
I've already explained how to config config_server.lua and config_server.lua~
~MsgRouter and MsgServer~
These programs controls Friend List. If one of them or both aren't online, the Friends list won't work.
Let's set up them, so:
1st: MsgRouter
Protocols: config_mr.ini
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
Logs: config_mr.lua
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
The message on the second picture says: Change this: log( 2 ) to log( 0 )
2nd: MsgServer
Protocols - config_msg.lua
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
We are done with MsgRouter/MsgServer. Let's move on to Accounts Creation!
~Creating an Accoun/Hash/Adding items to the account~
Go to users table (gc database):
LOGIN PASSWD SEX
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
Explaining the Picture:
- Login column: Put the login you're going to use in the game
- Passwd column: The passwords are criptografed in MD5. UseTo view the content, you need to sign in or registerto put the password in MD5. Don't be afraid, your password is still the one you typed before.
- Sex column: 0 for Male/ 1 for Female
How to use Hash:
1st: Open Hash.
2nd: Choose MD5 where you see SHA1
3rd: Click on the First button, next to MD5.
4th: Put the password you want
5th: Copy and Paste the code generated.
2nd: Choose MD5 where you see SHA1
3rd: Click on the First button, next to MD5.
4th: Put the password you want
5th: Copy and Paste the code generated.
To add items, go to GoodsObjectList:
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
- ITEMUID = Automatic. Don't need to fill it.
- OWNERLOGIN = Login of the person who will receive the item
- BUYERLOGIN = Login of the person who will receive the item
- ITEMID = Put the item's ID here
- REGDATE = Whatever date
- STARTDATE = Whatever date
- ENDDATE = Whatever date as well.
- OWNERLOGIN = Login of the person who will receive the item
- BUYERLOGIN = Login of the person who will receive the item
- ITEMID = Put the item's ID here
- REGDATE = Whatever date
- STARTDATE = Whatever date
- ENDDATE = Whatever date as well.
You: Hey, where do I find the Items ID?
ShadowTH: At GoodsInfoList table!
Let's edit now the Characters, its experience, level..., shall we?
~Editing your character~
Go to Characters table. There will be your Level, Exp, Win, Lose... You can just edit there and restart your game. It's not necessary to restart the server.
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
You: How can I add Ronan, Lass, Ryan...?
ShadowTH: Simple! Just follow the example shown on the photo above.
CharType column:
0 - Elesis
1 - Lire
2 - Arme
3 - Lass
4 - Ryan
5 - Ronan
1 - Lire
2 - Arme
3 - Lass
4 - Ryan
5 - Ronan
You: How can I become 4th class without doing any tests?
Promotion column:
0 - 1st class
1 - 2nd class
2 - 3rd class
3 - 4th class
1 - 2nd class
2 - 3rd class
3 - 4th class
Let's now increase the rates!
~Increasing rates~
Go to EventTimeLimit table:
![ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums ShadowTH - [Guide]Making a GrandChase server - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
Explaining the picture:
At StartDate, you put when you want to start the event that increases rate.
At EndDate, you put when you want to end the event that increases rate.
Put 1 at EventType, or else it won't work.
At GPRatio and EXPRatio, you put the rate you want to put (GP and EXP).
CommentID you put 0.
At EndDate, you put when you want to end the event that increases rate.
Put 1 at EventType, or else it won't work.
At GPRatio and EXPRatio, you put the rate you want to put (GP and EXP).
CommentID you put 0.
~Turning on the server~
Click on StartAll to turn on the server. It should have 6 windows opened. If you don't have 6 windows open, then you did a mistake somewhere.
~Frequently Asked Questions (F.A.Q)~
You: Hey, everytime I try to log in, I get the following message: Hack detectado (Hack detected). What can I do??
ShadowTH: It might be a problem with your GameGuard or not much memory.
You: Hey, where do I put CASH in my account?
ShadowTH: Nobody knows yet!
You: Where do I edit the items?
ShadowTH: In the main.exe. As we don't have the proper tool to edit them, then we can't do it.
END!
====================================================================================
Hope I helped you to make a GrandChase server.
Thanks to andreddj2 and Black Khaos for the pictures. It helped me a lot!
Last edited: