Various ideas and scripts

Always use a ^(an anchor) before your triggers when you need to make a trigger that starts on a new line. Like when you want to make a trigger for You are hungry. An anchor is used to keep other players from abusing your scripts. If you do not use an anchor and you have a trigger on You are hungry you will eat every time You are hungry is on the screen.
<100hp 50ma 125mv>
You are hungry.
<100hp 50ma 125mv>
Sarge gossips -'You are hungry.'
<100hp 50ma 125mv>
Now if you have used your ^ on your trigger for you are hungry you will only try and eat on the first example. If you do not use the ^ you will eat on the first example and the second of Sarge gossips -'You are hungry.'
An alias is a shortcut so that you do not need to type out a full line of text everytime. An example of an alias that is often used is:
#ALIAS ws {wake;stand}
Instead of typing wake and then hitting the Enter key and then stand and the Enter key you just hit ws then Enter.
Here are a few useful aliases.
#ALIAS rr {recite recall}
#ALIAS gt {grouptell}
#ALIAS gac {get all corpse}
#ALIAS dt {cast 'detect invisibility'}
--------------------------------------------------------------------------------
When ever you get coins from a corpse and this is turned on it will split the coins with everyone in your group. Even if you are the only one in the group this will split the coins every time you get them from something.
Auto Split:
#TRIGGER {^There were (%d) coins.} {split %1} "autosplit"
#ALIAS autosplitoff {#t- autosplit;gt Autosplit Off!}
#ALIAS autospliton {#t- autosplit;gt Autosplit On!}
--------------------------------------------------------------------------------
During a big battle in the arena or while reading a spellbook you may not want to take the time to eat and drink until a later time.
Auto Eat Drink:
#VAR cont {drink container keyword here} "food"
#VAR fcont {food container keyword here} "food"
#TRIGGER {^You are hungry.}{wake;get food @fcont;eat food} "food"
#TRIGGER {^You are thirsty.} {wake;drink @cont}"food"
#ALIAS cont {#var cont %1}"food"
#ALIAS fcont {#var fcont %1}"food"
#ALIAS autofoodoff {#t- food;gt Auto Eat/Drink Off!}
#ALIAS autofoodon {#t+ food;gt Auto Eat/Drink On!}
--------------------------------------------------------------------------------
Tired of missing tells in the middle of battle or when you are away from the keyboard?
Capture Tells into another window:
#TRIGGER {tells you '} {#CAP tell} "captell"
#ALIAS captellon {#t+ captell}
#ALIAS captelloff {#t- captell}
--------------------------------------------------------------------------------
This Trigger is very useful to a tank. Just use the maxhps Alias to set your Max hps and turn the whiner on and your all set.
Tank Whiner:
#TRIGGER {^~<(%d)hp (%d)ma (%d)mv>} {#var hp %1;#math curhps {@hp - @oldhps};
#IF {@curhps < 0} { gt Yourname has @hp/@maxhps Ouch! @curhps};
#IF {@curhps > 0} { gt Yourname has @hp/@maxhps Ahh! @curhps};
#var oldhps {@hp}} "whiner" {nocr|prompt}"whiner"
#VAR hp {0} "whiner"
#VAR curhps {0} "whiner"
#VAR oldhps {0} "whiner"
#ALIAS maxhps {#var maxhps %1}"whiner"
#ALIAS whineroff {#t- whiner;gt I will now not whine when hit!!}"whiner"
#ALIAS whineron {#t+ whiner;gt I will now whine when I get hit!!}"whiner"
--------------------------------------------------------------------------------
AutoLooter for when your solo or leading a group:
#TRIGGER {^Total exp for kill is (*)} {get all corpse;sac corpse} "gacsacsolo"
#ALIAS gacsacsolo1 {#t+ gacsacsolo; gt I am now GAC'N and SAC'N!}
#ALIAS gacsacsolo0 {#t- gacsacsolo; gt I am now no longer GAC'N and SAC'N!}
--------------------------------------------------------------------------------
Autolooter for when your in a group:
#TRIGGER {You receive (%d) experience points as your share.} {get all corpse;sac corpse} "gacsac"
#ALIAS gacsac1 {#t+ gacsac; gt I am now GAC'N and SAC'N!}
#ALIAS gacsac0 {#t- gacsac; gt I am now no longer GAC'N and SAC'N!}
--------------------------------------------------------------------------------
Spec Messages
#TRIGGER {^You cut off (*)} {#AD spec 1;specit} "spec"
#VAR spec {0} {_nodef} "spec"
#ALIAS clearspecit {#var spec 0} "spec"
#ALIAS specit {#if {@spec = 1} {say CHOP CHOP!};
#if {@spec = 2} {emote watches the limbs fly!};
#if {@spec = 3} {say OH THATS GOTTA HURT!!!!!!!};
#if {@spec = 4} {say IT'S JUST A FLESH WOUND!!};
#if {@spec = 5} {emote stomps on the floor chanting.;emote chants 'WE WILL! WE WILL CHOP YOU!!!';clearspecit}} "spec"
#ALIAS specmessoff {#t- spec;gt I will no longer badmouth the spec mobs}
#ALIAS specmesson {#t+ spec;gt I will now badmouth the spec mobs}
--------------------------------------------------------------------------------
HealO
#VAR heal1 0
#VAR heal2 0
#VAR heal3 0
#VAR heal3 0
#VAR heal4 0
#VAR heal5 0
#VAR float1 0
#ALIAS heal1 {#var heal1 %1}
#ALIAS heal2 {#var heal2 %1}
#ALIAS heal3 {#var heal3 %1}
#ALIAS heal4 {#var heal4 %1}
#ALIAS heal5 {#var heal5 %1}
#ALIAS float1 {#var float1 %1}
#ALIAS healorder {gt HEAL ORDER -- @heal1, @heal2, @heal3, @heal4, @heal5 FLOATER: @float1}
#TRIGGER {HEAL0} {healorder} "healo" {case}
#ALIAS healoon {t+ healo}
#ALIAS healooff {t- healo}
--------------------------------------------------------------------------------
<100hp 50ma 125mv>
You are hungry.
<100hp 50ma 125mv>
Sarge gossips -'You are hungry.'
<100hp 50ma 125mv>
Now if you have used your ^ on your trigger for you are hungry you will only try and eat on the first example. If you do not use the ^ you will eat on the first example and the second of Sarge gossips -'You are hungry.'
An alias is a shortcut so that you do not need to type out a full line of text everytime. An example of an alias that is often used is:
#ALIAS ws {wake;stand}
Instead of typing wake and then hitting the Enter key and then stand and the Enter key you just hit ws then Enter.
Here are a few useful aliases.
#ALIAS rr {recite recall}
#ALIAS gt {grouptell}
#ALIAS gac {get all corpse}
#ALIAS dt {cast 'detect invisibility'}
--------------------------------------------------------------------------------
When ever you get coins from a corpse and this is turned on it will split the coins with everyone in your group. Even if you are the only one in the group this will split the coins every time you get them from something.
Auto Split:
#TRIGGER {^There were (%d) coins.} {split %1} "autosplit"
#ALIAS autosplitoff {#t- autosplit;gt Autosplit Off!}
#ALIAS autospliton {#t- autosplit;gt Autosplit On!}
--------------------------------------------------------------------------------
During a big battle in the arena or while reading a spellbook you may not want to take the time to eat and drink until a later time.
Auto Eat Drink:
#VAR cont {drink container keyword here} "food"
#VAR fcont {food container keyword here} "food"
#TRIGGER {^You are hungry.}{wake;get food @fcont;eat food} "food"
#TRIGGER {^You are thirsty.} {wake;drink @cont}"food"
#ALIAS cont {#var cont %1}"food"
#ALIAS fcont {#var fcont %1}"food"
#ALIAS autofoodoff {#t- food;gt Auto Eat/Drink Off!}
#ALIAS autofoodon {#t+ food;gt Auto Eat/Drink On!}
--------------------------------------------------------------------------------
Tired of missing tells in the middle of battle or when you are away from the keyboard?
Capture Tells into another window:
#TRIGGER {tells you '} {#CAP tell} "captell"
#ALIAS captellon {#t+ captell}
#ALIAS captelloff {#t- captell}
--------------------------------------------------------------------------------
This Trigger is very useful to a tank. Just use the maxhps Alias to set your Max hps and turn the whiner on and your all set.
Tank Whiner:
#TRIGGER {^~<(%d)hp (%d)ma (%d)mv>} {#var hp %1;#math curhps {@hp - @oldhps};
#IF {@curhps < 0} { gt Yourname has @hp/@maxhps Ouch! @curhps};
#IF {@curhps > 0} { gt Yourname has @hp/@maxhps Ahh! @curhps};
#var oldhps {@hp}} "whiner" {nocr|prompt}"whiner"
#VAR hp {0} "whiner"
#VAR curhps {0} "whiner"
#VAR oldhps {0} "whiner"
#ALIAS maxhps {#var maxhps %1}"whiner"
#ALIAS whineroff {#t- whiner;gt I will now not whine when hit!!}"whiner"
#ALIAS whineron {#t+ whiner;gt I will now whine when I get hit!!}"whiner"
--------------------------------------------------------------------------------
AutoLooter for when your solo or leading a group:
#TRIGGER {^Total exp for kill is (*)} {get all corpse;sac corpse} "gacsacsolo"
#ALIAS gacsacsolo1 {#t+ gacsacsolo; gt I am now GAC'N and SAC'N!}
#ALIAS gacsacsolo0 {#t- gacsacsolo; gt I am now no longer GAC'N and SAC'N!}
--------------------------------------------------------------------------------
Autolooter for when your in a group:
#TRIGGER {You receive (%d) experience points as your share.} {get all corpse;sac corpse} "gacsac"
#ALIAS gacsac1 {#t+ gacsac; gt I am now GAC'N and SAC'N!}
#ALIAS gacsac0 {#t- gacsac; gt I am now no longer GAC'N and SAC'N!}
--------------------------------------------------------------------------------
Spec Messages
#TRIGGER {^You cut off (*)} {#AD spec 1;specit} "spec"
#VAR spec {0} {_nodef} "spec"
#ALIAS clearspecit {#var spec 0} "spec"
#ALIAS specit {#if {@spec = 1} {say CHOP CHOP!};
#if {@spec = 2} {emote watches the limbs fly!};
#if {@spec = 3} {say OH THATS GOTTA HURT!!!!!!!};
#if {@spec = 4} {say IT'S JUST A FLESH WOUND!!};
#if {@spec = 5} {emote stomps on the floor chanting.;emote chants 'WE WILL! WE WILL CHOP YOU!!!';clearspecit}} "spec"
#ALIAS specmessoff {#t- spec;gt I will no longer badmouth the spec mobs}
#ALIAS specmesson {#t+ spec;gt I will now badmouth the spec mobs}
--------------------------------------------------------------------------------
HealO
#VAR heal1 0
#VAR heal2 0
#VAR heal3 0
#VAR heal3 0
#VAR heal4 0
#VAR heal5 0
#VAR float1 0
#ALIAS heal1 {#var heal1 %1}
#ALIAS heal2 {#var heal2 %1}
#ALIAS heal3 {#var heal3 %1}
#ALIAS heal4 {#var heal4 %1}
#ALIAS heal5 {#var heal5 %1}
#ALIAS float1 {#var float1 %1}
#ALIAS healorder {gt HEAL ORDER -- @heal1, @heal2, @heal3, @heal4, @heal5 FLOATER: @float1}
#TRIGGER {HEAL0} {healorder} "healo" {case}
#ALIAS healoon {t+ healo}
#ALIAS healooff {t- healo}
--------------------------------------------------------------------------------