Page 1 of 1

Necro on Command

Posted: Tue Oct 19, 2004 10:44 am
by Hiidan
Very simple, give specified commands to your necro through tells or group and it does it.

Code: Select all

|Necro On Command Macro. Made by people with too much time on thier hands, for people with too much time on thier hands.
|Created by Hiidan.
|Use at your own risk. Anyone giving these commands in tells or group will trigger these events.

#Event Snare "#*#tells you, 'Snare'"
#Event Sickpet "#*#tells you, 'Sickpet'"
#Event Makepet "#*#tells you, 'Makepet'"
#Event Dotty "#*#tells you, 'Dotty'"
#Event FD "#*#tells you, 'FD'"
#Event Crip "#*#tells you, 'Crip'"
#Event Manacheck "#*#tells you, 'Mana Check'"
#Event Mindwrack "#*#tells you, 'Mind Wrack'"
#Event Selfbuff "#*#tells you, 'Self Buff'"
#Event Follow "#*#tells you, 'follow'"
#Event EndFollow "#*#tells you, 'endfollow'"
#Event Snare "#*#tells the group, 'Snare'"
#Event Sickpet "#*#tells the group, 'Sickpet'"
#Event Makepet "#*#tells the group, 'Makepet'"
#Event Dotty "#*#tells the group, 'Dotty'"
#Event FD "#*#tells the group, 'FD'"
#Event Crip "#*#tells the group, 'Crip'"
#Event Manacheck "#*#tells the group, 'Mana Check'"
#Event Mindwrack "#*#tells the group, 'Mind Wrack'"
#Event Selfbuff "#*#tells the group, 'Self Buff'"
#Event Follow "#*#tells the group, 'follow'"
#Event EndFollow "#*#tells the group, 'endfollow'"
#Event Enrage "#*#has become ENRAGED#*#"
#Event Enrage "#*#is infuriated!#*#"
#Event Norage "#*#is no longer enraged#*#"

#Include spell_routines.inc

Sub Main
	/declare tank string outer whateverthetanksnameis
	/echo Necro On Command has started!
:loop
	/doevents
	/goto :loop
/return

Sub Event_Snare
/assist ${tank}
|or exchange cascading darkness with whatever snare you want
/call cast "Cascading Darkness" gem1
/return

Sub Event_Sickpet
/assist ${tank}
/pet attack
/return

Sub Event_Makepet
/call cast "Servant of Bones" gem6
|Can change Servant of Bones to whatever pet you use, edit out the next line if you dont have ornate pants
/call cast "Vorshar's Pants of the Blight" item
/return

Sub Event_Dotty
/assist ${tank}
/call Cast "Splurt" gem3
/call cast "Pyrocuror" gem2
/return

Sub Event_FD
/call cast "Feign Death" gem8
/return

Sub Event_Crip
/assist ${tank}
/call cast "Crippling Claudication" gem2
/return

Sub Event_ManaCheck
/r Necro mana is currently ${Me.PctMana}%
/return

Sub Event_Mindwrack
/assist ${tank}
/call cast "Mind Wrack" gem6
/return

Sub Event_Selfbuff
/target self
/call cast "Demi Lich" gem7
/call cast "Shield of the Magi"gem7
/return

Sub Event_follow
/target ${tank}
/follow
/return

Sub Event_endfollow
/keypress back
/return

Sub Event_Enrage
/pet follow
/pet back off
/return

Sub Event_Norage
/assist ${tank}
/pet attack
/return

Posted: Tue Oct 19, 2004 11:42 am
by Chill
One thing you may want to add is a Master or list of masters, to avoid the bot responding to people you dont want it to.

You can get the sender in your chat events (do a quick search and you will find examples.)

If you only have one Master, then you could just /declare Master string outer <Master Name>. In each of the tells then put the following around your actual code:

Code: Select all

/if (${Sender.Equal[${Master}]}) {
   EVENT CODE
}
Okay, now if you want to make it a little more robust and allow for several masters I would suggest the following:

Code: Select all

/declare Masters string outer Billy|Joe|Bob
...
/if (Masters.Find[${Sender}]}) {
   EVENT CODE
}

Posted: Tue Oct 19, 2004 2:18 pm
by Hiidan
Hrm, would take some fidgeting, but i may be able to get that to work.

If not i could always do the

#Event Chat
#Event Tell

and have

/if ${chat.text}=Command and ${Sender}=Master then blah blah blah

Posted: Tue Oct 19, 2004 2:29 pm
by missingfiles
could have the macro check a friends.ini list for elgi masters.

Posted: Tue Oct 19, 2004 5:38 pm
by Hiidan
I'm kinda opposed to that idea, unless there is a way to edit ini files on the fly so to speak so i can add and remove players from said 'Master' list.

Posted: Tue Oct 19, 2004 6:40 pm
by missingfiles
You can look at the forage macros they make aditions to the ini file on the fly when a item not listed is foraged.

Just make the macro watch for

/tell add <name>
/tell remove <name>

If you want more security use <name> <password> <--master password to add or remove

Just make the ini look like this

Jim 1
Sally 0

1= Lissen to this person
0= ignore commands

Posted: Wed Oct 20, 2004 1:41 am
by TheUnholy
Take a look at This macro. It has a master list that you can add and remove names from on the fly.