self position

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

roguish
orc pawn
orc pawn
Posts: 29
Joined: Sun Jul 21, 2002 1:11 am

self position

Post by roguish » Sun Jul 21, 2002 9:36 pm

How can one get you own X and X positions WITHOUT self targetting.

The objective is to keep the mob target currently engaged and continue to interrogate the self position.

Any suggestions please? A quick code hint would help.

THanks

FlashG
Contributing Member
Contributing Member
Posts: 104
Joined: Thu Jul 11, 2002 6:38 pm

char

Post by FlashG » Sun Jul 21, 2002 10:57 pm

What does /echo $char(x) or y or z or heading do ?

roguish
orc pawn
orc pawn
Posts: 29
Joined: Sun Jul 21, 2002 1:11 am

Post by roguish » Mon Jul 22, 2002 2:25 am

Thank you. That worked. The way the tutorial was written it implied that a target was nearly anything. Testing just now shows it is in fact only the player character.

Thanks for the tip.

Roguish

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Mon Jul 22, 2002 12:53 pm

Salutations,
pc or npc

Guest

Post by Guest » Mon Jul 22, 2002 2:56 pm

L124RD,

When I targetted another player, or an NPC, and did

/say $char(x)

It gave me back, always, MY x position.

This is what I want, by the way, though your reply implies it will give that of any given target.

I need to be able to get my own position while maintaining the mob target for the rogue script I am writing. The reason for needing it this way is I need to get the target mob position and heading and calculate where to move for backstab.

Please inform me if I am doing something wrong or using the $char(x) position incorrectly. Whatever, I need to be able to get my positioning WITHOUT losing the mob target if I can.

Rog...

FlashG
Contributing Member
Contributing Member
Posts: 104
Joined: Thu Jul 11, 2002 6:38 pm

/target

Post by FlashG » Mon Jul 22, 2002 3:03 pm

To get the distace to a target or its x or y or z use the $target(distance) variable. I think you can even get the distance to a non-targeted mob with other commands but cant remember.

On a related command, why is it that when I type "/echo $target(distance)" in to a EQ SOCIAL HOTKEY then hit done, when I look back into the social the "$target(distance)" is replaced with a number/distance to the target? It would be nice to be able to intergrate MQ variables into EQ Social Hotkeys.

roguish
orc pawn
orc pawn
Posts: 29
Joined: Sun Jul 21, 2002 1:11 am

Post by roguish » Mon Jul 22, 2002 4:11 pm

Yes, I know how to get the distance, that is not the issue. ;)

i could work backwards knowing the distance and the mob loc to approximate my own position, but again I would need some trigonometry to make it efficient and accurate. No trig routines at present and I would prefer not to write the iterative approximation equations into this script if i can avoid it...

1. Need to know target and heading of mob.
2. From there calculate where I SHOULD be standing for a backstab.
3. Move there, /face mob
4. Occasionally check to make sure I AM within a box without having to:
a. retarget myself, get position, determine if in box,
b. turn to that position
c. move to position
d. reface to mob

This requires I need to interrogate my own position without (hopefully) having to target myself, get my position, and then target the mob again to get it's position. I mean, can be done I understand via ID to make fast once you know the target, but trying to make this an efficient script if I can without retargetting myself and mobs a zillion times during a fight.

Also, there are move routines that allow for more efficient moves in close quarters than turn-to-face position and then move to position and reface. Check out OracleOfDelphi's move scripts on Xylobot and DrowConjurer's melee scripts there. These move by determing the direction facing, determining the direction needing to move, and then backing up, moving sideways, backwards or whatever while continuing to face any given direction. I have already converted these approaches now to MACROQUEST language, but need this self-loc information to make it work. It is more complicated, but a REAL rogue would do things this way... hehe... imho.

Thanks for any further input.

Roguish

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Mon Jul 22, 2002 7:59 pm

salutations,
$target(x|y|z)

roguish
orc pawn
orc pawn
Posts: 29
Joined: Sun Jul 21, 2002 1:11 am

Post by roguish » Tue Jul 23, 2002 12:17 am

L124RD,

Are you reading what I am asking? Maybe I am not getting something across. I know the target command. It is obvious from the documentation.

Can one get your self X|Y|Z or heading while ANOTHER target is in hand?

Roguish

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Jul 23, 2002 12:25 am

Salutations,
yes

roguish
orc pawn
orc pawn
Posts: 29
Joined: Sun Jul 21, 2002 1:11 am

Post by roguish » Tue Jul 23, 2002 1:33 am

ok.. how please? I am dense. Your help much appreciated.

:D

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Tue Jul 23, 2002 9:00 am

$char(X|Y|Z) returns YOUR location

$target(X|Y|Z) returns the TARGETS location.

If you still don't get, time to choose another hobby.
Opinions are like assholes, everyone has one, but most of them stink.

roguish
orc pawn
orc pawn
Posts: 29
Joined: Sun Jul 21, 2002 1:11 am

Post by roguish » Tue Jul 23, 2002 10:38 am

Dear GD,

I do get, and had outlined my need politely. Thank you, though, for the clearer answer. Problem was one word answers to questions not asked were just a little too obscure for my obviously denser than most brain. But if you read the answers of those above (and in the alternate thread on a similar subject), conflicting, non sequiter-- and even wrong-- answers to questions are given. Just trying to sort out reality for myself.

On IRC last night I got clear answers from Plazmic as well, thank you. The documentation is slightly misleading. Lists char as giving target info in the first line (implying something you actively target) though in the main documentation it mostly implies it is the PC info given (says "your"). My testing also implied what you now state for $char (see guest posting above), but I wanted to make sure I was not missing something. Hence the questions.

I have the information I now need, thanks all.

Roguish