Tekil Mesaj gösterimi
Alt 26 Mayıs 2011, 17:07   #3
Çevrimdışı
Heartbroken
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: !21 oyunu (blackjack)




q0kh4n Nickli Üyeden Alıntı
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
çalışma sizemi ait


kodun orjinali *

PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
;##############################################
;## !21 cards game ############################
;######################### by rhasttaff  ######
;##############################################
on *:text:!21:#: {
  
if (%21jog !== on) {
    
set %21jog on
    set 
%21jogador-1 $nick
    
/msg $chan 12This Game Requires 2 12PlayersSomeone needs to type 4!2112 to play against you within 6012 seconds.
    .
timer_encerra-21 1 62 /encerra-21 $chan
    set 
%21para-jog-1 off
    halt
  
}
  if (%
21jog == on) && (!%21jogador-2) {
    /
timer_21-um-so off
    set 
%21jogador-2 $nick
    
/notice %21jogador-1 This is the 21 Cards gameWhomever gets their cards to equal the number21 wins the game
    /
notice %21jogador-2 This is the 21 Cards gameWhomever gets their cards to equal the number21 wins the game!
    /
msg $chan Game Started!! 9-14=[12 %21jogador-1 14]=979-14=[%21jogador-2 14]=9-
    /
msg $chan Player9-14=[12 %21jogador-1 14]=9it is now your turntype 4!card $+ . You have 60 seconds to play...
    
set %21jogada-jog 1
    set 
%21para-jog-2 off
    
.timer_encerra-21 1 62 /encerra-21 $chan
  
}
}
on *:text:!card:#: {
  
