Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
A free and open-source MMORPG server emulator written in C++ - otland/forgottenserver
github.com
I'm pretty sure you can move the buy and sell stuff into an onGreet method
Something like this...?
Lua:
local storage = 45001
local function greetCallback(cid)
local player = Player(cid)
if player:getStorageValue(storage) > 0 then
shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
end
return true
end
A free and open-source MMORPG server emulator written in C++ - otland/forgottenserver
github.com
I'm pretty sure you can move the buy and sell stuff into an onGreet method
Something like this...?
Lua:
local storage = 45001
local function greetCallback(cid)
local player = Player(cid)
if player:getStorageValue(storage) > 0 then
shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
end
return true
end
@Xikini As shopModule is not re-instanciated every time (and it's per npc) it would addBuyableItem into shopModule and all players later could benefit that.
@Xikini As shopModule is not re-instanciated every time (and it's per npc) it would addBuyableItem into shopModule and all players later could benefit that.
Yeaa I remember back in the days I wrote some additional parameter to pass storageId to addBuyableItem/addSellableItem and check it later on buy/sell. There's probably easiest way but that was looong time ago