Cannibalize-inc.mac and Cannibalize.inc

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

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

Cannibalize-inc.mac and Cannibalize.inc

Post by YKW-28983 » Wed Dec 31, 2003 11:53 am

Macro: Cannibalize-inc
Type: Include or Self Run macro.
Syntax: /macro Cannibalize-inc Help
Setup: Run the macro first with these paramaters, in this order.
Setup <MinHP> <MaxHP> <MaxMana> "<Cannibalize>" "<Heal|no>" "HealHP" "HealMana" Cannibalize is your Cannibalize Spell.
I.E: /macro Cannibalize-Inc Setup 40 90 90 "Cannibalize III"


Include: After running that you are good to include it in your scripts.
I.E: #include Cannibalize.inc
Run By "/call CheckMana"
YOU MUST ALSO INCLUDE SpellCast.inc which can be found using the search button.


Self Run: Run the macro with the syntax of Alone
I.E: /macro Cannibalize-Inc Alone




-----Cannibalize-inc.mac-----

Code: Select all

| Name: 	Cannibalize-Inc
| Author: 	YKW-28983
| Type: 	Include/Seperate
| Setup:	Run the macro first with these paramaters, in this order.
| Setup:	Setup <MinHP> <MaxHP> <MaxMana> "<Cannibalize>" "<Heal|no>" "HealHP" "HealMana"
| Setup:	Cannibalize is your Cannibalize Spell.
| Setup:    HEALING: If you do not want healing just set "Heal" to no.
| Setup:	HEALING: HealHP Is the HP Percent you want to heal at, HealMana is the Mana percent you must have more of in order to heal.
| Setup:	I.E: /macro Cannibalize-Inc Setup 40 90 90 "Cannibalize III"

| Include:	After running that you are good to include it in your scripts.
| Include:  I.E: #include Cannibalize.inc
| Include:	Run By "/call CheckMana"
| Alone:	Run the macro with the syntax of Alone
| Alone:     I.E: /macro Cannibalize-Inc Alone

#turbo
#include SpellCast.inc
#include Cannibalize.inc

Sub Main(Setup,MinHP,MaxHP,MaxMana,Cannibalize,Heal,HealHP,HealMana)

/if @Setup==Help {
/echo Syntax: /macro Cannibalize-Inc Setup <MinHP> <MaxHP> <MaxMana> "<Cannibalize>" "<Heal>|no" "HealHP" "HealMana"
/echo Syntax: /macro Cannibalize-Inc Alone
/return
}


/if @Setup==Setup {
/ini "Cannibalize-inc.ini" "$char(name)" "Setup" "yes"
/ini "Cannibalize-inc.ini" "$char(name)" "MinHP" "@MinHP"
/ini "Cannibalize-inc.ini" "$char(name)" "MaxHP" "@MaxHP"
/ini "Cannibalize-inc.ini" "$char(name)" "MaxMana" "@MaxMana"
/ini "Cannibalize-inc.ini" "$char(name)" "Cannibalize" "@Cannibalize"
/ini "Cannibalize-inc.ini" "$char(name)" "Heal" "@Heal"
/ini "Cannibalize-inc.ini" "$char(name)" "HealHP" "@HealHP"
/ini "Cannibalize-inc.ini" "$char(name)" "HealMana" "@HealMana"
/echo Cannibalize Script: MinHP = $ini(Cannibalize-inc.ini,$char(name),MinHP)
/echo Cannibalize Script: MaxHP = $ini(Cannibalize-inc.ini,$char(name),MaxHP)
/echo Cannibalize Script: MaxMana = $ini(Cannibalize-inc.ini,$char(name),MaxMana)
/echo Cannibalize Script: Cannibalize = $ini(Cannibalize-inc.ini,$char(name),Cannibalize)
/echo Cannibalize Script: Heal = $ini(Cannibalize-inc.ini,$char(name),Heal)
/return
}

/if $ini(Cannibalize-inc.ini,$char(name),Setup)!=Yes {
/echo Warning: You did not setup the default variables!
/echo Warning: Please type /macro Cannibalize-inc Help
/echo Warning: Failure to do so will make this script run improperly.
/return
}

/if @Setup==Alone {
/call CheckMana
}

/return

-----Cannibalize.inc-----

Code: Select all

| Name: 		Cannibalize.inc
| Author: 		YKW-28983
| Type: 		Include
| Required Macro: 	Cannibalize-inc.mac
| Setup:		/macro Cannibalize-inc Help

