MikolajGra

XRelog 1.1.3 -JEDYNY OFICJALNY DOWNLOAD

Apr 6th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.04 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.1.3
  13.     czas: 15 #Czas walki W SEKUNDACH!
  14.     czasbana: 10 #Czas bana W MINUTACH!
  15. on damage of a player:
  16.     if {walka.%victim%} is false:  
  17.         victim is a player:
  18.             attacker is a player:
  19.                 set {walka.%victim%} to true
  20.                 send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to victim
  21.                 wait {@czas} seconds
  22.                 if {walka.%victim%} is true:
  23.                     send "%{tag}% &aJuz nie jestes w walce" to victim
  24.                     set {walka.%victim%} to false
  25.     if {walka.%attacker%} is false:
  26.         attacker is a player:
  27.             victim is a player:
  28.                 set {walka.%attacker%} to true
  29.                 send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to attacker            
  30.                 wait {@czas} seconds
  31.                 if {walka.%attacker%} is true:
  32.                     send "%{tag}% &aJuz nie jestes w walce" to attacker
  33.                     set {walka.%attacker%} to false
  34. on quit:
  35.     if {walka.%player%} is true:
  36.         clear player's inventory
  37.         set {ban.%player%} to true
  38.         wait {@czasbana} minutes
  39.         set {ban.%player%} to false
  40. command /xrelog [<text>] [<text>] [<text>]:
  41.     aliases: xr
  42.     trigger:
  43.         if argument 1 is "przestan":       
  44.             if argument 2 is not set:
  45.                 if player has permission "xrelog.przestan.ty" or "xrelog.*":
  46.                     if {walka.%player%} is true:
  47.                         set {walka.%player%} to false
  48.                         send "%{tag}% &aJuz nie jestes w walce - uzyles komende." to player
  49.                     else:
  50.                         send "%{tag}% &4Blad: &cNie jestes w walce!" to player
  51.                 else:
  52.                     send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy."
  53.         if argument 1 is "zacznij":
  54.             if player has permission "xrelog.zacznij.ty" or "xrelog.*":
  55.                 if {walka.%player%} is false:
  56.                     set {walka.%player%} to true
  57.                     send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie! - uzyles komendy."
  58.                     wait {@czas} seconds
  59.                     if {walka.%player%} is true:
  60.                         send "%{tag}% &aJuz nie jestes w walce - po wczesniejszym uzyciu komendy" to player
  61.                         set {walka.%player%} to false
  62.                 else:
  63.                     send "%{tag}% &4Blad: &cJestes w walce!" to player
  64.         if argument 1 is "tag":
  65.             if argument 2 is "zmien":
  66.                 if argument 3 is set:
  67.                     if player has permission "xrelog.tag.zmien":
  68.                         set {tag} to colored arg 3
  69.                         send "%{tag}% &aZmieniono tag!" to player
  70.                     else:
  71.                         send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy."
  72.                 else:
  73.                     send "%{tag}% &4Blad: &cWpisz nowa nazwe tagu!" to player
  74.             if argument 2 is "przywroc":
  75.                 if argument 3 is not set:
  76.                     if player has permission "xrelog.tag.przywroc" or "xrelog.*":
  77.                         set {tag} to "&2[&4X&cRelog&2]"
  78.                         send "%{tag}% &aPrzywrocono tag!" to player
  79.                     else:
  80.                         send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy."
  81.             else:
  82.                 if player has permission "xrelog.tag.przywroc" or "xrelog.tag.zmien" or "xrelog.*":
  83.                     send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przywroc, zmien)" to player
  84.         if argument 1 is "odbanuj":
  85.             if player has permission "xrelog.odbanuj" or "xrelog.*":
  86.                 if argument 2 is set:
  87.                     if {ban.%arg-2%} is true:
  88.                         set {ban.%arg-2%} to false
  89.                         send "%{tag}% &aPomyslnie odbanowales gracza %arg-2%!" to player
  90.                     else:
  91.                         send "%{tag}% &4Blad: &cPodany gracz (%arg-2%) nie jest zbanowany!" to player
  92.                 else:
  93.                     send "%{tag}% &4Blad: &cPodaj nazwe gracza!" to player
  94.             else:
  95.                 send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy!" to player
  96.         if argument 1 is "sprawdz":
  97.             if player has permission "xrelog.sprawdz" or "xrelog.*":
  98.                 if argument 2 is set:
  99.                     send "%{tag}% &eInformacje o graczu &c%arg-2%:" to player
  100.                     if {ban.%arg-2%} is true:
  101.                         send "&eZbanowany: &cTak" to player
  102.                     else:
  103.                         send "&eZbanowany: &cNie" to player
  104.                     if {walka.%arg-2%} is true:
  105.                         send "&eW walce: &cTak" to player
  106.                     else:
  107.                         send "&eW walce: &cNie" to player
  108.                 else:
  109.                     send "%{tag}% &4Blad: &cPodaj nazwe gracza!" to player
  110.             else:
  111.                 send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy"
  112.         if argument 1 is not set:
  113.             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.*":
  114.                 send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przestan, zacznij, tag, odbanuj, sprawdz)" to player        
  115. on join:
  116.     send "&2Serwer uruchomiony jest ze skryptem &4X&cRelog by &aMikolajGra"
  117.     if {ban.%player%} is true:
  118.         kick the player due to "%{tag}% &4Zostales zbanowany na &e{@czasbana} minut&4, poniewaz wylogowales sie podczas walki!"  
  119. on skript start:
  120.     send "&2&4X&cRelog&2 - skript by &aMikolajGra&2 wersja: {@wersja}" to the console      
  121. on command:
  122.     if {walka.%player%} is true:
  123.         if player has permission "xrelog.walka.komenda" or "xrelog.*":
  124.             stop
  125.         else:
  126.             cancel event
  127.             send "%{tag}% &4Nie mozesz uzywac tej komendy podczas walki!" to player
Advertisement
Add Comment
Please, Sign In to add comment