Here is my try and its a good creation to nullify abusive spell users...
[spoiler]<?php
//adapted to md world
$instr['title'] = "Spell Immunity Potion";
//the description will be the only thing to describe the needed steps to the ones that try to help you prepare the recipe
//be sure you include all steps in it but tell it so that they wont be identical words with the steps defined below
$instr['description'] = "
First of all you need an empty bottle and a special water of luck found somewhere mix in some savage claws,a tree bark, nightshades, an egg of mystical property and the essence of a barren soul.Of course you have to pay a silver coin, a little price to pay for an amazing magical concoction.
";
//what words you want to use to start the preparing the recipe
$instr['startline'] = array(
"Lets brew some ".$instr['title'] => $instr['title'],
"Lets prepare some ".$instr['title']."" => $instr['title'],
"I want to make some ".$instr['title']."" => $instr['title'],
);
//what words you want to use to stop the process
$instr['endline'] = array(
"Stop concocting" => 'end_failed',
"Lets stop this " => 'end_failed',
"Thank you for using our service ".$instr['title']."" => 'end_success',
"This is going nowhere i give up" => 'end_frustration',
"Sweet Dreams!!!" => 'end_crazy',
);
//what are the texts for different steps or events
$instr['step_replies'] = array(
"start" => 'starts concocting potion',
"stop" => 'gives up concocting potion',
"current" => 'currently prepares '.$instr['title'],
"device" => 'cooking using the '.$item['Magic Cauldron'],
"end_success" => 'shouts happy: WE ARE DONE!',
"end_frustration" => 'is upset and stops cbrewing',
"end_failed" => 'stops concocting, recipe failed',
"end_crazy" => 'Start getting nightmares and wake up temporarily silenced, recipe failed',
"ingredients" => 'To prepare mystical concoction you need: %s ',
"ingredients_status" => 'We are currently preparing %s. We still need: %s. (Already provided: %s)',
"steps_status" => 'We are currently done with these steps: %s. We still need perform these steps: %s. ',
"1" => 'place knator claws',
"2" => 'Crack open elemental egg',
"3" => 'add lorerootian tree bark',
"4" => 'waits',
"5" => 'put fortune well's water ',
"6" => 'add deadly nightshade',
"7" => 'add barren soul's essence',
"8" => 'fire up the cauldron',
"9" => 'make a wish',
"10" => 'pour inside empty bottle'
"random" => 'sings LA LAAA LA..I have no clue what you mean',
"random numbers" => 'picks a random number: '.rand(1,99),
"description" => $item['name'].': '.$item['description'],
"provide_empty bottle" => "%s cleans the bottle",
"provide_deadlynightshade" => "%s offers the nightshade",
"provide_silvercoin" => "%s pays the needed silver",
"provide_knatorclaws" => "%s offers the claws",
"provide_barrensoul'sessence" => "%s offers the Essence",
"provide_lorerootiantreebark" => "%s gathered the Bark",
"provide_fortunewell'swater" => "%s brings the Water",
"provide_elementalegg" => "%s prepare for cracking (monstrous!!!)",
"provide_undefined_item" => "%s tries to offer something but its not perfectly clear what (%s)",
"provide_otherway_item" => "%s tries to offer something the wrong way (%s)",
"provide_existing_item" => "%s tries to offer something (%s) that is already provided",
);
//what phrases will it recognize and what step will it run (from above values)
//the more variations the better, think what people could say
//always use first person, not "RP" blue text third person line please
);
//NOT IN USE YET
$instr['step_actions'] = array(
"1" => 'start='.$instr['title'],
"2" => '',
"3" => '',
"4" => 'wait=3600',
"5" => '',
"6" => '',
"7" => '',
"8" => '',
"9" => 'wait=600',
"10" => '',
"11" => '',
);
//what lines should be used by participants to offer their resources for the preparation
//each line also has the target resources it will work on
//for example you could pour water, but install mechanisms
$instr['provide_ingredients'] = array(
"/I will provide the (.*)/is" => Elemental Egg,Barren Soul's Essence,Knator Claws,Deadly Nightshade,Lorerootian Tree Bark,Fortune Well's Water
"/I will bring the (.*)/is" => Empty Bottle,
"/Here are some (.*)/is" => 'Barren Soul's Essence,Fortune Well's Water',
"/Here is some (.*)/is" => 'Deadly Nightshade,Lorerootian Tree Bark,Knator Claws',
"/Here is a (.*)/is" => 'Silver Coin,Elemental Egg',
);
//what ingredients does this recipe require
//feel free to use existing resources or items but you can also invent new
//as long as they fit perfectly with md and the device
$instr['ingredients'] = "
Deadly Nightshade=1;
Elemental Egg=1;
Silver Coin=1;
Fortune Well's Water=5;
Empty Bottle=1;
Lorerootian Tree Bark=1;
Barren Soul's Essence=1;
";
[/spoiler]