npc help

Desolation Mir2 (Med Rate Server)

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
hi

ive been searching the forums for help on adding a npc and not had any luck.

i have set up a offline server to mess about with in my spare time and i would like to add some npc's, ive found out how to make basic npc scripts and would like to test them out on my server.

does any 1 know of any guides to adding them to my server

thanks and sorry about being a noob :lol1:

EDIT: i forgot to add tht im using td 2.3 files just incase u need to know :)
 
Last edited:

ThreeHeroes

LOMCN Veteran
Veteran
May 6, 2009
551
3
104
open SQL, add the npc to the NPC table. making sure enabled is set to 1.

Then open ur server files, M2Server, Envir, NpcDef, and add the .txt document there.


If u wanted a npc called Frank, you would name the NPC frank in SQL, and make the script .txt called Frank-0.txt

Frank-0 <<<----- the 0 = the mapnumber.


I aint very good at explaining lol, hope it helps tho
 
Upvote 0

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
thanks:D , ive added a few npcs nw :D just trying to work out how to sort the spawns out ive only got a few mobs spawning atm lol
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Spawns are done through TBL_MONGEN

Its very similar to adding NPC's, just obviously the tables mean different things, pretty basic stuff which you should understand.

Keep posting if you need any help, stick to this thread though or your likely to get infracted for double thread starting ><
 
Upvote 0

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
how do you go about putting server online so my m8 can come on aswell, i managed to find a thread on how to put server online but it was for older files i followed the guide and then i could'nt connect to the server at all
i would be very greatful for any help :)
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
If your on a router, then you need to find your internal & external IP address, then find a guide on the Mir2 section: "The one thread you will ever need"

Those guides should help you setup the server for online use.
 
Upvote 0

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
sorry to be a pain, ive followed the guide and got a error on the gamegate
Windows socket error: The requested address is not valid in its context (10049), on API 'bind'

any ideas ?

thanks again
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Ermm,

Where have you saved the mirserver files on?
C:/ or D:/ ?

In certain files they said D:/ And most people use C:/

So if thats the case, then you need to look through all your notepad ini files and look for the lines what say things like:

D:/mirserver/M2Server

changing it to

C:/mirserver/M2Server

These lines are usually in quite a few of your server inis
 
Upvote 0

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
ive changed all the ips back to 127.0.0.1 and the error has gone, so i must be doing somthing wrong when changing the ips to get the server online :S lol
 
Upvote 0

Weikster

LOMCN Veteran
Veteran
Jan 21, 2009
421
11
44
36th chamber
For a router you need to forward ports 7000,7100,7200, and 3000 if you wanna use a server siggy with usercount or something similar.
Once you know your global IP(goto whatismyip.com) and internal IP (usually 192.168.1.***) it's easy to set up server.

NOTE leave all IP's at 0.0.0.0 alone

1. DBServer/!Addrtable.txt = Internal IP
DBServer/!Severinfo.txt = Internal IP / Global IP
DBServer/Dbsrc.txt = All internal IP

2. LoginGate/config.txt = Internal IP

3. LoginSrv/!Addrtable.txt = server name, server name, Internal IP, Global IP, Global IP
!Serveraddr.txt = Internal IP
Logsrv.txt = All Internal IP

4. M2Server/!runaddr = Global IP
!servertable.txt = Global IP
!Setup.txt = Internal IP

5. RunGate/Config.txt = Internal IP

6. SelGate/Config.txt = Internal IP
 
Upvote 0

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
For a router you need to forward ports 7000,7100,7200, and 3000 if you wanna use a server siggy with usercount or something similar.
Once you know your global IP(goto whatismyip.com) and internal IP (usually 192.168.1.***) it's easy to set up server.

NOTE leave all IP's at 0.0.0.0 alone

1. DBServer/!Addrtable.txt = Internal IP
DBServer/!Severinfo.txt = Internal IP / Global IP
DBServer/Dbsrc.txt = All internal IP

2. LoginGate/config.txt = Internal IP

3. LoginSrv/!Addrtable.txt = server name, server name, Internal IP, Global IP, Global IP
!Serveraddr.txt = Internal IP
Logsrv.txt = All Internal IP

4. M2Server/!runaddr = Global IP
!servertable.txt = Global IP
!Setup.txt = Internal IP

5. RunGate/Config.txt = Internal IP

6. SelGate/Config.txt = Internal IP
thanks for your help m8 im realy greatful, ive followed your guide to get my server online and i get this msg on m2 server :confused1:

[29/10/2009 20:36:37] LoginServer Connected(127.0.0.1:5600)
[29/10/2009 20:36:37] LoginServer Disconnected(127.0.0.1:5600)
[29/10/2009 20:36:48] LoginServer Connected(127.0.0.1:5600)
[29/10/2009 20:36:48] LoginServer Disconnected(127.0.0.1:5600)
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Nice to see your trying anyway dean.

Also that error in your M2 is ust showing that uve got an IP wrong somewhere (127.0.0.1)
Somebody in the LoginSrv folder, just look for the wrong IP and change it and it should be fine
 
Upvote 0

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
i looked in loginsrv and you was right id forgot to change 1 of the ips, its working now :D

thanks :D:D
 
Upvote 0