Ecchi_User wrote:I have tried that macro, the way it stands as is, doesn't work. Or at least I couldn't figure it out.
You're right, it doesn't work. That was something I wrote off the top of my head, making assumptions. You know what happens when we make assumptions.
Well, here goes. Again, off the top of my head, probably slower, but 'should' work....
Code: Select all
| - handin.mac -
| Performs a handin to a mob name
| Call like /mac handing "Mob Name" "Item Name" #ItemsInStack #Staks
| Soo... 4 stacks of 4 muffins to RandomMob would be...
| /mac handin "Some Mob" Muffin 4 4
sub Main
/press CTRL
/press ALT
/press SHIFT
/target $p0
:GetCloser
/if n $target(distance)>9 {
/echo You need to get closer to $p0! Move closer and unpause...
/mqpause on
/goto :GetCloser
}
/sendkey down ctrl
:StartHandin
/for v1 0 to $p3
/varset v9 $count("$p1")\$p2
/if n $v9==0 /if n $v1==0 /goto :End
/if n $v9==0 /if n $v1>0 /goto :HandIn
/for v2 0 to $p2
/finditem "$p1"
/click left npctrade $v1
/next v2
/next v1
:HandIn
/click left npctrade give
/goto :StartHandin
:End
/sendkey up ctrl
/return
That should work a bit better, but its not optimized at all.... Still untested as well. Let me know....