After a fight I want to pick up (in my case "palm") the corpse I just killed. I have the body targeted and its name set in the rh_target variable through an alias. Since this is an IRE game, I have to wait until I have balance before I can pick it up. I have a balance boolean variable that is set based off my status prompt and by the trigger "You have regained balance". So I wait until I have gained balance then I want to send the command to palm (pick up) the body.
Ok so this is how I did it. I set up a trigger that let's me know when the fight is over ("You have slain (.*).") and then fire this:
Code: Select all
rh_palmBody(rh_target)
Code: Select all
function rh_palmBody(target)
if balance == true then
send("palm " .. target)
else
tempTimer(1, rh_palmBody(target))
end
end
However, when I run this, some unexpected things happen. Most notably that the tempTimer seems to fire a LOT more than once every second (put an echo() in there to see what I mean).
I know I'm missing something here, but for the life of me I can't seem to see it. Any guidance would be greatly appreciated! Thanks!