Mortar and Pestle Combines

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

Moderator: MacroQuest Developers

quasit
orc pawn
orc pawn
Posts: 14
Joined: Sun Oct 27, 2002 11:51 am

Mortar and Pestle Combines

Post by quasit » Wed Nov 13, 2002 10:54 am

I have been writing a mac for my rogue to mix poisons. The Problem i have is for somereason, it doesnt recognize the Mortar and Pestle as a combinable box. I have named the box, as well as had the mac look for and open any combinale box in inventory. It will not let me open it. Here is my code for the box to open. Let me know if you have any ideas. Thanks.


/finditem similar "Mortar"
/if $invpanel==TRUE /if $pack($v80,open)!=TRUE /click right inv $v80
/varset v80 $return


here is another i tried, didnt work either


/call FindCombiner mortar and pestle
/if $return==99 /return


then I even tried

/call findcombiner
/if $return==99 /return

they all came back saying it couldnt identify it or that mortar and pestle was not a valid combinable box.....

HELP..

thanks again

Lurker_005
a lesser mummy
a lesser mummy
Posts: 51
Joined: Thu Oct 17, 2002 12:08 pm

Post by Lurker_005 » Wed Nov 13, 2002 1:30 pm

try /call FindCombiner "mortar and pestle"
or perhaps
/call FindCombiner "poision"

and make sure you have an include routines or a copy of findcombiner in there too.

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

Post by L124RD » Wed Nov 13, 2002 3:43 pm

Salutations,
pick up your mortar and pestle, type
/identify
The output should tell you the combine type (i believe it is poison)

boldor
a ghoul
a ghoul
Posts: 94
Joined: Tue Sep 10, 2002 11:46 am

Post by boldor » Thu Nov 14, 2002 7:30 pm

Combinder type is MAKE POISON. Been trying various combinations as well to no avail. Tired of hand making Celestial Essence.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Fri Nov 15, 2002 5:30 am

its the space in make poison i think

whenever i want to do poison st uff I just comment out the findcombiner code and return 7, which is where i always keep combiners.
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Sat Nov 16, 2002 8:57 am

haha, and there was I thinking I was the only lazy one doing that.. At least I included a line stating if the combine was "make" then set combine location to be 7, so I didn't have to comment anything out.
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

MacroUser01
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sun Nov 17, 2002 1:24 am

Post by MacroUser01 » Sun Nov 17, 2002 1:28 am

I am using the combine.mac posted in the Macro Depot... I understand wnat rizank is trying to stay about replacing findcombiner with 7 but I am new to MacroQuest (great program) and I don't know how to write code..

If anyone could enlighted me with a quick custom macro for combining in mortar and pestle or how to modify combine.mac I would appreciate it much.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Sun Nov 17, 2002 4:50 am

ok

for combine.mac call it
/macro combine mortar <item 1> <item 2> .. etc

replace

Code: Select all

   /call FindCombiner $p0 
   /if $v10<=7 /call OpenInv 
   /if $v10==8 /call OpenEnv 
   /if $v10==99 { 
                 /echo "Cannot find container-Aborting" 
                 /end 
                } 
with

Code: Select all

/varset v10 7
this will make the default container always the item in 7 .. dont use this for non mortar/pestle combines though..

7 is your last inventory slot by the way.
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

Ooka_Chokka
a lesser mummy
a lesser mummy
Posts: 63
Joined: Fri Nov 08, 2002 12:27 am

Post by Ooka_Chokka » Sun Nov 17, 2002 11:39 pm

ok, did exactly what you said to do rizwank... and nothing happened, except the macro ended an i had a celestial sovent in my hand. So is MQ going to need to be updated to handle mortar and pestles , or is there a better way to code a M & P macro than combine.mac?

Lurker_005
a lesser mummy
a lesser mummy
Posts: 51
Joined: Thu Oct 17, 2002 12:08 pm

Post by Lurker_005 » Mon Nov 18, 2002 8:47 pm

Got a slightly better idea riz that will not break the rest of the FindCombiner...
As Riz said, use:
/macro combine mortar <item 1> <item 2> .. etc

and edit combine.mac to add th second line below.

Code: Select all

   /call FindCombiner $p0
   /if "$p0"=="mortar"  /varset v10 7
   /if $v10<=7 /call OpenInv 
   /if $v10==8 /call OpenEnv 
   /if $v10==99 { 
                 /echo "Cannot find container-Aborting" 
                 /end 
                } 
It won't actually find the container, it just always asumes the mortar and pestle is always in the last slot. but it still works as normal for all other combiners.

quasit
orc pawn
orc pawn
Posts: 14
Joined: Sun Oct 27, 2002 11:51 am

figured it out

Post by quasit » Sat Nov 23, 2002 10:22 am

the guy up top that said, "make poison" was right. What I did is I went back to the good old read me file and checked at the very bottom of the file. It says "make poison" down there. So I tried it and sure enough it worked. Ok go ahead and flame me for not paying attention to the read me file :) Thanks for all the help.

Q