Moderator: MacroQuest Developers
Code: Select all
| Event_Chat's parameters are as follows:
| $p0: chat type (tell/say/etc)
| $p1: Sender
| $p2: message
#chat tell
/varset v77 "MONK_CHAR_NAME_HERE"
Sub Main
:a
/doevents
/goto :a
/return
Sub Event_Chat
/if "$p1"=="$v77" {
/target $p1
/if "$p2"~~"ATTACK!" {
/assist $p1
/delay 1s
/if $target(distance,nopredict)>200 {
/tell $p0 %T is too far away for me to attack!
/goto :abortcast
}
/sit off
/cast $char(gem,1)
/delay 1s
/cast $char(gem,2)
/delay 1s
/cast $char(gem,3)
/delay 1s
/doability 1 | not sure what ability a necro would have that youd want to use..
/delay 1s
/cast "Feign Death"
/delay 10s
/sit off
/sit on
}
/if "$p2"~~"mana" {
/tell $v77 $char(mana,pct)% mana. $char(hp,pct)% hp.
}
/if "$p2"~~"sit" {
/sit on
}
/if "$p2"~~"stand" {
/sit off
}
:abortcast
/doevents
/return thats what the script does.Basically the program would sit dormant scanning all lines coming into the clients chat box and when a matching string is found it initiates a simple macro that could be stored in a text file or what not then unloads it when its done.
im not sure and i saw a thread of someone saying you could use the name of the spell to cast it.. sounded like it would also pause for the spell cast delays too so you didnt need to manually input recast delays./cast [#|name|list]
#: Regular old command
name: Cast a spell based on name
list: List spells you have memorized
i would have used spellsub but since it asks for <delay *actual cast time plus recast*> wouldnt work. i dont know what spells hes actually using since he just put "gem 1" "gem 2" instead of spell names that i could look up and find cast/recast delays.| - SpellSub.mac -
| Spell Casting Sub routine - Usage "/call SpellSub <gem> <delay *actual cast time plus recast*>"