Page 4 of 5

Posted: Mon Oct 18, 2004 10:01 am
by eqaussie
How would one implement the use of a clicky?

The shammies i have use of now all have a TA (Clicky Turgur's)

I would like to be able to use that instead of casting it from a gem.

Great work on this hubba

Posted: Mon Oct 18, 2004 1:52 pm
by Solraan
I'm pretty new to actually using custom macros, been using mq2 awhile now, and my programming ability is close to non-existent. My question is, when I have my shaman up and running in a 2 boxed group he 1) seems to get caught in a canni dance loop and doesn't slow, malo, sick pet or anything, and 2) the script keeps searching for a drogmor to summon, which he doesn't have. How do I go about editing to remove that particular portion (of the drogmor)? And can I reduce the need to canni 4 until he reaches a certain % mana? Any help is great, I've dabbled trying to fix it, to no avail. I'm a noob =(

Posted: Mon Oct 18, 2004 2:53 pm
by dedpoet
Solraan/Eqaussie -

Solraan:

To have it stop summoning a drogmor, look for the line near the top of the code that says:

Code: Select all

|- Summon drogmore
   /if (!${Me.Mount.ID} && ${OutDoors}) /call cast ${Mount} item 4s
Either delete those lines or put a | in front of the "if" line and it won't cast anymore.

If you have a different kind of mount, leave the line in, and instead find this line:

Code: Select all

/declare Mount             outer "Small Red Drum"
and change "Small Red Drum" to "Brown Rope Bridle" or whatever it is that you have.

As for canni, you'll see a line in the Canni area of the macro that says this:

Code: Select all

/if (${Me.CurrentMana} < ${Math.Calc[${Me.MaxMana}-5]} && ${Me.SpellReady[${SpellCanni}]}) /call cast ${SpellCanni} gem1 6s 
What that says is that if your current mana is less than your max mana -5, to go ahead and canni. You could change that value to anything you want. You could do this to only canni if you were short 100 or more mana:

Code: Select all

/if (${Me.CurrentMana} < ${Math.Calc[${Me.MaxMana}-100]}
or even something like this to canni only if below 80 percent mana:

Code: Select all

/if (${Me.PctMana} < 80]}
Just replace that first part of the if statement and leave the rest alone. Play with it to find what suits you best.

Eqaussie -

Since this macro uses spell_routines.inc, to use a TA instead of casting the slow spell, you would just go into the slow sub, and replace:

Code: Select all

/call cast ${SpellSlow} gem2 6s
With this:

Code: Select all

/call cast "Time's Antithesis" item 
That will click the TA, even swapping it into your primary slot and then swapping it back if it wasn't in there to begin with. I do this with the Spear of Fate in my own shaman macro. Works like a charm.

Posted: Mon Oct 18, 2004 3:46 pm
by Ranger_Space
Isn't your SoW check wrong? You're basically checking:

Code: Select all

