3511
Script Debug / Re: auto gheal pot
« on: October 21, 2008, 08:55:57 AM »I'M trying to make my "own" (i read a lot of macros that make the same and take the best for me of each) autoheal script, but I'm not good at all scripting, my question is why this script doesn't work?TM's got it right. The problem is with lag and connection. If you just put in set delays, then it might work 80% of the time. But to make it work 100% you need to have checks.
event macro 24 1
finditem UUF C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 20
event macro 37
I'M trying to make my macro disarm drink and arm, but it just disarm and arm
thank you
Check to make sure weapon appears in pack, THEN drink.
If you just want a simple drinker then you can use delays. Remember it's not going to work 100%.
Code: [Select]
event macro 24 1
wait 10 ; adjust this if needed
findItem UUF C_ , #backpackID
if #findKind = -1
return
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 5 ; adjust this if needed
event macro 37
May I ask what you are holding that you need to disarm one hand? Whats in your off hand you don't want to disarm?