Selling to a NPC

logic3

Dedicated Member
Dedicated Member
Nov 17, 2003
88
0
33
i take it that to b able to sell an item to a certain NPC it has to b in the [goods] list in the script of that NPC? Just to clarify.

Thanks
 

Miles

LOMCN VIP
VIP
Mar 27, 2003
1,195
0
213
The goods bit of the npc is only what you can buy. The numbers at the top of the npc (+5 is weapons etc) are what you can sell etc. You can use Solitudes npc scripiter (see aplications forum) to find out what each of the numbers are.

/Miles
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
173
to selll to a npc you need 2 put what u want it 2 sell

%100 at the top means it will buy for all the price afaik

tehn put +stdmode of item here

so e.g you want 2 sell potions and swords to a npc put

%100
+0
+5

[@main]
#SAY
Hello <$USERNAME> What do u have 2 offer?\
<Sell/@sell>, <Leave/@exit>