All pastes #749134 Raw Edit

private script

public text v1 · immutable
#749134 ·published 2007-10-25 13:16 UTC
rendered paste body
on $*:text:/^[!@](score)/Si:#superbowlxvii: {
if ($left($1,1) == !) set %way notice $nick
if ($left($1,1) == @) && ($nick isreg $chan) set %way notice $nick
if ($left($1,1) == @) && ($nick !isreg $chan) set %way msg $chan {
if ($2 == [team1]) {
%way [Super Bowl XVII] [ *Team 1's name* ] %scoreteam1
}
else if ($2 == [team2]) {
%way [Super Bowl XVII] [ *Team 2's name* ] %scoreteam2
}
else if ($2 == [team1]) && ($3 == extended) {
%way [Team 1] Score is: %scoreteam1
%way [Team 1] %puntteam1 punts
%way [Team 1] %touchdownteam1 touchdowns
%way [Team 1] %fieldgoalteam1 field goals
%way [Team 1] %xtrapointteam1 extra points (point after touch down)
%way [Team 1] %twoptconvteam1 two-point conversions
%way [Team 1] %fumbleteam2 fumbles
%way [Team 1] %interceptteam2 interceptions
}
else if ($2 == [team2]) && ($3 == extended) {
%way [Team 2] Score is: %scoreteam2
%way [Team 2] %puntteam2 punts
%way [Team 2] %touchdownteam2 touchdowns
%way [Team 2] %fieldgoalteam2 field goals
%way [Team 2] %xtrapointteam2 extra points (point after touch down)
%way [Team 2] %twoptconvteam2 two-point conversions
%way [Team 2] %fumbleteam2 fumbles
%way [Team 2] %interceptteam2 interceptions
}
}
}
on *:text:!add*:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
if ($2 == score) && ($3 == team1) {
set %scoreteam1 $4
msg $chan Team 1 has %scoreteam1
}
else if ($2 == punt) && ($3 == team1) {
inc %puntteam1
msg $chan Team 1 has punted the ball %puntteam1 times
}
else if ($2 == touchdown) && ($3 == team1) {
inc %touchdownteam1
msg $chan Team 1 has made %touchdownteam1 touch downs!
}
else if ($2 == fieldgoal) && ($3 == team1) {
inc %fieldgoalteam1
msg $chan Team 1 has made %fieldgoalteam1 touch downs!
}
else if ($2 == extrapoint) && ($3 == team1) {
inc %xtrapointteam1
msg $chan Team 1 has made %xtrapointteam1 extra point/point after touchdown(s)
}
else if ($2 == 2pt) && ($3 == team) {
inc %twoptconvteam1
set %2ptteam1attempt
msg $chan Team 1 has made %twoptconvteam1 total 2-point conversions.
msg $chan Team 1 has failed %2ptteam1failed 2-point conversions.
}
}
}
%puntteam1
%touchdownteam1
%fieldgoalteam1
%xtrapointteam1
%twoptconvteam1
%fumbleteam1
%interceptteam1