| View previous topic :: View next topic |
| Author |
Message |
chaokusc Voice
Joined: 25 Apr 2006 Posts: 18
|
Posted: Mon May 01, 2006 1:26 pm Post subject: Simple Script Convert Request |
|
|
Is anyone able to convert this script, i have tried to do it myself however i have not had any luck with it.
| Code: | on 1!*:TEXT:!dare:#foxy:{ /set %dare $rand(1,2)
if (%dare == 1) { msg $chan 4[14»»4] You are lucky this time $+ $nick $+ , You have been spared 4[14««4] }
if (%dare == 2) { msg $chan 4[14»»4] You are Un-lucky this time $+ $nick $+ , You have been kicked 4[14««4] | /kick $chan $nick }
} |
|
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon May 01, 2006 2:45 pm Post subject: |
|
|
| Code: |
bind pub * !dare dare:game
proc dare:game {nick uhost hand chan text} {
if {[isbotnick $nick] || ![botisop $chan]} return
set no [expr [rand 2] +1]
if {$no == 1} {
putserv "PRIVMSG $chan :4[14»»4] You are lucky this time $nick, You have been spared 4[14««4]"
} elseif {$no == 2} {
putserv "PRIVMSG $chan :4[14»»4] You are Un-lucky this time $nick, You have been kicked 4[14««4]"
putkick $chan $nick "You are Un-lucky this time"
}
}
|
Should do the job. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
chaokusc Voice
Joined: 25 Apr 2006 Posts: 18
|
Posted: Mon May 01, 2006 6:02 pm Post subject: |
|
|
| Thank you caesar ^^ <3 |
|
| Back to top |
|
 |
|