Public Macros does anyone remember?
Reply
does anyone remember?
anyone remeber this macro? lol i know its old as dirt and there are other ways to do combind on live now but anyone have a copy of routines.mac? did few searches today for it didn't run across it =/

More +
| - Pottery.mac -
|
| Please be near a open pottery wheel before you start this macro.
|
#include routines.mac
#turbo

Sub Main

   /itemtarget Pottery Wheel
   /face item
   /click left item
   /click left enviro combine
   :MakeKiola
      /sendkey down ctrl

      /finditem "Medium Bowl Sketch"
      /if $find()==FALSE /goto :Done
      /click left enviro 0

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

      /finditem "Block of Clay"
      /if $find()==FALSE /goto :Done
      /click left enviro 2


      /sendkey up ctrl
      /click left enviro combine

      :WaitCombine
         /delay 5
      /if "$cursor()"=="FALSE" /goto :WaitCombine

      /click left destroy
   /goto :MakeKiola

   :Done
    /sendkey up ctrl
    /click left enviro done
/return
Mon Oct 25, 2010 4:07 am
That macro looks like it's for the *old* macroquest. Like, before mq2data was added. I think even if you had routines.inc, it would not be compatible with MQ2.

Things like this..
More +
/finditem "Medium Bowl Sketch"
      /if $find()==FALSE /goto :Done

are done differently. More like -
More +
/if (!${FindItemCount[="Medium Bowl Sketch"]}) /goto :Done
Mon Oct 25, 2010 1:21 pm
also /click was changed quite a while ago. item is no longer a working option.

More +
/click left item


You have to do something like this now. Obviously this has no real error checking and stuff but you should get the idea.
More +

/declare ClickY int local ${MacroQuest.ViewportYCenter}

/itemtarget Pottery Wheel
/face item
/click left center
:ObjOpened
/if (!${MacroQuest.LClickedObject}) {
    /varset ClickY ${Math.Calc[${ClickY}+10].Int}
    /if (${ClickY}>=${MacroQuest.ViewportYMax}) {
        /echo Unable to open container.
        /endmacro
    }
    /click left ${MacroQuest.ViewportXCenter} ${ClickY}
    /goto :ObjOpened
}


_________________
Sorvani
Mon Oct 25, 2010 2:41 pm
Senior Project Member
yeah figured it was quite out of date i just remember using that macro long time ago and wasn't sure if some of that was in the old mq or the include file guess you answeredthat for me ty.
Mon Oct 25, 2010 4:23 pm
how do you find an item in your inventory if " /find item " no longer works?.

am guessing /item but don't know how to use it to open a bag/box/container
Mon Oct 25, 2010 7:59 pm
As Kroak hinted FindItem and FindItemCount

More +
/if (!${FindItemCount[=Block of Clay]}) {
    /echo You don't have any clay!
} else {
   /echo Block of Clay was fount in slot #${FindItem[=Block of Clay].InvSlot.ID}
}


for interaction you will use /itemnotify or /notify or /click
_________________
Sorvani
Mon Oct 25, 2010 8:17 pm
Senior Project Member
Public Macros does anyone remember?
Reply