• 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 Talkaction TFS CryingDamson 3.6.0 8.6 cyko

Itutorial

Board Moderator
Staff member
Board Moderator
Joined
Dec 23, 2014
Messages
2,463
Solutions
68
Reaction score
1,129
I am making a talkaction auction system.

If someone can make this part for me I would appreciate it:

I have set it up to allow 3 selling bids at one time. I need a script that will read all players storage values
online or offline, so, from the database.

I need it to read the storage 45554. If the player has that storage = 1 then it will list the player and his selling items.....

The selling storages for item, item amount, and price are this:
Code:
-----------ITEM 1----------------
local item_storage = 45555
local item_amount_storage = 45556
local item_sell_price_storage = 45557
-----------ITEM 2----------------
local item2_storage = 45558
local item2_amount_storage = 45559
local item2_sell_price_storage = 45560
-----------ITEM 3----------------
local item3_storage = 45561
local item3_amount_storage = 45562
local item3_sell_price_storage = 45563

So if a player types !auctionlist they will get something like:

Playername:
item1, amount, price
item2, amount, price
item3, amount, price

Playername2:
item1, amount, price
item2, amount, price
item3, amount, price

If someone could make it please. I would Rep I cannot offer money.
 
P.S. The script would have to read if that players storages for each item are equal to something.....so if they have 1 selling item it would only show the 1 item..... something like

if getOfflinePlaterStorage(cid, item1_storage) > 0 then
if getOfflinePlayerStorage(cid, item2_storage) > 0 then
if getOfflinePlayerStorage(cid, item3_storage) > 0 then
 
Back
Top