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
05-11-2014, 03:56 PM
guuzera
Nice script man +))
rep++
05-23-2014, 06:07 PM
Darknesium
Niceeeeeeeee i was looking for one and couldnt find any that worked, this one is OSOM!
+rep
07-02-2014, 09:17 AM
Ztoffe
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 :)
08-23-2014, 10:52 PM
ekepik
PHP Code:
elseif UseMonsterRing and $finger.count == 1 and (maround(8, unpack(MonsterR)) <= mAmount) then
with this working better
10-14-2014, 04:07 PM
aleixfitt
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?
11-06-2014, 10:01 AM
Dekk
Quote:
Originally Posted by aleixfitt
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")"
11-23-2014, 10:28 PM
SmokingW
I put moveitems (item2, fur backpack, "finger"), am I doing wrong? Please help me.
01-13-2015, 07:47 PM
lucasbellei
not working life and energy simultaneously, only one at a time ( for a funcionarar the other must be "false") . What can I do?
03-01-2015, 09:50 AM
rachelz
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
06-18-2015, 11:29 AM
rogikush
where i can put this tipe of script on my bot? :'(
08-14-2015, 06:54 PM
Maddozy
Quote:
Originally Posted by ekepik
PHP Code:
elseif UseMonsterRing and $finger.count == 1 and (maround(8, unpack(MonsterR)) <= mAmount) then
with this working better
Worked only with your tip. Thanks bro!
Quote:
Originally Posted by rogikush
where i can put this tipe of script on my bot? :'(
You can place it on Scripter>Persistents
02-10-2016, 12:47 AM
imbalanced
Stealth ring equiper works perfectly, but energy ring doesnt work at all, any solutions?
05-08-2016, 07:13 PM
Bzowinci
Quote:
Originally Posted by fanta
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
dear fanta, your script is not working for me while he's hunting minotaurs he doesnt put ring back to backpack... He puts it back in dead body of minotaur why ???