• 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.2 8.6 Clean Script

Hey, someone have a /clean script?
in talkactions.xml add:
XML:
    <talkaction words="/clean" script="clean.lua" />
and create a lua file called clean.lua
Lua:
function onSay(player, words, param)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end

    local itemCount = cleanMap()
    if itemCount > 0 then
        player:sendTextMessage(MESSAGE_STATUS_WARNING, "Cleaned " .. itemCount .. " item" .. (itemCount > 1 and "s" or "") .. " from the map.")
    end
    return false
end
 
Yea, i have this , and it doesnt works. On console i see "clean 0 items". But on the ots it dont take a items from floor. Ane no reaction (no message online)
 
Back
Top