if (%21jogada-jog == 1) && ($nick == %21jogador-1) {
    
set %carta-jog-1 $rand(1,13)
    if (!%
cartas-valor-jog-1) {
      
set %cartas-valor-jog-%carta-jog-1
      set 
%cartas-jog-1 $passa-carta(%carta-jog-1)
      
set %21jogada-jog 2
      
/notice $nick Your cards: %cartas-jog-1
      
/notice $nick Your total: %cartas-valor-jog-1
      
/calcula-proxima-oupara %cartas-valor-jog-%21jogador-1 $chan
    
}
    else {
      
set %21jogada-jog 2
      set 
%cartas-valor-jog-1 $calc(%cartas-valor-jog-+ %carta-jog-1)
      
set %cartas-jog-%cartas-jog-1 $passa-carta(%carta-jog-1)
      /
notice $nick Your cards: %cartas-jog-1
      
/notice $nick Your total: %cartas-valor-jog-1
      
/calcula-proxima-oupara %cartas-valor-jog-%21jogador-1 $chan
    
}
  }
  if (%
21jogada-jog == 2)  && ($nick == %21jogador-2) {
    
set %carta-jog-2 $rand(1,13)
    if (!%
cartas-valor-jog-2) {
      
set %cartas-valor-jog-%carta-jog-2
      set 
%cartas-jog-2 $passa-carta(%carta-jog-2)
      
set %21jogada-jog 1
      
/notice $nick Your cards: %cartas-jog-2
      
/notice $nick Your total: %cartas-valor-jog-2
      
/calcula-proxima-oupara %cartas-valor-jog-%21jogador-2 $chan
    
}
    else {
      
set %21jogada-jog 1
      set 
%cartas-valor-jog-2 $calc(%cartas-valor-jog-+ %carta-jog-2)
      
set %cartas-jog-%cartas-jog-2 $passa-carta(%carta-jog-2)
      /
notice $nick Your cards: %cartas-jog-2
      
/notice $nick Your total: %cartas-valor-jog-2
      
/calcula-proxima-oupara %cartas-valor-jog-%21jogador-2 $chan
    
}
  }
}
alias encerra-21 {
  if (%
21jog == on) {
    
quem-ganha-21 $1
  
}
  else {
    
acaba-21
  
}
}
alias calcula-proxima-oupara {
  if ($
21) && ($== %21jogador-1)  { /msg $3 12[4 BOOOOOOOOOOMMMM!!!!129-14=[12 $2 14]=9Explodes with the cards  %cartas-jog-1  Totaling:%cartas-valor-jog-|  /timer_encerra-21 off | /msg $3 Winner  9-14=[%21jogador-2 14]=9with the Cards %cartas-jog-2 Totalizing:%cartas-valor-jog-2  | /acaba-21 halt }
  if ($
== 21) && ($== %21jogador-1)  { /msg $3 Winner9-14=[12 %21jogador-1 14]=9with the cards %cartas-jog-1 Totaling:%cartas-valor-jog-|  /timer_encerra-21 off | /acaba-21 halt }
  if ($
21) && ($== %21jogador-1) {
    if (%
21para-jog-!== on) { /msg $3 9-14=[%21jogador-2 14]=9Your TurnType 4 !card  for one more card or type 4 !compare  To compare the cards and end the gameYou have 60 seconds... }
    if (%
21para-jog-== on) { set %21jogada-jog 1 | /msg $3 9-14=[12 %21jogador-1 14]=9You ruleType 4 !card  for one more card or type 4 !compare  To compare the cards and end the gameYou have 60 seconds...  |  .timer_encerra-21 1 62 /encerra-21 $halt }
  }
  if ($
21) && ($== %21jogador-2) { /msg $3 12[4 BOOOOOOOOOOMMMM!!!!129-14=[$2 14]=9Explodes with the cards %cartas-jog-2 Totaling:%cartas-valor-jog-| /msg $3 Winner 9-14=[12 %21jogador-1 14]=9with the Cards %cartas-jog-1 Totaling:%cartas-valor-jog-1  |  /timer_encerra-21 off | /acaba-21 halt }
  if ($
== 21) && ($== %21jogador-2) { /msg $3 Winner 9-14=[%21jogador-2 14]=9with the cards  %cartas-jog-2 Totaling:%cartas-valor-jog-2  |   /timer_encerra-21 off | /acaba-21 halt }
  if ($
21) && ($== %21jogador-2) {
    if (%
21para-jog-!== on) { /msg $3 9-14=[12 %21jogador-1 14]=9Your TurnType 4 !card  for one more card or type 4 !compare  To compare the cards and end the gameYou have 60 seconds... | halt }
    if (%
21para-jog-== on)  { set %21jogada-jog 2 | /msg $3  9-14=[%21jogador-2 14]=9You ruleType 4 !card  for one more card or type 4 !compare  To compare the cards and end the gameYou have 60 seconds...  |  .timer_encerra-21 1 62 /encerra-21 $halt }
  }
}
alias acaba-21 {
  
set %21jog off
  
unset %21jogador-%21jogador-%cartas-valor-jog-%cartas-jog-%cartas-valor-jog-%cartas-jog-2
}
on *:text:!compare:#: {
  
if (%21jogada-jog == 1) {
    if (
$nick == %21jogador-1) && (%21para-jog-!== on) { /set %21para-jog-1 on set %21jogada-jog 2 | /msg $chan   9-14=[%21jogador-2 14]=9-  You ruleType 4 !card  for one more card or type 4 !compare  To compare the cards and end the gameYou have 60 seconds... |  .timer_encerra-21 1 62 /encerra-21 $chan }
    if (
$nick == %21jogador-1) && (%21para-jog-== on) { /quem-ganha-21 $chan |  /timer_encerra-21 off }
  }
  if (%
21jogada-jog == 2) {
    if (
$nick == %21jogador-2) && (%21para-jog-!== on) { /set %21para-jog-2 on set %21jogada-jog 1 | /msg $chan   9-14=[12 %21jogador-1 14]=9You ruleType 4 !card  for one more card or type 4 !compare  To compare the cards and end the gameYou have 60 seconds... |  .timer_encerra-21 1 62 /encerra-21 $chan }
    if (
$nick == %21jogador-2) && (%21para-jog-== on) { /quem-ganha-21 $chan |  /timer_encerra-21 off }
  }
}
alias quem-ganha-21 {
  
set %21total-jog-1 $calc(21 - %cartas-valor-jog-1)
  
set %21total-jog-2 $calc(21 - %cartas-valor-jog-2)
  if (%
21total-jog-< %21total-jog-2) {  /timer_encerra-21 off | /msg $1 Winner 9-14=[12 %21jogador-1 14]=9with the Cards %cartas-jog-1 Totaling:%cartas-valor-jog-| /msg $1 Against the Cards: %cartas-jog-2 Of 9-14=[%21jogador-2 14]=9Totaling:%cartas-valor-jog-| /acaba-21 halt }
  if (%
21total-jog-> %21total-jog-2) {  .timer_encerra-21 off | /msg $1 Winner  9-14=[%21jogador-2 14]=9with the Cards %cartas-jog-2 Totaling:%cartas-valor-jog-2  | /msg $1 Against the Cards: %cartas-jog-1 Of 9-14=[%21jogador-1 14]=9Totaling:%cartas-valor-jog-1  | /acaba-21 halt }
  if (%
21total-jog-== %21total-jog-2) {  .timer_encerra-21 off | /msg $1 This Game have no winner! | /acaba-21 halt 
}
alias passa-carta {
  
set %21cor  $rand(1,2)
  if (%
21cor == 1) { set %21cort 1 }
  if (%
21cor == 2) { set %21cort 4 }
  if ($
== 1) { return  $+ %21cort $+ ,$+ [A] }
  if ($
== 2) { return  $+ %21cort $+ ,$+ [2] }
  if ($
== 3) { return  $+ %21cort $+ ,$+ [3] }
  if ($
== 4) { return  $+ %21cort $+ ,$+ [4] }
  if ($
== 5) { return  $+ %21cort $+ ,$+ [5] }
  if ($
== 6) { return  $+ %21cort $+ ,$+ [6] }
  if ($
== 7) { return  $+ %21cort $+ ,$+ [7] }
  if ($
== 8) { return  $+ %21cort $+ ,$+ [8] }
  if ($
== 9) { return  $+ %21cort $+ ,$+ [9] }
  if ($
== 10) { return  $+ %21cort $+ ,$+ [10] }
  if ($
== 11) { return  $+ %21cort $+ ,$+ [J] }
  if ($
== 12) { return  $+ %21cort $+ ,$+ [Q] }
  if ($
== 13) { return  $+ %21cort $+ ,$+ [K] }



 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklam ver Benimmekan Mobil Sohbet