[Npc] Where am i going wrong? >.<

smoochy boys on tour

Me_F0h_Teh_Win

LOMCN Veteran
Veteran
Aug 6, 2004
318
1
65
Okay, whenever i load up my m2server i get the 'Merchant Initalize fail...Commander NoobTown1(58:177)' error. From what i know it means something wrong in the npc itself, this is what i have atm :S

; ===================================
; Market Def NPC File : Commander-NoobTown1.txt
; Noobtown1
; -----------------------------------
; Name: Commander
; Job:
; Map No: Noobtown1
; Pos 58
; Pos 177
; Comment: Main npc

;====================================


[@main]
#IF
check [1350] 1
#SAY
Well what are you waiting for?\
Get training!\\
<Close Window/@exit>
#ELSEACT
GOTO @Story

[@Story]
#IF
check [1351] 1
GOTO @Ready0
#ELSEACT
GOTO @Story0

[@Story0]
#IF
checklevel 30
GOTO @level30
#ELSESAY
Phew. That was close, Rookie.\\
<What was that all about?/@Story1>

[@Story1]
Wow, You're a bigger noobie than i thought.\
We're at war <$USERNAME>.\\
<War? What war?/@Story2>

[@Story2]
Yes, War. The war between good and evil.\
Im talking about the forces of evil.\\
<Next/@Story3>

[@Story3]
For now we have setup camp here. It's not much but it's home.\
We have another camp up north, i will take you there once you\
become stronger.\\
<Next/@story4>

[Story4]
Here, take this equipment, It should aid you\
in your training.\\
<Thank you./@items1>

[@Items1]

#ACT
GIVE Copperring 2
SET [1350] 1
close

[@level30]
#ACT
SET [1351] 1
#SAY
Congratulations <$USERNAME>, You have trained well.\
I was just about to leave for the other camp, Get your\
things together and meet me back here when you are ready to leave.\\
<I'am ready/@Ready>\
<Exit/@Exit>

[@Ready0]
#SAY
Are you ready <$USERNAME>?\\
<I'am ready/@Ready>\
<Exit/@Exit>

[@Ready]
#ACT
mapmove 0 300 300
GIVE TownTeleport 1
close




It's not finsihed yet, the story is just a rough outline etc etc so dont point out that its **** :P Any ideas whats wrong with it? :S

Many thanks in advance :)
 
Last edited:

Me_F0h_Teh_Win

LOMCN Veteran
Veteran
Aug 6, 2004
318
1
65
Well i fixed the error, but the npc doesnt work, the switches arnt working :(

; ===================================
; Market Def NPC File : Commander-0.txt
; Noobtown1
; -----------------------------------
; Name: Commander
; Job:
; Map No: Noobtown1
; Pos 58
; Pos 177
; File name: *removed*
; Comment: Main npc

;====================================


[@main]
#IF
check [1350] 1
#SAY
Well what are you waiting for?\
Get training!\\
<Close Window/@exit>
#ELSEACT
GOTO @Story

[@Story]
#IF
check [1351] 1
checklevel 30
#ACT
SET [1351] 1
#SAY
Congratulations <$USERNAME>, You have trained well.\
I was just about to leave for the other camp, Get your\
things together and meet me back here when you are ready to leave.\\
<I'am ready/@Ready>\
<Exit/@Exit>
#ELSESAY
Phew. That was close, Rookie.\\
<What was that all about?/@Story1>
#ELSEACT
GOTO @Story0

[@Story1]
Wow, You're a bigger noobie than i thought.\
We're at war <$USERNAME>.\\
<War? What war?/@Story2>

[@Story2]
Yes, War. The war between good and evil.\
Im talking about the forces of evil.\\
<Next/@Story3>

[@Story3]
For now we have setup camp here. It's not much but it's home.\
We have another camp up north, i will take you there once you\
become stronger.\\
<Next/@story4>

[@Story4]
Here, take this equipment, It should aid you\
in your training.\\
<Thank you./@items1>

[@Items1]
#ACT
GIVE Copperring 2
SET [1350] 1
close

[@level]
#ACT
SET [1351] 1
#SAY
Congratulations <$USERNAME>, You have trained well.\
I was just about to leave for the other camp, Get your\
things together and meet me back here when you are ready to leave.\\
<I'am ready/@Ready>\
<Exit/@Exit>

[@Ready0]
#SAY
Are you ready <$USERNAME>?\\
<I'am ready/@Ready>\
<Exit/@Exit>

[@Ready]
#ACT
mapmove 0 300 300
GIVE TownTeleport 1
close
 
Last edited:
Upvote 0