Guest User

Untitled

a guest
Sep 24th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.46 KB | None | 0 0
  1. on *:start:{
  2.   nick Severus
  3.   s irc.zen-attitude.org
  4. }
  5.  
  6. On *:connect:{ ns id 1234567 }
  7.  
  8. On ^1:text:*:*:{
  9.   if !joueur == $1 {
  10.     if ($2 ison $chan && $3 ison $chan) {
  11.       mode $active +vvm $2 $3
  12.       set %j1 $2
  13.       set %j2 $3
  14.       msg $active Le match peut donc commencer les participants sont %j1 et %j2 $+ .
  15.       msg $active Nous allons déterminer qui va commencer le duel par un Pile ou Face, c'est simple tapez !pile ou !face
  16.     }
  17.     set %resul $rand(1,2)
  18.     .timer 1 10 definir_tour_et_bonus
  19.   }
  20. }
  21.  
  22. Dans pile_face.ini :
  23.  
  24. On ^1:text:*:*:{
  25.   if (!pile == $1 && !%rand) {
  26.     if $nick == %j1 { set %resulj1 1 | set %resulj2 2 }
  27.     else { set %resulj2 1 | set %resulj1 2 }
  28.     set %rand
  29.   }
  30.   if (!face == $1 && !%rand) {
  31.     if $nick == %j1 { set %resulj1 2 | set %resulj2 1 }
  32.     else { set %resulj2 2 | set %resulj1 1 }
  33.     set %rand
  34.   }
  35. }
  36.  
  37. Dans alias.ini :
  38.  
  39. alias definir_tour_et_bonus {
  40.   if %resul == %resulj1 {
  41.     set %depart %j1
  42.   }
  43.   else {
  44.     set %depart %j2
  45.   }
  46.   say $active Le match va bientôt commencer. Nous allons tout d'abord définir les Bonus.
  47.   set %j1_pv $calc(20+ $rand(1,6))
  48.   set %j1_pm $calc(40+ $rand(1,6))
  49.   set %j2_pv $calc(20+ $rand(1,6))
  50.   set %j2_pm $calc(40+ $rand(1,6))
  51.   .timer 1 5 say $active Le joueur 1 possède donc %j1_pv PV et %j1_pm PM.
  52.   .timer 2 5 say $active Le joueur 2 possède donc %j2_pv PV et %j2_pm PM.
  53.   .timer 3 10 Nous pouvons désormais commencer, par %depart $+ .
  54. }
Add Comment
Please, Sign In to add comment