Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Free User FaNtA's Avatar
    Join Date
    Feb 2014
    Location
    Sweden
    Posts
    365
    Reputation
    45
    Rep Power
    21

    Ultimate Ring Equipper

    Ultimate Ring Equipper


    Description

    Automatically equips a specific ring.


    Configuration

    Edit the item variable on the init block to specify the item to be equipped, be it a ring.

    Code

    -- Ver = '1.0.2' By FaNtA
    init start
    -- Player Option
    local UsePlayerRing = false -- if true PlayerRing will be enable.
    local PlayerRing = 'Life Ring' -- ring name.
    local minAmountt = 2 -- Amount of player to use ring.

    -- Monster Ring Option
    local UseMonsterRing = true -- if true MonsterRing will be enable.
    local MonsterRing = 'energy ring' -- Ring name.
    local MonsterR = {'Water Elemental', 'Quara Mantassin Scout'} -- Monsters.
    local minAmount = 5 -- Amount of monster to use ring.
    local mAmount = 2 -- Amount of monster to take it off.

    -- DO NOT EDIT BELOW THIS LINE
    item = itemid(MonsterRing)
    item2 = itemid(PlayerRing)

    init end

    auto(100, 200)
    if $pzone then
    pausewalking(500)
    moveitems(item2, 0, "finger")
    waitping()
    moveitems(item, 0, "finger")
    waitping()
    pausewalking(0)
    else
    if UsePlayerRing and $finger.id ~= item2 and itemcount(item2) > 0 and paround(10) >= minAmountt and not $pzone then
    pausewalking(500)
    equipitem(item2, "finger")
    waitping()
    pausewalking(0)
    elseif UsePlayerRing and paround(10) < minAmountt then
    pausewalking(500)
    moveitems(item2, 0, "finger")
    waitping()
    pausewalking(0)
    end

    if UseMonsterRing and $finger.id ~= item and itemcount(item) > 0 and (maround(10, unpack(MonsterR)) >= minAmount) and not $pzone then
    if UsePlayerRing and paround(10) >= minAmountt then
    else
    pausewalking(500)
    equipitem(item, "finger")
    waitping()
    pausewalking(0)
    end
    elseif UseMonsterRing and $finger.id > 0 and (maround(8, unpack(MonsterR)) <= mAmount) then
    pausewalking(500)
    moveitems(item, 0, "finger")
    waitping()
    pausewalking(0)
    end
    end
    Last edited by FaNtA; 02-03-2016 at 05:13 PM.

  2. #2
    Free User
    Join Date
    Apr 2014
    Posts
    1
    Reputation
    10
    Rep Power
    0
    Nice script man +))

    rep++
    Last edited by guuzera; 05-12-2014 at 09:15 PM.

  3. #3
    Free User Darknesium's Avatar
    Join Date
    Feb 2014
    Location
    Chile
    Posts
    145
    Reputation
    11
    Rep Power
    21
    Niceeeeeeeee i was looking for one and couldnt find any that worked, this one is OSOM!
    +rep

  4. #4
    Free User
    Join Date
    May 2014
    Posts
    36
    Reputation
    10
    Rep Power
    0
    Working fine, but for you who don't know scripting good, if you want it to use even if you only have 1 ring(or maybe you loot rings), then write 0 on the minAmount

  5. #5
    Free User
    Join Date
    Feb 2014
    Posts
    36
    Reputation
    10
    Rep Power
    0
    PHP Code:
    elseif UseMonsterRing and $finger.count == and (maround(8unpack(MonsterR)) <= mAmountthen 
    with this working better

  6. #6
    Free User
    Join Date
    Aug 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    hey bro, this script work fine, but when stop wearing ring, this script deposit ring on corpse..... how can i do for deposit in main bp?

  7. #7
    Banned
    Join Date
    May 2014
    Location
    Somewhere in the world.
    Posts
    361
    Reputation
    71
    Rep Power
    0
    Quote Originally Posted by aleixfitt View Post
    hey bro, this script work fine, but when stop wearing ring, this script deposit ring on corpse..... how can i do for deposit in main bp?
    on "moveitems(item2, 0, "finger")" you have to put "moveitems(item2, YOURMAINBP, "finger")"

  8. #8
    Free User
    Join Date
    Nov 2014
    Posts
    1
    Reputation
    10
    Rep Power
    0
    I put moveitems (item2, fur backpack, "finger"), am I doing wrong? Please help me.
    Last edited by SmokingW; 11-23-2014 at 10:43 PM.

  9. #9
    Free User
    Join Date
    Jul 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    not working life and energy simultaneously, only one at a time ( for a funcionarar the other must be "false") . What can I do?

  10. #10
    Free User
    Join Date
    Dec 2014
    Posts
    1
    Reputation
    10
    Rep Power
    0
    I get this error:

    error in HUD script UltimateRing:
    Cannot wait or wait for issued events in display scripts.
    stack traceback:
    ["local ret = _MOVEITEMS(iid, dest, from, amount)"]:LucasTerra.lua:4778 in function ["function moveitems(iid, dest, from, ..."]:LucasTerra.lua:4759
    [" moveitems(item, backpack, "finger")"]:UltimateRing:42 in user script
    Last edited by rachelz; 03-01-2015 at 10:14 AM.

 

 

Posting Permissions

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