Powerarrows.mac The original. Use powerarrows2

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

silly error?

Post by Malachi » Tue Nov 19, 2002 2:08 am

Using the newest versions, everything else is fine....when I run this macro I get this error....

something along the lines of

"sub cleanpack not found
macro has ended"

I looked in the script for the cleanpack routine...and I can see that it's referenced, but never that it's defined...am I missing something? I looked in the routines.mac file too....not there...

Anyway, thanks in advance folks!

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Nov 19, 2002 2:10 am

Salutations,
comment out hte line, problem solved... it's just used to make sure your pack is clean... i think if you really want it there is a sub of that in cheese.mac... i think...

nikeman
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jun 18, 2002 10:37 am

Post by nikeman » Tue Nov 19, 2002 2:27 am

haveing same problem added what you said now am geting cant find subutines:buyitemsingle

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Nov 19, 2002 2:30 am

Salutations,
see one of the posts on page 1 by macro toon

nikeman
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jun 18, 2002 10:37 am

Post by nikeman » Tue Nov 19, 2002 2:35 am

ALMOST WORKS! he went bought some then stoped now i cant get it to do jack

nikeman
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jun 18, 2002 10:37 am

Post by nikeman » Tue Nov 19, 2002 2:41 am

couldnt find a class =/ whats that?

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

Can't try...

Post by Malachi » Tue Nov 19, 2002 11:48 am

I was itching to get home from class to find my wonderful answers...thanks people, I considered commenting the line last night...

And now EQ is patched and MQ is dead in the water until we get new offsets. Is this correct or am I missing something? Thanks!


~Malachi

User avatar
Morath
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Oct 22, 2002 3:09 pm

Got a little bug...

Post by Morath » Tue Nov 19, 2002 7:09 pm

Here is the prolem:

I have it buying...but it is not combineing...It just constantly buys and buys and buys...

I also get an error "Cannot find 'class'"

I assume it is refering to:

Code: Select all

/call sellitem class
If I remove the word 'class' think it will work properly? Well I'm about to find out...I will keep you updated wether it works or not...

Mor-ath

User avatar
Morath
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Oct 22, 2002 3:09 pm

Hmm...its not working...its only buying...

Post by Morath » Tue Nov 19, 2002 7:32 pm

I removed the word class and stopped getting the cannot find class error...

But it still will not combine and sell...

I even changed the sub makearrows from the original to this, which I found in combine.mac:

Code: Select all

        /sendkey up ctrl 
        /click left $v20 combine 

      :WaitCombine 
        /if $pack($v10,empty)==FALSE /goto :WaitCombine 

      :AutoDrop 
        /click left auto 
        /delay 1 
        /if "$cursor()"=="TRUE" /goto :AutoDrop
That did not allow it to combine either...

I also added a /delay 5 between each purchse...seems it was going so fast it would buy multiple items before moving to the next one...

Once again...it will not combine or sell...my knowledge is spent...but I will continue to tinker with it...

Mor-ath

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

Morath, try...

Post by Malachi » Tue Nov 19, 2002 7:57 pm

Someone above mentioned checking the previous page. The original writer of this script posted an addition to the routines.mac file that was initially forgotten.

you need to cut and paste that routine...guess what it's called? var sub "sellitem" ;) which is supposed to be called when the script initially calls routines.mac at the top. You just need to cut and paste the sellitem routine into "routines.mac" somewhere, and you should be golden.

I did this, but I haven't exactly gotten the new offsets working...odd that I understand the programming better than the implementation, haha. I don't know if that will help or not. Additionally, there was another line addition given by the original author about where to put the pause.

Try that...it's just that the script needs that routine and it doesn't know where to get it defined...cuz it's not. ;) Additionally, the clearbag routine is given in the readme (haha) and also in the cheese.mac script if one should feel like placing it back into this script *or* just #include cheese.mac . :)

Like I said, dunno if dat will work, but it should solve your initial problem
Cheers!
~Malachi
~Oh danny boy, the pipes the pipes are calling.~

User avatar
Morath
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Oct 22, 2002 3:09 pm

Hmm...

Post by Morath » Tue Nov 19, 2002 8:20 pm

Thx for the quick responce Malachi...

I had completed all the updates previously stated and also pasted a version of clean pack into my routines.mac...

I'm still getting all the same problems...

for some reason it refuses to combine...I have tried 4 different version of the combine sub...al fail to work properly...and it won't sell properly...

Mor-ath

Malachi
a hill giant
a hill giant
Posts: 227
Joined: Tue Nov 19, 2002 1:29 am
Contact:

Yo soy not so smart

Post by Malachi » Tue Nov 19, 2002 10:05 pm

I posted that last repsonse w/o trying it....and he's right..."buyitemsingle" estas still not found. Hmmm.

I'll mess with it...is this routine hidden somewhere else that we're just not thinking to look?

~Malachi
~Oh danny boy, the pipes the pipes are calling.~

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Tue Nov 19, 2002 10:18 pm

OMG. I can't believe you guys. don't you actually read the post before complaining that you can't find a sub that is on page 1 of the post??
macrotoon wrote:I forgot I had added this to my routines.mac

Code: Select all

Sub BuyitemSingle 
    /sendkey down ctrl 
        /varset t1 10 
        /varcalc p2 $char(plat)*1000+$char(gold)*100+$char(silver)*10+$char(copper) 
       /click left merchant buy 
      :BuyItemLoop 
          /delay 1 
      /if n $t1<1 /click left auto 
     /if n $t1<1 /click left merchant buy 
      /if n $calc($char(plat)*1000+$char(gold)*100+$char(silver)*10+$char(copper)==$p2 /goto :BuyItemsLoop 
   /sendkey up ctrl 
/return 
Also please note that the reason it can't find your "Class x x x arrows" when trying to sell them, is more than likely due to the fact that your FLETCHING KIT IS NOT OPEN TO COMBINE THEM. if you had read this entire post, you would have realized that I, myself, posted a fix for that.
I wrote:you have to include something to make sure it'll open the fletching kit. change

Code: Select all

      /click left inv $v80 
      /click left inv 0 
      /click left auto
to

Code: Select all

      /click left inv $v80 
      /click left inv 0 
      /click left auto 
      /click right inv $v80
jeez.

macrotoon
a ghoul
a ghoul
Posts: 106
Joined: Wed Sep 18, 2002 4:38 pm

Post by macrotoon » Tue Nov 19, 2002 10:19 pm

Sorry for the delay. I put the addition to add to your routines.mac in the original post.

macrotoon
a ghoul
a ghoul
Posts: 106
Joined: Wed Sep 18, 2002 4:38 pm

Post by macrotoon » Tue Nov 19, 2002 10:22 pm

Thanks Valerian. Added your line in there as well.

Hows it work now for you complainers? hehe