Moderator: MacroQuest Developers
Code: Select all
/finditem "itemname"
/target aMob
/click left targetAck, didnt think of that.Imperfect wrote: I think the difficult thing to get to work here would be to do 4 stacks of 4. I am guessing when Plazmic comes back that picking up a certain amount of items ie 4 instead either a full stack or a single item will be added. Until then any fadtion type macros will be pretty inefficient.
Code: Select all
Sub Main
/sendkey down shift
/finditem "bat wing"
/target aMob
/click left target
/Return 0
Code: Select all
/click left give

Code: Select all
| - handin.mac -
| This macro performs handins to a mob.
| It should be called like this:
| /mac handin "MobName" "ExactItemNameToHandIn" #ToHandInAtATime
sub Main
/target $p0
/if "$target()"!="TRUE" {
/echo Unable to target $p0, ending...
/goto :End
}
/face
:GetCloser
/if n $target(distance)>10 {
/echo You are not close enough to do the handin...
/echo Move closer and unpause...
/mqpause
/goto :GetCloser
}
:StartHandin
/varset v2 0
:PickItems
/varset v1 $count("$p1")\$p2
/if n $v1==0
/if n $v2>0 {
/goto :HandIn
} else {
/goto :End
}
/finditem "$p0"
| The following code was created by Goge in this MQ thread:
| http://macroquest2.com/phpBB2/viewtopic.php?t=311
/mouseto + 23 +45
/delay 20
/for v62 1 to $v61
/delay 0
/click left
/next v62
/mouseto + 66 -22
/delay 20
/click left
/delay 5
/click left target
/varadd v2 1
/if n $v2<4 /goto :PickItems
:HandIn
| I'm going to use this, because it was listed above... no idea if this works
| Based on MQ# syntax I've seen this far, it will either be 'Give' or
| 'Trade' assuming, of course, MQ supports this.
/click left Give
/goto :StandHandin
:End
/return
Code: Select all
/mac handin MobName "Muffin" 4