|- Sow Buff
   /if (!${Me.Buff[Spirit of Eagle].ID} || !${Me.Buff[Flight of Eagles].ID})
     /if (!${Me.Buff[Spirit of Bih`Li].ID} && ${DoSow} && ${OutDoors}) {
      /target pc ${M_Assist}
      /call cast "Spirit of Bih`Li" gem5 17s
     }
Which checks, if I am not buffed with SoE OR FoE then check to see if I have BillyBob. If you have SoE, then the FoE check is going to be TRUE, and cause you to go into the check for Billybob, which is false, and constantly try to cast Billybob (which will fail). Also, if you have FoE, the SoE check will be TRUE and you'll constantly cast Billybob again. Change the OR to an AND, and it should work right:

Code: Select all

|- Sow Buff
   /if (!${Me.Buff[Spirit of Eagle].ID} && !${Me.Buff[Flight of Eagles].ID})
     /if (!${Me.Buff[Spirit of Bih`Li].ID} && ${DoSow} && ${OutDoors}) {
      /target pc ${M_Assist}
      /call cast "Spirit of Bih`Li" gem5 17s
     }

Posted: Tue Nov 02, 2004 3:15 am
by Hubba
Good to see others have eyes to use. I rarly group with druids or rangers. I hope it fixed the bug you found.

Pls report anny error you find. Im sure there is plenty of em.

Ooh, Pet won't be summoned on default anymore. use toggle "pet" to summon pet after script start or change

Code: Select all

/declare SummonPet          outer FALSE
to

Code: Select all

/declare SummonPet          outer TRUE
then he will summon pet on start.

Avatar duration will have it's fare share of my duration calculation routine. Now you need to do it yourself and write down the tics kinda.

Other then that, swap items before casting buff will be added, mainly cuz of Focus items.

I rarly bot my shaman anymore, that's why updates are comming slow.

Posted: Tue Nov 02, 2004 1:38 pm
by el_nene
Very nice macro :).

I have added a few lines to use clicky items with group buffs:

- On the declare section,

Code: Select all

   
   /declare SpellGrpBuff2[1] string outer
   /declare SpellGrpItem[1] string outer
   /varset SpellGrpBuff2[1] "Group Primal Essence"
   /varset SpellGrpItem[1] "Primal Cudgel"
- On the Sub GrpBuffs,

Code: Select all

   /for i 1 to ${SpellGrpBuff2.Size}
      /doevents
      /if ( !${Me.Buff[${SpellGrpBuff2[${i}]}].ID} ) {
         /echo *** Hang on ! Rebuffing ${SpellGrpBuff2[${i}]}
         /call cast ${SpellGrpItem[${i}]} item
      }
   /next i
You made me play again my lvl 62 shammy!.

Newbie question

Posted: Fri Nov 19, 2004 5:50 am
by winser
Wonder if you can add a hunter bot to this.... Has anyone tried?
Or what would you recommend for a hunter shaman macro?

Posted: Fri Nov 26, 2004 10:25 am
by Hubba
This Macro is no longer updated by me.

I have started to play EQ2

If you ever need help, PM me.

Posted: Fri Nov 26, 2004 9:07 pm
by demitri
Have fun in EQ2 Hubba, thanks a bunch for this fine script you've made :)

Deim

Posted: Sat Dec 04, 2004 4:23 pm
by dedpoet
My shaman macro is based on this one, and I just noticed something today while playing with single target buffs for the first time. Spell duration, as calculated in this sub below, will be wrong by a factor of 10:

Code: Select all

Sub SpellInformation(string SpellName)

   /varset SpDurBonus ${Math.Calc[${SpellDurationBonus}/100+1]}

   /varset SpDuration ${Math.Calc[${Spell[${SpellName}].Duration}/10*60*${SpDurBonus}]}
   /varset SpCastTime ${Math.Calc[${Spell[${SpellName}].CastTime}*10].Int}

/return 
The base duraction of Spirit of Sense, for example, is 72 minutes. If you /echo ${Spell[Spirit of Sense].Duration}, you will get 720. Ignoring the bonus for a second, 720/10*60 = 4320. 4320 deciseconds is only 7.2 minutes. For an accurate calculation, you would want 720/10*60*10 = 43200 deciseconds = 72 minutes. So, since multiplying by 10 and then dividing by 10 cancel out, just change the one line to this:

Code: Select all

  /varset SpDuration ${Math.Calc[${Spell[${SpellName}].Duration}*60*${SpDurBonus}]}
That will give you an accurate timer on the single target buffs. My shaman has 65% buff extension and this returns a timer of 71,280, or 118.8 minutes for SoS, which is correct.

Posted: Mon Dec 13, 2004 4:30 pm
by aristocle
since he has moved on and stoped working on this i have been tring to fix it up a bit to use with my sham and have a question if anyone can help
problem is my shaman is 70 and so almost all these spells are obsolete i searched entire script and and only time i found Fo7 for instance is in main declares but no matter what i do its strange it starts up fine buffs the way i want but then after it gets mana back for some reason it reads buffs notices that i dont have fo7 and mems fo7 and casts it over and over same with all other buffs


/declare SpellSlow outer "Balance of the Nihil"
/declare SpellDoT outer "Blood of Yoppa"
/declare SpellDoT2 outer "Curse of Sisslak"
/declare SpellPet outer "Farrel's Companion"
/declare SpellDeBuff outer "Malos"
/declare SpellCanni outer "Ancient Ancestral Calling"
/declare SpellDebuff2 outer "Crippling Spasm"
/declare SpellHoT outer "Spiritual Serenity"
/declare SpellHeal outer "Ancient Wilslik's Mending"
/declare SpellRoot outer "Petrifying Earth"
/declare SpellNuke outer "Ice Age"

/declare SpellATK outer "Champion"
/declare SpellHASTE outer "Talisman of Alacrity"
/declare SpellFOCUS outer "Talisman of Wunshi"
/declare SpellCHA outer "Charisma"
/declare SpellDEX outer "Talisman of the Diaku"
/declare SpellSTR outer "Talisman of the Diaku"
/declare SpellAGI outer "Talisman of the Wrulan"
/declare SpellAvoid outer "Talisman of Sense"
/declare SpellDMoD outer "Talisman of Might"
/declare SpellSTA outer "Talisman of Fortitude"
/declare SpellREGEN outer "Talisman of Perseverance"
/declare SpellPR outer "Talisman of the Tribunal"

/declare SpellSOW outer "Spirit of Bih`Li"
/declare SpellLEV outer "Levitation"
/declare SpellINV outer "Invisibility"
/declare SpellSHRINK outer "Tiny Terror"
/declare SpellGROW outer "Grow"
/declare SpellSEE outer "Acumen of Dar Khura"

/declare SpellGATE outer "Gate"
/declare SpellFOOD outer "Summon Food"
/declare SpellDRINK outer "Summon Drink"

this is my current setup and cant find any other instance of the lvl 65 buffs anywhere but for some reason it trys to chain cast them after as it stands now i have a set routine after all buffs are cast to set dobuffs false but its a pain after deaths and such to hafta pause everything stop and rebuff be alot easyer if i could just leave it running and use tells and such for buffs so alot less downtime in groups anyone have a idea of where 65 spells are stored?or why it keeps useing them instead of the ones i tell it to or if anyone has modded this to work on the new spells could post script or pm me with it please

Thanks

Posted: Mon Dec 13, 2004 4:56 pm
by fearless
Since you are asking where else in YOUR copy of the macro Fo7 could be . . . I'm thinking you should post your entire macro. Also, code brackets are your friend.

Posted: Mon Dec 13, 2004 8:20 pm
by aristocle
well the rules dont allow me to post my copy but its the exact same as this one just added alot of stuff<i didnt add anything buff wise other then extra casting new spells> my copy has some things that violate what can be done so dont want to post it another words if u look at the first copy posted here and changed where it says fo7 to wunshi how/why would script cast fo7 also<i am sorry if it is something i have edited i will try to strip a few things off and post it BUT i dont want to post it for the fact of source was edited alot to run it and dont want the trouble with people tring to use it saying blah dont do blah or error this cause i have read to many posts with SIMPLE things to add to source that turned into nightmares so no way i want to try to tell someone how to add entire parts to it lol

as a side note i tried useing the exact script above edited just the names but same effect

Posted: Mon Dec 13, 2004 9:40 pm
by fearless
Okay then . . . I guess we have to take your word for it, but did you change this section as well?

Code: Select all

| ############ Group buffs... 

   /declare SpellGrpBuff[4] string outer 
   /varset SpellGrpBuff[1] "Blessing of Replenishment" 
   /varset SpellGrpBuff[2] "Focus of the Seventh" 
   /varset SpellGrpBuff[3] "Talisman of the Wrulan" 
   /varset SpellGrpBuff[4] "Talisman of the Boar" 

Posted: Tue Dec 14, 2004 5:54 am
by aristocle
Thanks for the help guys but a friend came over and we found the problem with a custem include file it was a older file not updated for oow so it only knew of 65 spells and was causeing the script to be bugged into recasting those spells was my own stupidity but thanks again for trying
if anyone wants a shm mac to be posted and worked on let me know almost finished with one for a friend that uses unaltered mq source