;Heres your basic ^soda script. randomly selects a drink from the list and gives it to you.
;If you want to add more, change the 5 in the $rand(1,5) line to $rand(1,<# here>). just make sure to have the amount for # or else it may crash. (Ex: $rand (1,10), make the if (%soda == #)s up to 10.)
on *:text:^soda*:#: {
var %soda $rand(1,5) {
if (!$2) {
describe $chan opens his fridge...
if (%soda == 1) .timer 1 3 describe $chan hands $nick a Coke
if (%soda == 2) .timer 1 3 describe $chan hands $nick a Pepsi
if (%soda == 3) .timer 1 3 describe $chan hands $nick a Mt. Dew
if (%soda == 4) .timer 1 3 describe $chan hands $nick a Monster Energy
if (%soda == 5) .timer 1 3 describe $chan hands $nick an Amp Energy
}
else {
if (%soda == 1) .timer 1 3 describe $chan hands $2 a Coke
if (%soda == 2) .timer 1 3 describe $chan hands $2 a Pepsi
if (%soda == 3) .timer 1 3 describe $chan hands $2 a Mt. Dew
if (%soda == 4) .timer 1 3 describe $chan hands $2 a Monster Energy
if (%soda == 5) .timer 1 3 describe $chan hands $2 an Amp Energy
}
}
}