Shamandance.mac

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Shamandance.mac

Post by YKW-28983 » Mon Dec 02, 2002 3:55 pm

I know little about scripting for this program I do some IRC scripting so i'm gonna attempt to do a script and see if anyone can help me out.

//shamandance.mac
//built for shaman that use cani for mana (duh)
//Would like to set something to tell what gem cani is (mainly 8)

//wait
wait for tick
if currenthp is greater than (currenthp / 10 * 4) | aiming for 40%
and
currentmana is less than (currentmana / 10 * 8) | 80%
do canidance

//canidance
/sit off
/cast cani
pause 13ms
/sit on
go back to waiting for tick

loadingpleasewait
a snow griffon
a snow griffon
Posts: 332
Joined: Sat Sep 14, 2002 8:46 am

Post by loadingpleasewait » Mon Dec 02, 2002 7:14 pm

hmm.. doesnt seem so hard..

Code: Select all

| Shamandance.mac
|if hps are greater than 40%, and mana is less than 80% will caniballize
|usage   /macro shamandance.mac

Sub Main
:loopstart
   /if n $char(hp,pct)>40 /if n $char(mana,pct)<80 /call Canidance
   /goto :loopstart
/return

Sub Canidance
   /sit off
   /cast "INSERT CANIBALIZE ACTUAL SPELL NAME HERE"
   /delay 13s               | this number should be the cast time + recast the "s" symbolizes seconds
   /sit on
/return
I think this will do what you need but as I do not have a shaman to test, you will have to..
LOADING PLEASE WAIT...

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Mon Dec 02, 2002 8:25 pm

Allright thx, copied & pasted, booting up EQ now. will tell you how it is.

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Mon Dec 02, 2002 10:23 pm

was a little buggy, edited cod eto make it work better, overall works fine, can finally afk while hutning igs and am OOM.

Code: Select all

| Shamandance.mac
|if hps are greater than 40%, and mana is less than 80% will caniballize
|usage   /macro shamandance.mac

Sub Main
:loopstart
   /if n $char(hp,pct)>30 /if n $char(mana,pct)<90 /call Canidance
   /goto :loopstart
/return

Sub Canidance
   /sit off
   /cast "Cannibalize"
   /delay 2.5s
   /sit on
   /delay 6s
/return
[/code]

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Wanted to update it a bit

Post by YKW-28983 » Fri Dec 20, 2002 6:43 pm

Code: Select all

| Shamandance.mac
|CanniBot! Macro will cani you and heal when I thought was necessary (you can change it obviously)
|FizzleProtector! Fizzleprotector will recast canni in case of a fizzle
|usage   /macro shamandance.mac

#event SpellFizzle "Your spell fizzles"

Sub Main
:loopstart
   /if n $char(hp,pct)<40 /call HealMe
   /if n $char(mana,pct)>90 /if n $char(hp,pct)>70 /if n $char(hp,pct)<90 /call HealMe
   /if n $char(mana,pct)>90 /if n $char(hp,pct)<80 /call HealMe
   /if n $char(hp,pct)>30 /if n $char(mana,pct)<90 /call Canidance
   /doevents
   /goto :loopstart
/return

Sub Canidance
   /sit off
   :Canni
   /cast "Cannibalize"
   /delay 2.5s
   /sit on
   /delay 6s
   /call Main

Sub HealMe
   /sit off
   :Heal
   /target myself
   /cast "Greater Healing"
   /delay 5s
   /sit on
   /delay 6s
   /call Main

Sub Event_SpellFizzle
   /cast "Cannibalize"
   /delay 2.5s
   /sit on
   /delay 6s
   /call Main
/return
UPDATE 12/20/02

Added in some more heal points, still trying to get fizzle to work but it doesn't seem to want to, any ideas on what I coded wrong?
Last edited by YKW-28983 on Fri Dec 20, 2002 10:58 pm, edited 1 time in total.

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Fri Dec 20, 2002 6:54 pm

How can you do More than a # and also less then? would you just do two if statments?

Code: Select all

/if n $char(hp,pct)>80 /if n $char(hp,pct)<90 /call WhatEver

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Try this one out for size

Post by SingleServing » Sat Dec 21, 2002 5:52 am

Code: Select all

