• 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 - Move toons R units @ D degrees

opcon

New member
I'm trying to do some positioning of my melee team members. I would like to move them from my current coordinates so that they move 180 degrees from the direction I'm facing to a distance I provide.

I did look at @eqmule DoHalfCircle in his fork of KA but I'm don't have the MQ prowess to reverse engineer his calculations. Any assistance would be greatly appreciated.

Thanks all.
 
Well, after stealing most of @eqmule code, I found this to be working.

Code:
/if (${Me.ID}!=${Param0}) {
  /declare LeaderX float local ${Param3}
  /declare LeaderY float local ${Param4}
  /declare XOff float local
  /declare YOff float local
  /declare XMove float local
  /declare YMove float local
  /declare BaseRadian float local 90
  /declare Radius int local 25
  /declare MyHeading float local ${Param5}

  /varcalc XMove ${Math.Cos[${BaseRadian} + ${MyHeading}]}
  /varcalc YMove ${Math.Sin[${BaseRadian} + ${MyHeading}]}
  /varcalc XOff ${LeaderX} + (${Int[${Radius}]} * ${XMove})
  /varcalc YOff ${LeaderY} + (${Int[${Radius}]} * ${YMove})

  /echo My XMove is: ${XMove}
  /echo My YMove is: ${YMove}
  /echo My XOff is: ${XOff}
  /echo My YOff is: ${YOff}
  /echo I should be moving to coordinates: X = ${XOff} Y = ${YOff}

  /moveto loc ${YOff} ${XOff}

  /delay 10
  /tar id ${Param1}
  /face fast nolook
}

Thanks @eqmule !
 
Question - Move toons R units @ D degrees

Users who are viewing this thread

Back
Top
Cart