Tinyfugue

dogs:
/def -mregexp -t"YOURDOGNAMEGOESHERE \:\: HP\: ([0-9]+)\/([0-9]+) Happy\: ([0-9]+)\% Hungry\: ([0-9]+)% Level: ([0-9]+)\/([0-9]+)\%" doghpbar = /set dhp=%P1 %;/set dhpmax=%P2 %;/set dhappy=%P3 %;/set dhungry=%P4 %;/set dlevel=%P5 %;/set dexp=%P6 %;/dogcombat
/def dogcombat = /if (dhungry > 70) drop corpse%;dog feed%;/endif%;/if (dhappy < 97) dog pet %;/endif

Damage stat reporter for numbers perk.
type ‘ds’ to see your stats!

/def -mregexp -t"You hit (.+) ([0-9]+) time(s?) for ([0-9]+) damage\." damagetracker = /test totalrounds := totalrounds+1%;/test totalhits := totalhits+%P2%;/test totaldamage := totaldamage+%P4 /def damagestats = /test averageperround := totaldamage/totalrounds%;/test averageperhit := totaldamage/totalhits%;/echo Average damage over %totalrounds rounds - %averageperround (%averageperhit per hit) /def -h"SEND ds" ds = /damagestats

For more accuracy move:

/test totalrounds := totalrounds+1

to your HPBar grabber.

AUTO FRAGMENT/ESSENCE CONDENSER

To enable/disable use the variable ‘afrag’.

/def -mregexp -t" What luck! You have found a(?:n|) ([a-z]+) ([a-z]+) of ([a-z\s]+)!" afrag = /if (afrag) %;/let quality=%P1%;/let size=%P2%;/let type=%P3%;!stashlist $[tolower({quality})] $[tolower({size})] of $[replace("_", " ", tolower(replace(" ", "_", {type})))]%;/endif

/def -mregexp -t"(Fragment|Essence|Heart) Of (Ascension|Blasting|Compassion|Damnation|Destruction|Knowledge|Light|Might|Rage|Rejuvenation|Shadow|Soul|The Unseen|Water|Willy)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|" autofrag = /let size=%P1%;/let type=$[replace(" ", "_", {P2})]%;/set total%size%type=%P3%;/set legendary%size%type=%P4%;/set superior%size%type=%P5%;/set good%size%type=%P6%;/set average%size%type=%P7%;/set poor%size%type=%P8%;/set crude%size%type=%P9%;/set worthless%size%type=%P10%;/if (afrag & size !~ "Heart") /def afragtemp = /if (legendary%size%type > 4) /repeat -S 5 !unstash legendary $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (superior%size%type > 4) /repeat -S 5 !unstash superior $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (good%size%type > 4) /repeat -S 5 !unstash good $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (average%size%type > 4) /repeat -S 5 !unstash average $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (poor%size%type > 4) /repeat -S 5 !unstash poor $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (crude%size%type > 4) /repeat -S 5 !unstash crude $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (worthless%size%type > 4) /repeat -S 5 !unstash worthless $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/endif

AUTOCON

Set the following variables:

cdonate = boolean (1 or 0). Use this to enable and disable the contribute script.
coindonatelimit = integer. Use this to set the amount of coins on hand to autocon
conper = integer from 1 to 100 representing a percentage. Use this to randomize your donations and only con <conper> percent of the time.

I recommend that you put /autocon into your HP bar trigger to spread donations out through combat.

/set coindonatelimit=10000 /set conper=50 /def autocon = /test randcon := rand(1,100) %;/if (coins > coindonatelimit & cdonate & conper >= randcon) con 100%;/elseif (worth < 125) /if (worth > 120) con 10%;/else /test conamt := 100-((worth-75)*2)%;con %conamt%;/unset conamt%;/endif%;/endif

To easily enable/disable autocon:
/def donateon = /set cdonate=1 /def donateoff = /set cdonate=0
And to track coins donated with your familiar:
/def -t"*You hand 100 coins to <INSERT FAMILIAR MESSAGE HERE>*" familiarcon = /test coins := coins-100

;--------------;
; KNIGHT GUILD ;
;--------------;
;combat engine trigger
/def -mregexp -t"^HP:([0-9]+)\/([0-9]+) \| SP:([0-9]+)\/([0-9]+) \| STM:([0-9]+)\/([0-9]+) \| STN:([0-9]+)\%\(([0-9]+)\) \| SW:([0-9|\.]+)\%" hpbar = /set hp=%P1 %;/set hpmax=%P2 %;/set sp=%P3 %;/set spmax=%P4 %;/set stamina=%P5 %;/set staminamax=%P6 %;/set strainper=%P7 %;/set strain=%P8 %;/set secondwind=%P9 %; /knightcombat