Sub CheckMana
:SetupCheck
/if $ini(Cannibalize-inc.ini,$char(name),Setup)!=Yes {
/echo Warning: You did not setup the default variables!
/echo Warning: Please type /macro Cannibalize-inc Help
/echo Warning: Failure to do so will make this script run improperly.
/return
}
:Check
/if n $char(hp,pct)<$ini(Cannibalize-inc.ini,$char(name),MinHP) {
	/press ESC
	/press F1
	/call Cast "$ini(Cannibalzie-inc.ini,$char(name),Heal)"
}
/if n $char(hp,pct)>=$ini(Cannibalize-inc.ini,$char(name),MaxHP) {
  /if n $char(mana,pct)>=$ini(Cannibalize-inc.ini,$char(name),MaxMana) {
    /return
  }
}

/if n $char(hp,pct)>=$ini(Cannibalize-inc.ini,$char(name),MinHP) {
  /if n $char(mana,pct)<$ini(Cannibalize-inc.ini,$char(name),MaxMana) {
    /if $char(state)==SIT /sit
    /call Cast "$ini(Cannibalize-inc.ini,$char(name),Cannibalize)"
    /if $char(state)==STAND /sit
  }
}
/delay 6s
/goto :Check

/return


Last edited by YKW-28983 on Sat Jan 10, 2004 2:03 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 » Sat Jan 03, 2004 10:12 am

BUMPED -
Added Heal Code for those who want to heal at certain percent HP, And Mana.

Skye
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Jan 08, 2004 10:17 pm

Cannibalize V

Post by Skye » Thu Jan 08, 2004 10:22 pm

Anyone have an idea on including Cannibalize V and Quiescence into this script?

My questions / observations

[a] I'm not sure how to activate Cannibalize V - and - more importantly, how to detect if the Cannibalize V timer is ready to activate

for Quiescence, it should be pretty simple to add some logic to understand during healing if the Quiescence effect is already included in the char buffs when looping

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Thu Jan 08, 2004 11:07 pm

Code: Select all

/if n $char(buff,"Quiescence")>0 {yup, it's here!}
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

gnome001
a ghoul
a ghoul
Posts: 109
Joined: Fri Jan 24, 2003 1:01 am

Post by gnome001 » Sat Jan 10, 2004 12:21 am

here is my quick and dirty cann macro i've used for a long time now.. ripped it from someone else awhile back...

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)<35 /call HealMe 
      /if n $char(mana,pct)>5 /if n $char(hp,pct)>25 /if n $char(hp,pct)<70 /call HealMe 
   /if n $char(hp,pct)>60 /if n $char(mana,pct)<90 /call Canidance
   /doevents 
   /goto :loopstart 
/return 

Sub Canidance 
   /sit off 
   :Canni 
   /cast "Cannibalize IV" 
   /delay 9s 
   /call Main 

Sub HealMe 
   /sit off 
   :Heal 
   /target myself 
   /cast "quiescence" 
   /delay 12s
   /call Main
   


Sub Event_SpellFizzle 
   /cast "Cannibalize IV" 
   /delay 9s
   /call Main 
/return


wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Re: Cannibalize V

Post by wassup » Sat Jan 10, 2004 10:31 am

Skye wrote:Anyone have an idea on including Cannibalize V and Quiescence into this script?

My questions / observations

[a] I'm not sure how to activate Cannibalize V - and - more importantly, how to detect if the Cannibalize V timer is ready to activate

for Quiescence, it should be pretty simple to add some logic to understand during healing if the Quiescence effect is already included in the char buffs when looping


I'm fairly certain CanniV is activated with /alt activate 47. I don't use that method since I have to keep a hotbutton up anyway to know it has refreshed.

I've been pondering whether or not it would be possible to get MQ2 to display specific timers on AA.

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

Re: Cannibalize V

Post by YKW-28983 » Sat Jan 10, 2004 2:05 pm

Skye wrote:Anyone have an idea on including Cannibalize V and Quiescence into this script?

My questions / observations

[a] I'm not sure how to activate Cannibalize V - and - more importantly, how to detect if the Cannibalize V timer is ready to activate

for Quiescence, it should be pretty simple to add some logic to understand during healing if the Quiescence effect is already included in the char buffs when looping

Code: Select all

| Setup:   Setup <MinHP> <MaxHP> <MaxMana> "<Cannibalize>" "<Heal|no>" "HealHP" "HealMana"

/call Cannibalize-inc.mac Setup 50 95 95 "Cannibalize III" "Quiescence" "45" "80"

That should do the Quiescence bit for you. Casts it on you when HP is below 45 and mana is above 80.

And if not check my Buffs-inc.mac and Buffs.inc macro to keep it up @ all times.

Which can be found http://macroquest2.com/phpBB2/viewtopic.php?t=4823

But as for the CV I have no clue, sorry.

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Sat Jan 10, 2004 6:50 pm

I can toy with AA abilitites....once I have one that I can toy with. So far, all mine are automatic.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!