/alias togaia topriest%;enter%;u%;gaia%;n%;meditate /alias fromgaia s%;portal%;d%;exit%;frompriest /alias tobox topriest /alias frombox frompriest /alias togod topriest%;enter%;u%;god%;n%;meditate /alias fromgaia s%;portal%;d%;exit%;frompriest /alias fromgod fromgaia /alias toreagents topriest%;d2nw%; /alias fromreagents e2su%;frompriest /alias fetchr toreagents%;buyreagents%;fromreagents /alias buyreagents buy 500 tiny hammer%;buy 500 foxfire%;buy 10 bark%;buy 10 white cloth%;buy 5 silver%;buy 100 flint%;buy 1 phosphorous%;buy 1 mercury%;buy 20 dung%;buy 500 feather%;buy 500 iron rod%;buy 100 incense%;buy 100 vine /def guild_defense_check = /hpbar2 /if (!manaleech) /set manaleech 1.1%;/endif%; /def -t"^Invigorate-\>" rehp = /if (!combat) hp%;/endif%; /def guild_corpse = \ /if (mana< manamax*manaleech) \ /send y%;/gotcorpse%;hp%;\ /endif%; /def -t'^\[PARTY\] Buried: follow' afollow = follow buried /alias cy unwrap%;/send y%; /alias gc =give corpse to meslier /onoffvar affire 1 /onoffvar amed 1 /onoffvar ahaste 1 /onoffvar aoff 1 /def guild_pre_kill_hook /def guild_post_kill_hook = \ ; passist %{passist_member}%;\ /if (affire) ffire %{enemy}%;/endif%;\ /rehaste%;\ ;astrike%;\ ; bless%;beneficence%;\ ; gc%;keep all corpse%;\ ;asmite /def -t"^\s+\d+\) \([-|]+\) a preserved" count_corpses_servant = /set servant_corpses $[servant+corpses+1] /def -t"^The spell casting disrupts your meditation, and the spell fails!$" retry_spell = h2 p /def rehaste = \ /if (ahaste) \ /if (sp < 51) sp%;/endif%;\ haste%;\ /endif%; /def guild_kwon = /if (amed & !combat) /repeat -1 1 m%;/endif%; /def -aBCyellow -t"^You thank Maz as you complete your holy plan\.$" hplan2_finished /def -aBCred -t"^The spell casting disrupts your meditation, and the spell fails!$" med_recast = /send %% /onoffvar aguardian 1 /def -aBCred -t"^The guardian spell cast on ([A-Z][a-z]+) has worn off!$" guardiandown = \ /if (aguardian) \ /eval /set guarded $[tolower({P1})]%;\ guardian %{guarded}%;\ /endif%; /def -t"^([A-Z][a-z]+)'s health status: HP: \[(\d+)\/(\d+)\] SP: \[(\d+)\/(\d+)\]" guardian = \ /eval /set guarded $[tolower({P1})]%;\ /if ({P2} < {P3}*.8) invigorate %{guarded}%;/endif%;\ /if ({P4} < {P5}*.4) radiance %{guarded}%;/endif%; /def -t"^([A-Z][a-z]+)'s health status: HP: \[(\d+)\/(\d+)\] SP: \[(\d+)\/(\d+)\]" guardian = \ /eval /set guarded $[tolower({P1})]%;\ /if ({P2} < {P3}*.8) invigorate %{guarded}%;/endif%;\ /if ({P4} < {P5}*.4) radiance %{guarded}%;/endif%; /def -t"^Status of ([A-Z][a-z]+): (\d+)\/(\d+) hp +(\d+)\/(\d+) sp" hmon = \ /eval /set hmonned $[tolower({P1})]%;\ /if ({P2} < {P3}*.8) invigorate %{hmonned}%;/endif%;\ /if ({P4} < {P5}*.4) radiance %{hmonned}%;/endif%; ;Status of Buried: 463/3080 hp 2968/721 sp /def -F -t"^\[PARTY\] ([A-Z][a-z]+): sp$" party_sp = \ /if (awalk) /eval sp $[tolower({P1})]%;/endif%; /def -F -t"^\[PARTY\] ([A-Z][a-z]+): hp$" party_hp = \ /if (awalk) /eval h2 $[tolower({P1})]%;/endif%; /def -F -t"^(Xinaki|Untouchable|Buried|Saidar|Strong) attacks" passist_auto =\ /set passist_member $[tolower({P1})]%;\ /autojoin /def autojoin = \ /if (awalk & !combat & await)\ /eval /set randWait $[randcw(1000,9000000)]%;\ /blueecho ALERT: Waiting %{randWait} seconds.%;\ /eval /qrepeat _killing -%{randWait} 1 k%;\ /elseif (awalk & !combat)\ k%;\ /endif%; /def setminpiety = /eval /set minpiety $[rand(45,70)]%;/blueecho Next piss break: %{minpiety} piety. /setminpiety /def -t"^and begin meditating on the teachings of" uncon = contingency off /def -t"^You finish your meditation and stand up\.$" recon = /autospell%; /def -t"^The spell casting disrupts your meditation, and the spell fails!" recon2 = /autospell /def -t"breaks? your meditation!$" recon3 = /autospell /def -t"^You close your book and stand up, ready to do battle\.$" recon4 = /autospell /def autospell = /if (aoff) contingency on%;/endif%; /def -t"^You feel yourself slow back down to normal speed\.$" rehaste_midstream= /rehaste ; al your alignment align ; bark barkskin spell ON/OFF bark ; cl percent to next cleansing (XX%) cleanse ; cl2 percent to next cleansing (XX.XX%) cleanse2 ; cont contingency settings contingency ; dhp change in hit points hp ; dsp change in spell points sp ; fav favor favor ; hp hit pts hp ; invin number of invins left invin ; invin2 Invin num + Max % active invin invin2 ; mana mana/max mana mana ; mend mend count MND: ##/## mend ; mend1 mend count MND: [##/##|##%] mend ; mend2 mend count MND: ##/## [##%] mend ; mh monster health status monster ; mhl monster health status(long) monster ; mr mend reset % mend ; mrl morale morale ; pac paction settings paction ; pgx percent to next glvl (XX%) gxp ; pgxl percent to next glvl (XX.XX%) gxp ; pgxxl percent to next glvl (XX.XXX%) gxp ; prot protection spell ON/OFF prot ; pty piety percentage piety ; sp spell pts sp ; sto mana stored in your acolyte store ; vest vestment spell ON/OFF vest ; NL adds a carriage return /set diffh 100 /set maxdiffh 100 ;hpbar hp#sp#mana#pty#pgxxl#mh#NL#bark#vest#prot#cl /def -t"^HP: (\d+)\/(\d+) SP: (\d+)\/(\d+) MANA: (\d+)\/(\d+) PTY: \((\d+)%\) GXP%: \[([.0-9]+)%\] E: \[([^]]+)\]\s*$" hpbar = \ /set lasth %{hp}%;\ /set lasts %{sp}%;\ /set lastm %{mana}%;\ /set lastgxp %{gxp}%;\ /set hp %P1%;\ /set hpmax %P2%;\ /set sp %P3%;\ /set spmax %P4%;\ /set mana %P5%;\ /set manamax %P6%;\ /set piety %P7%;\ /if (piety < minpiety) /if (beseeches > 0 & piety < 60) beseech%;/else /set awalk 0%;/endif%;/endif%;\ /set gxp %{P8}%;\ /set combat_status %{P9}%;\ /if (combat_status =~ 'none') /set combat 0%;/else /set combat 1%;/endif%;\ /if (mana == manamax & sp < spmax*.5 & combat) sp%;/endif%;\ /set diffh $[-1*(lasth-hp)]%;\ /set diffs $[-1*(lasts-sp)]%;\ /set diffm $[-1*(lastm-mana)]%;\ /set diffg $[-1*(lastgxp-gxp)]%;\ /set totaldmg $[totaldmg+dealdmg]%;\ /set rounds $[rounds+1]%;\ /if (diffh < maxdiffh) /set maxdiffh $[diffh]%;/endif%;\ /eval /echo -p @{Ccyan}dh:%{diffh}(%{maxdiffh}) ds:%{diffs} dm:%{diffm} dg:%{diffg} Last:%{lastRounds}(%{lastTotalDmg}) Curr:%{rounds}(%{totaldmg}) Dealt:%{dealdmg}%;\ /set dealdmg=0%;\ /set hptyped 0 %;\ /if (mana < 175) \ ystock%;\ /endif%; ; /if (stepper & awalk & hp < hpmax*.30) \ ; gohome%;\ ; /endif%; /def -t"^You do not have enough mana to cast this spell\.$" low_mana_recover = ystock /alias sy =give corpse to meslier%;offer /alias restock /repeat -0 40 =get preservation%;/repeat -0 10 wrap%; /alias ystock cy%;/if (coffin) =give corpse to meslier%;wrap%;/endif%;/if (morgue) deslab%;y%;/endif%; /alias quit =drop all%;unwrap all%;/send quit ; auto-paction /alias ap /eval /set setheal $[abs(maxdiffh)+25]%;/if (setheal > 200) paction h at %{setheal}%;/endif%; /alias apr paction h at 200 /onoffvar abark 1 /onoffvar avest 1 /onoffvar aprot 1 /def -t"^BARK: (ON|OFF) VEST: (ON|OFF) PROT: (ON|OFF) CL: \[(\*)?[0-9]+%\]" hpbar2 = \ /set bark %P1%;\ /set vest %P2%;\ /set prot %P3%;\ /if (abark & bark =~ 'OFF' & sp > 50) barkskin%;/endif%;\ /if (avest & vest =~ 'OFF' & sp > 100) vestment%;/endif%;\ /if (aprot & prot =~ 'OFF' & sp > 150) protection%;/endif%;\ /if ({P4} !~ '') /set beseeches 1%;/else /set beseeches 0%;/endif /def -F -aBCyellow -t"^You offer the corpse up to" i_am_a_priest_corpse = /set nocorpses 0%;/gotcorpse ; ********************************* ALERT THE PARTY TO IMPENDING DOOM ************************ /def -F -t"^There is no corpse here to offer up" outofcorpses = /if (pcorpse & nocorpses < 5) /qrepeat _outofcorpses -1.9 1 ptell out of corpses%;/elseif (pcorpse & nocorpses > 4) ptell we're all gonna die%;/endif /def -t"^\[PARTY\] Meslier: out of corpses$" countdown_to_death = /eval /set nocorpses $[nocorpses+1] ; *************************************** MENDS *************************************** /def -t"^Maz's voice echoes: Your mends will reset soon\.$" autoimplore = \ /if (awalk) implore%;/endif%; /def -t"^From afar, ([A-Z][a-z]+) pokes you in the ribs\.$" mend_afar = \ /send mend $[tolower({P1})]%; /def -aCred -t"^\s+([A-Z][a-z]+)\s+(Changeling|Jedi|Juggernaut|Elemental|Necromancer|Gentech|Warder|Monk) (Standing On Death's Door|It's Just A Flesh Wound|Really Bleeding A Lot|Has Some Slight Bleeding|Bruised Up Pretty Bad)\s+[0-9]+" automend = \ /if ({P3} =~ "Standing On Death's Door") mend $[tolower({P1})]%;/endif%;\ mend $[tolower({P1})]%; /alias astrike hplan2 lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike/lstrike ; alias asmite hplan2 smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite/smite ; alias ahammer hplan2 hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer/hammer