• 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 - can I disable movement/run on hit?

xilo15

New member
Can i disable the GotHit event? because of the place i am running the macro, I don't want my guy to run away when they get hit. Any way to disable this?
 
Delete the events from kissassist.mac

Remove these lines:
#Event GotHit "#1# tries to #*# YOU, but #*#"
#Event GotHit "#1# punches YOU for #*# points of damage.#*#"
#Event GotHit "#1# crushes YOU for #*# points of damage.#*#"
#Event GotHit "#1# kicks YOU for #*# points of damage.#*#"
#Event GotHit "#1# pierces YOU for #*# points of damage.#*#"
#Event GotHit "#1# slashes YOU for #*# points of damage.#*#"
#Event GotHit "#1# hits YOU for #*# points of damage.#*#"
#Event GotHit "#1# mauls YOU for #*# points of damage.#*#"
#Event GotHit "#1# bashes YOU for #*# points of damage.#*#"
#Event GotHit "#1# tries to #*# YOU, but #*#"
 
he just runs like 20 0r 25 feet away from the mob.. as he tells pet to engage that specific mob beating on you.... or runs back to camp if he is being hit on pull... are you in such a tight location you are running into a mob camp 20 to 25 paces from your setup location???? if so... MOVE away a bit.. lol

But yes... if you absolutley HAVE to ... rem the events for GotHit out with a | in front.

Down and dirty way.... but don't forget you did it.... when you decide you want it back...
 
Well I just wanted to annoy THD and it has been a while since I did anything for eqgeek. So here would be my solution. Just add the Highlighted Lines.

just create a hot key /movewhenhit to toggle it on and off. Make the changes to the macro and run it once and stop the macro. Go edit the ini file and set MoveWhenHit=0 in the pet section to turn it off.

In the bottom of the Alias section:
Rich (BB code):
        /squelch /alias /setheals       /echo Set Heals
        /squelch /alias /switch         /echo Switch Target
        /squelch /alias /movewhenhit    /echo toggle MoveWhenHit 
        /ini "${IniFileName}" "General" "KissAssistVer" "${MacroVer}"


loadini pet section:

Rich (BB code):
| ************************* Pet *****************************************|
    /if (${Select[${Me.Class.ShortName},DRU,SHM,BST,ENC,MAG,NEC,SHD]}) {
        /call LoadIni Pet PetOn                 int         0
        /call LoadIni Pet PetSpell              string      "YourPetSpell"
        /if (${Select[${Me.Class.ShortName},BST,MAG,NEC]})  /call LoadIni Pet PetFocus   string  "NULL"
        /call LoadIni Pet PetShrinkOn           int         0
        /call LoadIni Pet PetShrinkSpell        string      "Tiny Companion"
        /call LoadIni Pet PetBuffsOn            int         0
        /declare PetBuffs[8]                    string      outer
        /call LoadIni Pet PetBuffs              string      NULL        PetBuffs
        /call LoadIni Pet PetCombatOn           int         1
        /declare PetToysDone                    int         outer       0
        /declare PetToys[6]                     string      outer
        /if (${Select[${Me.Class.ShortName},MAG]}) {
            /call LoadIni Pet PetToysOn         int         0
            /call LoadIni Pet PetToys           string      NULL        PetToys
            /call LoadIni Pet PetToysGave       string      NULL
        }
        /call LoadIni Pet PetBreakMezSpell    string      NULL
        /call LoadIni Pet PetRampPullWait       int         0  
        /call LoadIni Pet PetSuspend            int         0
        /call LoadIni Pet MoveWhenHit           int         1 
    }


Event GotHit:

Rich (BB code):
| ----------------------------------------------------------------------------
| SUB: Event GotHit - Written by TreeHuginDruid for RedGuides
| ----------------------------------------------------------------------------
    Sub Event_GotHit(string Line, string AttackingMob)
        /if (!${MoveWhenHit}) {
           /doevents flush GotHit
           /return
        }
        /declare GotHitDistChk int local 25
        /varset GotHitToggle 1
        /declare AttackingMobID int local

OK. THD let me know if I missed anything. hehe.
 
Question - can I disable movement/run on hit?

Users who are viewing this thread

Back
Top
Cart