Page 2 of 3
Posted: Tue Oct 01, 2002 5:40 pm
by macromage
A seperate request...
Internal variables for pets. Either $pet(hp,pct) syntax or $char(hp,pet,pct)
Save me from over use of custom Subroutines that do way too much targetting and race checking, just to get the health of a pet.
Or is this even stored in the client?
Posted: Tue Oct 01, 2002 5:46 pm
by RPZip
/pet report gives pet health...
Posted: Wed Oct 02, 2002 1:38 am
by Plazmic
$spawn($char(pet),hp,pct)
Posted: Wed Oct 02, 2002 11:03 am
by Fippy
$char(ability,"Round Kick") only ever returns the /doabilty slot and does not go to -2 once it has been used. Same for $char(ability,"Kick"). I think they both use the same timer.
Fippy
Posted: Wed Oct 02, 2002 2:50 pm
by macromage
> $spawn($char(pet),hp,pct)
That is exactly what I am looking for!
If that works, might want to update the documentation for some reference to the $spawn variable.
Posted: Wed Oct 02, 2002 3:02 pm
by macromage
Whoops, just relized there was an update out there...
Dang you guys are fast. Kudos.
Posted: Wed Oct 02, 2002 3:06 pm
by macromage
I am starting to feel like I am spamming.
Can $combat check pet engagement and return true if pet is engaged?
Optionally have a seperate variable $petcombat to check?
Once again, is this stored in the client ? I can make a subroutine using /assist /target chacks, but a variable would be much cleaner.
Posted: Wed Oct 02, 2002 9:31 pm
by Plazmic
/assist is severside, so you can't check your pet's targe without doing it the long way (/target pet, /assist, check new $target)
Posted: Fri Oct 04, 2002 5:18 am
by Fippy
Bug with $heading(y,x)
Doesnt come up with the correct value for the heading to the loc specified.
Code: Select all
| Check radius.mac
#define tX v10
#define tY v11
sub main
/target Harold
:loop
/varset tX $target(x)
/varset tY $target(y)
/echo ME:$char(heading) Dist:$distance($tY,$tX) HeadingTo:$heading($tY,$tX)
/delay 1
/goto :loop
/return
If you run this macro in EC near Inn 1 and then /face surely $char(heading) and the $heading(y,x) should be the same value.
EDIT At a headings near to 0 and 180 both figures are pretty close, as get futher away from these then the differnce gets bigger and bigger.
Code: Select all
|
| _ /
| / /
| / /
| / /
| / /
| | /
| /
| / |
| / /
| / /
| / /
| //
---------------------------------------
Sorta like that where the wavy line is the $heading(y,x) value.
Fippy
/doability "Slam" broken (and rest)
Posted: Fri Oct 04, 2002 12:10 pm
by Draekz
Ok here's the list (since i just noticed this topic) of all the bugs i've found today.
These are for 1001a rel.
/doability "Slam" is known as *Unknown111, currently in order to use it you must replace "Slam" with "*Unknown111. Obviously a bug of course.
/cast "Superior Healing" is known as "PLAYER_1" read above to find out how to use it until fix
/cast "Hymn of Restoration" is known as " " (blank space). Theres no current method i can think of to get around this to still use the ability in macroquest.
Draekz
PS will post more as i find them.
Posted: Fri Oct 04, 2002 5:23 pm
by rizwank
this is in 1001a right?
please post em to the sourceforge bug tracker ...
http://macroquest2.com/ then click bug tracker
thanks for your help!
$spawn is in the manual, but its a bit unclear.. i really need to get on that
Posted: Fri Oct 04, 2002 6:14 pm
by Draekz
yep all those bugs are 1001a
and i already put em in tracker

i put em there first since i get emails from there now hehe
Draekz
Posted: Sat Oct 05, 2002 12:59 pm
by Draekz
FEATURE REQUEST:
I was just wondering if you guys could look into having macroquest read its own error messages (such as Couldnt find 'ITEMNAME') and stuff like that (the errors in red).
I think it'd be very helpful for the lag on servers sometimes, where the macro doesnt break, but cant continue because an item wasnt dropped on time.. in this example you'd have an item on cursor and the next combine would require it but it isnt found cuz its on the cursor. Therefore you'd tell the macro if that message appears (couldnt find item blah blah) /goto :starofmacro.
That would not only stop it from freezing, but would normally clear the cursor (if its a well made macro) and start again.
WOuld make a lot of hassles, hassle free imo :)
Thanks for the consideration!
Draekz
Posted: Sat Oct 05, 2002 1:35 pm
by pxlpluker
I would like to ba able to run another macro from a running macro.
ie /if something==o /macro other macro
stoping the runing one and starting named one.
would love to see an explanation of $spawn() and $id()
just dont see what thouse could be good for.
while i am asking what good is knowing the next spawn ID
asked in all ignorance.
Posted: Sat Oct 05, 2002 1:48 pm
by Draekz
OK, i think i found the feature i was looking for... $getlasterror.
My question is..how is it used? I dont understand the documentation in the manual about it...but i have an idea of how it could be used...here it is:
Code: Select all
/if $getlasterror~~"FIND_HANDSFULL" /goto :StartLoop
I have that stuck in the combine loop of my tradeskill macros..although im just testing it as we speak (waiting for it to crash)..i would like to know if thats how it is actually used? any response would be great :) thanks!
(PS sorry u can move this to the help section if you want..)