I changed the whole system, now it works like this one
YasirTrade = --table containing trade info ({id = ?, sell = ?, buy = ?[,name = ""]}
{
{id = 11213, sell = 10},
{id = 11214, sell = 50},
{id = 5883, sell = 120},
}
Y = Npc:new("Yasir")
Y.type = 146
Y.head = 85
Y.body = 7...