• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Vish Egg/Mournful direction caller

svarina

Member
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