Spellbot
Revision as of 22:15, 17 November 2019 by Stolichnaya (talk | contribs)
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'} #ALIAS cab {cast 'aqua breath'} #ALIAS cabr {cast 'acid breath'} #ALIAS cace {cast 'acetum primus'} #ALIAS caci {cast 'acid blast'} #ALIAS cal {cast 'alertness' %1} #ALIAS cant {cast 'antimagic shell'} #ALIAS caqu {cast 'aqua breath'} #ALIAS carm {cast 'armor'} #ALIAS castr {cast 'astral walk'} #ALIAS cb {cast 'bless' %1} #ALIAS cbf {cast 'black fist'} #ALIAS cbh {cast 'black hand'} #ALIAS cbl {cast 'blindness'} #ALIAS cblab {cast 'blazebane'} #ALIAS cblaw {cast 'blazeward'} #ALIAS cblf {cast 'black fist'} #ALIAS cblh {cast 'black hand'} #ALIAS cbli {cast 'black lightning'} #ALIAS cbur {cast 'burning hands'} #ALIAS ccau {cast 'caustic fount'} #ALIAS ccbl {cast 'cure blindness' %1} #ALIAS ccf {cast 'create food'} #ALIAS ccha {cast 'charm person'} #ALIAS cchi {cast 'chill touch'} #ALIAS ccl {cast 'continual light'} #ALIAS cco {cast 'confidence' %1} #ALIAS ccol {cast 'colour spray'} #ALIAS cconl {cast 'continual light'} #ALIAS ccp {cast 'cure poison' %1} #ALIAS ccref {cast 'create fire'} #ALIAS ccsp {cast 'create spring'} #ALIAS ccur {cast 'curse'} #ALIAS ccw {cast 'control weather'} #ALIAS cdem {cast 'demonskin'} #ALIAS cdeti {cast 'detect invis'} #ALIAS cdetm {cast 'detect magic'} #ALIAS cdett {cast 'detect traps'} #ALIAS cdi {cast 'detect invis'} #ALIAS cdis {cast 'dispel magic'} #ALIAS cdism {cast 'dispel magic'} #ALIAS cdisr {cast 'disruption'} #ALIAS cdm {cast 'detect magic'} #ALIAS cdr {cast 'dream'} #ALIAS cds {cast 'dragonskin'} #ALIAS cdt {cast 'detect traps'} #ALIAS cdw {cast 'dragon wit'} #ALIAS ceb {cast 'elven beauty'} #ALIAS ced {cast 'energy drain'} #ALIAS cef {cast 'ethereal fist'} #ALIAS cefu {cast 'ethereal funnel'} #ALIAS cel {cast 'eldritch sphere'} #ALIAS cep {cast 'extradimensional portal'} #ALIAS ces {cast 'ethereal shield'} #ALIAS cesu {cast 'elemental supremacy' %1} #ALIAS cew {cast 'enchant weapon'} #ALIAS cfar {cast 'farsight'} #ALIAS cfb {cast 'frost breath'} #ALIAS cff {cast 'faerie fog'} #ALIAS cffi {cast 'faerie fire'} #ALIAS cfi {cast 'fireball'} #ALIAS cfib {cast 'fire breath'} #ALIAS cfir {cast 'fireshield'} #ALIAS cfl {cast 'float'} #ALIAS cflo {cast 'float'} #ALIAS cfly {cast 'fly'} #ALIAS cfort {cast 'fortify'} #ALIAS cgas {cast 'gas breath'} #ALIAS cgw {cast 'galvanic whip'} #ALIAS chc {cast 'hand of chaos'} #ALIAS cheal {cast 'heal' %1} #ALIAS ci {cast 'identify'} #ALIAS cic {cast 'iceshield'} #ALIAS cinf {cast 'infravision'} #ALIAS cinv {cast 'invis'} #ALIAS ciw {cast 'inner warmth'} #ALIAS cka {cast 'know alignment'} #ALIAS ckno {cast 'knock'} #ALIAS cks {cast 'ogre might'} #ALIAS clb {cast 'lightning bolt'} #ALIAS clbr {cast 'lightning breath'} #ALIAS clo {cast 'locate object'} #ALIAS cmag {cast 'magnetic thrust'} #ALIAS cmi {cast 'mass invis'} #ALIAS cmm {cast 'magic missile'} #ALIAS cmt {cast 'midas touch' %1} #ALIAS cpd {cast 'pass door'} #ALIAS cpo {cast 'poison' %1} #ALIAS cpor {cast 'portal'} #ALIAS cps {cast 'prismatic shield' %1} #ALIAS cqs {cast 'quantum spike'} #ALIAS craz {cast 'razorbait'} #ALIAS crc {cast 'remove curse' %1} #ALIAS crec {cast 'recharge'} #ALIAS cref {cast 'refresh'} #ALIAS cri {cast 'remove invis'} #ALIAS crt {cast 'remove trap'} #ALIAS csa {cast 'sanctuary' %1} #ALIAS csag {cast 'sagacity'} #ALIAS csc {cast 'scry'} #ALIAS csf {cast 'spectral furor'} #ALIAS csh {cast 'shield'} #ALIAS csha {cast 'shadowform'} #ALIAS csho {cast 'shockshield'} #ALIAS cshok {cast 'shocking grasp'} #ALIAS csl {cast 'sleep'} #ALIAS csli {cast 'slink'} #ALIAS cso {cast 'sonic resonance'} #ALIAS csp {cast 'spectral furor'} #ALIAS css {cast 'stone skin'} #ALIAS cst {cast 'stone skin'} #ALIAS csul {cast 'sulfurous spray'} #ALIAS csum {cast 'summon'} #ALIAS cswo {cast 'swordbait'} #ALIAS csy {cast 'create symbol'} #ALIAS ct {cast 'teleport'} #ALIAS ctra {cast 'transport'} #ALIAS cts {cast 'true sight'} #ALIAS ctv {cast 'trollish vigor'} #ALIAS cva {cast 'valiance'} #ALIAS cve {cast 'ventriloquate'} #ALIAS cw {cast 'weaken'} #ALIAS cwm {cast 'winter mist'} #ALIAS cwr {cast 'word of recall'} #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'} #ALIAS cab {cast 'aqua breath'} #ALIAS cabr {cast 'acid breath'} #ALIAS cace {cast 'acetum primus'} #ALIAS caci {cast 'acid blast'} #ALIAS cal {cast 'alertness' %1} #ALIAS cant {cast 'antimagic shell'} #ALIAS caqu {cast 'aqua breath'} #ALIAS carm {cast 'armor'} #ALIAS castr {cast 'astral walk'} #ALIAS cb {cast 'bless' %1} #ALIAS cbf {cast 'black fist'} #ALIAS cbh {cast 'black hand'} #ALIAS cbl {cast 'blindness'} #ALIAS cblab {cast 'blazebane'} #ALIAS cblaw {cast 'blazeward'} #ALIAS cblf {cast 'black fist'} #ALIAS cblh {cast 'black hand'} #ALIAS cbli {cast 'black lightning'} #ALIAS cbur {cast 'burning hands'} #ALIAS ccau {cast 'caustic fount'} #ALIAS ccbl {cast 'cure blindness' %1} #ALIAS ccf {cast 'create food'} #ALIAS ccha {cast 'charm person'} #ALIAS cchi {cast 'chill touch'} #ALIAS ccl {cast 'continual light'} #ALIAS cco {cast 'confidence' %1} #ALIAS ccol {cast 'colour spray'} #ALIAS cconl {cast 'continual light'} #ALIAS ccp {cast 'cure poison' %1} #ALIAS ccref {cast 'create fire'} #ALIAS ccsp {cast 'create spring'} #ALIAS ccur {cast 'curse'} #ALIAS ccw {cast 'control weather'} #ALIAS cdem {cast 'demonskin'} #ALIAS cdeti {cast 'detect invis'} #ALIAS cdetm {cast 'detect magic'} #ALIAS cdett {cast 'detect traps'} #ALIAS cdi {cast 'detect invis'} #ALIAS cdis {cast 'dispel magic'} #ALIAS cdism {cast 'dispel magic'} #ALIAS cdisr {cast 'disruption'} #ALIAS cdm {cast 'detect magic'} #ALIAS cdr {cast 'dream'} #ALIAS cds {cast 'dragonskin'} #ALIAS cdt {cast 'detect traps'} #ALIAS cdw {cast 'dragon wit'} #ALIAS ceb {cast 'elven beauty'} #ALIAS ced {cast 'energy drain'} #ALIAS cef {cast 'ethereal fist'} #ALIAS cefu {cast 'ethereal funnel'} #ALIAS cel {cast 'eldritch sphere'} #ALIAS cep {cast 'extradimensional portal'} #ALIAS ces {cast 'ethereal shield'} #ALIAS cesu {cast 'elemental supremacy' %1} #ALIAS cew {cast 'enchant weapon'} #ALIAS cfar {cast 'farsight'} #ALIAS cfb {cast 'frost breath'} #ALIAS cff {cast 'faerie fog'} #ALIAS cffi {cast 'faerie fire'} #ALIAS cfi {cast 'fireball'} #ALIAS cfib {cast 'fire breath'} #ALIAS cfir {cast 'fireshield'} #ALIAS cfl {cast 'float'} #ALIAS cflo {cast 'float'} #ALIAS cfly {cast 'fly'} #ALIAS cfort {cast 'fortify'} #ALIAS cgas {cast 'gas breath'} #ALIAS cgw {cast 'galvanic whip'} #ALIAS chc {cast 'hand of chaos'} #ALIAS cheal {cast 'heal' %1} #ALIAS ci {cast 'identify'} #ALIAS cic {cast 'iceshield'} #ALIAS cinf {cast 'infravision'} #ALIAS cinv {cast 'invis'} #ALIAS ciw {cast 'inner warmth'} #ALIAS cka {cast 'know alignment'} #ALIAS ckno {cast 'knock'} #ALIAS cks {cast 'ogre might'} #ALIAS clb {cast 'lightning bolt'} #ALIAS clbr {cast 'lightning breath'} #ALIAS clo {cast 'locate object'} #ALIAS cmag {cast 'magnetic thrust'} #ALIAS cmi {cast 'mass invis'} #ALIAS cmm {cast 'magic missile'} #ALIAS cmt {cast 'midas touch' %1} #ALIAS cpd {cast 'pass door'} #ALIAS cpo {cast 'poison' %1} #ALIAS cpor {cast 'portal'} #ALIAS cps {cast 'prismatic shield' %1} #ALIAS cqs {cast 'quantum spike'} #ALIAS craz {cast 'razorbait'} #ALIAS crc {cast 'remove curse' %1} #ALIAS crec {cast 'recharge'} #ALIAS cref {cast 'refresh'} #ALIAS cri {cast 'remove invis'} #ALIAS crt {cast 'remove trap'} #ALIAS csa {cast 'sanctuary' %1} #ALIAS csag {cast 'sagacity'} #ALIAS csc {cast 'scry'} #ALIAS csf {cast 'spectral furor'} #ALIAS csh {cast 'shield'} #ALIAS csha {cast 'shadowform'} #ALIAS csho {cast 'shockshield'} #ALIAS cshok {cast 'shocking grasp'} #ALIAS csl {cast 'sleep'} #ALIAS csli {cast 'slink'} #ALIAS cso {cast 'sonic resonance'} #ALIAS csp {cast 'spectral furor'} #ALIAS css {cast 'stone skin'} #ALIAS cst {cast 'stone skin'} #ALIAS csul {cast 'sulfurous spray'} #ALIAS csum {cast 'summon'} #ALIAS cswo {cast 'swordbait'} #ALIAS csy {cast 'create symbol'} #ALIAS ct {cast 'teleport'} #ALIAS ctra {cast 'transport'} #ALIAS cts {cast 'true sight'} #ALIAS ctv {cast 'trollish vigor'} #ALIAS cva {cast 'valiance'} #ALIAS cve {cast 'ventriloquate'} #ALIAS cw {cast 'weaken'} #ALIAS cwm {cast 'winter mist'} #ALIAS cwr {cast 'word of recall'} #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