Bar Script (Randomized) v2

By CrazyDriver on May 30, 2017

Hello All,

As previously said in my v1 script that in the v2 script will allow users to either Give Themselves or Give Others and this was accomplished!

I have changed the cool down from 30 Seconds to 10 seconds and removed the .timer 1 3 as it wasn't really needed!

Hope you like it and feel free to add other items to the list!

Bar Script (Randomized) v1: http://hawkee.com/snippet/18431/

Commands

!bar or !bar
!appetizer or !appetizer (124 Items)
!food or !food (25 Items)
!fruit or !fruit (24 Items)
!desert or !desert (12 Items)
!drink or !drink (66 Items)
!juice or !juice (14 Items)
!hdrink or !hdrink (37 Items)
!sdrink or !sdrink (14 Items)
!snack or !snack (8 Items)

on *:TEXT:*!bar*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!bar0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(bar,$1-,/!bar\s+\W*(\w+)/)) { var %name $regml(bar,1) }
  if (%name) {
    .notice $2 15| 8Welcome To $me Bar! 15|
    .notice $2 4!0appetizer (124 Items) 7|| 4!0food (25 Items) 7|| 4!0fruit (24 Items) 7|| 4!0desert (12 Items) 7|| 4!0drink (66 Items) 7|| 4!0juice (14 Items) 7|| 4!0hdrink (37 Items) 7|| 4!0sdrink (14 Items) 7|| 4!0snack (8 Items)
  }
  else {
    .notice $nick 15| 8Welcome To $me Bar! 15|
    .notice $nick 4!0appetizer (124 Items) 7|| 4!0food (25 Items) 7|| 4!0fruit (24 Items) 7|| 4!0desert (12 Items) 7|| 4!0drink (66 Items) 7|| 4!0juice (14 Items) 7|| 4!0hdrink (37 Items) 7|| 4!0sdrink (14 Items) 7|| 4!0snack (8 Items)
  }
}

