Code: Select all
| lala.mac
| Event_Chat's parameters are as follows:
| $p0: chat type (tell/say/etc)
| $p1: Sender
| $p2: message
#include routines.mac
#chat tell
#Event Resist "resists your Torgor's Insects"
#Event MedTime "Insufficient Mana to cast this spell"
/varset v77 "toon ill be plvling"
Sub Main
:a
/doevents
/goto :a
/return
Sub Event_Chat
| Check if Tell is from the Controller, if not inform Controller
/if "$p1"=="$v77" {
/target $v77
/call Functions
}
/return
Sub Mana
/if "$p2"~~"mana" {
/tell $v77 $char(mana,pct)% mana. $char(hp,pct)% hp.
}
/return
Sub Functions
/if "$p2"~~"sit" {
/sit on
}
/if "$p2"~~"stand" {
/sit off
}
/if "$p2"~~"slow" {
/target $v77
/assist $v77
/tell $v77 Slowing %t because you suck!
/cast $char(gem,6)
/delay 8s
/call Mana
}
/if "$p2"~~"heal" {
/target $v77
/tell $v77 Healing.
/cast $char(gem,5)
/delay 6s
/call Mana
}
/if "$p2"~~"talisman" {
/target $v77
/tell $v77 Talis'ing.
/cast $char(gem,7)
/delay 10s
/call Mana
}
/if "$p2"~~"regen" {
/target $v77
/tell $v77 Regen inc~
/cast $char(gem,4)
/delay 8s
/call Mana
}
/if "$p2"~~"sow" {
/target $v77
/tell $v77 Sowing~
/cast $char(gem,8)
/delay (Insert)s
/call Mana
}
/if "$p2"~~"root" {
/assist $v77
/tell $v77 rooting %t
/cast $char(gem,3)
/delay 6s
/call Mana
}
/if "$p2"~~"self" {
/target myself
/tell $v77 Self Buffing~
/cast $char(gem,2)
/delay 5s
/cast $char(gem,7)
/delay 10s
/cast $char(gem,4)
/delay 10s
/cast $char(gem,8)
/delay 5s
/call Mana
}
/if "$p2"~~"sheal" {
/target myself
/tell $v77 Self Healing~
/cast $char(gem,5)
/delay 6s
/call Mana
}
/if "$p2"~~"stamina" {
/target $v77
/cast $char(gem,2)
/delay 4s
/call mana
}
/if "$p2"~~"nuke" {
/assist $v77
/tell $v77 Nuking harhar~
/press 3
/delay 15s
/call Mana
}
/if "$p2"~~"follow" {
:CloserAF
/if "$v77"!="$v1" /goto :EndAF
/if n $v77(distance)>20 /sendkey down up
/if n $v77(distance)<11 /sendkey down down
/if n $v77(distance)<21 /sendkey up up
/if n $v77(distance)>10 /sendkey up down
/face
/goto :CloserAF
:EndAF
/sendkey up up
/sendkey up down
}
/if "$p2"~~"help {
tell $v77 Slow, SoW, Heal, sheal, self, root, nuke, regen, talisman, stamina, follow, help
}
/return
Sub Event_MedTime
/sit
:GetMana
/if n $char(mana,pct)<95 /goto :GetMana
/sit off
/return 

