Egg and mournful Spirit Directional Caller I made so guildies without MQ2 knew what direction a Mournful spirit or A Tainted egg was
Code:
|Egg and Mourn Caller
|by Bendical
Sub Main
/declare mourns int outer
:mainloop
/if (${Spawn[egg].ID} > 0 ) {
/call Egg
}
/if ( ${Spawn[mournful_spirit].ID} > 0 ) {
/call Mourn
/delay 5s
}
/goto :mainloop
/return
Sub Egg
/if (${Spawn[egg].PctHPs} > 0) {
/if (${Spawn[egg].Distance} <= 70) {
/fake /1 [[A Tainted Egg in Camp]]
} else /if (${Spawn[egg].HeadingTo.DegreesCCW} <= 80) {
/fake /1 [[A Tainted Egg is to the north]]
} else /if ( (${Spawn[egg].HeadingTo.DegreesCCW} >= 100) && (${Spawn[egg].HeadingTo.DegreesCCW} <= 260) ) {
/fake /1 [[A Tainted Egg is to the South]]
} else /if (${Spawn[egg].HeadingTo.DegreesCCW} >= 280) {
/fake /1 [[A Tainted Egg is to the north]]
}
}
:loop
/call Mourn
/delay 5s
/if ( ${Spawn[egg].PctHPs} == 0) {
/return
}
/goto :loop
/return
Sub Mourn
/varset mourns ${SpawnCount[mournful_spirit]}
/for mourns 0 to 7
/if (${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} <= 45) {
/fake /1 [[Mournful Spirit is to the north]]
}
/if (${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} > 45 && ${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} <= 135) {
/fake /1 [[Mournful Spirit near Drakes]]
}
/if (${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} > 135 && ${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} <= 225) {
/fake /1 [[Mournful Spirit is to the South]]
}
/if (${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} > 225 && ${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} <= 315) {
/fake /1 [[Mournful Spirit is behind Vishimatar]]
}
/if (${Spawn[mournful_spirit0${mourns}].HeadingTo.DegreesCCW} >= 315) {
/fake /1 [[Mournful Spirit is to the North]]
}
/next mourns
/return