there is probably a energy ring action working 100% flawless but so far i couldnt find one
so basicly thats what i need.
I am hunting demons and enemys lure very often on me i need a action who equips energy rimg if 2 or more demons are onscreen and who takes it off when there is 1 or less on screen. all the actions i tryd to far will only equip but not put it back in main bp :(
init start
local item = 'energy ring' -- Can be a ring or an amulet
local MONSTERS = {"Demon"}
-- DO NOT EDIT BELOW THIS LINE
item = itemid(item)
local slot, slotName = $neck, 'neck'
if itemname(item):lower():find('ring') then
slot, slotName = $finger, 'finger'
end
init end
auto(100, 200)
if slot.id ~= item and itemcount(item) > 0 and maround(unpack(MONSTERS)) >= 2 then
equipitem(item, slotName)
waitping()
else if maround(unpack(MONSTERS)) <= 1 and slot.id ~= 0 then
moveitems(slot.id, 0, "finger")
waitping()
end
04-14-2014, 04:57 PM
Katnis
damn its like the 1000 time i posted in wrong board
init start
local item = 'energy ring' -- Can be a ring or an amulet
local MONSTERS = {"Demon"}
-- DO NOT EDIT BELOW THIS LINE
item = itemid(item)
local slot, slotName = $neck, 'neck'
if itemname(item):lower():find('ring') then
slot, slotName = $finger, 'finger'
end
init end
auto(100, 200)
if slot.id ~= item and itemcount(item) > 0 and maround(unpack(MONSTERS)) >= 2 then
equipitem(item, slotName)
waitping()
else if maround(unpack(MONSTERS)) <= 1 and slot.id ~= 0 then
moveitems(slot.id, 0, "finger")
waitping()
end
18:51:16 error in Persistent script NewPersistentScript3:
["end"]:NewPersistentScript3:21: 'end' expected (to close 'function' at line 11) near '<eof>'
init start
local item = 'energy ring' -- Can be a ring or an amulet
local MONSTERS = {"Tortoise", "Serpent Spawn"}
local mToEquip = 2
local mToUnequip = 1
-- DO NOT EDIT BELOW THIS LINE
item = itemid(item)
local slot, slotName = $neck, 'neck'
if itemname(item):lower():find('ring') then
slot, slotName = $finger, 'finger'
end
init end
auto(100, 200)
if slot.id ~= item and itemcount(item) > 0 and maround(10, unpack(MONSTERS)) >= mToEquip then
equipitem(item, slotName)
waitping()
elseif maround(10, unpack(MONSTERS)) <= mToUnequip and slot.id ~= 0 then
moveitems(slot.id, 0, "finger")
waitping()
end