#turbo 

#include spellbook.mac 
#include spellcast.mac 
#include routines.mac 

#define HP $char(hp,pct) 
#define MANA $char(mana,pct)

|********************************************************| 

Sub Main 

:RestStart 
/sit off
/sit on 
:Med 
/delay 30 

/if n $char(mana,pct)<99 /if n $char(hp,pct)>=85 /call CanniDance 
/if n $char(hp,pct)<=99 /if n $char(mana,pct)<=99 /goto :Med 
/return 

|********************************************************| 

Sub CanniDance 

/leaveall
/join PlayaStatusss
/call ForgetSpellByNumber 1 
/call MemorizeSpell "Cannibalize" 1 

:Canni 
/if $char(buff,"Chloroplast")==0 /call BuffChloro 
/1 Your Current percentage of mana is MANA 
/call cast "Cannibalize" 
/delay 30 
/sit 
/1 Your Current percentage of mana is MANA 
/call cast "Cannibalize" 
/delay 30 
/sit 
/if n $char(mana,pct)<95 /if n $char(hp,pct)>=50 /goto :Canni 
/sit off 
/sit on 
/return 

|********************************************************| 

Sub BuffChloro 

/target myself

/call ForgetSpellByNumber 6 
/delay 60 
/call MemorizeSpell "Chloroplast" 6 
/call Cast "Chloroplast" 6 

/return 

|********************************************************| 
This does require the old UI, this does account for fizzles, interrupts etc, this displays your mana percentage after each canni, and this even memmorizes canni and chloro for ya. BTW why in gods name would you canni all your hp and heal yourself :roll: ? Just use cloro and med some =) (fungi helps 2 heheh)

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Sat Dec 21, 2002 11:26 am

Umm you don't understand obviously, and I don't want to use the old ui, but thanks anyways.

EDIT: Will explain to you about my purposes of Canni.

Quick mana up during fights. if i'm in a fight and I cani down to 40% hp I want it to heal me so I can continue canni'ing safely. And besides, I do not want to sit there for 10 years waiting for myself to regen 1k of hp.

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Sat Dec 21, 2002 11:40 am

And on another note if you are a shaman you will most likely always have canii memorized , and not to the first slot either, it'll normally be 8, sometimes 7. Have you ever played a shaman before? Do you know the real use of canii? You don't med inbetween canii, it's a spell that acts instantly converting your hp to mana for you. You wait for the tick and get going again. Rinse lather repeat, untill you either get dangerously low in HP (which then you would heal yourself to canni some more), or you are satisifed with the HP to Mana ratio.

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Sun Dec 22, 2002 11:19 pm

YKW-28983 wrote:Umm you don't understand obviously, and I don't want to use the old ui, but thanks anyways.

EDIT: Will explain to you about my purposes of Canni.

Quick mana up during fights. if i'm in a fight and I cani down to 40% hp I want it to heal me so I can continue canni'ing safely. And besides, I do not want to sit there for 10 years waiting for myself to regen 1k of hp.
Canni 1 = 50 hp for 25 mana 0.5 efficency...

Greater heal 300 hp for 150 mana 0.5 efficiency....
Last edited by SingleServing on Sun Dec 22, 2002 11:57 pm, edited 1 time in total.

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Sun Dec 22, 2002 11:54 pm

YKW-28983 wrote:And on another note if you are a shaman you will most likely always have canii memorized , and not to the first slot either, it'll normally be 8, sometimes 7. Have you ever played a shaman before? Do you know the real use of canii? You don't med inbetween canii, it's a spell that acts instantly converting your hp to mana for you. You wait for the tick and get going again. Rinse lather repeat, untill you either get dangerously low in HP (which then you would heal yourself to canni some more), or you are satisifed with the HP to Mana ratio.
You can edit the macro and put it any slot you like, and I personally do not keep canni memmed I have far too many good spells =)

Additionally, you said, you will "most likely always have canii memorized" this takes into account those rare times it is not memorized. =)

Also since your flaming my ass let me rebuttle, "have you ever played a shaman before?" boy are you a dick.

1. If you canni down till your dangerously low on HP your asking for trouble period. Low hp = infinite agro, sure you will ideally be doing this somewhere safe but their are trains and other suprises.

