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

TFS 1.X+ Custom AutoLoot help

kozmo

Member
Joined
Jan 30, 2009
Messages
443
Solutions
2
Reaction score
23
Trying to get a custom autoloot script to work in OTServbr 12.6 - TFS 1.3
Lua:
local autoLoot_onModalWindow = CreatureEvent("autoLoot_onModalWindow")
local autoLoot_onDeath = CreatureEvent("autoLoot_onDeath")
local autoLoot_onKill = CreatureEvent("autoLoot_onKill")

function autoLoot_onModalWindow.onModalWindow(player, mwID, buttonID, choiceID)
    print("temp if modal window was activated")
    return autoLoot_handleMW(player, mwID, buttonID, choiceID) end
function autoLoot_onDeath.onDeath(creature, corpse) return autoLoot_onDeath(creature, corpse) end
function autoLoot_onKill.onKill(killer, target) return autoLoot_onKill(killer, target) end

autoLoot_onModalWindow:register()
autoLoot_onDeath:register()
autoLoot_onKill:register()

When kill monster to Loot Item get this Error
 

Attachments

Last edited:
Back
Top