Signup Now
Results 1 to 3 of 3
  1. #1
    Free User xinxs's Avatar
    Join Date
    Sep 2014
    Posts
    50
    Reputation
    18
    Rep Power
    20

    Ring equip and unequip by hotkey

    init start
    local ring = 'sword ring' --ring name
    local conditionhp = false -- true or false, equip ring if is bellow *hp* percent
    local hp = 50 --*hp* percent
    local conditionwpt = true --true or false, equip ring in only one *waypointsection*
    local wptsec = 'Hunt' --*wptsection* name
    local conditionmp = false -- true or false, equip ring if is bellow *mana* percent
    local mp = 30 --*mana* percent
    init end

    ----DON'T EDIT BELLOW-----
    auto(200)
    if conditionhp then
    if conditionwpt then
    if conditionmp then
    if $hppc < hp and $wptsection == wptsec and $mppc < mp and itemcount(ring) > 0 then
    keyevent(clientitemhotkey(ring, "equip"))
    elseif ($hppc > hp or $wptsection ~= wptsec or $mppc > mp) and $finger.id ~= 0 then
    keyevent(clientitemhotkey($finger.id, "equip"))
    end
    elseif $hppc < hp and $wptsection == wptsec and itemcount(ring) > 0 then
    keyevent(clientitemhotkey(ring, "equip"))
    elseif ($hppc > hp or $wptsection ~= wptsec) and $finger.id ~= 0 then
    keyevent(clientitemhotkey($finger.id, "equip"))
    end
    elseif $hppc < hp and itemcount(ring) > 0 then
    keyevent(clientitemhotkey(ring, "equip"))
    elseif $hppc > hp and $finger.id ~= 0 then
    keyevent(clientitemhotkey($finger.id, "equip"))
    end
    elseif conditionwpt then
    if conditionmp then
    if $mppc < mp and $wptsection == wptsec and itemcount(ring) > 0 then
    keyevent(clientitemhotkey(ring, "equip"))
    elseif ($mppc > mp or $wptsection ~= wptsec) and $finger.id ~= 0 then
    keyevent(clientitemhotkey($finger.id, "equip"))
    end
    elseif $wptsection == wptsec and itemcount(ring) > 0 then
    keyevent(clientitemhotkey(ring, "equip"))
    elseif $wptsection ~= wptsec and $finger.id ~= 0 then
    keyevent(clientitemhotkey($finger.id, "equip"))
    end
    elseif conditionmp then
    if $mppc < mp and itemcount(ring) > 0 then
    keyevent(clientitemhotkey(ring, "equip"))
    elseif $mppc > mp and $finger.id ~= 0 then
    keyevent(clientitemhotkey($finger.id, "equip"))
    end
    end

    You need to set 2 hotkeys in tibia client:
    1- ring => equip
    2- equiped ring => equip (just set another hotkey to ring when it is equiped for unequip it)

    enjoy and SORRY for bad english
    if you like, REP+

  2. #2
    Free User
    Join Date
    Dec 2013
    Posts
    28
    Reputation
    7
    Rep Power
    0
    Oh wow I just posted something wanting something like this, i'll try it out

  3. #3
    Free User
    Join Date
    Oct 2014
    Posts
    172
    Reputation
    10
    Rep Power
    20
    I tried with energyring but same problem as i always had, It doesnt unequip the energyring :S

 

 

Posting Permissions

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