[2.3] LegendOfMir II Guide - How things are done

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
Legend Of Mir II 2.3
How Things Are Done

Follow through this guide step by step, and you
will have a working set of 2.3 files in no time!


1.Download the files & Client
2.Download WinRar & Extract files
3.Download Microsft SQL & Follow Guide "Thanks to mStation"
4.Setting up your files
5.Putting your server up (Offline use)
6.Forwarding your ports (For online use)
7.Changing your IP's (For online use)
8.Mir Tools
9.Ingame Setups "Thanks to "mSation"
10.Adding Items & Explanations
-----------------------------------------------------------------------------------------------------------------------------------------

1. Downloading The Server Files & Client

Server Files Download Link
Server Files Mirror Download
Server Files Mirror 2 Download

Server Files Mirror 3 Download

Client Download Link

Client Mirror Download (12/11/2017) Thanks Martyn


<<< Please make sure that you extract these server files into your C:/ >>>

The download is through 4shared which is not the best website.
It would be more suitable if somebody knew a more long-term, easier downloading, and suitable
uploading websites to permanently keep these files on.
-----------------------------------------------------------------------------------------------------------------------------------------

2. Unzipping The Server Files
Before you can begin work on your server files, you must have the something called "WinRar".
Winrar is an extracting & data compressing utility, which is excellent for smaller & shorter downloads.

Before you download Winrar, make sure that you select your desired language provided on the website.
Download Winrar Here
-----------------------------------------------------------------------------------------------------------------------------------------

3. Downloading & Installing Microsoft SQL 2005

Read through this guide provided by "mStation".
It is very useful, and good to refer back to if you get stuck at any point.

This guide gives you everything from download links, to tutorials, pictures, and step-by-step guide to installing
Microsoft SQL 2005.

"mStations idiot proof guide"


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

4. Setting up your server files

Please make sure that you have followed "mStations Idiot Proof Guide" before you begin on this section.
If you have no successfully installed Microsoft SQL 2005, and linked up your database you will not be able to log into your server.
Make sure stage 3 is completed before moving onto stage 4.


Go to: C:/, MirServer, DBServer and open the dbsrc.txt.


[SQL]
SQLType=mssql
SQLHost=127.0.0.1
SQLPort=3306
SQLDatabase=mir2
SQLUsername=sa
SQLPassword=sa

The line highlighted in red must become
:
SQLHost="ServerName"
SQLHost=OWNER-V6LMDWNGJ\SQLEXPRESS

----------------------------------------------------------------------------------------------
You can find your "Server Name" by going to your Start menu, Programs, Microsoft SQL 2005.
Open "SQL Server Management Studio Express".
The "Server Name" will be what you need to put in "SQLHost" in the ini file.
It should look like this:

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

Open the M2Server folder, and locate the !setup.txt
The same thing must be done again with the "SQLHost"
.
[SQL]
UseSQL=TRUE
SQLHost=OWNER-V6LMDWNGJ\SQLEXPRESS
SQLUsername=sa
SQLPassword=sa
SQLDatabase=mir2
SQLType=mssql
SQLPORT=3306
SQLCharDatabase=mir2

Your mir server files should now be ready to use if you have followed this guide thoroughly.
-----------------------------------------------------------------------------------------------------------------------------------------

5. Putting your server up (Offline Use)


You can do all of this automatically using the "Server Starter" folder, and "ServerLauncher" utility.
Personally, I believe it is more stable to open the gates manually like this:

Open "DBServer" folder, double click the "DBServer" exe.
Open "GameGate" folder, double click the "RunGate" exe.
Open "LoginGate" folder, double click the "LoginGate" exe.
Open "LoginSrv" folder, double click the "LoginSrv" exe.
Open "SelGate" folder, double click the "SelGate" exe.
Open "M2Server" folder, double click the "M2Server" exe.

THE "M2 SERVER" MUST BE OPENED LAST TO ALLOW THE OTHER GATES TO LOAD ONTO IT.

All of your gates should load up fine with no errors.
If there are no errors, most of your gates should say "Server Started", or "Service Started".
If you have any errors please post below, and I will try to help you resolve your problem.

Once you have opened all the gates, you should now successfully be able to log into your server.
Use the "client" that you downloaded on step 1, and make sure all your "ini" IP addresses are set to 127.0.0.1
-----------------------------------------------------------------------------------------------------------------------------------------

6. Fowarding your ports (Online use)

This guide must be followed if you are wanting your server "Online" for other people to log in.

YouTube Video Guide

http://www.youtube.com/watch?v=Kp-R-eHiQco
(IF YOU FOLLOW THIS YOUTUBE GUIDE, PLEASE MAKE SURE YOU FORWARD PORTS 7000,7100,7200)
---------------------------------------------------------------------------------------------------------------------

Or you can do it through a step-by-step guide.

Firstly, you need to get your IP address.

Start > Run > type in "cmd" and type "ipconfig"
This will display your connections.

----------------------
IPAddress
Subnet Mask
Default Gateway
<----- This is the IP address you need (Usually 192.168.0.1)
----------------------

Type the IP address into your InternetExplorer or FireFox search-bar (What-ever you use), and type in your
routers required Username & Password. (They can be found on the back of your Router).

Default Virgin Media Username: admin
Default Virgin Media Password: changeme

Default Sky Username: admin
Default Sky Password: sky

Once you have logged into your router, you can proceed to forward your ports.
Next step:

Select "Advanced" settings (I'm working by a Virgin Media Router, sky and other networks may have different setup.)
Select "PortForwarding".

Now we need to create something.
Copy what I have entered below.

Name: MirServer
Start Port: 7000
EndPort: 7300
Protocol: TCP&UDP
IP Address: (Enter the "IP ADRESS" from "cmd". This is NOT the Default Gateway. It is the "IP Address").

Press OK/Apply/Add Rule/Accept or whatever it says.
Your ports will now be successfuly forwarded.
-----------------------------------------------------------------------------------------------------------------------------------------

7. Changing your IP's (For online use)

Please follow this stage very carefully, or it can cause you alot of problems.
Make sure you follow it step-by-step.

Firstly, locate your IP Address.
Start > Run > type in "cmd" and in the cmd, type "ipconfig".
The "IP Address" will be used for your server files.

DBServer Folder
---------------------------------------------------------
!addrtable.txt


Change:
127.0.0.1
127.0.0.1

To:
"Your IP Address"
"Your IP Address"
---------------------------------------------------------
!serverinfo.txt

Change:
127.0.0.1 127.0.0.1 7200

To:
"Your IP Address" "Your IP Address" 7200
---------------------------------------------------------
!dbsrc.txt

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1
IDSAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"
IDSADDR="Your IP Address"

GameGate Folder
---------------------------------------------------------
config.txt

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"

LoginGate Folder
---------------------------------------------------------
config.txt

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"

LoginSrv Folder
---------------------------------------------------------
!addrtable.txt

Change:
Diamond Diamond 127.0.0.1 127.0.0.1 127.0.0.1:7100

To:
Diamond Diamond "Your IP Address" "Your IP Address" 127.0.0.1:7100
---------------------------------------------------------
!serveraddr.txt

Change:
127.0.0.1

To:
"Your IP Address"
---------------------------------------------------------
logsrv.txt

Change:
DBServer=127.0.0.1
GateAddr=127.0.0.1
ServerAddr=127.0.0.1
FeeServer=127.0.0.1
LogServer=127.0.0.1

To:
DBServer="Your IP Address"
GateAddr="Your IP Address"
ServerAddr="Your IP Address"
FeeServer="Your IP Address"
LogServer= "Your IP Address"

SelGate Folder
---------------------------------------------------------
config.ini

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"

M2Server Folder (VERY IMPORTANT READ CAREFULLY)
---------------------------------------------------------
!runaddr.txt
(Do not change anything in here)

!servertable.txt
(Do not change anything in here)
---------------------------------------------------------

!setup.txt
You will need to scroll 3/4 down the page to find where these IP address are.
Or you can press CTRL+F, and search for "GateAddr". That should
bring you to the correct area of where you need to be.

Change:
GateAddr=127.0.0.1
GatePort=5000
DBAddr=127.0.0.1
DBPort=6000
IDSAddr=127.0.0.1
IDSPort=5600
MsgSrvAddr=127.0.0.1
MsgSrvPort=4900
LogServerAddr=127.0.0.1

To:
GateAddr="Your IP Address"
GatePort=5000
DBAddr="Your IP Address"
DBPort=6000
IDSAddr="Your IP Address"
IDSPort=5600
MsgSrvAddr="Your IP Address"
MsgSrvPort=4900
LogServerAddr="Your IP Address"


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

All of your IP's should now be correctly set up for online use.
Now if you want to connect to your server, run all of your gates in the MirServer folder, and make sure that no errors pop-up when they have loaded.

To get onto your server once you have put it up for online use, you need to locate your "external ip address" (PUBLIC).
You can find this by typing into google "What is my IP Address".
Once you have found your Public Address, change the IP's in your Client folder to the Public IP Address, and log in.
-----------------------------------------------------------------------------------------------------------------------------------------

8. Mir Tools

MirTools - Here is a download link to various tools you are going to need to create your server.
Contains: DataViewer, hh8 editor, illusionists/shortys map edit, SQL-MS Access Converter, TD NPC Cmds.

Click here to download the MirTools Folder

Explination:

DataViewer:
Dataviewer is the same as hh8, but a more up-to-date reliable version.
It will view any wil files you may need to look at.
This utility is often used for adding items, monsters, minimaps etc to mir, and is very useful to have.

hh8:
hh8 is a utility often used for adding items, monsters, minimaps etc to mir, and is very useful to have.

Illusionist's / Shorty's MapEdit:
This is used for creating, and/or editing maps.

TD's NPC Commands:
This is self explanatory.
Once opened, the link will refer you to a page containing all NPC commands for thedeath's 2.3 files.
Very useful to have, especially when your learning how to script.

SQL to Microsoft Access Converter:
Self explanatory - not used very often.


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

9. Ingame Setups

mStation has kindly provided a guide on how to add some in-game set-ups, e.g.

-Experience Pots & Scrolls
-Making a ranking system
-Storage orbs
-Shout orbs
-Using the robot system

CLICK HERE TO VIEW THEM
-----------------------------------------------------------------------------------------------------------------------------------------
 
Last edited by a moderator:
  • Like
Reactions: mStation

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
-----------------------------------------------------------------------------------------------------------------------------------------
10. Adding Items & Explanations

Adding items can be very simple or hard depending on how you want to go about it.
This guide will explain every part of item making, refer back to this if you get stuck.

How to add an item
Firstly, open your "SQL Microsoft Server Management Studio Express".
Double click "Databases"
Double click "Mir2"
Double click "Tables"
Right click "TBL_STDItems", and press "Open Table"

Now here is the easy way to add an item:
Press the "Box" on the left hand side next to any item you like. I have chosen a "BraveryPotion".
Right click the "Box" and press "Copy" or when the box is highlighted, press CTRL+C.



Now scroll right to the bottom of the page, and Right click the empty "Box" at the bottom, and press "Paste". or CTRL+V.



When you have done that, do not click off the row, you must change the "FLD_ID" number to match in descending order e.g.
Last item added to the db: 1008
The item you have added must be: 1009
It is important that you change the number & the name of the item so you don't duplicate anything else in the database.

You have now successfully added a new quest item to the database.
Go in-game and type @ReloadItemDb - Make sure that you exit off TBL_STDITEMS before you reload. This will save your item.

Now lets try to add a ring...

Again, copy & paste a NORMAL ring from your database e.g. an IronRing.
I have selected a UndeadRing.

Use the copy + paste process again.


And when you paste, don't forget to change the name & numbers!





STDModes: An STDMode determines where on the players body that the item is going to go. (Helmet, necklace, ring, bracelets etc).
However some STDModes may have different effects for each item e.g.

Necklaces - You can't add AC/AMC onto a necklace, because the AC/AMC fields are used for Luck/Curse/A.Speed/Agility/Acc etc.

SHAPE:
Shape is going to determine what the armour/weapon is going to look like on the outside character view.
If you are creating a new weapon, and want to use a euro image e.g SwordOfWarGod, just simply copy & paste the line (As shown above)
and don't forget to rename it & change the ID number.

New shape weapons/armours can be more complicated, I will explain why:
When you add a weapon with a new shape, you must locate the weapon you want using "DataViewer", and divide the number by 1200.
This number the what you will use for the shape.

ANICOUNT:
Anicount is used for several things such as: Putting wings on armours, and adding KR teleports.

Armours:
When you add an armour, you can add wings onto the armours by changing the ANICOUNT number betwen 1-20.
Type @ReloadItemDb in-game, take your armour off & on, and you will have a set of wings.



KRTeleports:
To add a KRTeleport, you must enter a number NOT used before (Double check before you type in a number).
E.g. FLD_ANICOUNT: 99



Once that is done, you can proceed to add your KR teleport by going to:
C:/MirServer/M2Server/Envir/Market_Def/QFunction.txt
Scroll to the bottom and type this in:

[@StdModeFunc99]
#ACT
TAKE EvilMirKRTeleport
MAPMOVE EvilMirKR 36 12
SENDMSG 6 = "You have successfully been teleported to EvilMirKR!"
break

SOURCE:
Source is not used very much, however this is what it does:
Each minus number in source adds +1 holy onto a weapon e.g. (-3 source gives +3 holy)
Each plus number in source adds +1 intent onto a weapon e.g. (+3 source gives +3 intent)

IMGINDEX:
Imgindex is what the item will look like on the floor, bag, and character screen.
The best way to get a number for this, is to refer back to Stage 8 (MirTools).
Open "DataViewer" in the MirTools folder, press "Open" and you should see something like this:



You then need to open your MirServer Client Folder, Data, and Items.wil
which will look something like this:




You then need to locate the item image you want to use, e.g. 01974 for a ring and
type into FLD_IMGINDEX 1974 (Miss off the 0 it is NOT needed).

Once you have done that, you have successfully added your own item, with your own image.
Type @ReloadItemDb in-game, and @Make your desired item.

NEED & NEEDLEVEL:

NEEDLEVEL:
Need level is used for the obvious.
Type in the level you want the player to be to be able to equip the item. E.g. "30" = Level 30.

NEED:
Need has a special feature, this can add different requirements to wear the item e.g. DC/SC/MC/GuildMember/SabukMember.

e.g. "6" = GuildMember item.
-----------------------------------------------------------------------------------------------------------------------------------------
 
Last edited:
  • Like
Reactions: Shady
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
Its still the most stable set of files around at the moment until we see what happens with these Ace files.
The guide is only there to help, as most links are now going dead for the 2.3 files & clients.
And alot of people don't know how to do certain things which is why I have gone into explanations.
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
Cheers Shady :)

