Npc hlp plz

Play Now

CrAnK

Dedicated Member
Dedicated Member
Apr 4, 2005
148
0
43
i wanna make a npc were if somone sell somthing to it it will add it 2 the buy list but i want 2 make it so like if u sold it 2 the npc in bw it will come up on other npc like in mudwall i think i no how 2 do it just need a bit of help

in my mirserver\Mir200\Envir\market_def
i made a txt file and added it 2 the merchant.txt file
in the mirserver\Mir200\Envir\market_def i got the txt file lookin like this

[@main]
#ACT
#CALL [\Market\Armour.txt] @4

and in the mirserver\Mir200\Envir\QuestDiary\Market
i named a file Armour.txt and it looks like this

[@4]
{
<Buy/@buy> protectors\
<Sell/@sell> protectors\
<Repair/@repair> protectors\
<Cancel/@exit>
[@buy]
What item do you want to buy ?\ \ \
<Back/@main>
[@sell]
Show me your clothes to be sold. I'll give you an appraisement.\
We also trade helmets.\
So if you like my store please sell them to me.\ \
<Back/@main>
[@repair]
You can repair clothes and helmets here.\ \ \
<Back/@main>
[~@repair]
It seems repaired fine.\ \ \
<Back/@main>
[goods]
;Items (can be Zen) Amount hour
BaseDress(M) 100 1
BaseDress(F) 100 1
LightArmour(M) 100 1
LightArmour(F) 100 1
HeavyArmour(M) 100 1
HeavyArmour(F) 100 1
MagicRobe(F) 100 1
SoulArmour(F) 100 1
SoulArmour(M) 100 1
MagicRobe(M) 100 1
BronzeHelmet 100 1
MagicHelmet 100 1
}


But this aint workin can anyone c wots wrong ?
as soon as i got this workin i can link my other npcs with the Armour.txt. thanks :)

Edited; got it workin just when i click on buy sell or repair it dont come up with the box that u buy from or the box that u put ya stuff in 2 sell or repair som1 hlp plz :) thxs in advance
 
Last edited:

DevilsKnight

I
Staff member
Super Moderator
Aug 1, 2004
1,627
1
57
275
[@main]
#ACT
#CALL [\Market\Armour.txt]
goto @4

[@4]
{
<Buy/@buy> protectors\
<Sell/@sell> protectors\
<Repair/@repair> protectors\
<Cancel/@exit>
[@buy]
What item do you want to buy ?\ \ \
<Back/@main>
[@sell]
Show me your clothes to be sold. I'll give you an appraisement.\
We also trade helmets.\
So if you like my store please sell them to me.\ \
<Back/@main>
[@repair]
You can repair clothes and helmets here.\ \ \
<Back/@main>
[~@repair]
It seems repaired fine.\ \ \
<Back/@main>
[goods]
;Items (can be Zen) Amount hour
BaseDress(M) 100 1
BaseDress(F) 100 1
LightArmour(M) 100 1
LightArmour(F) 100 1
HeavyArmour(M) 100 1
HeavyArmour(F) 100 1
MagicRobe(F) 100 1
SoulArmour(F) 100 1
SoulArmour(M) 100 1
MagicRobe(M) 100 1
BronzeHelmet 100 1
MagicHelmet 100 1
}

try that, u missed the goto not 100% if that will make a difference but its worth a shot.
 
Upvote 0