NPC's?

Play Now

jakey92

Dedicated Member
Dedicated Member
Jul 24, 2006
84
0
32
Hey i got some NPC's How do i put em into my server?
Thanks
 

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Add the NPC in:

C:/MirServer/M2Server/Envir/NPC_Def

SQL > TBL_NPC
Dont forget to make sure the map name is correct + coords. To find out a mapname type @map ingame, it will say something like this:

Map: 0
Coordinates: 277 602
MAP:(X Y Z)

Or something like that.


Then reload ur m2server or all gates and the NPC should be ingame
 
Upvote 0

^G0trex

Golden Oldie
Golden Oldie
Nov 7, 2003
1,946
28
135
Bham
and remember to name your txt files in npc_def accordingly.

"Trevor-0" for example (0 = bichonwall map no.)
 
Upvote 0

jakey92

Dedicated Member
Dedicated Member
Jul 24, 2006
84
0
32
[02/04/2009 15:03:51] Script file not found: .\Envir\Npc_def\Mikey-0.txt

it ses this ihave added to database can someone help please

EDIT: Never mind fixed it thanks :D
 
Upvote 0

Muffin

Golden Oldie
Golden Oldie
Mar 14, 2005
878
0
153
United Kingdom
1) Put the txt file e.g Teleportation-0 (0 stands for your hz map e.g bichion) into ur npc def folder
2) Add It to sql with the name teleportation
3) go in server and check it out
 
Upvote 0

jakey92

Dedicated Member
Dedicated Member
Jul 24, 2006
84
0
32
Can someone tell me what NPC commands are? ..

How to use them?

Sorry im a noob haha

Thanks
 
Upvote 0

Toyblade

Dedicated Member
Dedicated Member
Jun 20, 2003
92
0
82
Norway
learn faster if you look into other npcs but basiclly this is how it goes

[@main]
#IF <<---- to use if commands like this
checklevel 20 <--- means that player need to be lvl 20 for script to go on
#SAY
You are lvl 20
#ACT
Give itemname 1
#Elsesay
Your not lvl 20

but look at other npcs easiest way to learn imo
 
Upvote 0

^G0trex

Golden Oldie
Golden Oldie
Nov 7, 2003
1,946
28
135
Bham
no,

if it's an act statement you put #ACT above it, if it's if you put #IF above it..

example:

[@main]
#IF
Checklevel 50
#ACT
GIVE BenedictionOil
#SAY
Here's a Bene for being level 50
#ELSESAY
You aren't level 50 so no bene!



poor example but u get the idea


edit: just seens Toy's post above :P seems we had same idea lol
 
Upvote 0