I know 2.3 is old, but with lack of servers around atm I thought this would be useful for those looking for a "all in 1 explanation guide" kinda thing to people who are wanting to put a server together.

And thanks for the reputation :)
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
I have changed the download link, you should now be able to download the files with no problem.
Thanks for reporting this error
 
  • Like
Reactions: gherkin
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,278
2
2,645
515
United Kingdom
This thread had flagged up as a violation against Google AdSense rules -_-

AdSense publishers may not display Google ads on webpages with content protected by copyright law unless they have the necessary legal rights to display that content. This includes sites that display copyrighted material, sites hosting copyrighted files, or sites that provide links driving traffic to sites that contain copyrighted material.
Examples of copyrighted content which may require legal rights in order to be displayed include, but are not limited to:

  • Television shows, movies, and audio files
  • Access to streaming cable or satellite television
  • Books and/or e-books
  • Video games
  • Images.
What do you think needs removing?
 
Upvote 0

mistodon

Dedicated Member
Dedicated Member
Apr 16, 2003
200
61
125
i have a error when loading up the m2 server, it says MapQuest.txt : Failure was occurred while reading this file.Code= -14 anyone know whats wrong?
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
That is either a quest problem e.g. "RedMoonSword" quest.

Make sure you run the gates in order, if you run the "RunGate" first, that could be causing the problem
 
Upvote 0

Elysiums23

Dedicated Member
Dedicated Member
Oct 19, 2013
84
1
35
Yorkshire
Go to mirserver > envir > mapquest > open mapquest.text select everything and delete it all matey this will resolve your problem.
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,866
63
155
Norwich
Go to mirserver > envir > mapquest > open mapquest.text select everything and delete it all matey this will resolve your problem.
Be careful if you do this, it could make other quests in-game go balls-up.
Good idea & quick fix, but could cause future problems.
Make sure you have a backup if you do this.
 
Upvote 0