• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Vish Egg/Mournful direction caller

svarina

Member
Joined
Jan 9, 2006
RedCents
50¢
This Code is Fully working, and has been tested. best if used standing 150 East of Vish if you pin him on wall. You may need to tweek the channels to fit your guild rules, but this should help those guildies that don't MQ2.

Rich (BB code):
|Egg and Mourn Caller
|by Svarina

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
 
Last edited:
I believe the problem is with your Elses, if I'm understanding correctly also you don't need them..

Code:
	/for mourns 0 to 9
		/if (${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}<=45) /fake /gu [[Mournful Spirit is to the north]]
		  
		/if (${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}>45 && ${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}<=135) /fake /gu [[Mournful Spirit near Drakes]]
		   
		/if (${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}>135 && ${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}<=225) /fake /gu [[Mournful Spirit is to the South]]
		  
		/if (${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}>225 && ${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}<=315) /fake /gu [[Mournful Spirit is behind Vishimatar]]
		   
		/if (${Spawn[Mournful_Spirit0${mourns}].HeadingTo.DegreesCCW}>315) /fake /gu [[Mournful Spirit is to the north]]
	/next mourns

There appears to be some conflicts with your "greater/less than or equal to"s also (where multiple conditions could apply to the same mournful spirit previously).

Someone please correct me if I fucked this up, it's way too late for me to be doing this stuff.
 
Vish Egg/Mournful direction caller

Users who are viewing this thread

Back
Top
Cart