typenamehere
New member
- Joined
- Apr 27, 2006
- RedCents
- 11¢
this is one of the first macros ive made, it may look a little sloppy, but it seems to run pretty good for me. im sure someone could tweak it up if they need to, but basically this will *warp* around and kill everything you ask it to, and destroy all the corpses. i use it mostly for semi afk exp, if im watching tv or sumtn and dont feel like playn, but some some xp. used only for melee classes, cleric mercs help if you cant solo the mobs. after killing the mob intended, it checks to see if another mob is attacking you, then others in area (attacking your merc)
if your more interested in loot, then i made (requires ninjadvloot.inc from mq2 site)
Rich (BB code):
| Made by Typenamehere
|Thanks VillageIdiot for the corpse looting section
|insert the name of mobs you want killed in line 10-12, can add more/less mobs if needed
Sub Main
/declare LootTotal int outer
/declare LootSlot int outer
:main
/doevents
/if (${Spawn[gm].ID}) /q
/if (${Me.PctHPs}<=80) /goto :heal
/delay 1s
/if (!${Target.ID}) /keypress f8
/if (!${Target.ID}) /target crystalline sen
/if (!${Target.ID}) /target velium
/if (!${Target.ID}) /target icepaw
/if (${Target.Type.Equal[Corpse]}) {
/warp target
/goto :loot
}
/if (${Target.ID}) /goto :move
/goto :main
:move
/warp target
/keypress back hold
/delay .5s
/keypress up
/stick 7
/goto :kill
:kill
/delay 1s
/attack on
/stick 7
/goto :wait
:wait
/if (${Me.PctHPs}<12) {
/warp succor
/delay 1s
/warp succor
/fade
/delay 40s
/goto :heal
}
/doevents
/if (!${Target.ID}) /goto :main
/if (${Target.ID}) /goto :kill
:heal
/if (${Me.PctHPs}>80) /goto :main
/if (${Me.PctHPs}<=80) {
/delay 10s
/goto :heal
}
:loot
/target corpse
/if (${Target.ID}) {
/moveto ID
/delay 2s
/loot
/delay 1s
/goto :start
:start
/if (!${Corpse.Items}) {
/notify LootWnd DoneButton leftmouseup
/return
}
/varset LootTotal ${Corpse.Items}
/for LootSlot 1 to ${LootTotal}
/nomodkey /shiftkey /itemnotify loot${LootSlot} leftmouseup
/delay 1s
/echo Destroying ${Cursor.Name}...
/destroy
/delay 1s
/next LootSlot
/notify LootWnd DoneButton leftmouseup
/delay 2
/goto :main
if your more interested in loot, then i made (requires ninjadvloot.inc from mq2 site)
Rich (BB code):
| Made by Typenamehere
|insert the name of mobs you want killed in line 10-12, can add more/less mobs if needed
#include ninjadvloot.inc
Sub Main
/declare LootTotal int outer
/declare LootSlot int outer
:main
/doevents
/if (${Spawn[gm].ID}) /q
/if (${Me.PctHPs}<=80) /goto :heal
/delay 1s
/if (!${Target.ID}) /keypress f8
/if (!${Target.ID}) /target broken
/if (!${Target.ID}) /target velium
/if (!${Target.ID}) /target icepaw
/if (${Target.Type.Equal[Corpse]}) {
/warp target
/call Lootcorpse
}
/if (${Target.ID}) /goto :move
/goto :main
:move
/warp target
/keypress back hold
/delay .5s
/keypress up
/stick 7
/goto :kill
:kill
/delay 1s
/attack on
/stick 7
/goto :wait
:wait
/if (${Me.PctHPs}<12) {
/warp succor
/delay 1s
/warp succor
/fade
/delay 40s
/goto :heal
}
/doevents
/if (!${Target.ID}) /goto :main
/if (${Target.ID}) /goto :kill
:heal
/if (${Me.PctHPs}>80) /goto :main
/if (${Me.PctHPs}<=80) {
/delay 10s
/goto :heal
}