on *:TEXT:*!appetizer*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!appetizer0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(appetizer,$1-,/!appetizer\s+\W*(\w+)/)) { var %name $regml(appetizer,1) }
  if (%name) {
    var %appetizer $rand(1,124)
    if (%appetizer == 1) { describe $chan gives $2 a plate of Aborrajado }
    if (%appetizer == 2) { describe $chan gives $2 a plate of Amuse-bouche }
    if (%appetizer == 3) { describe $chan gives $2 a plate of Angels on Horseback }
    if (%appetizer == 4) { describe $chan gives $2 a plate of Anju }
    if (%appetizer == 5) { describe $chan gives $2 a plate of Antipasto }
    if (%appetizer == 6) { describe $chan gives $2 a plate of Arab salad }
    if (%appetizer == 7) { describe $chan gives $2 a plate of Baba ghanoush }
    if (%appetizer == 8) { describe $chan gives $2 a plate of Banchan }
    if (%appetizer == 9) { describe $chan gives $2 a plate of Barbajuan }
    if (%appetizer == 10) { describe $chan gives $2 a plate of Beer Cheese }
    if (%appetizer == 11) { describe $chan gives $2 a plate of Beignet }
    if (%appetizer == 12) { describe $chan gives $2 a plate of Bhaji }
    if (%appetizer == 13) { describe $chan gives $2 a plate of Bichak }
    if (%appetizer == 14) { describe $chan gives $2 a plate of Blooming onion }
    if (%appetizer == 15) { describe $chan gives $2 a plate of Boquerones en vinagre }
    if (%appetizer == 16) { describe $chan gives $2 a plate of Bottarga }
    if (%appetizer == 17) { describe $chan gives $2 a plate of Bruschetta }
    if (%appetizer == 18) { describe $chan gives $2 a plate of Buffalo wing }
    if (%appetizer == 19) { describe $chan gives $2 a plate of Cachapa }
    if (%appetizer == 20) { describe $chan gives $2 a plate of Canapé }
    if (%appetizer == 21) { describe $chan gives $2 a plate of Carpaccio }
    if (%appetizer == 22) { describe $chan gives $2 a plate of Cerveza preparada }
    if (%appetizer == 23) { describe $chan gives $2 a plate of Chaat }
    if (%appetizer == 24) { describe $chan gives $2 a plate of Chapli kebab }
    if (%appetizer == 25) { describe $chan gives $2 a plate of Chawanmushi }
    if (%appetizer == 26) { describe $chan gives $2 a plate of Chicken fingers }
    if (%appetizer == 27) { describe $chan gives $2 a plate of Chicken lollipop }
    if (%appetizer == 28) { describe $chan gives $2 a plate of Chiko Roll }
    if (%appetizer == 29) { describe $chan gives $2 a plate of Chile con queso }
    if (%appetizer == 30) { describe $chan gives $2 a plate of Chippi appam }
    if (%appetizer == 31) { describe $chan gives $2 a plate of Corn tortilla }
    if (%appetizer == 32) { describe $chan gives $2 a plate of Crab puff }
    if (%appetizer == 33) { describe $chan gives $2 a plate of Crab Rangoon }
    if (%appetizer == 34) { describe $chan gives $2 a plate of Croline }
    if (%appetizer == 35) { describe $chan gives $2 a plate of Crostino }
    if (%appetizer == 36) { describe $chan gives $2 a plate of Crudités }
    if (%appetizer == 37) { describe $chan gives $2 a plate of Dag Meoushan }
    if (%appetizer == 38) { describe $chan gives $2 a plate of Devils on horseback }
    if (%appetizer == 39) { describe $chan gives $2 a plate of Egg drop soup }
    if (%appetizer == 40) { describe $chan gives $2 a plate of Egg roll }
    if (%appetizer == 41) { describe $chan gives $2 a plate of Eggplant salads and appetizers }
    if (%appetizer == 42) { describe $chan gives $2 a plate of Fattoush }
    if (%appetizer == 43) { describe $chan gives $2 a plate of Fried mushrooms }
    if (%appetizer == 44) { describe $chan gives $2 a plate of Fruit salad }
    if (%appetizer == 45) { describe $chan gives $2 a plate of Ful medames }
    if (%appetizer == 46) { describe $chan gives $2 a plate of Garlic knot }
    if (%appetizer == 47) { describe $chan gives $2 a plate of Gỏi cuốn }
    if (%appetizer == 48) { describe $chan gives $2 a plate of Gravlax }
    if (%appetizer == 49) { describe $chan gives $2 a plate of Hors d'oeuvre }
    if (%appetizer == 50) { describe $chan gives $2 a plate of Hummus }
    if (%appetizer == 51) { describe $chan gives $2 a plate of Israeli eggplant salad }
    if (%appetizer == 52) { describe $chan gives $2 a plate of Jalapeño popper }
    if (%appetizer == 53) { describe $chan gives $2 a plate of Jiaozi }
    if (%appetizer == 54) { describe $chan gives $2 a plate of Kab yob }
    if (%appetizer == 55) { describe $chan gives $2 a plate of Kati roll }
    if (%appetizer == 56) { describe $chan gives $2 a plate of Kaymak }
    if (%appetizer == 57) { describe $chan gives $2 a plate of Kibbeh }
    if (%appetizer == 58) { describe $chan gives $2 a plate of Kibbeh nayyeh }
    if (%appetizer == 59) { describe $chan gives $2 a plate of Lumpia }
    if (%appetizer == 60) { describe $chan gives $2 a plate of Makdous }
    if (%appetizer == 61) { describe $chan gives $2 a plate of Matbukha }
    if (%appetizer == 62) { describe $chan gives $2 a plate of Meze }
    if (%appetizer == 63) { describe $chan gives $2 a plate of Mirza Ghassemi }
    if (%appetizer == 64) { describe $chan gives $2 a plate of Mozzarella sticks }
    if (%appetizer == 65) { describe $chan gives $2 a plate of Msabbaha }
    if (%appetizer == 66) { describe $chan gives $2 a plate of Muhammara }
    if (%appetizer == 67) { describe $chan gives $2 a plate of Nachos }
    if (%appetizer == 68) { describe $chan gives $2 a plate of Nadur Monji }
    if (%appetizer == 69) { describe $chan gives $2 a plate of Nem nướng }
    if (%appetizer == 70) { describe $chan gives $2 a plate of Chả giò }
    if (%appetizer == 71) { describe $chan gives $2 a plate of Nokul }
    if (%appetizer == 72) { describe $chan gives $2 a plate of Obložené chlebíčky }
    if (%appetizer == 73) { describe $chan gives $2 a plate of Onion ring }
    if (%appetizer == 74) { describe $chan gives $2 a plate of Oysters en brochette }
    if (%appetizer == 75) { describe $chan gives $2 a plate of Papa a la Huancaína }
    if (%appetizer == 76) { describe $chan gives $2 a plate of Pickled cucumber }
    if (%appetizer == 77) { describe $chan gives $2 a plate of Pincho }
    if (%appetizer == 78) { describe $chan gives $2 a plate of Pissaladière }
    if (%appetizer == 79) { describe $chan gives $2 a plate of Pizzetta }
    if (%appetizer == 80) { describe $chan gives $2 a plate of Pogača }
    if (%appetizer == 81) { describe $chan gives $2 a plate of Poke (Fish Salad) }
    if (%appetizer == 82) { describe $chan gives $2 a plate of Potato skins }
    if (%appetizer == 83) { describe $chan gives $2 a plate of Potato wedges }
    if (%appetizer == 84) { describe $chan gives $2 a plate of Prawn cocktail }
    if (%appetizer == 85) { describe $chan gives $2 a plate of Préfou }
    if (%appetizer == 86) { describe $chan gives $2 a plate of Pu pu platter }
    if (%appetizer == 87) { describe $chan gives $2 a plate of Queso flameado }
    if (%appetizer == 88) { describe $chan gives $2 a plate of Rambak petis }
    if (%appetizer == 89) { describe $chan gives $2 a plate of Rissole }
    if (%appetizer == 90) { describe $chan gives $2 a plate of Rocky Mountain oysters }
    if (%appetizer == 91) { describe $chan gives $2 a plate of Rumaki }
    if (%appetizer == 92) { describe $chan gives $2 a plate of S.O.S. }
    if (%appetizer == 93) { describe $chan gives $2 a plate of Saganaki }
    if (%appetizer == 94) { describe $chan gives $2 a plate of Salmon tartare }
    if (%appetizer == 95) { describe $chan gives $2 a plate of Seven-layer dip }
    if (%appetizer == 96) { describe $chan gives $2 a plate of Shami kebab }
    if (%appetizer == 97) { describe $chan gives $2 a plate of Shopska salad }
    if (%appetizer == 98) { describe $chan gives $2 a plate of Small plates }
    if (%appetizer == 99) { describe $chan gives $2 a plate of Smoked salmon cheesecake }
    if (%appetizer == 100) { describe $chan gives $2 a plate of Snow white salad }
    if (%appetizer == 101) { describe $chan gives $2 a plate of Sour cherry soup }
    if (%appetizer == 102) { describe $chan gives $2 a plate of Spanakopita }
    if (%appetizer == 103) { describe $chan gives $2 a plate of Spring roll }
    if (%appetizer == 104) { describe $chan gives $2 a plate of Squid as food }
    if (%appetizer == 105) { describe $chan gives $2 a plate of Squid cocktail }
    if (%appetizer == 106) { describe $chan gives $2 a plate of Sujuk }
    if (%appetizer == 107) { describe $chan gives $2 a plate of Tabbouleh }
    if (%appetizer == 108) { describe $chan gives $2 a plate of Tapas }
    if (%appetizer == 109) { describe $chan gives $2 a plate of Tastet }
    if (%appetizer == 110) { describe $chan gives $2 a plate of Thattai (Indian food) }
    if (%appetizer == 111) { describe $chan gives $2 a plate of Tikka }
    if (%appetizer == 112) { describe $chan gives $2 a plate of Tiropita }
    if (%appetizer == 113) { describe $chan gives $2 a plate of Toasted ravioli }
    if (%appetizer == 114) { describe $chan gives $2 a plate of Tokwa’t baboy }
    if (%appetizer == 115) { describe $chan gives $2 a plate of Tongue toast }
    if (%appetizer == 116) { describe $chan gives $2 a plate of Tursu }
    if (%appetizer == 117) { describe $chan gives $2 a plate of Tostada (Tortilla) }
    if (%appetizer == 118) { describe $chan gives $2 a plate of Tzatziki }
    if (%appetizer == 119) { describe $chan gives $2 a plate of Vol-au-vent }
    if (%appetizer == 120) { describe $chan gives $2 a plate of Vorschmack }
    if (%appetizer == 121) { describe $chan gives $2 a plate of Wheat tortilla }
    if (%appetizer == 122) { describe $chan gives $2 a plate of Xiaochi }
    if (%appetizer == 123) { describe $chan gives $2 a plate of Zakuski }
    if (%appetizer == 124) { describe $chan gives $2 a plate of Zarangollo }
  }
  else {
    var %appetizer $rand(1,124)
    if (%appetizer == 1) { describe $chan gives $nick a plate of Aborrajado }
    if (%appetizer == 2) { describe $chan gives $nick a plate of Amuse-bouche }
    if (%appetizer == 3) { describe $chan gives $nick a plate of Angels on Horseback }
    if (%appetizer == 4) { describe $chan gives $nick a plate of Anju }
    if (%appetizer == 5) { describe $chan gives $nick a plate of Antipasto }
    if (%appetizer == 6) { describe $chan gives $nick a plate of Arab salad }
    if (%appetizer == 7) { describe $chan gives $nick a plate of Baba ghanoush }
    if (%appetizer == 8) { describe $chan gives $nick a plate of Banchan }
    if (%appetizer == 9) { describe $chan gives $nick a plate of Barbajuan }
    if (%appetizer == 10) { describe $chan gives $nick a plate of Beer Cheese }
    if (%appetizer == 11) { describe $chan gives $nick a plate of Beignet }
    if (%appetizer == 12) { describe $chan gives $nick a plate of Bhaji }
    if (%appetizer == 13) { describe $chan gives $nick a plate of Bichak }
    if (%appetizer == 14) { describe $chan gives $nick a plate of Blooming onion }
    if (%appetizer == 15) { describe $chan gives $nick a plate of Boquerones en vinagre }
    if (%appetizer == 16) { describe $chan gives $nick a plate of Bottarga }
    if (%appetizer == 17) { describe $chan gives $nick a plate of Bruschetta }
    if (%appetizer == 18) { describe $chan gives $nick a plate of Buffalo wing }
    if (%appetizer == 19) { describe $chan gives $nick a plate of Cachapa }
    if (%appetizer == 20) { describe $chan gives $nick a plate of Canapé }
    if (%appetizer == 21) { describe $chan gives $nick a plate of Carpaccio }
    if (%appetizer == 22) { describe $chan gives $nick a plate of Cerveza preparada }
    if (%appetizer == 23) { describe $chan gives $nick a plate of Chaat }
    if (%appetizer == 24) { describe $chan gives $nick a plate of Chapli kebab }
    if (%appetizer == 25) { describe $chan gives $nick a plate of Chawanmushi }
    if (%appetizer == 26) { describe $chan gives $nick a plate of Chicken fingers }
    if (%appetizer == 27) { describe $chan gives $nick a plate of Chicken lollipop }
    if (%appetizer == 28) { describe $chan gives $nick a plate of Chiko Roll }
    if (%appetizer == 29) { describe $chan gives $nick a plate of Chile con queso }
    if (%appetizer == 30) { describe $chan gives $nick a plate of Chippi appam }
    if (%appetizer == 31) { describe $chan gives $nick a plate of Corn tortilla }
    if (%appetizer == 32) { describe $chan gives $nick a plate of Crab puff }
    if (%appetizer == 33) { describe $chan gives $nick a plate of Crab Rangoon }
    if (%appetizer == 34) { describe $chan gives $nick a plate of Croline }
    if (%appetizer == 35) { describe $chan gives $nick a plate of Crostino }
    if (%appetizer == 36) { describe $chan gives $nick a plate of Crudités }
    if (%appetizer == 37) { describe $chan gives $nick a plate of Dag Meoushan }
    if (%appetizer == 38) { describe $chan gives $nick a plate of Devils on horseback }
    if (%appetizer == 39) { describe $chan gives $nick a plate of Egg drop soup }
    if (%appetizer == 40) { describe $chan gives $nick a plate of Egg roll }
    if (%appetizer == 41) { describe $chan gives $nick a plate of Eggplant salads and appetizers }
    if (%appetizer == 42) { describe $chan gives $nick a plate of Fattoush }
    if (%appetizer == 43) { describe $chan gives $nick a plate of Fried mushrooms }
    if (%appetizer == 44) { describe $chan gives $nick a plate of Fruit salad }
    if (%appetizer == 45) { describe $chan gives $nick a plate of Ful medames }
    if (%appetizer == 46) { describe $chan gives $nick a plate of Garlic knot }
    if (%appetizer == 47) { describe $chan gives $nick a plate of Gỏi cuốn }
    if (%appetizer == 48) { describe $chan gives $nick a plate of Gravlax }
    if (%appetizer == 49) { describe $chan gives $nick a plate of Hors d'oeuvre }
    if (%appetizer == 50) { describe $chan gives $nick a plate of Hummus }
    if (%appetizer == 51) { describe $chan gives $nick a plate of Israeli eggplant salad }
    if (%appetizer == 52) { describe $chan gives $nick a plate of Jalapeño popper }
    if (%appetizer == 53) { describe $chan gives $nick a plate of Jiaozi }
    if (%appetizer == 54) { describe $chan gives $nick a plate of Kab yob }
    if (%appetizer == 55) { describe $chan gives $nick a plate of Kati roll }
    if (%appetizer == 56) { describe $chan gives $nick a plate of Kaymak }
    if (%appetizer == 57) { describe $chan gives $nick a plate of Kibbeh }
    if (%appetizer == 58) { describe $chan gives $nick a plate of Kibbeh nayyeh }
    if (%appetizer == 59) { describe $chan gives $nick a plate of Lumpia }
    if (%appetizer == 60) { describe $chan gives $nick a plate of Makdous }
    if (%appetizer == 61) { describe $chan gives $nick a plate of Matbukha }
    if (%appetizer == 62) { describe $chan gives $nick a plate of Meze }
    if (%appetizer == 63) { describe $chan gives $nick a plate of Mirza Ghassemi }
    if (%appetizer == 64) { describe $chan gives $nick a plate of Mozzarella sticks }
    if (%appetizer == 65) { describe $chan gives $nick a plate of Msabbaha }
    if (%appetizer == 66) { describe $chan gives $nick a plate of Muhammara }
    if (%appetizer == 67) { describe $chan gives $nick a plate of Nachos }
    if (%appetizer == 68) { describe $chan gives $nick a plate of Nadur Monji }
    if (%appetizer == 69) { describe $chan gives $nick a plate of Nem nướng }
    if (%appetizer == 70) { describe $chan gives $nick a plate of Chả giò }
    if (%appetizer == 71) { describe $chan gives $nick a plate of Nokul }
    if (%appetizer == 72) { describe $chan gives $nick a plate of Obložené chlebíčky }
    if (%appetizer == 73) { describe $chan gives $nick a plate of Onion ring }
    if (%appetizer == 74) { describe $chan gives $nick a plate of Oysters en brochette }
    if (%appetizer == 75) { describe $chan gives $nick a plate of Papa a la Huancaína }
    if (%appetizer == 76) { describe $chan gives $nick a plate of Pickled cucumber }
    if (%appetizer == 77) { describe $chan gives $nick a plate of Pincho }
    if (%appetizer == 78) { describe $chan gives $nick a plate of Pissaladière }
    if (%appetizer == 79) { describe $chan gives $nick a plate of Pizzetta }
    if (%appetizer == 80) { describe $chan gives $nick a plate of Pogača }
    if (%appetizer == 81) { describe $chan gives $nick a plate of Poke (Fish Salad) }
    if (%appetizer == 82) { describe $chan gives $nick a plate of Potato skins }
    if (%appetizer == 83) { describe $chan gives $nick a plate of Potato wedges }
    if (%appetizer == 84) { describe $chan gives $nick a plate of Prawn cocktail }
    if (%appetizer == 85) { describe $chan gives $nick a plate of Préfou }
    if (%appetizer == 86) { describe $chan gives $nick a plate of Pu pu platter }
    if (%appetizer == 87) { describe $chan gives $nick a plate of Queso flameado }
    if (%appetizer == 88) { describe $chan gives $nick a plate of Rambak petis }
    if (%appetizer == 89) { describe $chan gives $nick a plate of Rissole }
    if (%appetizer == 90) { describe $chan gives $nick a plate of Rocky Mountain oysters }
    if (%appetizer == 91) { describe $chan gives $nick a plate of Rumaki }
    if (%appetizer == 92) { describe $chan gives $nick a plate of S.O.S. }
    if (%appetizer == 93) { describe $chan gives $nick a plate of Saganaki }
    if (%appetizer == 94) { describe $chan gives $nick a plate of Salmon tartare }
    if (%appetizer == 95) { describe $chan gives $nick a plate of Seven-layer dip }
    if (%appetizer == 96) { describe $chan gives $nick a plate of Shami kebab }
    if (%appetizer == 97) { describe $chan gives $nick a plate of Shopska salad }
    if (%appetizer == 98) { describe $chan gives $nick a plate of Small plates }
    if (%appetizer == 99) { describe $chan gives $nick a plate of Smoked salmon cheesecake }
    if (%appetizer == 100) { describe $chan gives $nick a plate of Snow white salad }
    if (%appetizer == 101) { describe $chan gives $nick a plate of Sour cherry soup }
    if (%appetizer == 102) { describe $chan gives $nick a plate of Spanakopita }
    if (%appetizer == 103) { describe $chan gives $nick a plate of Spring roll }
    if (%appetizer == 104) { describe $chan gives $nick a plate of Squid as food }
    if (%appetizer == 105) { describe $chan gives $nick a plate of Squid cocktail }
    if (%appetizer == 106) { describe $chan gives $nick a plate of Sujuk }
    if (%appetizer == 107) { describe $chan gives $nick a plate of Tabbouleh }
    if (%appetizer == 108) { describe $chan gives $nick a plate of Tapas }
    if (%appetizer == 109) { describe $chan gives $nick a plate of Tastet }
    if (%appetizer == 110) { describe $chan gives $nick a plate of Thattai (Indian food) }
    if (%appetizer == 111) { describe $chan gives $nick a plate of Tikka }
    if (%appetizer == 112) { describe $chan gives $nick a plate of Tiropita }
    if (%appetizer == 113) { describe $chan gives $nick a plate of Toasted ravioli }
    if (%appetizer == 114) { describe $chan gives $nick a plate of Tokwa’t baboy }
    if (%appetizer == 115) { describe $chan gives $nick a plate of Tongue toast }
    if (%appetizer == 116) { describe $chan gives $nick a plate of Tursu }
    if (%appetizer == 117) { describe $chan gives $nick a plate of Tostada (Tortilla) }
    if (%appetizer == 118) { describe $chan gives $nick a plate of Tzatziki }
    if (%appetizer == 119) { describe $chan gives $nick a plate of Vol-au-vent }
    if (%appetizer == 120) { describe $chan gives $nick a plate of Vorschmack }
    if (%appetizer == 121) { describe $chan gives $nick a plate of Wheat tortilla }
    if (%appetizer == 122) { describe $chan gives $nick a plate of Xiaochi }
    if (%appetizer == 123) { describe $chan gives $nick a plate of Zakuski }
    if (%appetizer == 124) { describe $chan gives $nick a plate of Zarangollo }
  }
}

on *:TEXT:*!food*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!food0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(food,$1-,/!food\s+\W*(\w+)/)) { var %name $regml(food,1) }
  if (%name) {
    var %food $rand(1,25)
    if (%food == 1) { describe $chan gives $2 a burger }
    if (%food == 2) { describe $chan gives $2 a packet of fries }
    if (%food == 3) { describe $chan gives $2 a bowl of pasta }
    if (%food == 4) { describe $chan gives $2 a piece of steak }
    if (%food == 5) { describe $chan gives $2 a bowl of shrimps }
    if (%food == 6) { describe $chan gives $2 a plate of bbq ribs }
    if (%food == 7) { describe $chan gives $2 a palte of ham }
    if (%food == 8) { describe $chan gives $2 a plate of pork }
    if (%food == 9) { describe $chan gives $2 a plate of sausages }
    if (%food == 10) { describe $chan gives $2 a plate of beans }
    if (%food == 11) { describe $chan gives $2 a plate of waffles }
    if (%food == 12) { describe $chan gives $2 a plate of pancakes }
    if (%food == 13) { describe $chan gives $2 a plate of scrambled eggs }
    if (%food == 14) { describe $chan gives $2 a plate of bacon }
    if (%food == 15) { describe $chan gives $2 a plate of vegetables }
    if (%food == 16) { describe $chan gives $2 a peice of cheese }
    if (%food == 17) { describe $chan gives $2 a plate of chicken with salad dressing }
    if (%food == 18) { describe $chan gives $2 a big plate of Cheese and Bacon Pizza }
    if (%food == 19) { describe $chan gives $2 a big plate of The Big Breakfast }
    if (%food == 20) { describe $chan gives $2 a big plate of No Crusts Pizza }
    if (%food == 21) { describe $chan gives $2 a big plate of Cheese Pizza }
    if (%food == 22) { describe $chan gives $2 a big plate of turkey with salad dressing! }
    if (%food == 23) { describe $chan gives $2 a big plate of roast lamb with salad dressing! }
    if (%food == 24) { describe $chan gives $2 a big plate of gammon steaks with salad dressing! }
    if (%food == 25) { describe $chan gives $2 a big plate of gammon with salad dressing! }
  }
  else {
    var %food $rand(1,25)
    if (%food == 1) { describe $chan gives $nick a burger }
    if (%food == 2) { describe $chan gives $nick a packet of fries }
    if (%food == 3) { describe $chan gives $nick a bowl of pasta }
    if (%food == 4) { describe $chan gives $nick a piece of steak }
    if (%food == 5) { describe $chan gives $nick a bowl of shrimps }
    if (%food == 6) { describe $chan gives $nick a plate of bbq ribs }
    if (%food == 7) { describe $chan gives $nick a palte of ham }
    if (%food == 8) { describe $chan gives $nick a plate of pork }
    if (%food == 9) { describe $chan gives $nick a plate of sausages }
    if (%food == 10) { describe $chan gives $nick a plate of beans }
    if (%food == 11) { describe $chan gives $nick a plate of waffles }
    if (%food == 12) { describe $chan gives $nick a plate of pancakes }
    if (%food == 13) { describe $chan gives $nick a plate of scrambled eggs }
    if (%food == 14) { describe $chan gives $nick a plate of bacon }
    if (%food == 15) { describe $chan gives $nick a plate of vegetables }
    if (%food == 16) { describe $chan gives $nick a peice of cheese }
    if (%food == 17) { describe $chan gives $nick a plate of chicken with salad dressing }
    if (%food == 18) { describe $chan gives $nick a big plate of Cheese and Bacon Pizza }
    if (%food == 19) { describe $chan gives $nick a big plate of The Big Breakfast }
    if (%food == 20) { describe $chan gives $nick a big plate of No Crusts Pizza }
    if (%food == 21) { describe $chan gives $nick a big plate of Cheese Pizza }
    if (%food == 22) { describe $chan gives $nick a big plate of turkey with salad dressing! }
    if (%food == 23) { describe $chan gives $nick a big plate of roast lamb with salad dressing! }
    if (%food == 24) { describe $chan gives $nick a big plate of gammon steaks with salad dressing! }
    if (%food == 25) { describe $chan gives $nick a big plate of gammon with salad dressing! }
  }
}

