• 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

Question - Noob Question

DarkDevil

New member
Hi all.
Can someone tell me what I am doing wrong concerning the code in Bold/Italics?
What I am looking to do is skip the WeaveAAs sub routine when AE spells are loaded.
Thanks!!!!!!!!!


Rich (BB code):
Sub Nukem
		/echo this is inside the Nukem sub
		/declare i int local
		/if (${TCast} && ${TCastGem} && ${Me.SpellReady[${TCastGem}]}) {
			/cast "${Me.Gem[${TCastGem}]}" 
			/echo Casting ${Me.Gem[${TCastGem}]} Gem${TCastGem}
			/delay 10s !${Me.Casting.ID}
		|changed from
			}
		/for i 1 to 12
		/doevents
		|/echo ${i} ${Spell[${Me.Gem[${i}]}].Category} ${Me.Gem[${i}]}
			/if (${Target.Type.Equal[npc]}) {
				/if (${GoMDicho} && ${Spell[${Me.Gem[${i}]}].Name.Find[dichotomic]}) /goto :SkipSpell
					/if (${Spell[${Me.Gem[${i}]}].Category.Equal[Direct Damage]} && ${Me.SpellReady[${i}]} && !${Me.SpellInCooldown}) {
						/cast "${Me.Gem[${i}]}" 
						/echo Casting ${Me.Gem[${i}]} Gem${i}
						/delay 10s !${Me.Casting.ID}
					}
				:SkipSpell
				/echo  Code to not use AA nukes if AOE loaded
				/if (${Spell[${Me.Gem[${1}]}].Name.Find[${SText}]}) {
					/if (${SText.Equal[Self-Combustion]}) {
					   /return }
					/if (${SText.Equal[Etheral Skyblaze]}) {
				       /call WeaveAAs }
				/if (${Macro.Return.Find[0]}) /delay 2s 
			}
			/delay ${NukeDelay}s
		/next i
	/return

- - - Updated - - -

Again Sorry about the formatting..

- - - Updated - - -

I have the the forum manual and I cannot find how you post a code snippet in a text box. Would someone point me in the right direction.
 
Last edited by a moderator:
Rich (BB code):
					}
				:SkipSpell
				/echo  Code to not use AA nukes if AOE loaded
				/if (${Spell[${Me.Gem[${i}]}].Name.Find[${SText}]}) {
					/if (${SText.Equal[Self-Combustion]}) /return
					/if (${SText.Equal[Etheral Skyblaze]}) /call WeaveAAs
				        /if (${Macro.Return.Find[0]}) /delay 2s 
			        }
			/delay ${NukeDelay}s

I am assuming you meant to use I and not the number 1.
 
Question - Noob Question

Users who are viewing this thread

Back
Top
Cart