• 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 table top level players

Scrappy Coco

Member
Joined
Dec 27, 2014
Messages
95
Reaction score
17
as I can make a table like this to show me the top level online .
tfs 1.1

8YHnRxO.png


link catacomb
https://otland.net/threads/tfs-1-1-...ablo-3-teleport-great-for-rpg-servers.230015/
 
2nqglkp.png


My goal is to make top level rather say ( elver Galarga lvl 500 ) I'll be grateful if they could help me thanks

actions

Code:
function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
    player:registerEvent("ModalWindow_Hunter")
if player:getExhaustion(1000) <= 0 then
    local title = "Select player kill!"
    local message = "ready for hunter!"


    local window = ModalWindow(1000, title, message)

    window:addButton(100, "Confirm")
    window:addButton(101, "Cancel")

    window:addChoice(1, "top level")
    window:addChoice(2, "top frags")
    window:addChoice(3, "top money")
    window:addChoice(4, "leader guild")

    window:setDefaultEnterButton(100)
    window:setDefaultEscapeButton(101)

    window:sendToPlayer(player)


        player:setExhaustion(1000, 10)
    else
       player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You\'re exhausted for: '..player:getExhaustion(1000)..' seconds.')
    end

    return true
end

creaturescripts

Code:
function onModalWindow(player, modalWindowId, buttonId, choiceId)
    player:unregisterEvent("ModalWindow_hunter")
    local storage = {6681, 6682, 6683, 6684}

    if modalWindowId == 1000 then
        if buttonId == 100 then
            player:setStorageValue(storage[choiceId], 1)
        end
    end
end

Code:
function onKill(cid, target, lasthit)


      local player = Player(cid)
if(isPlayer(cid) and isPlayer(target) and lasthit and player:getStorageValue(6681)) then
        broadcastMessage("!Empieza la cazeria del top level.", MESSAGE_STATUS_WARNING)
         player:say("Cazador de recompenzas level", TALKTYPE_MONSTER_YELL)
         player:setStorageValue(6661, 0)
    end

    if(isPlayer(cid) and isPlayer(target) and lasthit and player:getStorageValue(6682)) then
        broadcastMessage("!Termino la cazeria del top frags.", MESSAGE_STATUS_WARNING)
         player:say("Cazador de recompenzas frags", TALKTYPE_MONSTER_YELL)
         player:setStorageValue(6662, 0)

    end
    return true
end
nothing
 
Last edited:
Back
Top