on *:TEXT:*!fruit*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!fruit0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(fruit,$1-,/!fruit\s+\W*(\w+)/)) { var %name $regml(fruit,1) }
  if (%name) {
    var %fruit $rand(1,24)
    if (%fruit == 1) { describe $chan gives $2 a juicy red apple }
    if (%fruit == 2) { describe $chan gives $2 a juicy green apple }
    if (%fruit == 3) { describe $chan gives $2 a juicy yellow apple }
    if (%fruit == 4) { describe $chan gives $2 a yellow banana }
    if (%fruit == 5) { describe $chan gives $2 an orange }
    if (%fruit == 6) { .timer 1 3{ describe $chan gives $2 a bowl of peaches }
    if (%fruit == 7) { describe $chan gives $2 a bowl of grapes }
    if (%fruit == 8) { describe $chan gives $2 a bowl of sliced bananas }
    if (%fruit == 9) { describe $chan gives $2 a watermelon }
    if (%fruit == 10) { describe $chan gives $2 a pear }
    if (%fruit == 11) { describe $chan gives $2 a mango }
    if (%fruit == 12) { describe $chan gives $2 a bowl of strawberries }
    if (%fruit == 13) { describe $chan gives $2 a bowl of blueberries }
    if (%fruit == 14) { describe $chan gives $2 a bowl of raspberries }
    if (%fruit == 15) { describe $chan gives $2 a kiwi }
    if (%fruit == 16) { describe $chan gives $2 a lemon }
    if (%fruit == 17) { describe $chan gives $2 a bowl of cherries }
    if (%fruit == 18) { describe $chan gives $2 a bowl of avocado }
    if (%fruit == 19) { describe $chan gives $2 a bowl of kiwifruit }
    if (%fruit == 20) { describe $chan gives $2 a bowl of papaya }
    if (%fruit == 21) { describe $chan gives $2 a bowl of mixed berries }
    if (%fruit == 22) { describe $chan gives $2 a coconut }
    if (%fruit == 23) { describe $chan gives $2 a pomegranate }
    if (%fruit == 24) { describe $chan gives $2 a bowl of cranberries }
  }
  else {
    var %fruit $rand(1,24)
    if (%fruit == 1) { describe $chan gives $nick a juicy red apple }
    if (%fruit == 2) { describe $chan gives $nick a juicy green apple }
    if (%fruit == 3) { describe $chan gives $nick a juicy yellow apple }
    if (%fruit == 4) { describe $chan gives $nick a yellow banana }
    if (%fruit == 5) { describe $chan gives $nick an orange }
    if (%fruit == 6) { .timer 1 3{ describe $chan gives $nick a bowl of peaches }
    if (%fruit == 7) { describe $chan gives $nick a bowl of grapes }
    if (%fruit == 8) { describe $chan gives $nick a bowl of sliced bananas }
    if (%fruit == 9) { describe $chan gives $nick a watermelon }
    if (%fruit == 10) { describe $chan gives $nick a pear }
    if (%fruit == 11) { describe $chan gives $nick a mango }
    if (%fruit == 12) { describe $chan gives $nick a bowl of strawberries }
    if (%fruit == 13) { describe $chan gives $nick a bowl of blueberries }
    if (%fruit == 14) { describe $chan gives $nick a bowl of raspberries }
    if (%fruit == 15) { describe $chan gives $nick a kiwi }
    if (%fruit == 16) { describe $chan gives $nick a lemon }
    if (%fruit == 17) { describe $chan gives $nick a bowl of cherries }
    if (%fruit == 18) { describe $chan gives $nick a bowl of avocado }
    if (%fruit == 19) { describe $chan gives $nick a bowl of kiwifruit }
    if (%fruit == 20) { describe $chan gives $nick a bowl of papaya }
    if (%fruit == 21) { describe $chan gives $nick a bowl of mixed berries }
    if (%fruit == 22) { describe $chan gives $nick a coconut }
    if (%fruit == 23) { describe $chan gives $nick a pomegranate }
    if (%fruit == 24) { describe $chan gives $nick a bowl of cranberries }
  }
}

on *:TEXT:*!desert*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!desert0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(desert,$1-,/!desert\s+\W*(\w+)/)) { var %name $regml(desert,1) }
  if (%name) {
    var %desert $rand(1,12)
    if (%desert == 1) { describe $chan gives $2 a small bowl of Strawberries with cream }
    if (%desert == 2) { describe $chan gives $2 a slice of Chocolate Cake }
    if (%desert == 3) { describe $chan gives $2 a slice of Orange and Poppy Seed Cake }
    if (%desert == 4) { describe $chan gives $2 a slice of Ice Cream Cake }
    if (%desert == 5) { describe $chan gives $2 a slice of Icing Cake } 
    if (%desert == 6) { describe $chan gives $2 a slice of Cheese Cake }
    if (%desert == 7) { describe $chan gives $2 a scoop of Icecream }
    if (%desert == 8) { describe $chan gives $2 some Scrapples }
    if (%desert == 9) { describe $chan gives $2 some Candied Yam }
    if (%desert == 10) { describe $chan gives $2 a 99 Cone with all the fillings }
    if (%desert == 11) { describe $chan gives $2 an Ice Lolly }
    if (%desert == 12) { describe $chan gives $2 an Eton Mess with Chocolate Sprinkles }
  }
  else {
    var %desert $rand(1,12)
    if (%desert == 1) { describe $chan gives $nick a small bowl of Strawberries with cream }
    if (%desert == 2) { describe $chan gives $nick a slice of Chocolate Cake }
    if (%desert == 3) { describe $chan gives $nick a slice of Orange and Poppy Seed Cake }
    if (%desert == 4) { describe $chan gives $nick a slice of Ice Cream Cake }
    if (%desert == 5) { describe $chan gives $nick a slice of Icing Cake } 
    if (%desert == 6) { describe $chan gives $nick a slice of Cheese Cake }
    if (%desert == 7) { describe $chan gives $nick a scoop of Icecream }
    if (%desert == 8) { describe $chan gives $nick some Scrapples }
    if (%desert == 9) { describe $chan gives $nick some Candied Yam }
    if (%desert == 10) { describe $chan gives $nick a 99 Cone with all the fillings }
    if (%desert == 11) { describe $chan gives $nick an Ice Lolly }
    if (%desert == 12) { describe $chan gives $nick an Eton Mess with Chocolate Sprinkles }
  }
}

