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
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Sat Mar 27, 2004 12:30 pm
I am working on a Power Smithing macro, like Mckorr requested, buti ve come across the problem when it comes time to target the forge to combine the items. Ive read the manual and searched through the boards but couldnt find much on smithing, let alone forges. How would i target and open the forge?
thank you
python
-
NotHere
- a lesser mummy

- Posts: 40
- Joined: Fri Jan 09, 2004 5:59 am
Post
by NotHere » Sat Mar 27, 2004 3:07 pm
Look in hero.mac (comes with MQ2)
Code: Select all
/itemtarget Brew Barrel
/face item
/click left item
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Sat Mar 27, 2004 4:24 pm
Thank you, NotHere. I only have one problem left, besides getting all the trivials and recipes. How can i check for a keypress? For example, when you are about to hit level 200, it will say "Are you sure you want to continue?" if they press Y they will continue, if they press N it will exit. How can i check for that key press?
thank you
python
-
shuttle
- a lesser mummy

- Posts: 62
- Joined: Mon Nov 11, 2002 6:08 am
Post
by shuttle » Sat Mar 27, 2004 4:43 pm
I would look in the khits.mac. In that macro if you want to destroy the results, the macro targets yourself and you have to /targer clear to get the macro to go forward. You could do the samething when you hit 200.
shuttle
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Sat Mar 27, 2004 7:05 pm
@shuttle - i dont understand exactly what you mean or how they did it.
I am wondering is there anyway to detect a keypress from the keyboard or a mouse click from the mouse.
Shuttle, i am still looking into it, but i dont really understand how it works, so that idea may be out. But thanks to all who responded so far and pls help.
thanks again
python
-
fryfrog
- a hill giant

- Posts: 271
- Joined: Fri Jun 20, 2003 5:37 am
Post
by fryfrog » Sat Mar 27, 2004 8:13 pm
A lot of macros will check every loop to see if you have yourself targeted (ie, you pressed the F1 key) and will pause. You could put this sort of code into your macro and achieve two things:
1) If the user wants to pause for any reason, they just quickly press F1 and target themselves. To resume they merely have to press ESC or type "/target clear" (you can say this in an /echo)
2) Any time YOU want the user to pay attention and read something, if you setup your /doevents right you merely have to issue a "/target self" and /echo something about clearing your target if you want to go above 200 in the skill (or what ever else).
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Sun Mar 28, 2004 12:01 am
Ok, i have the macro ready to test, but when i ran it, after the march 25th patch, macroquest gives me the error incorrect client version. Does this mean i need to wait for the next macroquest patch, or do i update the eqgame.h file with new offsets?
thanks and pls respond
python
-
Zazoot
- a hill giant

- Posts: 163
- Joined: Sat Feb 07, 2004 11:02 am
Post
by Zazoot » Sun Mar 28, 2004 10:15 am
yes
Last edited by
Zazoot on Sun Mar 28, 2004 11:30 am, edited 1 time in total.
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Sun Mar 28, 2004 11:24 am
OK, i updated eqgame.h and MQ@ now works fine. But im having trouble with buying the items routine. I am trying to buy water flasks from Daleen Leafsway. I am using bob_the_builder's buyitems.inc. I want to buy 33 of them, and then have the mouse press the done button to go to the next part.
Code: Select all
:buy
/target "daleen leafsway"
/click right target
/call BuyItems "Water Flask" 33
But waht this code does is select Daleen Leafsway, open up the buyitems dialog box, and then buy 60 bottles of JumJum Juice (the first slot in her inventory). It doesnt buy water flasks, and it doesnt close the box.
pls help
thanks
python
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Mon Mar 29, 2004 9:30 pm
I really need help on this guys. Here is where i am stuck at right now:
Code: Select all
| Buy the Water Flasks. Two stacks.
| ---------------------------------------------------------------------
/target Daleen Leafsway
/click right target
/delay 10
/sendkey down shift
/call BuyStack "Water Flask"
/call BuyStack "Water Flask"
/press esc
/press esc
| Code here in between |
Sub BuyStack(ItemName)
/sendkey down shift
/selectitem "@ItemName" merchant
/click left merchant buy
/delay 10
/sendkey up shift
/return
With this BuyStack Subroutine, i can successfully buy small pieces of ore from Bodbin Gimple. But, when i want to buy Water Flasks from Daleen Leafsway, It doesnt even target her to buy anything.
Please help this time. I am in desperate need as i have spent days working on this to try to finish PowerSmithing, but i cannot solve this problem.
Thank you
Python
-
rootmoth
- orc pawn

- Posts: 27
- Joined: Fri Oct 04, 2002 9:27 pm
Post
by rootmoth » Tue Mar 30, 2004 7:54 pm
You mean "Flask of Water"?
I think thats the problem.
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Tue Mar 30, 2004 8:27 pm
im pretty sure it is "water flask" but i will try out the other
thank you and pls continue to respond
python
-
python023
- a lesser mummy

- Posts: 30
- Joined: Sat Mar 27, 2004 12:26 pm
Post
by python023 » Thu Apr 01, 2004 8:06 pm
Ok, i have verified that it IS "water flask" and i also have successfully completed the buy routine. What i am now having problems with is within the Forge. I have EQ:Evolution installed, which has all the Expansions up to LoY, but not LDoN or GoD. In LoY, and maybe farther im not sure, within the forge, there is a button called "Experiment." Pressing that button brings up the normal, old tradeskill window. I want that window for my combines. Is there any way i can default everquest to automatically open up the old forge, or how can i press this "Experiment" button?
thank you all for the responses
python