Enchanting Macro

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

Moderator: MacroQuest Developers

relicOne
decaying skeleton
decaying skeleton
Posts: 4
Joined: Mon Oct 28, 2002 11:14 am
Contact:

Enchanting Macro

Post by relicOne » Mon Nov 04, 2002 1:07 pm

It's lunchtime at work and I'm working on the greatest EQ related download ever, MQ... What I'm trying to acomplish is have my enchanter do a few things in order.

* Cast the spell "Enchant _____"
* Drop the "Enchanted _____" into my inv
* Sit down and med if LoM
* Stand up and start again
* Continue until out of stuff to enchant.

How close am I?

Code: Select all

|<enchant.mac> 

Sub Main
    /cleanup
    
:enchant
    /stand
    /press F1
    /cast 1
    /delay 8
	/if "$cursor(name)"=="Enchanted Platinum Bar" /click left auto
	/if "$cursor(name)"=="Enchanted Gold Bar"     /click left auto
        /if "$cursor(name)"=="Enchanted Electrum Bar" /click left auto
        /if n $char(mana,pct)<5 /call meditate
        



/return 

Sub meditate 
/stand
/sit  
    :medding 
/delay 10s 
    /if n $char(mana,pct)<100 /goto :medding 
    /if n $char(mana,pct)>=100 /goto :enchant 
/return 




Relic

eqaddict
a lesser mummy
a lesser mummy
Posts: 74
Joined: Sun Sep 15, 2002 10:05 pm

Post by eqaddict » Mon Nov 04, 2002 2:05 pm

NOTE: I dont play an enchanter

Looks like it will work except you need to change the /delay 8 as that is less than a second and I doubt you cast that fast. ie /delay 8s

What I would suggest
---------------------------------

I dont understand why you check what is in your hands. You could just drop whatever into the inventory. Or more simple only drop into inventory if you hands are not empty. I think the syntax is

Code: Select all

/if "cursor(name)" !="NULL" /left click auto
I try to minimize use of gotos

Medding to full mana and then casting a bunch of times or casting and then medding back up is equivalent. I like the latter so whenever you stop the macro you are almost FM and ready for action.

Note: you could check that something is in your hands before you drop it into inventory.


-EQA

Code: Select all

<enchant.mac> 

Sub Main 
    /cleanup 
    
:enchant 
    /stand 
    /press F1 
    /cast 1 
    /delay 8s 
    /click left auto 
    /call meditate
    /goto :enchant

Sub meditate  
    /sit  
:medding 
    /delay 1s 
    /if n $char(mana,pct)<100 /goto :medding 
/return 
 

relicOne
decaying skeleton
decaying skeleton
Posts: 4
Joined: Mon Oct 28, 2002 11:14 am
Contact:

Post by relicOne » Mon Nov 04, 2002 2:45 pm

Look so much better when you write it :) Thanks a ton... Now all I need to do is send my alt a /tell when I'm out of "items to enchant" or check my inv for "type of jewel" then link that to my jc.mac ;) wish me luck!

Relic