Spellbot: Difference between revisions
Jump to navigation
Jump to search
→Mage: Fixed broken prompt trigger for those that need it |
|||
| Line 603: | Line 603: | ||
#var moves %5 | #var moves %5 | ||
#var now %time( ddmmmyy|hh:mm:ss) | #var now %time( ddmmmyy|hh:mm:ss) | ||
#if (@moves < 50) {#show refresh} | #if (@moves < 50) {#show refresh} {} | ||
} | |||
#CLASS 0 | #CLASS 0 | ||
</pre> | </pre> | ||
[[Category: Triggers]] | [[Category: Triggers]] | ||
Revision as of 16:08, 10 January 2020
Modified by Stolichnaya from scripts
Originally written by Zistrosk
Mage
#CLASS {spellbot} {enable}
#TRIGGER {(%w) whispers to you *} {whisper %1 Try using "SAY" to get spells from me.}
#TRIGGER {(%w) says 'all'} {
nod %1
all1 0.%1
wave %1
}
#TRIGGER {(%w) says 'aqua} {cab 0.%1}
#TRIGGER {(%w) says 'con} {cco 0.%1}
#TRIGGER {(%w) says 'dra} {cdw 0.%1}
#TRIGGER {(%w) says 'elv} {ceb 0.%1}
#TRIGGER {(%w) says 'elem} {cesu 0.%1}
#TRIGGER {(%w) says 'fire} {cfir 0.%1}
#TRIGGER {(%w) says 'float} {cfl 0.%1}
#TRIGGER {(%w) says 'fly} {cfly 0.%1}
#TRIGGER {(%w) says 'heat} {ciw 0.%1}
#TRIGGER {(%w) says 'ice} {cic 0.%1}
#TRIGGER {(%w) says 'invis} {cinv 0.%1}
#TRIGGER {(%w) says 'level} {ls3 0.%1}
#TRIGGER {(%w) says 'light} {
ccl
give ball 0.%1
drop ball
}
#TRIGGER {(%w) says 'long} {long1 0.%1}
#TRIGGER {(%w) says 'nano} {
cco 0.%1
cps 0.%1
}
#TRIGGER {(%w) says 'ogr} {cks 0.%1}
#TRIGGER {(%w) says 'pris} {cps 0.%1}
#TRIGGER {(%w) says 'ref} {cref 0.%1}
#TRIGGER {(%w) says 'safe} {
cfly 0.%1
csc 0.%1
cab 0.%1
}
#TRIGGER {(%w) says 'sag} {csag 0.%1}
#TRIGGER {(%w) says 'scry} {csc 0.%1}
#TRIGGER {(%w) says 'shield'} {csh 0.%1}
#TRIGGER {(%w) says 'shields} {cesu 0.%1}
#TRIGGER {(%w) says 'sli} {csli 0.%1}
#TRIGGER {(%w) says 'tro} {ctv 0.%1}
#TRIGGER {(%w) says 'val} {cva 0.%1}
#TRIGGER {(%w) says 'invis (%w)'} {
cinv %2
tell %1 I cast invis on %2 at your request.
tell %2 I cast invis on you at %1's request.
}
#TRIGGER {(%w) says 'spring} {ccsp %1}
#TRIGGER {(%w) says 'report'} {report}
#TRIGGER {A mystical spring flows majestically from a glowing circle of blue.} {#var springhere 1}
#CLASS 0
#CLASS {spellcmds} {enable}
#ALIAS manafull {
#if (@manaatfull = 0) {
#var manaatfull 1
#show Full MP!
}
}
#ALIAS ls1 {
#TSET 40
cks %1
ctv %1
ceb %1
csli %1
csag %1
cdw %1
}
#ALIAS ls2 {
#TSET 40
ceb %1
csli %1
csag %1
cdw %1
cks %1
ctv %1
}
#ALIAS ls3 {
#TSET 40
csag %1
cdw %1
cks %1
ctv %1
ceb %1
csli %1
}
#ALIAS long1 {
csh %1
cva %1
ciw %1
}
#ALIAS long2 {
cva %1
ciw %1
csh %1
}
#ALIAS long3 {
ciw %1
csh %1
cva %1
}
#ALIAS shi1 {
cic %1
cfir %1
csho %1
}
#ALIAS shi2 {
cfir %1
csho %1
cic %1
}
#ALIAS shi3 {
csho %1
cic %1
cfir %1
}
#ALIAS all1 {
ls3 %1
cab %1
cco %1
cfly %1
cps %1
csc %1
long1 %1
cesu %1
}
#ALIAS all2 {
ls1 %1
cab %1
cco %1
cfly %1
cps %1
csc %1
long1 %1
}
#CLASS 0
#CLASS {spells}
#ALIAS ca {cast 'armor' %1}
#ALIAS cab {cast 'aqua breath' %1}
#ALIAS cabr {cast 'acid breath' %1}
#ALIAS cace {cast 'acetum primus' %1}
#ALIAS caci {cast 'acid blast' %1}
#ALIAS cal {cast 'alertness' %1}
#ALIAS cant {cast 'antimagic shell' %1}
#ALIAS caqu {cast 'aqua breath' %1}
#ALIAS carm {cast 'armor' %1}
#ALIAS castr {cast 'astral walk' %1}
#ALIAS cb {cast 'bless' %1}
#ALIAS cbf {cast 'black fist' %1}
#ALIAS cbh {cast 'black hand' %1}
#ALIAS cbl {cast 'blindness' %1}
#ALIAS cblab {cast 'blazebane' %1}
#ALIAS cblaw {cast 'blazeward' %1}
#ALIAS cblf {cast 'black fist' %1}
#ALIAS cblh {cast 'black hand' %1}
#ALIAS cbli {cast 'black lightning' %1}
#ALIAS cbur {cast 'burning hands' %1}
#ALIAS ccau {cast 'caustic fount' %1}
#ALIAS ccbl {cast 'cure blindness' %1}
#ALIAS ccf {cast 'create food' %1}
#ALIAS ccha {cast 'charm person' %1}
#ALIAS cchi {cast 'chill touch' %1}
#ALIAS ccl {cast 'continual light' %1}
#ALIAS cco {cast 'confidence' %1}
#ALIAS ccol {cast 'colour spray' %1}
#ALIAS cconl {cast 'continual light' %1}
#ALIAS ccp {cast 'cure poison' %1}
#ALIAS ccref {cast 'create fire' %1}
#ALIAS ccsp {cast 'create spring' %1}
#ALIAS ccur {cast 'curse' %1}
#ALIAS ccw {cast 'control weather' %1}
#ALIAS cdem {cast 'demonskin' %1}
#ALIAS cdeti {cast 'detect invis' %1}
#ALIAS cdetm {cast 'detect magic' %1}
#ALIAS cdett {cast 'detect traps' %1}
#ALIAS cdi {cast 'detect invis' %1}
#ALIAS cdis {cast 'dispel magic' %1}
#ALIAS cdism {cast 'dispel magic' %1}
#ALIAS cdisr {cast 'disruption' %1}
#ALIAS cdm {cast 'detect magic' %1}
#ALIAS cdr {cast 'dream' %1}
#ALIAS cds {cast 'dragonskin' %1}
#ALIAS cdt {cast 'detect traps' %1}
#ALIAS cdw {cast 'dragon wit' %1}
#ALIAS ceb {cast 'elven beauty' %1}
#ALIAS ced {cast 'energy drain' %1}
#ALIAS cef {cast 'ethereal fist' %1}
#ALIAS cefu {cast 'ethereal funnel' %1}
#ALIAS cel {cast 'eldritch sphere' %1}
#ALIAS cep {cast 'extradimensional portal' %1}
#ALIAS ces {cast 'ethereal shield' %1}
#ALIAS cesu {cast 'elemental supremacy' %1}
#ALIAS cew {cast 'enchant weapon' %1}
#ALIAS cfar {cast 'farsight' %1}
#ALIAS cfb {cast 'frost breath' %1}
#ALIAS cff {cast 'faerie fog' %1}
#ALIAS cffi {cast 'faerie fire' %1}
#ALIAS cfi {cast 'fireball' %1}
#ALIAS cfib {cast 'fire breath' %1}
#ALIAS cfir {cast 'fireshield' %1}
#ALIAS cfl {cast 'float' %1}
#ALIAS cflo {cast 'float' %1}
#ALIAS cfly {cast 'fly' %1}
#ALIAS cfort {cast 'fortify' %1}
#ALIAS cgas {cast 'gas breath' %1}
#ALIAS cgw {cast 'galvanic whip' %1}
#ALIAS chc {cast 'hand of chaos' %1}
#ALIAS cheal {cast 'heal' %1}
#ALIAS ci {cast 'identify' %1}
#ALIAS cic {cast 'iceshield' %1}
#ALIAS cinf {cast 'infravision' %1}
#ALIAS cinv {cast 'invis' %1}
#ALIAS ciw {cast 'inner warmth' %1}
#ALIAS cka {cast 'know alignment' %1}
#ALIAS ckno {cast 'knock' %1}
#ALIAS cks {cast 'ogre might' %1}
#ALIAS clb {cast 'lightning bolt' %1}
#ALIAS clbr {cast 'lightning breath' %1}
#ALIAS clo {cast 'locate object' %1}
#ALIAS cmag {cast 'magnetic thrust' %1}
#ALIAS cmi {cast 'mass invis' %1}
#ALIAS cmm {cast 'magic missile' %1}
#ALIAS cmt {cast 'midas touch' %1}
#ALIAS cpd {cast 'pass door' %1}
#ALIAS cpo {cast 'poison' %1}
#ALIAS cpor {cast 'portal' %1}
#ALIAS cps {cast 'prismatic shield' %1}
#ALIAS cqs {cast 'quantum spike' %1}
#ALIAS craz {cast 'razorbait' %1}
#ALIAS crc {cast 'remove curse' %1}
#ALIAS crec {cast 'recharge' %1}
#ALIAS cref {cast 'refresh' %1}
#ALIAS cri {cast 'remove invis' %1}
#ALIAS crt {cast 'remove trap' %1}
#ALIAS csa {cast 'sanctuary' %1}
#ALIAS csag {cast 'sagacity' %1}
#ALIAS csc {cast 'scry' %1}
#ALIAS csf {cast 'spectral furor' %1}
#ALIAS csh {cast 'shield' %1}
#ALIAS csha {cast 'shadowform' %1}
#ALIAS csho {cast 'shockshield' %1}
#ALIAS cshok {cast 'shocking grasp' %1}
#ALIAS csl {cast 'sleep' %1}
#ALIAS csli {cast 'slink' %1}
#ALIAS cso {cast 'sonic resonance' %1}
#ALIAS csp {cast 'spectral furor' %1}
#ALIAS css {cast 'stone skin' %1}
#ALIAS cst {cast 'stone skin' %1}
#ALIAS csul {cast 'sulfurous spray' %1}
#ALIAS csum {cast 'summon' %1}
#ALIAS cswo {cast 'swordbait' %1}
#ALIAS csy {cast 'create symbol' %1}
#ALIAS ct {cast 'teleport' %1}
#ALIAS ctra {cast 'transport' %1}
#ALIAS cts {cast 'true sight' %1}
#ALIAS ctv {cast 'trollish vigor' %1}
#ALIAS cva {cast 'valiance' %1}
#ALIAS cve {cast 'ventriloquate' %1}
#ALIAS cw {cast 'weaken' %1}
#ALIAS cwm {cast 'winter mist' %1}
#ALIAS cwr {cast 'word of recall' %1}
#CLASS 0
#CLASS {trancelen}
#TRIGGER {You enter a peaceful trance, collecting mana from the cosmos.} {
#ts 599
#show Trance Started with @mana at %time
#var starttime %ctime
#var startmana @mana
}
#TRIGGER {You come out of your trance.} {#ts 15}
#TRIGGER {You complete your trance.} {
#show Trance Ended with @manafull at %time
#var endtime %ctime
#var endmana @manafull
#math elapsedtime @endtime-@starttime
#math elapsedmana @endmana-@startmana
#math manapersec ((@elapsedmana/@elapsedtime)*5)
#show A total of @elapsedmana was recovered in @elapsedtime for a rate of @manapersec mp5
#ts 45
ticktimer
}
#CLASS 0
#CLASS {ticktimers}
#ALIAS ticktimer {
save
#if (@mana < @manafull) {trance}
}
#CLASS 0
#CLASS {prompt} {enable}
#TRIGGER {^~((%d)/(%d)Hp (%d)/(%d)m (%d)Mv~) (*)g |} {
#var health %1
#var healthfull %2
#var mana %3
#var manafull %4
#var moves %5
#var now %time( ddmmmyy|hh:mm:ss)
#if (@moves < 50) {#show refresh} {}
}
#CLASS 0
Cleric
#CLASS {spellbot}
#ALIAS all1 {
cast 'acidward' 0.%1
cast 'aqua breath' 0.%1
cast 'armor' 0.%1
cast 'bless' 0.%1
#noop cast 'cure blindness' 0.%1
#noop cast 'remove curse' 0.%1
#noop cast 'divinity' 0.%1
#noop cast 'fireshield' 0.%1
cast 'fly' 0.%1
}
#ALIAS all2 {
#noop cast 'expunge' 0.%1
#noop cast 'remove hex' 0.%1
cast 'nimbus of light' 0.%1
#noop cast 'cure poison' 0.%1
#noop cast 'refresh' 0.%1
cast 'resilience' 0.%1
cast 'sanctuary' 0.%1
cast 'scry' 0.%1
#noop cast 'shockshield' 0.%1
}
#TRIGGER {A symbol of faith glows briefly, then disappears in a puff of smoke from your hands!} {cast 'create symbol'}
#TRIGGER {Something is missing...} {
cast 'create symbol'
inv
}
#TRIGGER {(%w) says 'all'} {
nod 0.%1
all1 %1
all2 %1
wave 0.%1
}
#TRIGGER {(%w) says 'acid'} {cast 'acidward' 0.%1}
#TRIGGER {(%w) says 'aqua'} {cast 'aqua breath' 0.%1}
#TRIGGER {(%w) says 'armor'} {cast 'armor' 0.%1}
#TRIGGER {(%w) says 'bless} {cast 'bless' 0.%1}
#TRIGGER {(%w) says 'blind'} {cast 'cure blindness' 0.%1}
#TRIGGER {(%w) says 'cas'} {cast 'cascading heal' 0.%1}
#TRIGGER {(%w) says 'com'} {cast 'complete heal' 0.%1}
#TRIGGER {(%w) says 'cfire'} {cast 'create fire' 0.%1}
#TRIGGER {(%w) says 'curse'} {cast 'remove curse' 0.%1}
#TRIGGER {(%w) says 'div} {cast 'divinity' 0.%1}
#TRIGGER {(%w) says 'exp} {cast 'expunge' 0.%1}
#TRIGGER {(%w) says 'feast'} {
#if (@flame < 1) {cast 'create fire'}
cast 'feast of champions'
give feast 0.%1
}
#TRIGGER {(%w) says 'fire'} {cast 'fireshield' 0.%1}
#TRIGGER {(%w) says 'fly'} {cast 'fly' 0.%1}
#TRIGGER {(%w) says 'food'} {
give magic-mushroom 0.%1
drop magic-mushroom
cast 'create food'
}
#TRIGGER {(%w) says 'heal'} {cast 'heal' 0.%1}
#TRIGGER {(%w) says 'hex'} {cast 'remove hex' 0.%1}
#TRIGGER {(%w) says 'light'} {
cast 'continual light'
give ball 0.%1
drop ball
}
#TRIGGER {(%w) says 'nimbus} {cast 'nimbus of light' 0.%1}
#TRIGGER {(%w) says 'poison'} {cast 'cure poison' 0.%1}
#TRIGGER {(%w) says 'ref'} {cast 'refresh' 0.%1}
#TRIGGER {(%w) says 'resil'} {cast 'resilience' 0.%1}
#TRIGGER {(%w) says 'sanc} {cast 'sanctuary' 0.%1}
#TRIGGER {(%w) says 'scry'} {cast 'scry' 0.%1}
#TRIGGER {(%w) says 'shock'} {cast 'shockshield' 0.%1}
#TRIGGER {(%w) says 'spring'} {#alarm +2 {ccsp}}
#TRIGGER {(%w) says 'safe'} {
cast 'fly' 0.%1
cast 'aqua breath' 0.%1
}
#TRIGGER {(%w) says 'long'} {
cast 'resilience' 0.%1
cast 'bless' 0.%1
}
#TRIGGER {(%w) says 'medium'} {
cast 'armor' 0.%1
cast 'nimbus of light' 0.%1
}
#TRIGGER {(%w) says 'short'} {
cast 'sanctuary' 0.%1
cast 'acidward' 0.%1
}
#TRIGGER {(%w) says 'shields'} {
cast 'shockshield' 0.%1
cast 'fireshield' 0.%1
} "" {disable}
#TRIGGER {(%w) whispers to you *} {whisper %1 Try using "SAY" to get spells from me.}
#TRIGGER {(%w) says 'report'} {report}
#TRIGGER {(%w) shivers and suffers} {cast 'cure poison' 0.%1}
#TRIGGER {^~(Magical~) A cloud of vaporous flame blazes here, defying the elements.} {#var flame 1}
#TRIGGER {^A cloud of vaporous flame burns out.} {#var flame 0}
#CLASS 0
#CLASS {spells}
#ALIAS ca {cast 'armor' %1}
#ALIAS cab {cast 'aqua breath' %1}
#ALIAS cabr {cast 'acid breath' %1}
#ALIAS cace {cast 'acetum primus' %1}
#ALIAS caci {cast 'acid blast' %1}
#ALIAS cal {cast 'alertness' %1}
#ALIAS cant {cast 'antimagic shell' %1}
#ALIAS caqu {cast 'aqua breath' %1}
#ALIAS carm {cast 'armor' %1}
#ALIAS castr {cast 'astral walk' %1}
#ALIAS cb {cast 'bless' %1}
#ALIAS cbf {cast 'black fist' %1}
#ALIAS cbh {cast 'black hand' %1}
#ALIAS cbl {cast 'blindness' %1}
#ALIAS cblab {cast 'blazebane' %1}
#ALIAS cblaw {cast 'blazeward' %1}
#ALIAS cblf {cast 'black fist' %1}
#ALIAS cblh {cast 'black hand' %1}
#ALIAS cbli {cast 'black lightning' %1}
#ALIAS cbur {cast 'burning hands' %1}
#ALIAS ccau {cast 'caustic fount' %1}
#ALIAS ccbl {cast 'cure blindness' %1}
#ALIAS ccf {cast 'create food' %1}
#ALIAS ccha {cast 'charm person' %1}
#ALIAS cchi {cast 'chill touch' %1}
#ALIAS ccl {cast 'continual light' %1}
#ALIAS cco {cast 'confidence' %1}
#ALIAS ccol {cast 'colour spray' %1}
#ALIAS cconl {cast 'continual light' %1}
#ALIAS ccp {cast 'cure poison' %1}
#ALIAS ccref {cast 'create fire' %1}
#ALIAS ccsp {cast 'create spring' %1}
#ALIAS ccur {cast 'curse' %1}
#ALIAS ccw {cast 'control weather' %1}
#ALIAS cdem {cast 'demonskin' %1}
#ALIAS cdeti {cast 'detect invis' %1}
#ALIAS cdetm {cast 'detect magic' %1}
#ALIAS cdett {cast 'detect traps' %1}
#ALIAS cdi {cast 'detect invis' %1}
#ALIAS cdis {cast 'dispel magic' %1}
#ALIAS cdism {cast 'dispel magic' %1}
#ALIAS cdisr {cast 'disruption' %1}
#ALIAS cdm {cast 'detect magic' %1}
#ALIAS cdr {cast 'dream' %1}
#ALIAS cds {cast 'dragonskin' %1}
#ALIAS cdt {cast 'detect traps' %1}
#ALIAS cdw {cast 'dragon wit' %1}
#ALIAS ceb {cast 'elven beauty' %1}
#ALIAS ced {cast 'energy drain' %1}
#ALIAS cef {cast 'ethereal fist' %1}
#ALIAS cefu {cast 'ethereal funnel' %1}
#ALIAS cel {cast 'eldritch sphere' %1}
#ALIAS cep {cast 'extradimensional portal' %1}
#ALIAS ces {cast 'ethereal shield' %1}
#ALIAS cesu {cast 'elemental supremacy' %1}
#ALIAS cew {cast 'enchant weapon' %1}
#ALIAS cfar {cast 'farsight' %1}
#ALIAS cfb {cast 'frost breath' %1}
#ALIAS cff {cast 'faerie fog' %1}
#ALIAS cffi {cast 'faerie fire' %1}
#ALIAS cfi {cast 'fireball' %1}
#ALIAS cfib {cast 'fire breath' %1}
#ALIAS cfir {cast 'fireshield' %1}
#ALIAS cfl {cast 'float' %1}
#ALIAS cflo {cast 'float' %1}
#ALIAS cfly {cast 'fly' %1}
#ALIAS cfort {cast 'fortify' %1}
#ALIAS cgas {cast 'gas breath' %1}
#ALIAS cgw {cast 'galvanic whip' %1}
#ALIAS chc {cast 'hand of chaos' %1}
#ALIAS cheal {cast 'heal' %1}
#ALIAS ci {cast 'identify' %1}
#ALIAS cic {cast 'iceshield' %1}
#ALIAS cinf {cast 'infravision' %1}
#ALIAS cinv {cast 'invis' %1}
#ALIAS ciw {cast 'inner warmth' %1}
#ALIAS cka {cast 'know alignment' %1}
#ALIAS ckno {cast 'knock' %1}
#ALIAS cks {cast 'ogre might' %1}
#ALIAS clb {cast 'lightning bolt' %1}
#ALIAS clbr {cast 'lightning breath' %1}
#ALIAS clo {cast 'locate object' %1}
#ALIAS cmag {cast 'magnetic thrust' %1}
#ALIAS cmi {cast 'mass invis' %1}
#ALIAS cmm {cast 'magic missile' %1}
#ALIAS cmt {cast 'midas touch' %1}
#ALIAS cpd {cast 'pass door' %1}
#ALIAS cpo {cast 'poison' %1}
#ALIAS cpor {cast 'portal' %1}
#ALIAS cps {cast 'prismatic shield' %1}
#ALIAS cqs {cast 'quantum spike' %1}
#ALIAS craz {cast 'razorbait' %1}
#ALIAS crc {cast 'remove curse' %1}
#ALIAS crec {cast 'recharge' %1}
#ALIAS cref {cast 'refresh' %1}
#ALIAS cri {cast 'remove invis' %1}
#ALIAS crt {cast 'remove trap' %1}
#ALIAS csa {cast 'sanctuary' %1}
#ALIAS csag {cast 'sagacity' %1}
#ALIAS csc {cast 'scry' %1}
#ALIAS csf {cast 'spectral furor' %1}
#ALIAS csh {cast 'shield' %1}
#ALIAS csha {cast 'shadowform' %1}
#ALIAS csho {cast 'shockshield' %1}
#ALIAS cshok {cast 'shocking grasp' %1}
#ALIAS csl {cast 'sleep' %1}
#ALIAS csli {cast 'slink' %1}
#ALIAS cso {cast 'sonic resonance' %1}
#ALIAS csp {cast 'spectral furor' %1}
#ALIAS css {cast 'stone skin' %1}
#ALIAS cst {cast 'stone skin' %1}
#ALIAS csul {cast 'sulfurous spray' %1}
#ALIAS csum {cast 'summon' %1}
#ALIAS cswo {cast 'swordbait' %1}
#ALIAS csy {cast 'create symbol' %1}
#ALIAS ct {cast 'teleport' %1}
#ALIAS ctra {cast 'transport' %1}
#ALIAS cts {cast 'true sight' %1}
#ALIAS ctv {cast 'trollish vigor' %1}
#ALIAS cva {cast 'valiance' %1}
#ALIAS cve {cast 'ventriloquate' %1}
#ALIAS cw {cast 'weaken' %1}
#ALIAS cwm {cast 'winter mist' %1}
#ALIAS cwr {cast 'word of recall' %1}
#CLASS 0
#CLASS {spellbotheal}
#ALIAS chealup {
#t+ healupglance
cast 'heal' 0.%1
glance %1
}
#TRIGGER {(%w) says 'healup'} {chealup %1}
#CLASS 0
#CLASS {healupglance}
#TRIGGER {(%w) has some cuts} {chealup %1}
#TRIGGER {They're not here} {#t- healupglance}
#TRIGGER {(%w) is in perfect health.} {;chealup %1}
#TRIGGER {(%w) is slightly scratched} {chealup %1}
#TRIGGER {(%w) has a few bruises} {chealup %1}
#TRIGGER {(%w) has several wounds} {chealup %1}
#TRIGGER {(%w) has many nasty wounds} {chealup %1}
#TRIGGER {(%w) is almost dead} {chealup %1}
#TRIGGER {(%w) is bleeding freely} {chealup %1}
#TRIGGER {(%w) is covered in blood} {chealup %1}
#TRIGGER {(%w) is DYING$} {chealup %1}
#TRIGGER {(%w) is leaking guts} {chealup %1}
#CLASS 0
#CLASS {trancelen}
#TRIGGER {You enter a peaceful trance, collecting mana from the cosmos.} {
#ts 599
#show Trance Started with @mana at %time
#var starttime %ctime
#var startmana @mana
}
#TRIGGER {You come out of your trance.} {#ts 15}
#TRIGGER {You complete your trance.} {
#show Trance Ended with @manafull at %time
#var endtime %ctime
#var endmana @manafull
#math elapsedtime @endtime-@starttime
#math elapsedmana @endmana-@startmana
#math manapersec ((@elapsedmana/@elapsedtime)*5)
#show A total of @elapsedmana was recovered in @elapsedtime for a rate of @manapersec mp5
#ts 45
ticktimer
}
#CLASS 0
#CLASS {ticktimers}
#ALIAS ticktimer {
save
#if (@mana < @manafull) {trance}
}
#CLASS 0
#CLASS {prompt} {enable}
#TRIGGER {^~((%d)/(%d)Hp (%d)/(%d)m (%d)Mv~) (*)g |} {
#var health %1
#var healthfull %2
#var mana %3
#var manafull %4
#var moves %5
#var now %time( ddmmmyy|hh:mm:ss)
#if (@moves < 50) {#show refresh} {}
}
#CLASS 0