Writing new mac...need help

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

DaRoot
orc pawn
orc pawn
Posts: 15
Joined: Sat Oct 05, 2002 10:39 pm

Writing new mac...need help

Post by DaRoot » Sun Oct 06, 2002 4:06 am

Ok I'm trying to write a new script to buy,make,sell products to raise skills. I fixed the problem I had with opening merchants (kinda) but now I have a problem with the find combiner part???. I've tried every FindCombiner code on the board, currently using the routines.mac code, and get "you dont appear to have a valid $p0 container".

What gets me is there isnt that much to the FindCombiner code. For some reason its not setting my combiner to $v80

I'm using a crappy celeron 633 (I know, I know, time to upgrade but thats what I got. sux having to put delays after almost every line) and will try putting a longer delay, but if any of you has an input or fix, I would appriciate it.

If you need me to post the code I have so far just let me know, I got the buying supplies part workin but stuck on the make product part.

(and you can probably bet I'll be back when it comes time to sell the stuff =)

User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Sun Oct 06, 2002 7:25 am

I would prefer if you didn't post the code on the boards but, if you need some help with this send me a PM. Generally it is prefered not to have macros that have this type of interaction on the boards due to we don't want to get nerfed issues. Like I said I am more than willing to help however and will do so privately...

DaRoot
orc pawn
orc pawn
Posts: 15
Joined: Sat Oct 05, 2002 10:39 pm

Post by DaRoot » Sun Oct 06, 2002 5:40 pm

Ok no code will do.

Any ideas on the FindCombiner part?

[EDIT] actually I wasnt reffering to posting the whole code, just the findcombiner piece that I'm using. I wont give it away that easy.

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

Post by L124RD » Sun Oct 06, 2002 5:52 pm

Salutations,
What combiner(s) are you trying to use? also try picking up the item and doing /identify, that should give you the combiner that the object has...

DaRoot
orc pawn
orc pawn
Posts: 15
Joined: Sat Oct 05, 2002 10:39 pm

Post by DaRoot » Tue Oct 08, 2002 2:15 am

I think the problem is setting the combiner to $v80, I using the basic code

Sub Main

/call FindCombiner
/if $return==99 /return
/varset $v80 $return
/click right $v80

Sub FindCombiner
/varset v10 99
/for v99 0 to 7
/if "$pack($v99,combine)"=="$p0" /varset v10 $v99
/next v99
/return $v10


now this should find the inv slot that contains a pack with a combine button right? Then set $v80 to that inv slot (i.e. set combiner in inv slot 7 to $v80 so that all references to $v80 mean inv 7) or does it set a pack number?

Cant figure it out, after buy my items, cleanup windows, then when it tries to open the combiner it returns the message "usage /click <left|right> <mouseloc>" any ideas on what I'm doin wrong or alternate routes to set a combiner to a variable?

and last question, in the Sub FindCombiner, where does the $p0 come into play or what is it for?

your help is appreciated, thanks in advance.


[UPDATE! Resolved] how could I have missed it, hehe, only problem was that I wasnt putting

/click right INV $v80

or when I was placing items in I wasnt putting

/click left PACK $v80

What an easy fix...
Last edited by DaRoot on Wed Oct 16, 2002 4:33 am, edited 1 time in total.

DaRoot
orc pawn
orc pawn
Posts: 15
Joined: Sat Oct 05, 2002 10:39 pm

Post by DaRoot » Tue Oct 15, 2002 3:08 pm

bumped :P