NPC Commands + What they do!

Rachel

LOMCN Veteran
Veteran
Aug 14, 2003
308
0
113
ingel said:
I think you just paste that to your NPC script file (that is if it will just be a plain NPC for selling items).

what i meant was - where in the game would it be =S
 

Ragnar

Hallowed be thy name
Legendary
Golden Oldie
Loyal Member
Jul 20, 2004
5,258
3
295
Rachel said:
what i meant was - where in the game would it be =S
You need to add the script, then add the script file name to the merchant.txt then need to put other details in the merchant.txt such as where the NPC will be.
 

Rachel

LOMCN Veteran
Veteran
Aug 14, 2003
308
0
113
where do i make the script?note pad?then just put into merchant thingys:P
 

Ragnar

Hallowed be thy name
Legendary
Golden Oldie
Loyal Member
Jul 20, 2004
5,258
3
295
Rachel said:
where do i make the script?note pad?then just put into merchant thingys:P
K as NPC's aint really my side, but i think you need to make a new txt file in the NPC_def folder (not sure what you name it i guess it doesnt matter) then put the script there, then add to merchant.txt
 

Rachel

LOMCN Veteran
Veteran
Aug 14, 2003
308
0
113
ingel said:
K as NPC's aint really my side, but i think you need to make a new txt file in the NPC_def folder (not sure what you name it i guess it doesnt matter) then put the script there, then add to merchant.txt
ive meant to have added 2 NPC's but i dno where they are....where are theyy?lol

EDIT nm sorted :)
 
Last edited:

Ragnar

Hallowed be thy name
Legendary
Golden Oldie
Loyal Member
Jul 20, 2004
5,258
3
295
Rachel said:
ive meant to have added 2 NPC's but i dno where they are....where are theyy?lol
Where did you add them in the merchant.txt lol?
 

The_Ninja_Monke

Dedicated Member
Dedicated Member
Nov 29, 2003
52
0
52
UK
Is it possible to do a time method thing for example

#if
time 2200
#act
goto @gdgj

kind of thing, so that at 20pm the npc will look 4 that method. I know u can do it on ei scripts but not sure about 1.4

ta in advanced
 

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
125
[@main1]
#IF
hour 1 1
#ACT
goto @mainA
#ELSEACT
goto @main2

[@main2]
#IF
hour 2 2
#ACT
goto @mainB
#ELSEACT
goto @main3

[@main3]
#IF
hour 3 3
#ACT
goto @mainC
#ELSEACT
goto @main4

yup, theres an example...
 

Xanan

LOMCN Veteran
Veteran
Loyal Member
Jan 5, 2006
1,203
10
144
Ive searched for this but cant find it

How would you go about getting a npc to check how many mobs in room.

Say a npc spawns a mob if u click on him, but you only want 1 mob in the room at a time.
Sort of like.

[@main]
#IF
'Checks room for a monster'
#SAY
Go kill it
#ELSESAY
Its coming!!!!!
#ELSEACT
Param1 12345
Param2 10
Param3 10
MonGen Monster 1 40