• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Move toons R units @ D degrees

opcon

New member
Joined
Jul 14, 2016
RedCents
32¢
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