$sqrt

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

kabl2k
a hill giant
a hill giant
Posts: 168
Joined: Fri Feb 20, 2004 6:25 pm

$sqrt

Post by kabl2k » Thu Apr 22, 2004 6:18 pm

was just browsing over the mq2data reference types and in the math section i didnt see a $sqrt conversion have i missed it sumwhere? tryin to convert this line from spellcast.inc

/varset Angle $abs($asin($calc($abs($calc(@FZ-@TZ))/$sqrt($calc($calc($calc($calc(@TX-$char(x))^2)+$calc($calc(@TY-$char(y))^2))+$calc($calc(@TZ-@FZ)^2))))))

damn just lookin at that line gives me a head ache

thanx in advance.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Thu Apr 22, 2004 8:49 pm

wow is that a pile of ass

The good news is you no longer need to have 750 calcs

The bad news is I overlooked sqrt when making the system, it will be in next zip.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Shali
a ghoul
a ghoul
Posts: 87
Joined: Sun Dec 07, 2003 12:39 pm

re

Post by Shali » Thu Apr 22, 2004 8:58 pm

wow is that a pile of ass
lol....

what exactly does that crazy thing do anyhow?

kabl2k
a hill giant
a hill giant
Posts: 168
Joined: Fri Feb 20, 2004 6:25 pm

Post by kabl2k » Thu Apr 22, 2004 9:51 pm

i have no idea what it does lol it was in the face sub in the spellcast.inc i have, and thanx lax

Virtuoso65
a hill giant
a hill giant
Posts: 150
Joined: Wed Oct 15, 2003 2:29 pm

Post by Virtuoso65 » Thu Apr 22, 2004 11:41 pm

It looks like some crazy mutation of the pythag theorem. Im guessing it makes you face something relative to its position in a 3D space.