| TinTin++ Mud Client Scripts |
|
|
| Spell Bot |
| The following script allows you to cast spells, selected from a list to be cast on someone, unless that person is on the block list. The forall is for muds that use honorifics before someone's name. Perhaps a bit difficult to understand, but only the variables need to be adjusted for the particular spells you want the character to cast. |
#nop This script is written for v1.99.7 and higher
#variable spellblock {{Someone}{1}}
#variable spells {{sanc}{cast sanctuary}{bless}{cast bless}{gs}{cast 'giant strength'}{heal}{cast heal}{help}{say I'll respond to sanc, bless, gs, and heal.}
#act {%1 says '%2'}
{
#if {$spellblock[%1]}
{
#return;
};
#if {&spells[%2]}
{
$spells[%2] %1
}
}
{9}
|