feature requests and bugs POST 09292002 IRC release

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

macromage
orc pawn
orc pawn
Posts: 13
Joined: Thu Sep 26, 2002 4:48 pm

Post by macromage » Tue Oct 01, 2002 5:40 pm

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?

User avatar
RPZip
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun Aug 11, 2002 11:31 pm

Post by RPZip » Tue Oct 01, 2002 5:46 pm

/pet report gives pet health...

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Wed Oct 02, 2002 1:38 am

$spawn($char(pet),hp,pct)
- Plazmic

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Wed Oct 02, 2002 11:03 am

$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

macromage
orc pawn
orc pawn
Posts: 13
Joined: Thu Sep 26, 2002 4:48 pm

Post by macromage » Wed Oct 02, 2002 2:50 pm

> $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.

macromage
orc pawn
orc pawn
Posts: 13
Joined: Thu Sep 26, 2002 4:48 pm

Post by macromage » Wed Oct 02, 2002 3:02 pm

Whoops, just relized there was an update out there...

Dang you guys are fast. Kudos.

macromage
orc pawn
orc pawn
Posts: 13
Joined: Thu Sep 26, 2002 4:48 pm

Post by macromage » Wed Oct 02, 2002 3:06 pm

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.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Wed Oct 02, 2002 9:31 pm

/assist is severside, so you can't check your pet's targe without doing it the long way (/target pet, /assist, check new $target)
- Plazmic

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Fri Oct 04, 2002 5:18 am

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

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

/doability "Slam" broken (and rest)

Post by Draekz » Fri Oct 04, 2002 12:10 pm

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.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Fri Oct 04, 2002 5:23 pm

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
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Fri Oct 04, 2002 6:14 pm

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

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Sat Oct 05, 2002 12:59 pm

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

pxlpluker
a lesser mummy
a lesser mummy
Posts: 53
Joined: Tue Aug 27, 2002 12:20 pm

Post by pxlpluker » Sat Oct 05, 2002 1:35 pm

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.

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Sat Oct 05, 2002 1:48 pm

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..)