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