• 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!

Lua Help to fix trade-off in game 8.6

kennyubuntu

Member
Joined
May 20, 2016
Messages
150
Reaction score
13
I'm tryng to when player use this item
Code:
14:44 You see a depot chest (Vol:30).
ItemID: [2594].

Item inside depot, show the options to market based on this script
https://otland.net/threads/offline-player-to-player-item-trader-auction-system.51447/

Someone could help me?

@DangerII make this script, but just show the commands, not show the items...

How to fix?

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local result = db.getResult("SELECT * FROM `auction_system` ORDER BY `auction_system`.`id` ASC")

local msg = "Trade Offline:\n\n!offer buy, ID\n!offer remove, ID\n!offer add, ItemName, ItemPrice, ItemCount\n\n"
if(result:getID() == -1) then
repeat
local id = result:getDataString("id")
local name = getPlayerNameByGUID(result:getDataString("player"))
local item_name = getItemNameById(result:getDataString("item_id"))
local count = result:getDataString("count")
local custo = result:getDataString("cost")/1000
local custo2 = result:getDataString("cost")
if isPlayer(cid) then
msg = ""..msg.."ID : "..id.."\nItem Name : "..item_name.." - Item Count : "..count.." - Item Cust : "..custo.."k("..custo2.."GP) - Dono : "..name.."\n"
end
until not result.next(result_plr)
result.free(result_plr)
end
doPlayerPopupFYI(cid, msg) return true
end

Its show me just
Code:
Trade Offline:

!offer buy, ID
!offer remove,ID
!offer add, ItemName, ItemPrice, ItemCount
 
Mate, understand. If there isn't the stuff that you want coded in the client code HOW ARE YOU GOING TO CREATE SOMETHING IN THE CLIENT. You can only use whatever cipsoft coded and they didn't code anything to create windows (not until modalwindows but they are still limited.)

modalwindows is exactly what i need! should be perfect, i looking on google its limited, but using this...
i think i could make a perfect functional market!

but its possible to be able to 0.4?

here https://otland.net/threads/how-to-modal-windows.225398/ say its only to 1.0+
 
Code:
 Please note that this is only for TFS 1.0+ and Tibia version 9.7 or later.

Be nice... I don't want u make it for me...
I just ask if its could be possible

OHTmOLf.png


Create modalwindows (This thing like a channels select...)
In 0.4 - with no client edits
 
Last edited:
Back
Top