on *:TEXT:*!drink*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!drink0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(drink,$1-,/!drink\s+\W*(\w+)/)) { var %name $regml(drink,1) }
  if (%name) {
    var %drink $rand(1,66)
    if (%drink == 1) { describe $chan gives $2 a bottle of Martini }
    if (%drink == 2) { describe $chan gives $2 a bottle of Long Island Iced tea }
    if (%drink == 3) { describe $chan gives $2 a bottle of Midori Limedrop }
    if (%drink == 4) { describe $chan gives $2 a bottle of Bubble Gum Kamikaze }
    if (%drink == 5) { describe $chan gives $2 a bottle of Electric Screwdriver }
    if (%drink == 6) { describe $chan gives $2 a bottle of Sour Apple Pussycat }
    if (%drink == 7) { describe $chan gives $2 a bottle of Blue Valium }
    if (%drink == 8) { describe $chan gives $2 a bottle of Peach Zima Sprite }
    if (%drink == 9) { describe $chan gives $2 a bottle of Frothy Lemonade }
    if (%drink == 10) { describe $chan gives $2 a bottle of Jager Bomb }
    if (%drink == 11) { describe $chan gives $2 a bottle of Daiquiri }
    if (%drink == 12) { describe $chan gives $2 a bottle of Cosmopolitan }
    if (%drink == 13) { describe $chan gives $2 a bottle of Margarita }
    if (%drink == 14) { describe $chan gives $2 a bottle of White Russian }
    if (%drink == 15) { describe $chan gives $2 a bottle of Mudslide }
    if (%drink == 16) { describe $chan gives $2 a bottle of Sex on the Beach }
    if (%drink == 17) { describe $chan gives $2 a bottle of Cordial Daisy }
    if (%drink == 18) { describe $chan gives $2 a bottle of Blueberry Tequila Sour }
    if (%drink == 19) { describe $chan gives $2 a bottle of Pear Sourball }
    if (%drink == 20) { describe $chan gives $2 a bottle of Jello Shooters }
    if (%drink == 21) { describe $chan gives $2 a bottle of Miller }
    if (%drink == 22) { describe $chan gives $2 a bottle of Miller Lite }
    if (%drink == 23) { describe $chan gives $2 a bottle of Miller Genuine Draft }
    if (%drink == 24) { describe $chan gives $2 a bottle of Rolling Rock }
    if (%drink == 25) { describe $chan gives $2 a bottle of Yuenling }
    if (%drink == 26) { describe $chan gives $2 a bottle of Molson }
    if (%drink == 27) { describe $chan gives $2 a bottle of Corona }
    if (%drink == 28) { describe $chan gives $2 a bottle of Coors }
    if (%drink == 29) { describe $chan gives $2 a bottle of Coors Lite }
    if (%drink == 30) { describe $chan gives $2 a bottle of Budweiser }
    if (%drink == 31) { describe $chan gives $2 a bottle of Budlite }
    if (%drink == 32) { describe $chan gives $2 a glass of White Wine }
    if (%drink == 33) { describe $chan gives $2 a glass of Red Wine }
    if (%drink == 34) { describe $chan gives $2 a glass of Cabernet Savignon }
    if (%drink == 35) { describe $chan gives $2 a glass of champagne }
    if (%drink == 36) { describe $chan gives $2 a glass of Sparkling Wine }
    if (%drink == 37) { describe $chan gives $2 a glass of Sparkling Cider }
    if (%drink == 38) { describe $chan gives $2 a glass of Riesling }
    if (%drink == 39) { describe $chan gives $2 a glass of Chardonnay }
    if (%drink == 40) { describe $chan gives $2 a glass of Sauvignon }
    if (%drink == 41) { describe $chan gives $2 a glass of Pinot Noir }
    if (%drink == 42) { describe $chan gives $2 a glass of Merlot }
    if (%drink == 43) { describe $chan gives $2 a glass of Shiraz }
    if (%drink == 44) { describe $chan gives $2 a glass of Syrah }
    if (%drink == 45) { describe $chan gives $2 a glass of Zinafandel }
    if (%drink == 46) { describe $chan gives $2 a bottle of Charbay }
    if (%drink == 47) { describe $chan gives $2 a bottle of McCarthy's }
    if (%drink == 48) { describe $chan gives $2 a bottle of Notch }
    if (%drink == 49) { describe $chan gives $2 a bottle of Old Potrero }
    if (%drink == 50) { describe $chan gives $2 a bottle of Peregrine Rock }
    if (%drink == 51) { describe $chan gives $2 a bottle of St. George }
    if (%drink == 52) { describe $chan gives $2 a bottle of Stranahan's }
    if (%drink == 53) { describe $chan gives $2 a bottle of Templeton Rye }
    if (%drink == 54) { describe $chan gives $2 a bottle of Wasmud's }
    if (%drink == 55) { describe $chan gives $2 a bottle of Woodstone Creek }
    if (%drink == 56) { describe $chan gives $2 a bottle of Absolut }
    if (%drink == 57) { describe $chan gives $2 a bottle of Belvedere }
    if (%drink == 58) { describe $chan gives $2 a bottle of Grey Goose }
    if (%drink == 59) { describe $chan gives $2 a bottle of Imperia }
    if (%drink == 60) { describe $chan gives $2 a bottle of Imperia }
    if (%drink == 61) { describe $chan gives $2 a bottle of Seagram's }
    if (%drink == 62) { describe $chan gives $2 a bottle of Skyy }
    if (%drink == 63) { describe $chan gives $2 a bottle of Smirnoff }
    if (%drink == 64) { describe $chan gives $2 a bottle of Bacardi }
    if (%drink == 65) { describe $chan gives $2 a bottle of Captain Morgan }
    if (%drink == 66) { describe $chan gives $2 a bottle of Malibu }
  }
  else {
    var %drink $rand(1,66)
    if (%drink == 1) { describe $chan gives $nick a bottle of Martini }
    if (%drink == 2) { describe $chan gives $nick a bottle of Long Island Iced tea }
    if (%drink == 3) { describe $chan gives $nick a bottle of Midori Limedrop }
    if (%drink == 4) { describe $chan gives $nick a bottle of Bubble Gum Kamikaze }
    if (%drink == 5) { describe $chan gives $nick a bottle of Electric Screwdriver }
    if (%drink == 6) { describe $chan gives $nick a bottle of Sour Apple Pussycat }
    if (%drink == 7) { describe $chan gives $nick a bottle of Blue Valium }
    if (%drink == 8) { describe $chan gives $nick a bottle of Peach Zima Sprite }
    if (%drink == 9) { describe $chan gives $nick a bottle of Frothy Lemonade }
    if (%drink == 10) { describe $chan gives $nick a bottle of Jager Bomb }
    if (%drink == 11) { describe $chan gives $nick a bottle of Daiquiri }
    if (%drink == 12) { describe $chan gives $nick a bottle of Cosmopolitan }
    if (%drink == 13) { describe $chan gives $nick a bottle of Margarita }
    if (%drink == 14) { describe $chan gives $nick a bottle of White Russian }
    if (%drink == 15) { describe $chan gives $nick a bottle of Mudslide }
    if (%drink == 16) { describe $chan gives $nick a bottle of Sex on the Beach }
    if (%drink == 17) { describe $chan gives $nick a bottle of Cordial Daisy }
    if (%drink == 18) { describe $chan gives $nick a bottle of Blueberry Tequila Sour }
    if (%drink == 19) { describe $chan gives $nick a bottle of Pear Sourball }
    if (%drink == 20) { describe $chan gives $nick a bottle of Jello Shooters }
    if (%drink == 21) { describe $chan gives $nick a bottle of Miller }
    if (%drink == 22) { describe $chan gives $nick a bottle of Miller Lite }
    if (%drink == 23) { describe $chan gives $nick a bottle of Miller Genuine Draft }
    if (%drink == 24) { describe $chan gives $nick a bottle of Rolling Rock }
    if (%drink == 25) { describe $chan gives $nick a bottle of Yuenling }
    if (%drink == 26) { describe $chan gives $nick a bottle of Molson }
    if (%drink == 27) { describe $chan gives $nick a bottle of Corona }
    if (%drink == 28) { describe $chan gives $nick a bottle of Coors }
    if (%drink == 29) { describe $chan gives $nick a bottle of Coors Lite }
    if (%drink == 30) { describe $chan gives $nick a bottle of Budweiser }
    if (%drink == 31) { describe $chan gives $nick a bottle of Budlite }
    if (%drink == 32) { describe $chan gives $nick a glass of White Wine }
    if (%drink == 33) { describe $chan gives $nick a glass of Red Wine }
    if (%drink == 34) { describe $chan gives $nick a glass of Cabernet Savignon }
    if (%drink == 35) { describe $chan gives $nick a glass of champagne }
    if (%drink == 36) { describe $chan gives $nick a glass of Sparkling Wine }
    if (%drink == 37) { describe $chan gives $nick a glass of Sparkling Cider }
    if (%drink == 38) { describe $chan gives $nick a glass of Riesling }
    if (%drink == 39) { describe $chan gives $Nick a glass of Chardonnay }
    if (%drink == 40) { describe $chan gives $nick a glass of Sauvignon }
    if (%drink == 41) { describe $chan gives $nick a glass of Pinot Noir }
    if (%drink == 42) { describe $chan gives $nick a glass of Merlot }
    if (%drink == 43) { describe $chan gives $nick a glass of Shiraz }
    if (%drink == 44) { describe $chan gives $Nick a glass of Syrah }
    if (%drink == 45) { describe $chan gives $nick a glass of Zinafandel }
    if (%drink == 46) { describe $chan gives $nick a bottle of Charbay }
    if (%drink == 47) { describe $chan gives $nick a bottle of McCarthy's }
    if (%drink == 48) { describe $chan gives $nick a bottle of Notch }
    if (%drink == 49) { describe $chan gives $nick a bottle of Old Potrero }
    if (%drink == 50) { describe $chan gives $nick a bottle of Peregrine Rock }
    if (%drink == 51) { describe $chan gives $nick a bottle of St. George }
    if (%drink == 52) { describe $chan gives $nick a bottle of Stranahan's }
    if (%drink == 53) { describe $chan gives $nick a bottle of Templeton Rye }
    if (%drink == 54) { describe $chan gives $nick a bottle of Wasmud's }
    if (%drink == 55) { describe $chan gives $nick a bottle of Woodstone Creek }
    if (%drink == 56) { describe $chan gives $nick a bottle of Absolut }
    if (%drink == 57) { describe $chan gives $nick a bottle of Belvedere }
    if (%drink == 58) { describe $chan gives $nick a bottle of Grey Goose }
    if (%drink == 59) { describe $chan gives $nick a bottle of Imperia }
    if (%drink == 60) { describe $chan gives $nick a bottle of Imperia }
    if (%drink == 61) { describe $chan gives $nick a bottle of Seagram's }
    if (%drink == 62) { describe $chan gives $nick a bottle of Skyy }
    if (%drink == 63) { describe $chan gives $nick a bottle of Smirnoff }
    if (%drink == 64) { describe $chan gives $nick a bottle of Bacardi }
    if (%drink == 65) { describe $chan gives $Nick a bottle of Captain Morgan }
    if (%drink == 66) { describe $chan gives $nick a bottle of Malibu }
  }
}

on *:TEXT:*!juice*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!juice0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(juice,$1-,/!juice\s+\W*(\w+)/)) { var %name $regml(juice,1) }
  if (%name) {
    var %juice $rand(1,14)
    if (%juice == 1) { describe $chan gives $2 a glass of Orange Juice }
    if (%juice == 2) { describe $chan gives $2 a glass of Blackcurrant Juice }
    if (%juice == 3) { describe $chan gives $2 a glass of Raspberry Juice }
    if (%juice == 4) { describe $chan gives $2 a glass of Lemonade }
    if (%juice == 5) { describe $chan gives $2 a glass of Orange and Blackcurrant Juice }
    if (%juice == 6) { describe $chan gives $2 a glass of Apple and Blackcurrent Juice  }
    if (%juice == 7) { describe $chan gives $2 a glass of Orange and Lemonade }
    if (%juice == 8) { describe $chan gives $2 a glass of Blueberry Ade }
    if (%juice == 9) { describe $chan gives $2 a glass of Orange Ade }
    if (%juice == 10) { describe $chan gives $2 a glass of Raspberry Ade }
    if (%juice == 11) { describe $chan gives $2 a glass of Cream Sode }
    if (%juice == 12) { describe $chan gives $2 a glass of Shandy Bass }
    if (%juice == 13) { describe $chan gives $2 a glass of Watered down Orange Juice }
    if (%juice == 14) { describe $chan gives $2 a glass of Watered down Blackcurrant Juice }
  }
  else {
    var %juice $rand(1,14)
    if (%juice == 1) { describe $chan gives $nick a glass of Orange Juice }
    if (%juice == 2) { describe $chan gives $nick a glass of Blackcurrant Juice }
    if (%juice == 3) { describe $chan gives $nick a glass of Raspberry Juice }
    if (%juice == 4) { describe $chan gives $nick a glass of Lemonade }
    if (%juice == 5) { describe $chan gives $nick a glass of Orange and Blackcurrant Juice }
    if (%juice == 6) { describe $chan gives $nick a glass of Apple and Blackcurrent Juice  }
    if (%juice == 7) { describe $chan gives $nick a glass of Orange and Lemonade }
    if (%juice == 8) { describe $chan gives $nick a glass of Blueberry Ade }
    if (%juice == 9) { describe $chan gives $nick a glass of Orange Ade }
    if (%juice == 10) { describe $chan gives $nick a glass of Raspberry Ade }
    if (%juice == 11) { describe $chan gives $nick a glass of Cream Sode }
    if (%juice == 12) { describe $chan gives $nick a glass of Shandy Bass }
    if (%juice == 13) { describe $chan gives $nick a glass of Watered down Orange Juice }
    if (%juice == 14) { describe $chan gives $nick a glass of Watered down Blackcurrant Juice }
  }
}

on *:TEXT:*!hdrink*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!hdrink0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(hdrink,$1-,/!hdrink\s+\W*(\w+)/)) { var %name $regml(hdrink,1) }
  if (%name) {
    var %hdrink $rand(1,37)
    if (%hdrink == 1) { describe $chan gives $2 a large cup of Aleberry }
    if (%hdrink == 2) { describe $chan gives $2 a large cup of Anijsmelk }
    if (%hdrink == 3) { describe $chan gives $2 a large cup of Applecider }
    if (%hdrink == 4) { describe $chan gives $2 a large cup of Asiático }
    if (%hdrink == 5) { describe $chan gives $2 a large cup of Atole }
    if (%hdrink == 6) { describe $chan gives $2 a large cup of Bajigur }
    if (%hdrink == 7) { describe $chan gives $2 a large cup of Bandrek }
    if (%hdrink == 8) { describe $chan gives $2 a large cup of Blackberry demitasse }
    if (%hdrink == 9) { describe $chan gives $2 a large cup of Blue Blazer }
    if (%hdrink == 10) { describe $chan gives $2 a large cup of Bouillon }
    if (%hdrink == 11) { describe $chan gives $2 a large cup of Butter Tea }
    if (%hdrink == 12) { describe $chan gives $2 a large cup of Caudle }
    if (%hdrink == 13) { describe $chan gives $2 a large cup of Coffee }
    if (%hdrink == 14) { describe $chan gives $2 a large cup of Expresso }
    if (%hdrink == 15) { describe $chan gives $2 a large cup of Greyanna Rakiya }
    if (%hdrink == 16) { describe $chan gives $2 a large cup of Grog }
    if (%hdrink == 17) { describe $chan gives $2 a large cup of Herbal Tea }
    if (%hdrink == 18) { describe $chan gives $2 a large cup of Hot Buttered Rum }
    if (%hdrink == 19) { describe $chan gives $2 a large cup of Hot Chocolate }
    if (%hdrink == 20) { describe $chan gives $2 a large cup of Hot Ginger Cordial }
    if (%hdrink == 21) { describe $chan gives $2 a large cup of Hot Toddy }
    if (%hdrink == 22) { describe $chan gives $2 a large cup of Hot Lemonade }
    if (%hdrink == 23) { describe $chan gives $2 a large cup of Irish Coffee }
    if (%hdrink == 24) { describe $chan gives $2 a large cup of Malted Milk }
    if (%hdrink == 25) { describe $chan gives $2 a large cup of Mate Cocido }
    if (%hdrink == 26) { describe $chan gives $2 a large cup of Mulled Wine }
    if (%hdrink == 27) { describe $chan gives $2 a large cup of Posset }
    if (%hdrink == 28) { describe $chan gives $2 a large cup of Postum }
    if (%hdrink == 29) { describe $chan gives $2 a large cup of Rüdesheimer Kaffee }
    if (%hdrink == 30) { describe $chan gives $2 a large cup of Sake }
    if (%hdrink == 31) { describe $chan gives $2 a large cup of Salep }
    if (%hdrink == 32) { describe $chan gives $2 a large cup of Sassafras Tea }
    if (%hdrink == 33) { describe $chan gives $2 a large cup of Smoking Bishop }
    if (%hdrink == 34) { describe $chan gives $2 a large cup of Soda }
    if (%hdrink == 35) { describe $chan gives $2 a large cup of Spiced Punch }
    if (%hdrink == 36) { describe $chan gives $2 a large cup of Tea }
    if (%hdrink == 37) { describe $chan gives $2 a large cup of Wedang Jahe }
  }
  else {
    var %hdrink $rand(1,37)
    if (%hdrink == 1) { describe $chan gives $nick a large cup of Aleberry }
    if (%hdrink == 2) { describe $chan gives $nick a large cup of Anijsmelk }
    if (%hdrink == 3) { describe $chan gives $nick a large cup of Applecider }
    if (%hdrink == 4) { describe $chan gives $nick a large cup of Asiático }
    if (%hdrink == 5) { describe $chan gives $nick a large cup of Atole }
    if (%hdrink == 6) { describe $chan gives $nick a large cup of Bajigur }
    if (%hdrink == 7) { describe $chan gives $nick a large cup of Bandrek }
    if (%hdrink == 8) { describe $chan gives $nick a large cup of Blackberry demitasse }
    if (%hdrink == 9) { describe $chan gives $nick a large cup of Blue Blazer }
    if (%hdrink == 10) { describe $chan gives $nick a large cup of Bouillon }
    if (%hdrink == 11) { describe $chan gives $nick a large cup of Butter Tea }
    if (%hdrink == 12) { describe $chan gives $nick a large cup of Caudle }
    if (%hdrink == 13) { describe $chan gives $nick a large cup of Coffee }
    if (%hdrink == 14) { describe $chan gives $nick a large cup of Expresso }
    if (%hdrink == 15) { describe $chan gives $nick a large cup of Greyanna Rakiya }
    if (%hdrink == 16) { describe $chan gives $nick a large cup of Grog }
    if (%hdrink == 17) { describe $chan gives $nick a large cup of Herbal Tea }
    if (%hdrink == 18) { describe $chan gives $nick a large cup of Hot Buttered Rum }
    if (%hdrink == 19) { describe $chan gives $nick a large cup of Hot Chocolate }
    if (%hdrink == 20) { describe $chan gives $nick a large cup of Hot Ginger Cordial }
    if (%hdrink == 21) { describe $chan gives $nick a large cup of Hot Toddy }
    if (%hdrink == 22) { describe $chan gives $nick a large cup of Hot Lemonade }
    if (%hdrink == 23) { describe $chan gives $nick a large cup of Irish Coffee }
    if (%hdrink == 24) { describe $chan gives $nick a large cup of Malted Milk }
    if (%hdrink == 25) { describe $chan gives $nick a large cup of Mate Cocido }
    if (%hdrink == 26) { describe $chan gives $nick a large cup of Mulled Wine }
    if (%hdrink == 27) { describe $chan gives $nick a large cup of Posset }
    if (%hdrink == 28) { describe $chan gives $nick a large cup of Postum }
    if (%hdrink == 29) { describe $chan gives $nick a large cup of Rüdesheimer Kaffee }
    if (%hdrink == 30) { describe $chan gives $nick a large cup of Sake }
    if (%hdrink == 31) { describe $chan gives $nick a large cup of Salep }
    if (%hdrink == 32) { describe $chan gives $nick a large cup of Sassafras Tea }
    if (%hdrink == 33) { describe $chan gives $nick a large cup of Smoking Bishop }
    if (%hdrink == 34) { describe $chan gives $nick a large cup of Soda }
    if (%hdrink == 35) { describe $chan gives $nick a large cup of Spiced Punch }
    if (%hdrink == 36) { describe $chan gives $nick a large cup of Tea }
    if (%hdrink == 37) { describe $chan gives $nick a large cup of Wedang Jahe }
  }
}

on *:TEXT:*!sdrink*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!sdrink0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(sdrink,$1-,/!sdrink\s+\W*(\w+)/)) { var %name $regml(sdrink,1) }
  if (%name) {
    var %sdrink $rand(1,14)
    if (%sdrink == 1) { describe $chan gives $2 a can of Diet Coke }
    if (%sdrink == 2) { describe $chan gives $2 a can of Coke Zero }
    if (%sdrink == 3) { describe $chan gives $2 a can of Lemonade flavoured Coke }
    if (%sdrink == 4) { describe $chan gives $2 a can of Coca Cola }
    if (%sdrink == 5) { describe $chan gives $2 a can of Fanta }
    if (%sdrink == 6) { describe $chan gives $2 a can of Lemonade }
    if (%sdrink == 7) { describe $chan gives $2 a can of Raspberry Soda }
    if (%sdrink == 8) { describe $chan gives $2 a can of Solo }
    if (%sdrink == 9) { describe $chan gives $2 a can of Pepsi }
    if (%sdrink == 10) { describe $chan gives $2 a can of Pepsi Max }
    if (%sdrink == 11) { describe $chan gives $2 a can of Vanilla flavoured Pepsi }
    if (%sdrink == 12) { describe $chan gives $2 a can of Orange Soda }
    if (%sdrink == 13) { describe $chan gives $2 a can of Monster }
    if (%sdrink == 14) { describe $chan gives $2 a can of Mountain Dew }
  }
  else {
    var %sdrink $rand(1,14)
    if (%sdrink == 1) { describe $chan gives $nick a can of Diet Coke }
    if (%sdrink == 2) { describe $chan gives $nick a can of Coke Zero }
    if (%sdrink == 3) { describe $chan gives $nick a can of Lemonade flavoured Coke }
    if (%sdrink == 4) { describe $chan gives $nick a can of Coca Cola }
    if (%sdrink == 5) { describe $chan gives $nick a can of Fanta }
    if (%sdrink == 6) { describe $chan gives $nick a can of Lemonade }
    if (%sdrink == 7) { describe $chan gives $nick a can of Raspberry Soda }
    if (%sdrink == 8) { describe $chan gives $nick a can of Solo }
    if (%sdrink == 9) { describe $chan gives $nick a can of Pepsi }
    if (%sdrink == 10) { describe $chan gives $nick a can of Pepsi Max }
    if (%sdrink == 11) { describe $chan gives $nick a can of Vanilla flavoured Pepsi }
    if (%sdrink == 12) { describe $chan gives $nick a can of Orange Soda }
    if (%sdrink == 13) { describe $chan gives $nick a can of Monster }
    if (%sdrink == 14) { describe $chan gives $nick a can of Mountain Dew }
  }
}

on *:TEXT:*!snack*:#: { 
  if (%flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] > 0) { notice $nick 7You have recently used the command 4!snack0. 7Please try again in04 $duration($v1) $+ 0. | halt }
  set -z %flood [ $+ [ $nick ] $+ [ $right($1,-1) ] ] 10

  if ($regex(snack,$1-,/!snack\s+\W*(\w+)/)) { var %name $regml(snack,1) }
  if (%name) {
    var %snack $rand(1,8)
    if (%snack == 1) { describe $chan gives $2 a Boost }
    if (%snack == 2) { describe $chan gives $2 a Flake }
    if (%snack == 3) { describe $chan gives $2 a Cherry Ripe }
    if (%snack == 4) { describe $chan gives $2 a Mars Bar }
    if (%snack == 5) { describe $chan gives $2 a Snickers Bar }
    if (%snack == 6) { describe $chan gives $2 a box of Chocolate Hearts }
    if (%snack == 7) { describe $chan gives $2 a box of Florentins }
    if (%snack == 8) { describe $chan gives $2 a box of Mont Chocos }
  }
  else {
    var %snack $rand(1,8)
    if (%snack == 1) { describe $chan gives $nick a Boost }
    if (%snack == 2) { describe $chan gives $nick a Flake }
    if (%snack == 3) { describe $chan gives $nick a Cherry Ripe }
    if (%snack == 4) { describe $chan gives $nick a Mars Bar }
    if (%snack == 5) { describe $chan gives $nick a Snickers Bar }
    if (%snack == 6) { describe $chan gives $nick a box of Chocolate Hearts }
    if (%snack == 7) { describe $chan gives $nick a box of Florentins }
    if (%snack == 8) { describe $chan gives $nick a box of Mont Chocos }
  }
}

