Marcinek counsel some trick in this previous thread about shop window (I starter new beacouse nobody is ckecking that thread). I told then it is working but not exactly ;/
and table
Shop window is opening when i write 'trade' but i can't buy or sell anything ;p
I should check it earlier but I was sugested that if the window was opening so this is working
P
So anybody know what should I do if I want it works?
Code:
if msgcontains(msg, 'trade') then
if getPlayerStorageValue(cid, storage) == TRUE then
openShopWindow(cid, items, onBuy callback, onSell callback)
selfSay("BROWSE MY GOODS!", cid)
else
selfSay("You is not friends with Gruzbar the Orcish warlord! =(", cid)
end
end
and table
Code:
local items = {
item = { id = 2131, subType = 0, buy = 100, sell = 50, name = "item" },
item = { id = 2314, subType = 0, buy = 1000, sell = 500, name = "itemzord" }
}
Shop window is opening when i write 'trade' but i can't buy or sell anything ;p
I should check it earlier but I was sugested that if the window was opening so this is working
So anybody know what should I do if I want it works?
Last edited: