Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:exit: {
- /hsave -o Trivia Trivia.hsh
- /hfree Trivia
- }
- on *:start: {
- /hload -s trivia trivia.hsh
- remote off
- timer 1 5 remote on
- }
- On *:text:*:#: {
- if ($nick == Trivia) {
- if ($remove($1,.) isnum) {
- set -u85 $+(%,question,.,$chan) $2-
- if ($me != nick1) {
- if ($hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32))) != $null) {
- echo -a $($+(%,question,.,$chan),2)
- echo -a $hget(Trivia,$remove($($+(%,question,.,$chan),2),$chr(32)))
- }
- }
- }
- elseif ($1 == Hint:) {
- halt
- }
- elseif (($1 == Time's) && ($($+(%,question,.,$chan),2))) {
- hadd -m Trivia $remove($($+(%,question,.,$chan),2),$chr(32)) $remove($1-,Time's up! The answer was:)
- }
- elseif (($1 == Winner:) && ($($+(%,question,.,$chan),2))) {
- tokenize 59 $1-
- hadd -m Trivia $remove($($+(%,question,.,$chan),2),$chr(32)) $remove($2,Answer: )
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement