Results 1 to 5 of 5

Thread: Kills counter

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Kills counter

    I need to make HUD to count killed monster. How can i make it ? I searched on forum but everything its not working.

  2. #2
    iBot User jose maria's Avatar
    Join Date
    Jan 2014
    Location
    Brazil
    Posts
    85
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    19 Post(s)
    Reputation
    41
    Rep Power
    3
    Try this:
    Quote Originally Posted by shanp View Post
    PHP Code:
    local KILLED_COUNT1 getsettings('Settings\\Alerts\\Capacity\\Value')
    local KILLED_COUNT2 positive(KILLED_COUNT1+1)
    local TASK_MONSTERS = {"Crocodile"}
    local SERVER_LOG_MSG getnewmessages("Server Log")
    local SERVER_LOG_MSG_COUNT SERVER_LOG_MSG.count 1
    for INDEX 0SERVER_LOG_MSG_COUNT do
        if (
    SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].text:find('Loot of a') and SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].type == 19then
            
    for _MONSTER in ipairs(TASK_MONSTERS) do
                if (
    SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].text:find(MONSTER:lower())) then
                               
    if TASKER == true then
                                 setsettings
    ('Settings\\Alerts\\Capacity\\Value',KILLED_COUNT2)
                               
    end
                end
            end
        end
    end 
    Im using this to count monsters, it saves killed monsters in Settings\\Alerts\\Capacity\\Value (cause Im never using it as alert)

    PHP Code:
    local SCREEN_XSCREEN_Y 100500 
    local CONSIDER_MONSTERS 
    = {"crocodile"} -- can add more 
    addtext
    ('Currently killed ' .. getsettings("Settings\\Alerts\\Capacity\\Value") .. ' Monsters'SCREEN_XSCREEN_Y
    and this is hud working with action


    its not made by me, its from some free task script

  3. #3
    iBot User
    Join Date
    Feb 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Change "type == 19" for "type == 20"

    PHP Code:
    local KILLED_COUNT1 getsettings('Settings\\Alerts\\Capacity\\Value'
    local KILLED_COUNT2 positive(KILLED_COUNT1+1
    local TASK_MONSTERS = {"Crocodile"
    local SERVER_LOG_MSG getnewmessages("Server Log"
    local SERVER_LOG_MSG_COUNT SERVER_LOG_MSG.count 
    for INDEX 0SERVER_LOG_MSG_COUNT do 
        if (
    SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].text:find('Loot of a') and SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].type == 20then 
            
    for _MONSTER in ipairs(TASK_MONSTERS) do 
                if (
    SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].text:find(MONSTER:lower())) then 
                               
    if TASKER == true then 
                                 setsettings
    ('Settings\\Alerts\\Capacity\\Value',KILLED_COUNT2
                               
    end 
                end 
            end 
        end 
    end 
    Settings\\Alerts\\Capacity\\Value

    PHP Code:
    local SCREEN_XSCREEN_Y 100500  
    local CONSIDER_MONSTERS 
    = {"crocodile"} -- can add more  
    addtext
    ('Currently killed ' .. getsettings("Settings\\Alerts\\Capacity\\Value") .. ' Monsters'SCREEN_XSCREEN_Y
    This is the message of console and Tibia has changed the 19 for 20
    Last edited by Beryzinho; 05-19-2014 at 03:08 PM.

  4. #4
    iBot User jose maria's Avatar
    Join Date
    Jan 2014
    Location
    Brazil
    Posts
    85
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    19 Post(s)
    Reputation
    41
    Rep Power
    3
    I had forgotten that...

  5. #5
    Normal User
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    ty, the last one is working :*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •