This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Simple Script Convert Request

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
c
chaokusc
Voice
Posts: 18
Joined: Tue Apr 25, 2006 5:57 am

Simple Script Convert Request

Post by chaokusc »

Is anyone able to convert this script, i have tried to do it myself however i have not had any luck with it.

Code: Select all

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 }
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

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.
c
chaokusc
Voice
Posts: 18
Joined: Tue Apr 25, 2006 5:57 am

Post by chaokusc »

Thank you caesar ^^ <3
Post Reply