Script BlackJack

ago
31

on *:text:!blackjack*:#: {
unset %cards
unset %bcards
unset %ctotal
unset %btotal
set %cards $rand(1,9) $rand(1,9)
set %ctotal $calc($left(%cards,1) + $right(%cards,1))
set %bcards $rand(1,9) $rand(1,9)
set %btotal $calc($left(%bcards,1) + $right(%bcards,2))
notice $nick [BLACK JACK] Le tue carte: %cards – Totale: %ctotal $+ . Per avere una carta digita !carta ~ Per fermarti digita !stopcarte
}
on *:text:!carta*:#matty`: {
set %tempcard $rand(1,9)
set %ctotal $calc(%ctotal + %tempcard)
set %cards %cards $+ $chr(32) $+ %tempcard
notice $nick [BLACK JACK] Le tue carte: %cards – Totale: %ctotal $+
if (%ctotal >= 22) { msg $chan [BLACK JACK] $nick mi dispiace per te ma..  Ho vinto! ( $+ Il mio punteggio: %btotal – Punteggio di $nick $+ : %ctotal $+ ) | halt }
if (%ctotal == 21) { msg $chan [BLACK JACK] $nick hai fatto BlackJack!!!! ( $+ Il mio punteggio: %btotal – Punteggio di $nick $+ : %ctotal $+ )  | halt }
set %btemp $rand(1,9)
set %btotal $calc(%btotal + %btemp)
set %bcards %bcards $+ $chr(32) $+ %btemp
if (%btotal >= 22) { msg $chan [BLACK JACK] $nick hai vinto! ( $+ Il mio punteggio: %btotal – Punteggio di $nick $+ : %ctotal $+ ) | halt }
if (%btotal == 21) { msg $chan [BLACK JACK] Ho fatto BlackJack ed ho vinto. ( $+ Il mio punteggio: %btotal – Punteggio di $nick $+ : %ctotal $+ ) | halt }
}
on *:text:!stopcarte*:#matty`: {
if (%btotal >= %ctotal) { msg $chan [BLACK JACK] $nick mi sono fermato e.. ho vinto! ( $+ Il mio punteggio: %btotal – Punteggio di $nick $+ : %ctotal $+ ) }
if (%ctotal >= %btotal) { msg $chan [BLACK JACK] $nick ti sei fermato e.. hai vinto! ( $+ Il mio punteggio: %btotal – Punteggio di $nick $+ : %ctotal $+ )  }
}

Come usare il BlackJack:

Per iniziare digita !blackjack

Per prendere una carta: !carta

Per non prendere più carte: !stopcarte

——-

By http://hawkee.com Traduzione by Matty`

>>> FORUM <<<

ago
31

ENTRA!

Statistiche ShinyStat

ago
31



Calculator 5000!

ago
25

Vi serve una calcolatrice? Costano troppo? Non vuoi premere troppi tasti?

Ecco il Calculator 5000!

on *:text:!calc*:#: {

msg $chan Il risultato è $calc( $2-) !

}

Installazione: Copia e incolla il code qui sopra nei remote (Alt+R)

Utilizzo

Per addizione: !calc 20+10

<+ImpY> !calc 20+20

<+Bot> Il risultato è 30 !

Per sottrazione: !calc 20-10

<+ImpY> !calc 20-10

<+Bot> Il risultato è 10 !

Per moltiplicazione: !calc 20*10

<+ImpY> !calc 20*10

<+Bot> Il risultato è 200 !

Per divisione: !calc 20/10

<+ImpY> !calc 20/10

<+Bot> Il risultato è 2 !

Richieste Script & Add-on!!

ago
25

http://ircpassion.altervista.org/forum/viewtopic.php?f=11&p=10#p10

IrcPassion offre la possibilita’ di richiedere Script & Add-on!
Basta compilare il seguente modulo e aprire una nuovo topic in questa sezione..

[b]Nickname:[/b]
[b]Script o Add-on?[/b]
[b]Descrizione script o add-on:[/b]
Lo script verra’ fornito entro 48h (2gg) da un membro dello staff. Non aprite due topic uguali o verranno chiusi tutti e due e la richiesta verra’ cancellata!!!

Timer Op/Voice

ago
23

on *:text:!timerop*:#: {
if ($nick isop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
if ($nick ishop #) { mode $chan +o $2 | timer1 1 $3 mode $chan -o $2 }
}
on *:text:!timerv*:#: {
if ($nick isop #) { mode $chan +v $2 | timer1 1 $3 mode $chan -v $2 }
if ($nick ishop #) { mode $chan +v $2 | timer1 1 $3 mode $chan -v $2 }
}

Istruzioni:
Incollare l’intero script in un nuovo remote [Alt+r]
Per usare lo script scrivere !timerop nick secondi oppure !timerv nick secondi .
Fonte: http://hawkee.com

22/08/09: Apertura IRC Passion

ago
22

Oggi apre IRC Passion!