Advertisement
Stiepen

[KVS] ingame bot patcher

Mar 24th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. if ($target == "#MaxCraft") {
  2.     if ($0 == "MaxCraftServer") {
  3.         %t = $3
  4.         %t =~ s/^[^ :\\*]+\\:/stuff/
  5.         if (%t != $3) {
  6.             %nick = $3
  7.             %nick =~ s/^([^ :\\*]+)\\:.*$/\\1/
  8.             %msg = $3
  9.             %msg =~ s/^[^ :\\*]+\\:(.*)$/\\1/
  10.             echoprivmsg -i=25 MC:%nick $1 $2 %msg
  11.             halt
  12.         }
  13.         %t = $3
  14.         %t =~ s/^([^ ]+) connected$/\\1/
  15.         if (%t != $3) {
  16.             echo -i=20 %t joined the game
  17.             halt
  18.         }
  19.  
  20.         %t = $3
  21.         %t =~ s/^([^ ]+) disconnected$/\\1/
  22.         if (%t != $3) {
  23.             echo -i=21 %t left the game
  24.             halt
  25.         }
  26.         %t = $3
  27.         %t =~ s/^\\* (.*)$/\\1/
  28.         if (%t != $3) {
  29.             echo -i=32 MC:%t
  30.             halt
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement