Problem with NPCs

Desolation Mir2 (Med Rate Server)

Haiderz

LOMCN n00bie
Apr 23, 2003
6
0
62
England, Brighton
For some reason I've made my NPC, then put it in Npc_Def, and added it to NPC.txt, then when i find them in game of mir i click them and no window comes up. Anyone know whats wrong?
 

vince

Dedicated Member
Dedicated Member
Jul 6, 2004
53
0
83
the npc script is wrong,

each npc has to start with

[@main]

otherwise it wont work.
 

Haiderz

LOMCN n00bie
Apr 23, 2003
6
0
62
England, Brighton
I did that, I know how to make NPC's. Its just been a while, and that is a basic thing.

whats wrong with this:
[@main]
#IF
checkgender male
#SAY
Hey there my good man, would you like some clothes?\ \

<Sure/@man> <Nah/@exit>\

#ELSESAY
Hey there my good woman, would you like some clothes?\ \

<Sure/@wom> <Nah/@exit>\


[@man]
#IF
checkjob warrior
#SAY
So your a warrior, I'll give you your gear.\ \

<Thanks/@manwar> <No/@exit>\

#ELSEACT
#IF
checkjob Wizard
#SAY
A Wizard huh? Ok I'll give ya stuff.\ \

<Thanks/@manwiz>\

#ELSESAY
A Taoist eh? Ok heres ya stuff.\ \

<Ok/@mantao>\

[@manwar]
give n00bArmour(M)
give n00bSword
give n00bBrace 2
give n00bRing 2
give n00bNecklace
give n00bHelmet

<Books/@warbook>\

[@warbook]
give Fencing
give Slaying
give Thrusting
give Halfmoon
give Shoulderdash
give Flamingsword

<Thankyou/@cheap>\

[@cheap]
give gold 1
Here you go, 1 gold.\
That should get you through life.\
:)\ \

<Asshole/@exit>\

[@wom]
#IF
checkjob warrior
#SAY
So your a warrior, I'll give you your gear.\ \

<Thanks/@womwar> <No/@exit>\

#ELSEACT
#IF
checkjob Wizard
#SAY
A Wizard huh? Ok I'll give ya stuff.\ \

<Thanks/@womwiz>\

#ELSESAY
A Taoist eh? Ok heres ya stuff.\ \

<Ok/@womtao>\

[@womwar]
give n00bArmour(F)
give n00bSword
give n00bBrace 2
give n00bRing 2
give n00bNecklace
give n00bHelmet

<Books!/@warbook>\

[@manwiz]
give n00bArmour(M)
give n00bStaff
give n00bBrace 2
give n00bRing 2
give n00bNecklace
give n00bHelmet

<Books!/@wizbook>\

[@wizbook]
give Fireball
give Repulsion
give Eshock
give Greatfireball
give Hellfire
give Thunderbolt
give Teleport
give Firebang
give Firewall
give Lightning
give Thunderstorm
give Magicshield
give Turnundead
give Icestorm

<Thanks/@cheap>\

[@mantao]
give n00bArmour(M)
give n00bSabre
give n00bBrace 2
give n00bRing 2
give n00bNecklace
give n00bHelmet

<Books!/@taobook>\

[@taobook]
give Healing
give Soulfireball
give Summonskele
give Hiding
give Masshiding
give Soulshield
give Revelation
give Blessedarmour
give Traphexagon
give Masshealing
give Summonshinsu

<Thanks/@cheap>\

[@womwiz]
give n00bArmour(F)
give n00bStaff
give n00bBrace 2
give n00bRing 2
give n00bNecklace
give n00bHelmet

<Books!/@wizbook>\

[@womtao]
give n00bArmour(F)
give n00bSabre
give n00bBrace 2
give n00bRing 2
give n00bNecklace
give n00bHelmet

<Books!/@taobook>\