• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Trade shop window problem.

tarjei

Necronian Engineer
Joined
May 25, 2008
Messages
504
Reaction score
126
Location
Poland
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 ;/

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 :PP

So anybody know what should I do if I want it works? :P
 
Last edited:
Back
Top