• 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

check please

jubie kid

New member
just looking for Code to check pet buff heath and recast


#turbo
#event attack #*#inc#*#

Sub Main
:loop
/doevents
/if (${Me.PetBuff[shas Ferocity}]=0){/cast6}


/goto :loop
Sub Event_attack

/assist player name
/delay 1s
/cast 3
/delay 5s
/pet attack
/g my pet is attacking %T
/sit
/return
 
Rich (BB code):
#event attack "#*#inc#*#"

Sub Main

  :loop
  /doevents
  /if (!${Me.PetBuff[Sha's Ferocity]}) /cast "Sha's Ferocity"
  /goto :loop

Sub Event_attack

  /assist player name
  /delay 1s
  /cast 3
  /delay 5s
  /pet attack
  /g my pet is attacking %T
  /sit

/return

If you're wanting to add to the macro some more you could make it set your main assist by using whoever you have targetted when you start the macro, also you could make a loop to continuously assist your main assist and send in the pet when a mob reaches 97% health or so, it would probably be more reliable unless you're specifically only wanting the pet to go in when you or someone else announces "inc"
 
where do i find all these string. like for petheatlth, main assist, group members, so can make bot to check there heeath and my pet health and and heal them.?
 
Do your research. Easiest way to learn is download other peeps macros from macroquest.com. I recommend for what your looking to do. Download BST macros. They show alot of example of proper use of petbuffs and health checks.
 
Also, What the **** is this line????
Rich (BB code):
/if (${Me.PetBuff[shas Ferocity}]=0){/cast6}

Should look like this:
Rich (BB code):
/if (${Me.PetBuff.Duration[Sha's Ferocity]}<5) /cast 6
| #### or if you perfer
/if (!${Me.PetBuff[Sha's Ferocity]}) /cast 6
or if you want to use timmys code.... look at my revision... I highly recommend including spell_routines.inc and dumping some of the other code.
Rich (BB code):
#chat group 
#chat tell 

#include Spell_Routines.inc

Sub Main

  :loop
  /doevents
  /if (!${Me.PetBuff[Sha's Ferocity]}) /cast "Sha's Ferocity"
  /goto :loop

Sub Event_Chat(string ChatType,string ChatSender,string ChatText)

/if (!${ChatType.Equal[GROUP]} && !${ChatType.Equal[TELL]}) /return

/if (${ChatText.Equal[inc]}) {
  /target pc ${ChatSender}
  /delay 10                               | #### DON'T USE Seconds... Wastes time
  /assist 
  /delay 10                               | #### DON'T USE Seconds... Wastes time
  /cast 3
  /delay 5s                               | #### Ugly... but it works.
  /pet attack
  /g my pet is attacking %T
  /sit
}

/return
 
You'll need to /call the cast subroutine if you're wanting to use spell_routines.inc otherwise it still uses the built in MQ command.
 
The macro i gave you, about the bot bst SHOULD have all the stuff u asked for in this one, im not totally 100% sure but i know for a fact it rebuffs pet when the spells wore off. and i think it will heal group members 2, but not 100% sure on that.
 
jubie kid said:
where do i find all these string. like for petheatlth, main assist, group members, so can make bot to check there heeath and my pet health and and heal them.?


MQ2 Wiki is a valuable source of information. On the MQ2 Board, people post snippets of code all the time.


If you take a look here:
http://www.macroquest2.com/includes/wassup/manual.php

All of the TLOs, reference types etc are listed.

Here is the MQ2 official Wiki, which is a great learning tool as well.
http://www.macroquest2.com/wiki/index.php/Main_Page

Here is the thing about being a noob scripter, as i am....

It cool and all to study other people's work; however, there are some pretty bad coders putting out stuff that might work, but isn't always the best way to do something.
 
check please

Users who are viewing this thread

Back
Top
Cart