Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
WHOIS 1.73 KB | None | 0 0
  1. on *:TEXT:*:?: {
  2.   if ($1 == no) {
  3.     if (%duel == on && $nick == duelist2) {
  4.       msg #battlerpg 12 $+ %duelist2 $+  declined 4 $+ %duelist1 $+  $+ 's challenge.
  5.       unset %duel
  6.       unset %duelist1
  7.       unset %duelist2
  8.     }
  9.     else {
  10.       halt
  11.     }
  12.   }
  13.   if ($1 == yes) {
  14.     if (%duel == on && $nick == %duelist2) {
  15.       msg #battlerpg 12 $+ %duelist2 $+  has accepted 4 $+ %duelist1 $+  $+ 's challenge. May the duel commence!
  16.       set %duel active
  17.     }
  18.     else {
  19.       halt
  20.     }
  21.     if (%duel == active) {
  22.       if ($read("C:\QUARANTINE\BattleRPG Character Files\ $+ $nick $+ .txt",6) > $read("C:\QUARANTINE\BattleRPG Character Files\ $+ $2 $+ .txt",6) {
  23.         set %turn %duelist1
  24.         set % $+ %duelist1 1
  25.       }
  26.       elseif ($read("C:\QUARANTINE\BattleRPG Character Files\ $+ $nick $+ .txt",6) = $read("C:\QUARANTINE\BattleRPG Character Files\ $+ $2 $+ .txt",6) {
  27.         set %turn $gettok(%duelist1.%duelist2,$rand(1,2),46)
  28.         set % $+ $iif($gettok(%duelist1.%duelist2,$rand(1,2),46) == %duelist1,%duelist1,%duelist2) 1)
  29.       }
  30.       elseif ($read("C:\QUARANTINE\BattleRPG Character Files\ $+ $nick $+ .txt",6) < $read("C:\QUARANTINE\BattleRPG Character Files\ $+ $2 $+ .txt"),6) {
  31.         set %turn %duelist2
  32.         set % $+ %duelist2 1)
  33.       }
  34.       notice %turn $iif(%turn == %duelist1,$read("C:\QUARANTINE\BattleRPG Character Files\ $+ $nick $+ actions.txt",1),$read($qt(%actions2),1)
  35.       notice %turn $iif(%turn == %duelist1,$read("C:\QUARANTINE\BattleRPG Character Files\ $+ $nick $+ actions.txt",2),$read($qt(%actions2),2)
  36.       notice %turn $iif(%turn == %duelist1,$read("C:\QUARANTINE\BattleRPG Character Files\ $+ $nick $+ actions.txt",3),$read($qt(%actions2),3)
  37.     }
  38.   }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement