MikolajGra

XRelog 1.2 -JEDYNY OFICJALNY DOWNLOAD

Apr 7th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.44 KB | None | 0 0
  1. #XRELOG - Skript by MikolajGra
  2.  
  3. #Licencja http://creativecommons.org/licenses/by-nc-nd/3.0/pl/legalcode z jednym wyjątkiem - pozwalam na edytowanie czasu walki i czasu bana
  4.  
  5. #KORZYSTAJĄC ZE SKRIPTU AKCEPTUJESZ LICENCJĘ.
  6. variables:
  7.     {walka.%player%} = false
  8.     {tag} = "&2[&4X&cRelog&2]"
  9.     {ban.%player%} = false
  10.     {xrelog.tag.uzycie.%player%} = false
  11. options:
  12.     wersja: 1.2
  13.     czas: 15 #Czas walki W SEKUNDACH!
  14.     czasbana: 10 #Czas bana W MINUTACH!
  15.     dostep: &4Blad: &cNie masz dostepu do tej komendy.
  16. on damage of a player:
  17.     if {walka.%victim%} is false:  
  18.         victim is a player:
  19.             attacker is a player:
  20.                 set {walka.%victim%} to true
  21.                 send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to victim
  22.                 wait {@czas} seconds
  23.                 if {walka.%victim%} is true:
  24.                     send "%{tag}% &aJuz nie jestes w walce" to victim
  25.                     set {walka.%victim%} to false
  26.     if {walka.%attacker%} is false:
  27.         attacker is a player:
  28.             victim is a player:
  29.                 set {walka.%attacker%} to true
  30.                 send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to attacker            
  31.                 wait {@czas} seconds
  32.                 if {walka.%attacker%} is true:
  33.                     send "%{tag}% &aJuz nie jestes w walce" to attacker
  34.                     set {walka.%attacker%} to false
  35. on quit:
  36.     if {walka.%player%} is true:
  37.         clear player's inventory
  38.         set {ban.%player%} to true
  39.         wait {@czasbana} minutes
  40.         set {ban.%player%} to false
  41. command /xrelog [<text>] [<text>] [<text>]:
  42.     aliases: xr
  43.     trigger:
  44.         if argument 1 is "przestan":       
  45.             if argument 2 is not set:
  46.                 if player has permission "xrelog.przestan.ty" or "xrelog.*":
  47.                     if {walka.%player%} is true:
  48.                         set {walka.%player%} to false
  49.                         send "%{tag}% &aJuz nie jestes w walce - uzyles komende." to player
  50.                     else:
  51.                         send "%{tag}% &4Blad: &cNie jestes w walce!" to player
  52.                 else:
  53.                     send "%{tag}% {@dostep}" to player
  54.             else:
  55.                 if player has permission "xrelog.przestan.on" or "xrelog.*":
  56.                     if arg 2 parsed as player is set:
  57.                         if {walka.%arg-2%} is true:
  58.                             set {walka.%player%} to false
  59.                             send "%{tag}% &aGracz &e%arg-2% &ajuz nie jest w walce - uzyles komendy!"  to player
  60.                             send "%{tag}% &aJuz nie jestes w walce! - gracz &e%player% &auzyl komendy." to arg 2 parsed as player
  61.                         else:
  62.                             send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) nie jest w walce!" to player
  63.                     else:
  64.                         send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest offline." to player
  65.                 else:
  66.                     send "%{tag}% {@dostep}" to player
  67.         if argument 1 is "zacznij":
  68.             if argument 2 is not set:
  69.                 if player has permission "xrelog.zacznij.ty" or "xrelog.*":
  70.                     if {walka.%player%} is false:
  71.                         set {walka.%player%} to true
  72.                         send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie! - uzyles komendy." to player
  73.                         wait {@czas} seconds
  74.                         if {walka.%player%} is true:
  75.                             send "%{tag}% &aJuz nie jestes w walce - po wczesniejszym uzyciu komendy" to player
  76.                             set {walka.%player%} to false
  77.                     else:
  78.                         send "%{tag}% &4Blad: &cJestes w walce!" to player
  79.                 else:
  80.                     send "%{tag}% {@dostep}" to player
  81.             else:
  82.                 if player has permission "xrelog.zacznij.on" or "xrelog.*":
  83.                     if arg 2 parsed as player is set:
  84.                         if {walka.%arg-2%} is false:
  85.                             set {walka.%player%} to true
  86.                             send "%{tag}% &cGracz &e%arg-2% &cjest w walce - uzyles komendy!"  to player
  87.                             send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie! - gracz &e%player% &4uzyl komendy." to arg 2 parsed as player
  88.                             wait {@czas} seconds
  89.                             if {walka.%arg-2%} is true:
  90.                                 send "%{tag}% &aJuz nie jestes w walce - po wczesniejszym uzyciu komendy przez gracza %player%" to arg 2 parsed as player
  91.                                 send "%{tag}% &AGracz &e%arg-2%&a juz nie jest w walce - wczesniej uzyles komendy!" to player
  92.                                 set {walka.%arg-2%} to false
  93.                         else:
  94.                             send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest w walce!" to player
  95.                     else:
  96.                         send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest offline." to player
  97.                 else:
  98.                     send "%{tag}% {@dostep}" to player
  99.                    
  100.         if argument 1 is "tag":
  101.             if argument 2 is "zmien":
  102.                 if argument 3 is set:
  103.                     if player has permission "xrelog.tag.zmien":
  104.                         set {tag} to colored arg 3
  105.                         send "%{tag}% &aZmieniono tag!" to player
  106.                     else:
  107.                         send "%{tag}% {@dostep}" to player
  108.                 else:
  109.                     send "%{tag}% &4Blad: &cWpisz nowa nazwe tagu!" to player
  110.             if argument 2 is "przywroc":
  111.                 if argument 3 is not set:
  112.                     if player has permission "xrelog.tag.przywroc" or "xrelog.*":
  113.                         set {tag} to "&2[&4X&cRelog&2]"
  114.                         send "%{tag}% &aPrzywrocono tag!" to player
  115.                     else:
  116.                         send "%{tag}% {@dostep}" to player
  117.             else:
  118.                 if player has permission "xrelog.tag.przywroc" or "xrelog.tag.zmien" or "xrelog.*":
  119.                     send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przywroc, zmien)" to player
  120.         if argument 1 is "odbanuj":
  121.             if player has permission "xrelog.odbanuj" or "xrelog.*":
  122.                 if argument 2 is set:
  123.                     if {ban.%arg-2%} is true:
  124.                         set {ban.%arg-2%} to false
  125.                         send "%{tag}% &aPomyslnie odbanowales gracza &e%arg-2% &a!" to player
  126.                     else:
  127.                         send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) nie jest zbanowany!" to player
  128.                 else:
  129.                     send "%{tag}% &4Blad: &cPodaj nazwe gracza!" to player
  130.             else:
  131.                 send "%{tag}% {@dostep}" to player
  132.         if argument 1 is "sprawdz":
  133.             if player has permission "xrelog.sprawdz" or "xrelog.*":
  134.                 if argument 2 is set:
  135.                     if argument 2 parsed as player is set:
  136.                         send "%{tag}% &cInformacje o graczu &e%arg-2%:" to player
  137.                         if {ban.%arg-2%} is true:
  138.                             send "&eZbanowany: &aTak" to player
  139.                         else:
  140.                             send "&eZbanowany: &cNie" to player
  141.                         if {walka.%arg-2%} is true:
  142.                             send "&eW walce: &aTak" to player
  143.                         else:
  144.                             send "&eW walce: &cNie" to player
  145.                     else:
  146.                         send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest offline." to player
  147.                 if argument 2 is not set:
  148.                     send "%{tag}% &cInformacje o graczu &e%player%:" to player
  149.                     if {ban.%arg-2%} is true:
  150.                         send "&eZbanowany: &aTak" to player
  151.                     else:
  152.                         send "&eZbanowany: &cNie" to player
  153.                     if {walka.%arg-2%} is true:
  154.                         send "&eW walce: &aTak" to player
  155.                     else:
  156.                         send "&eW walce: &cNie" to player
  157.             else:
  158.                 send "%{tag}% {@dostep}" to player
  159.         if argument 1 is not "przestan" or "zacznij" or "tag" or "odbanuj" or "sprawdz":
  160.             if player has permission "xrelog.przestan.ty" or "xrelog.zacznij.ty" or "xrelog.tag.zmien" or "xrelog.tag.przywroc" or "xrelog.odbanuj" or "xrelog.sprawdz" or "xrelog.*":
  161.                 send "%{tag}% &4Blad: &cNieznana komenda." to player
  162.         if argument 1 is not set:
  163.             if player has permission "xrelog.przestan.ty" or "xrelog.zacznij.ty" or "xrelog.przestan.on" or "xrelog.zacznij.on" or "xrelog.tag.zmien" or "xrelog.tag.przywroc" or "xrelog.odbanuj" or "xrelog.sprawdz" or "xrelog.*":
  164.                 send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przestan, zacznij, tag, odbanuj, sprawdz)" to player                        
  165. on join:
  166.     send "&2Serwer uruchomiony jest ze skryptem &4X&cRelog by &aMikolajGra"
  167.     if {ban.%player%} is true:
  168.         kick the player due to "%{tag}% &4Zostales zbanowany na &e{@czasbana} minut&4, poniewaz wylogowales sie podczas walki!"  
  169. on skript start:
  170.     send "&2&4X&cRelog&2 - skript by &aMikolajGra&2 wersja: {@wersja}" to the console      
  171. on command:
  172.     if {walka.%player%} is true:
  173.         if player has permission "xrelog.walka.komenda" or "xrelog.*":
  174.             stop
  175.         else:
  176.             cancel event
  177.             send "%{tag}% &4Nie mozesz uzywac tej komendy podczas walki!" to player
Advertisement
Add Comment
Please, Sign In to add comment