#Multiple trade in one npc for diferent items

1 messages · Page 1 of 1 (latest)

finite tree
#

Hi, firstly, thanks for ur amazing scripts. Can someone help me a little? It's possible to the same NPC have multiple trades? Like if I have Y item he give me Y item, if I have X item, he give me X item... Thanks indeed and sorry if someone asked it already but I can't find.

#

Like this:

local smelterGuy = {
    name = 'smelterGuy',
    model = 's_m_m_lathandy_01',
    tradeName = 'SandwichToY',
    tradeName = 'SandwichToX',
    tradeName = 'SandwichToZ',
    tradeLabel = 'Trade X,Y,Z bla bla...',
    coords = vector4(1081.15, -1980.33, 31.47, 144.61),
    animation = 'WORLD_HUMAN_JANITOR',
    available = {from = 9, to = 17}
}