Kiola.mac

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

sinaelr
decaying skeleton
decaying skeleton
Posts: 7
Joined: Fri Jan 02, 2004 9:34 pm

Kiola.mac

Post by sinaelr » Sun Jan 04, 2004 5:59 pm

I'm trying to adapt kiola.mac to work for smithing though when i get down to the combine part of the macro I dont quite understand whats going on maybe someone can explain what v61 and t9 are.

Code: Select all

      
:DoCombine
      /varset v61 0 
      /doevents flush
      /varset t9 30s
      /click left enviro combine 
      :DropKiola
         /doevents
         /if n $t9==0 /goto :DoCombine
      /if n $v61==0 /goto :DropKiola
      /doevents flush
      /varset t9 0
      :WaitCursor
         /delay 0
      /if $cursor()!=TRUE /goto :WaitCursor
      /click left auto
   /goto :MakeKiola

   :Done
    /sendkey up ctrl
    /click left enviro done

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Sun Jan 04, 2004 11:29 pm

They are old style variables.

Did you get that code from Outdated Macros section?

wardave
a ghoul
a ghoul
Posts: 120
Joined: Sun Jan 25, 2004 4:38 am

Post by wardave » Sat Jan 31, 2004 3:01 am

No its being released as of the last MQ2 I compiled. I was getting the same error message as him.

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Sat Jan 31, 2004 4:45 am

try working from this code to learn then~
t9 is a timre that waits up to 30s for the combine to finish. (timerCombine)
v61 is a flag to tell the wait loop that the combine did have a result. (CombinedFlag)

Code: Select all

| - Kiola.mac -
|
| Please be near a brew barrel open before you start this macro.
|
#turbo
#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSuceed "You have fashioned the items together to create something new!"

Sub Main
   /declare timerCombine timer
   /declare CombinedFlag global
   /itemtarget Brew Barrel
   /face item
   /click left item
   /delay 25
   /sendkey down ctrl

   :MakeKiola

      /finditem "Water Flask"
      /if $find()==FALSE /goto :Done
      /click left enviro 0

      /finditem "Bottle"
      /if $find()==FALSE /goto :Done
      /click left enviro 1

      /finditem "Packet of Kiola Sap"
      /if $find()==FALSE /goto :Done
      /click left enviro 2

      /finditem "Packet of Kiola Sap"
      /if $find()==FALSE /goto :Done
      /click left enviro 3

      :DoCombine
      /varset CombinedFlag 0
      /doevents flush
      /varset timerCombine 30s
      /click left enviro combine
      :DropKiola
         /doevents
         /delay 0
         /if n @timerCombine==0 /goto :DoCombine
      /if n @CombinedFlag==0 /goto :DropKiola
      /doevents flush
      /varset timerCombine 0
      :WaitCursor
         /delay 0
      /if $cursor()!=TRUE /goto :WaitCursor
      /click left auto
   /goto :MakeKiola

   :Done
    /sendkey up ctrl
    /click left enviro done
/return

Sub Event_CombineFail
   /varset CombinedFlag 1
/return

Sub Event_CombineSuceed
   /varset CombinedFlag 1
/return

coil
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Feb 01, 2004 3:04 am

vanishing brew barrels

Post by coil » Sun Feb 01, 2004 5:20 pm

I'm trying to use this macro but every time i do the barrel i'm using disappears?!?!?! why does it do that?

smelly wang
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Jan 19, 2004 6:04 pm

Post by smelly wang » Mon Feb 02, 2004 1:09 am

just open the brew barrel before you start the macro, and remove these lines:

Code: Select all

   /itemtarget Brew Barrel 
   /face item 
   /click left item 
no idea whats causing the problem, but that should fix it

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Mon Feb 02, 2004 2:44 pm

Disappearing environmental containers occur when you try to combine too fast. It's SOE anti-macro code.

Add a few delays to your code to ramp down your combine rate and that problem should disappear.

smelly wang
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Jan 19, 2004 6:04 pm

Post by smelly wang » Tue Feb 03, 2004 2:07 am

you sure its just when its combining too fast? seems to happen to me when you use /click on an environment container if its already open too

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Tue Feb 03, 2004 8:10 am

Pretty sure it has to do with speed. I ran HeroBrew.mac for two days straight last week and never had the barrel disappear on me. There was enough delay between combines that I didn't break the 1 per sec limitation.

Now if you are doing /click left enviro, /click left enviro back to back I'd expect the container to close toggle style, but I wouldn't expect it to disappear.

coil
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Feb 01, 2004 3:04 am

Post by coil » Thu Feb 05, 2004 5:06 pm

I took out the first couple of lines and that did work. but later i found myself adding on to that mac to go and buy more supplies once i ran out and found out i had to have those very same lines added right back in.

And there is a need to add a /delay to it, once i put that i had no more problems. Now its running smooth with plenty kiola's to work on tailoring!

Dank17
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Sep 24, 2004 3:57 pm

Kiola.mac error msg

Post by Dank17 » Fri Sep 24, 2004 4:08 pm

When I try to run this macro, I get the following error text in the macro chat.wnd:

Item 'brew barrel' targeted
DoCommand - Couldn't parse '/sendkey down ctrl'
Kiola.mac@15 (Main): Sendkey down ctrl
DoCommand - Couldn't parse '/finditem "water flask"'
Kiola.mac@19 (Main): /finditem "water flask"
Failed to parse /if command. Expected () around conditions.
Kiola.mac@20 (Main): /if $find==FALSE /goto :DONE
The current macro has ended.

I'm going to go ahead and admit that I'm a MQ2 superNOOB and I know nothing about programming or compiling. That being said, You guys work is really awesome and has changed my eq experience. Now, is there any way you guys could put into retard's terms how to fix this? Keep in mind I'm stupid when it comes to this stuff.

Also on a side note. I have all the items in my inventory to make this. So it makes no sense to me about why it couldn't find the water flask. But then again, it prob makes sense to you guys.

hytiek
Contributing Member
Contributing Member
Posts: 54
Joined: Mon Jun 14, 2004 5:45 pm

Post by hytiek » Fri Sep 24, 2004 5:48 pm

This is for MQ1, you are using MQ2. Hopefully that will help you understand the trouble.

-hytiek

Dank17
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Sep 24, 2004 3:57 pm

Post by Dank17 » Fri Sep 24, 2004 6:05 pm

thx bro. like I said, i'm dumb with this stuff. Thx for pointing out the (now) obvious.

Dank17
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Sep 24, 2004 3:57 pm

Post by Dank17 » Fri Sep 24, 2004 6:31 pm

are there any macros already made to make kiola's for MQ2?
if so, they would be very handy