Comments

Sign in to comment.
Degausser   -  Jul 24, 2017

You should really cut down this script a bit. Here are a couple examples.

For the last "else" block in the whole script, you randomly select 1-8, and describe as appropriate. With only 8 options, a good method is adding a local alias which just returns a string of possibilities. In this case i would add something like this near the top of my page:

alias -l listSnacks return Boost.Flake.Cherry Ripe.Mars Bar.Snickers Bar.box of Chocolate Hearts.box of Florentins.box of Mont Chocos

Each result is seperated by a dot. The idea is, you can easily add another element to your list, and the code will handle it. If this alias were present within your script, your last else statement could look like this:

else { describe $chan gives $nick a $gettok($listSnacks,$rand(1,$numtok($listSnacks,46)),46) }

Like this, you're simply selecting a random element from your list, using ASCII value 46 (a dot) as your token separator. If you have a longer list of elements, Okay next, you repeat everything twice. Once if %name exists, and once if not. Again taking the last TEXT event as an example, you can replace both if and else statements with a function call, passing in either $2 or $nick. The function will take care of the describe commands. So first the new if and else statement:

if (%name) { describeSnack $chan $2 }
else { describeSnack $chan $nick }

Then youd create a describeSnack alias, with your commands, such as:

alias -l describeSnack {
  var %snack $rand(1,8)
    if (%snack == 1) { describe $1 gives $2 a Boost }
    ... etc / or
    describe $1 gives $2 a $gettok($listSnacks,$rand(1,$numtok($listSnacks,46)),46)
}

And of course, you can minimise these a little more using $iif, so your if/else statement in the end wouldn't need a separate function, or even separation within itself. It would just look like:

describe $chan gives $iif(%name,$2,$nick) a $gettok($listSnacks,$rand(1,$numtok($listSnacks,46)),46)

Just some ideas to save you time!

 Respond  
manish17xxx   -  Jun 13, 2017

This shit could actually be shortened to 40-50 lines. No offense!

 Respond  
Buggsy   -  May 31, 2017

This script didn't work for me and neither did the v1. :(

CrazyDriver  -  Jun 05, 2017

what problems are you having with this script?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.