This is a necromancer based warp+kill+loot macro for farming low level zones for trade skill items mostly. It is adapted from the DranikLoyalistFaction macro. Replace "Vayphi" with your DPS/tank mercs name.
Rich (BB code):
#include spell_routines.inc
#include ninjadvloot.inc
#event Wall "You cannot see your target."
#event Died "You have been slain#*#"
Sub Main
/call SetupAdvLootVars
:loop
/call CheckBuffs
/squelch /target npc corpse
/if (${Target.Type.Equal[corpse]}) {
/echo Corpse found.
/call lootLoop
} else {
/echo No corpses found, getting next target.
/squelch /target npc
/call attackLoop
}
/goto :loop
Sub lootLoop
/echo Looting corpse.
/warp target
/call lootcorpse
/delay 1
/return
Sub attackLoop
/attack
/if (!${Me.Casting.ID}) /pet attack
:combatLoop
/if (${Target.Type.Equal[NPC]}) /face fast nolook
/if (${Target.Distance}>5) {
/warp target
:moveloop
/if (${Target.ID}) /face
}
/if (${Me.AltAbilityReady[Rise of Bones]} && !${Me.Casting.ID}) /aa act Rise of Bones
/if (${Me.AltAbilityReady[Reluctant Benevolence]} && !${Me.Casting.ID}) /aa act Reluctant Benevolence
/if (${Me.SpellReady[7]} && ${Target.PctHPs}>75 && !${Me.Casting.ID} && ${Target.Type.Equal[NPC]}) /cast 7
/if (${Me.SpellReady[1]} && ${Target.PctHPs}>40 && !${Me.Casting.ID} && ${Target.Type.Equal[NPC]}) /call Cast "Divert Essence Rk. II"
/if (${Target.Type.Equal[NPC]}) /goto :combatLoop
/delay 1
/if (${Me.XTarget}>0) {
/echo Clearing extended targets.
/assist Vayphi
/goto :combatLoop
}
/if (${Me.XTarget}>0 && ${Target.Type.Equal[NULL]}) {
/echo Clearing extended targets
/assist Vayphi
/goto :combatLoop
}
/if (${Me.XTarget}>0 && ${Target.Type.Equal[Corpse]}) {
/echo Clearing extended targets
/assist Vayphi
/goto :combatLoop
}
/if (${Me.XTarget}>0 && ${Target.Type.Equal[NPC]}) {
/goto :combatLoop
}
/if (${Me.XTarget}==0) {
/return
/echo No more extended targets, area clear.
}
/return
Sub CheckBuffs
/if (${Spell[Shield of Dreams Rk. II].Stacks} && !${Me.Buff[Shield of Dreams Rk. II].ID} && !${Me.Moving}) /call Cast "Shield of Dreams Rk. II"
/if (${Spell[Dead Men Floating].Stacks} && !${Me.Buff[Dead Men Floating].ID} && !${Me.Moving}) /call Cast "Dead Men Floating"
/if (${Spell[Necrotic Boils Rk. II].Stacks} && !${Me.Buff[Necrotic Boils Rk. II].ID} && !${Me.Moving}) {
/tar ${Me.Name}
/call Cast "Necrotic Boils Rk. II"
}
/if (${Spell[Form of Endurance VIII].Stacks} && !${Me.Buff[Form of Endurance VIII].ID} && !${Me.Moving}) /call Cast "Humanoid Leather Mask" item
/if (${Spell[Knowledge of the Past VI].Stacks} && !${Me.Buff[Knowledge of the Past VI].ID} && !${Me.Moving}) /call Cast "Royal Knight's Earring" item
/if (${Spell[Myrmidon's Skill IV].Stacks} && !${Me.Buff[Myrmidon's Skill IV].ID} && !${Me.Moving}) /call Cast "Transistor Torque" item
/if (${Spell[Illusionary Spikes III].Stacks} && !${Me.Buff[Illusionary Spikes III].ID} && !${Me.Moving}) /call Cast "Servant's Cloak" item
/if (${Me.AltAbilityReady[Fortify Companion]} && !${Me.Casting.ID} && !${Me.Moving}) /call Cast "Fortify Companion" alt
/if (${Me.AltAbilityReady[Death Bloom]} && ${Me.PctMana}<80 && !${Me.Casting.ID} && !${Me.Moving}) /call Cast "Death Bloom" alt
/return
Sub Event_Died
/endmac
/return
/if (!${Target.Type.Equal[NPC]}) /keypress esc
/if (${Target.ID} || ${Me.CombatState.Equal[COMBAT]}) /call attackLoop
/goto :loop
/return
Last edited:

