Problem with JC macro

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

Moderator: MacroQuest Developers

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Problem with JC macro

Post by kkmonte » Sat Dec 14, 2002 3:02 pm

I have a problem with a JC macro. Basically I had an older macro which I modified to up my JC. Well The macro buys a stack of gems from a vendor automatically (I manually buy like 20 stacks of the metal prior to running it), does the combines, checks for gems and metal, if it can't find a gem it sells all products back, buys another stack and continues. Well here is my problem.

When combining a Platinum Bar and a Cat'e Eye Agate I get a Platinum Cat's Eye Necklace. This is OK because the script checks for "Cat's Eye Agate" in my inventory. This only got me to 226. Now that I'm 242 I need to do something else. I tried Platinum Bars + Amber but I get Platinum Amber Ring. Well the script is looking for "Amber" in my inventory and grabs a Plantinum Amber Ring and puts that in the Jewel Kit which screws up Macro.

So basically my script only works when the gem has a different name then the final product? Anyway to fix that? I'll include the 2 parts of the script that I think is relevant and maybe someone can tell me if there is a better way to do it.

Thanks for your help in advance.

-------------------------------------------------------------------------------------
|verify we have stuff to items
/sendkey down ctrl
/finditem similar "platinum bar"
/if $cursor()!=TRUE /goto :OutOfcomponents
/click left auto
/finditem similar "jade"
/if $cursor()!=TRUE /goto :OutOfcomponents
/click left auto

/call Makejewelry
/sendkey up ctrl

| Sell our products
:SellJewelry
/varset v99 $char(plat)
/varset v98 $char(gold)
/varset v55 $char(silver)
/varset v56 $char(copper)
/finditem similar "jaded platinum ring"
/if $find()==FALSE /goto :Sellstuff
/click left merchant buy
:WaitSale
/doevents
/if n $v99!=$char(plat) /goto :Sellstuff2
/if n $v98!=$char(gold) /goto :Sellstuff2
/if n $v55!=$char(silver) /goto :Sellstuff2
/if n $v56!=$char(copper) /goto :Sellstuff2
/goto :WaitSale

:Sellstuff
/varset v99 $char(plat)
/varset v98 $char(gold)
/varset v55 $char(silver)
/varset v56 $char(copper)
/finditem similar "jaded platinum ring"
/if $find()==FALSE /goto :DoneSelling
/click left merchant buy
:WaitSale
/doevents
/if n $v99!=$char(plat) /goto :Sellstuff
/if n $v98!=$char(gold) /goto :Sellstuff
/if n $v55!=$char(silver) /goto :Sellstuff
/if n $v56!=$char(copper) /goto :Sellstuff
/goto :WaitSale

-------------------------------------------------------------------------------------

banananose
orc pawn
orc pawn
Posts: 27
Joined: Sun Sep 01, 2002 8:13 am

Post by banananose » Sat Dec 14, 2002 4:05 pm

Don't use /finditem similar "amber", use /finditem "amber" - similar will grab the first thing it finds with amber in the name. Without the similar it will find the exact match. Good luck.

drwoo
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sun Nov 24, 2002 6:32 pm

Post by drwoo » Sat Dec 14, 2002 4:46 pm

any possible way you can post your whole macro ?

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Post by kkmonte » Sat Dec 14, 2002 8:40 pm

Banananose-

Ah ok Cool thx. I will have to try this later on tonight or tomorrow. Will let ya know how it works out. Sure i'll post the macro once I get it fully functional.

Thx

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Post by kkmonte » Mon Dec 16, 2002 6:36 am

Banananose-

Ah ok Cool thx. I will have to try this later on tonight or tomorrow. Will let ya know how it works out. Sure i'll post the macro once I get it fully functional.

Thx