I've been looking for quite a while but I couldn't find what I was looking for.
Here's the idea;
I'm hunting in a given spot, there are few Ice Golems roaming around, I don't want to use my Rod to kill them simply because they're immune and it's just waste of mana.
I want my action to take off Underworld Rod (put it in main backpack) and kill targetted Ice Golem using exori vis.
After that, it should put the rod back on.
Here's what I found after checking 20 pages:
credits to XtrmJosh
local wand = "Wand of Inferno"
local bpfrom = "Backpack of Holding"
local placeto = "weapon" -- weapon, ammo, etc
local count = 1
local twand = "Bonelord"
if target.name == twand then
if itemcount(wand, placeto) == 0 then
moveitems(wand, bpfrom, placeto, count)
if itemcount(wand, placeto) ~= 0 then
moveitems(wand, placeto, bpfrom, count)
now that's just a clue and it uses wand of inferno to kill x monster while i want something opposite.
to not use wand for x monster.
I'll appreciate any help I can get, still learning.