2. Yes, you can med between cannis the spell is not instant for the first part its 1.3 sec off the top of my head, (someone who has played a shaman knows that)

3. Spells do not instantly refresh, people call it Canni Dance because you sit and stand repeatedly medding between each cast (I assume that fact totally eluded you)

4. I do not feel like adding code to check the current ticks in the game by constantly checking for a small change in hp (natural regen), although yes it might be benifitial to add that. Additionally, I do not remember noticing any of the other canni macros checking for in game ticks.

5. Canni takes 50 hp and gives you 25 mana, greater heal takes 150 hp and gives you 300 hp, if you seriously think it is worth casting this spell then healing yourself... :roll: :?

6. Sorry Admin ignorance pisses me off :evil:

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Mon Dec 23, 2002 6:02 pm

Lets put this into play. You are at 40% hp and 100 % mana. Why the hell would you sit and wait for your hps to go up when you can just heal yourself up taking less time?

UPDATE:

and just to let you know I tried your chloro thing, and it just keeps casting over and over again..

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Here

Post by SingleServing » Mon Dec 23, 2002 6:23 pm

YKW-28983 wrote:Lets put this into play. You are at 40% hp and 100 % mana. Why the hell would you sit and wait for your hps to go up when you can just heal yourself up taking less time?

UPDATE:

and just to let you know I tried your chloro thing, and it just keeps casting over and over again..
Odd it works for me perfectly, here maybe I cut and pasted wrong.

Also you can add an /if n $char(hp,pct)==100 /if n $char(mana,pct)<99 /call "Greater Healing"

But if the macro follows the other if statements correctly you should never be at 100 mana and that low on HP, maybe its different for me because I'm wearing a fungi tunic... all you would have to do is change the canni dance call if to something like

Code: Select all

	/if n $char(mana,pct)<90 /if n $char(hp,pct)>=85 /call CanniDance
Heres the code I am currently using below, if you want to make this its own macro just rename Sub Rest to Sub Main... should work, might need to have a /if everything ==100 goto end type statement tho

Code: Select all

Sub Rest

:RestStart
/sit off
/sit on
:Med
/delay 30

	/if n $char(mana,pct)<95 /if n $char(hp,pct)>=85 /call CanniDance
	/if n $char(hp,pct)<=99 /if n $char(mana,pct)<=99 /goto :Med
/return


|********************************************************|


Sub CanniDance



/call ForgetSpellByNumber 7
/call MemorizeSpell "Cannibalize" 7

:Canni
/if $char(buff,"Chloroplast")==0 /call BuffChloro
	/echo Your Current percentage of mana is $char(mana,pct)
	/call cast "Cannibalize"
		/sit
		/delay 30		
		
	/echo Your Current percentage of mana is $char(mana,pct)
	/call cast "Cannibalize"
		/sit
		/delay 30
		
/if n $char(mana,pct)<95 /if n $char(hp,pct)>=50 /goto :Canni
	/sit off
	/sit on
/return

|********************************************************|

Sub BuffChloro

/press Esc
/press F1

/call ForgetSpellByNumber 6
/delay 60
/call MemorizeSpell "Chloroplast" 6
/call Cast "Chloroplast" 6

/return

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Mon Dec 23, 2002 6:30 pm

is the buff checker old ui only? if so that's why. but when I plugged it into my macro it just kept chloroing me.

and for code sake why wouldn't you just do

Code: Select all

Sub BuffChloro 

/target myself

/call ForgetSpellByNumber 6 
/delay 60 
/call MemorizeSpell "Chloroplast" 6 
/call Cast "Chloroplast" 6 

/return

?

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Mon Dec 23, 2002 6:35 pm

YKW-28983 wrote:is the buff checker old ui only? if so that's why. but when I plugged it into my macro it just kept chloroing me.
No, the only problem I am aware of you might have by not using the old UI would be forgetting and memorizing spells, just make sure you have cloro in 6 and canni in 7 and you should be fine then, next delete the unnec code.

If that doesn't work try switching to old UI real quick and see how it goes... it is pretty easy to switch back to the new UI.

Oh and about that /target myself thing, just never updated it =)

I wrote that code before I was aware of such a function, I'll update my copy now.