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

HOW INCREASE LOOT OF DUST FORGE SYSTEM

panicozera

New Member
Joined
Dec 30, 2020
Messages
4
Reaction score
1
GitHub
JRX
HELLO OTLANDERS
i have one server ( OTServer-br last release) so i make one custom rpg in to the base server .... so i need help how i increase loot of dusts and chance apair monster with dusts ?
 
I would also like to know, I tried to make a workaround adapting that script that when used in an item delivers tibia coins but it didn't happen .-.

Follows the poorly adapted script:

local dust = Action()
function dust.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local forge_dusts = 100 -- the amount of dusts gived
db.query("UPDATE players SET forge_dusts = forge_dusts + '" .. forge_dusts .. "' WHERE id = '" .. player:getAccountId() .. "';")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "RECEBEU "..forge_dusts.." DUSTS")
item:remove(1)
return true
end
dust:id(19082) -- id item to be used
dust:register()

When I use the item, it disappears and does not give as dust ¯\(ツ)
 
Back
Top