/def -ag -t"*You are not bleeding from any wounds."
/def -ag -t"*Your wounds are not so severe as to require staunching."
/def -ag -t"Your body reacts with: staunch."
/def -ag -t"*You can't rest during combat.*"
/def -ag -t"> You are already resting.*"
/def -ag -t"> You have no damaged pieces of armour -- there is nothing to repair.*"
/def -ag -t"> You have no need to use your willpower at this point in time."
/def -ag -t"*> You staunch the flow of blood from some of your more serious injuries.*" triggedstaunch
/def -ag -t"*> You grit your teeth and use mind over matter to overcome fatigue.*" triggedwill

/def -t"*Through the force of your convictions you convince*" truced = /refresh
/def -t"*The battle-cry echoes through the room before slowly fading away.*" bcryfailed = /refresh
/def -t"*Your powers of persuasion fail to bring about peace.*" trucefailed = !truce ;

/def -t"*== Knight Score ==*" gs = !esq look at <TARGET>

/def -t"*You will need some tinder to build a fire.*" attemptsmuggle = !smuggle remove tinder%;/set smuggleattempted=1
/def -t"*You unsmuggle: Campfire tinder*" attemptcampfire = /if (smuggleattempted) !campfire%;/set smuggleattempted=0 %;/endif
/def -t"*smuggle smuggle smuggle*" resetsmuggle = /set smuggleattempted=0

/def -t"<YOURNAME>'s campfire." campfirerest = /refresh

/def -t"*Shifting into a more offensive stance, you swear upon your honour to engage*" offenseivemode = !study on%;!bcry
/def -t"*You remove your shield in order to use focus." focusshield = !prepare on
/def -t"*Changing your stance has effected your armour configuration.  You should*" preparestance = !prepare on

/def hmrefresh = /repeat -S 30 !will%;!hmheal ;hamstring

;hamstring -- make a 'recurhamstring' mudisde alias for 'hamstring'
/def -p1 -mregexp -h'SEND ^hamstring *' hamstringhook = /set hamstringtarget=%PR%;/set hamstringon=1%;/hamstring
/def -t"*completely crippling*" hamstringfinished = /set hamstringon=0
/def -t"*No such monster here.*" hamstringfailed = /set hamstringon=0
/def hamstring = /if (hamstringon) !recurhamstring %hamstringtarget%;/endif
/def -t"*hamstrings, but it is too nimble, and darts away!*" hamstringnimbleit = /hamstring
/def -t"*hamstrings, but he is too nimble, and darts away!*" hamstringnimblehim = /hamstring
/def -t"*hamstrings, but she is too nimble, and darts away!*" hamstringnimbleher = /hamstring
/def -t"*hamstrings, lightly wounding its!" hamstringits = /hamstring
/def -t"*hamstrings, lightly wounding his!" hamstringhis = /hamstring
/def -t"*hamstrings, lightly wounding her!" hamstringhers = /hamstring

;combat engine
/def knightcombat = /talismanuse%;/knighthpmon%;/knightspmon%;/if ((secondwindon) & secondwind>=75 & (stamina <= staminamax * windamount)) !secondwind%;/set secondwindfired=1%;/endif%;/islethcombat%;/playeractions%;/garnthax
/def knightspmon = /if (sp<spmax-120 & spmaintain) !peace%;/endif%;/if (sp > spmax*5-90 & stamina <= staminamax - 200) !will%;!will%;/endif%;/redaxewill
/def knighthpmon = /if (hp <= hpmax * 0.80) !staunch%;/endif%;/if (toughmob) !staunch%;!staunch%;/endif

/def playeractions

;rest
/def -t"*You will now begin recuperating from battle.*" resting = !arepair all%;/if ((spmax - sp) >= ((staminamax - stamina) / 100) & restwill) !will %;/endif ;chalice of tarin ;
/def -t"*The Chalice of Tarin is full once more." chalicereset = /set chalicewait=0

;shine shield
/def -t"The mystical light around your shield fades away." shieldshinerepeat =
/def -F -q -h"SEND *" shineshieldhook = /undef shineshieldhook%%;!shine on

;rod of garnthax
/def -t"*Activating hit point pulse.*" rodhpon = /set rodhpstat=1
/def -t"*Activating spell point pulse.*" rodspon = /set rodspstat=1
/def -t"*Deactivating hit point pulse.*" rodhpoff = /set rodhpstat=0
/def -t"*Deactivating spell point pulse.*" rodspoff = /set rodspstat=0
/def -t"*No more spell points stored in the Rod.*" = /set rodspstat=0%;/set rodsp=0
/def garnthax = /if (sp > spmax-110 & rodspstat) !will%;/endif
/def fillh = fillh 1000%;/if ('knight' =~ guild) /repeat -S 4 staunch %;/endif
/def fills = fills 700%;/if ('knight' =~ guild) /repeat -S 7 peace %;/endif

Leave a Reply