Facebook
From Luxq1, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 563
  1. options:
  2.         t: &6[&bLastCraft&6]&b
  3.         czat: &6{RANK} &8[&a{TAG}&8] {DISPLAY}: {MESSAGE}
  4.         pobraniejeslibrak: &8[&a{TAG}&8]
  5.         item1: diamond 64
  6.         item2: emerald 64
  7.         item3: ender pearl 64
  8.         item4: iron ingot 64
  9.        
  10. variables:
  11.         {ranking.%player%} = 1000
  12.        
  13. on first join:
  14.         set join message to "&9Edanet.pl &a%player% +"
  15.         set {gildia.%name of player%.brak} to true
  16.         add 100 to {ranking.%player%}
  17.  
  18. on join:
  19.         if {ranking.%player%.jest} is false:
  20.                 add 100 to {ranking.%player%}
  21.                 set {ranking.%player%.jest} to true
  22.        
  23. command /zaloz [<text>] [<text>]:
  24.         trigger:
  25.                 if arg 1 is not set:
  26.                         send "{@t} Poprawne uzycie /zaloz <TAG> <NAZWA>"
  27.                         stop
  28.                 if {gildia.tag.%arg 1%} is true:
  29.                         send "{@t} Gildia o podanym tagu juz istnieje!"
  30.                         stop
  31.                 if {gildia.%player%.owner} is true:
  32.                         send "{@t} Masz juz gildie!"
  33.                         stop
  34.                 if {gildia.%player%.member} is true:
  35.                         send "{@t} Jestes czlonkiem gildii!"
  36.                         stop
  37.                 if arg 2 is not set:
  38.                         send "{@t} Nie podales nazwy gildii"
  39.                         stop
  40.                 if arg 1 is not empty:
  41.                         if arg 2 is not empty:
  42.                                 player don't have {@item1}:
  43.                                         send "&6Itemy"
  44.                                         send "&9Proch &c%number of gunpowder in the player's inventory%&a/5"
  45.                                         send "&9Zlote Jablka &c%number of golden apple in the player's inventory%&a/2"
  46.                                         send "&9Diamenty &c%number of diamond in the player's inventory%&a/5"
  47.                                         send "&9Ender Perly &c%number of ender pearl in the player's inventory%&a/3"
  48.                                         stop
  49.                                 player don't have {@item2}:
  50.                                         send "&6Nie posiadasz {@item2}"
  51.                                         stop
  52.                                 player don't have {@item3}:
  53.                                         send "&6Nie posiadasz {@item3}"
  54.                                         stop
  55.                                 player don't have {@item4}:
  56.                                         send "&6Nie posiadasz {@item4}"
  57.                                         stop
  58.                                 player cannot build at block under player:
  59.                                         send "&4Teren pod toba jest zajety :P"
  60.                                         stop
  61.                                 player cannot build at block 100 meters northwest:
  62.                                         send "&4Teren na polnocny zachod jest zajety"
  63.                                         stop
  64.                                 player cannot build at block 100 meters north:
  65.                                         send "&4Teren na polnoc jest zajety"
  66.                                         stop
  67.                                 player cannot build at block 100 meters northeast:
  68.                                         send "&4Teren na polnocny wschod jest zajety"
  69.                                         stop
  70.                                 player cannot build at block 100 meters west:
  71.                                         send "&4Teren na zachod jest zajety"
  72.                                         stop
  73.                                 player cannot build at block 100 meters east:
  74.                                         send "&4Teren na wschod jest zajety"
  75.                                         stop
  76.                                 player cannot build at block 100 meters southwest:
  77.                                         send "&4Teren na poludniowy zachud jest zajety"
  78.                                         stop
  79.                                 player cannot build at block 100 meters south:
  80.                                         send "&4Teren na poludnie jest zajety"
  81.                                         stop
  82.                                 player cannot build at block 100 meters southeast:
  83.                                         send "&4Teren na poludniowy wschod jest zajety"
  84.                                         stop
  85.                                 if distance between {spawn} and location of player is greater than 150+50/2:
  86.                                         execute console command "pex user %name of player% add worldedit.*"
  87.                                         execute console command "pex user %name of player% add worldguard.*"
  88.                                         wait 1 tick
  89.                                         execute player command "//pos1"
  90.                                         execute player command "//pos2"
  91.                                         execute player command "//expand 50 w"
  92.                                         execute player command "//expand 50 n"
  93.                                         wait 2 tick
  94.                                         execute player command "//expand 50 e"
  95.                                         execute player command "//expand 50 s"
  96.                                         execute player command "//expand vert"
  97.                                         execute player command "region define gildia-%arg 1%"
  98.                                         execute player command "region flag gildia-%arg 1% chest-access allow"
  99.                                         execute player command "region flag gildia-%arg 1% use allow"
  100.                                         wait 2 tick
  101.                                         execute player command "region addowner gildia-%arg 1% %name of player%"
  102.                                         execute console command "pex user %name of player% remove worldedit.*"
  103.                                         execute console command "pex user %name of player% remove worldguard.*"
  104.                                         loop 98 times:
  105.                                                 send ""
  106.                                         message "{@t}Stworzyles Gildie"
  107.                                         set block at player to dragon egg
  108.                                         wait 3 tick
  109.                                         set {gildia.%name of player%.brak} to true
  110.                                         set {gildia.tag.%name of player%} to arg 1
  111.                                         execute console command "ne prefix %name of player% &c[**][%arg 1%]"
  112.                                         set {gildia.%name of player%.owner} to true
  113.                                         set {gildia.home.%arg 1%} to location of player
  114.                                         broadcast "{@t}&a Gildia o TAGu [%arg 1%] zostala zalozona przez &9%name of player%"
  115.                                         set {gildia.%name of player%} to true
  116.                                         set {_cos} to "%{gildia.tag.%name of player%}%"
  117.                                         add player to {gildia.ownerklanu.%{_cos}%::*}
  118.                                         add arg 1 to {listagildii::*}
  119.                                         wait 1 seconds
  120.                                         remove {@item1} from the player's inventory
  121.                                         remove {@item2} from the player's inventory
  122.                                         remove {@item3} from the player's inventory
  123.                                         remove {@item4} from the player's inventory
  124.                                         set {gildia.tag.%arg 1%} to true
  125.                                         wait 2 tick
  126.                                         set {baza.%arg 1%} to true
  127.                                 else:
  128.                                         send "&6Zbyt blisko spawnu!"
  129.                                        
  130.                                
  131.                                        
  132. command /lista:
  133.         trigger:
  134.                 if size of {listagildii::*} is 0:
  135.                         send "&7Nie ma jeszcze gildii na serwerze :)"
  136.                 else:
  137.                         send "&9Lista gildii: &6 %{listagildii::*}%"
  138.                        
  139. command /baza:
  140.         trigger:
  141.                 if {baza.%{gildia.tag.%name of player%}%} is true:
  142.                         teleport player to {gildia.home.%{gildia.tag.%name of player%}%}
  143.                         send "&bPrzeteleportowales sie na Home swojej Gildii :)"
  144.                         stop
  145.                 send "&6Nie posiadasz gildii!"
  146.                
  147. command /opis [<text>]:
  148.         trigger:
  149.                 if arg 1 is not set:
  150.                         send "&cNie poprawne uzycie. poprawne /opis <opis gildii>"
  151.                         stop
  152.                 if {gildia.%name of player%.owner} is true:
  153.                         execute console command "pex user %name of player% add worldguard.*"
  154.                         execute player command "region flag gildia-%{gildia.tag.%name of player%}% greeting %arg 1%"
  155.                         execute player command "region flag gildia-%{gildia.tag.%name of player%}% farewell %arg 1%"
  156.                         execute console command "pex user %name of player% remove worldguard.*"
  157.                         broadcast "&6Opis gildii &2(%{gildia.tag.%name of player%}%) &6zostal ustawiony na &b%arg 1%"
  158.                 else:
  159.                         send "&9Nie masz gildii lub nie posiadasz zalozyciela"
  160.                
  161. command /usun:
  162.         trigger:
  163.                 if {gildia.%name of player%.owner} is true:
  164.                         broadcast "{@t} Gracz %player% usunal gildie (%{gildia.tag.%name of player%}%)"
  165.                         set {_cot} to {gildia.tag.%name of player%}
  166.                         remove {_cot} from {listagildii::*}
  167.                         set {gildia.%name of player%.brak} to false
  168.                         set {_tag} to {gildia.tag.%name of player%}
  169.                         loop {czlonkowie.%{_tag}%::*}:
  170.                                 set {gildia.tag.%loop-value%} to ""
  171.                                 execute console command "ne prefix %loop-value% &7"
  172.                                 delete {gildia.tag.%loop-value%}
  173.                                 set {gildia.%loop-value%.member} to false
  174.                         execute console command "pex user %name of player% add worldguard.*"
  175.                         execute player command "rg remove gildia-%{gildia.tag.%player%}%"
  176.                         execute console command "pex user %name of player% remove worldguard.*"
  177.                         set {gildia.tag.%{gildia.tag.%name of player%}%} to false
  178.                         wait 1 tick
  179.                         set {baza.%{gildia.tag.%name of player%}%} to false
  180.                         set {gildia.%name of player%.brak} to true
  181.                         execute console command "ne prefix %name of player% &7"
  182.                         set {gildia.tag.%name of player%} to ""
  183.                         set {gildia.%player%.owner} to false
  184.                         set {gildia.%name of player%.tagg} to false
  185.                 else:
  186.                         send "{@t} Nie masz gildii"
  187.                        
  188.                        
  189.                        
  190. command /zapros [<player>]:
  191.         trigger:
  192.                 if arg 1 is not set:
  193.                         send "&6Poprawne uzycie &a/zapros <nick>"
  194.                 else:
  195.                         if {gildia.%name of player%.owner} is true:
  196.                                 send "&6Zaproszono cie do gildi %{gildia.tag.%name of player%}% wpisz /dolaczam %{gildia.tag.%name of player%}% &baby dolaczyc" to arg player
  197.                                 send "&2Zaproszono gracza %arg player% do gildii"
  198.                                 set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to true
  199.                                 wait 30 seconds
  200.                                 set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to false
  201.                                
  202. command /dolaczam [<text>]:
  203.         trigger:
  204.                 if arg 1 is not set:
  205.                         send "&6Porawne uzycie &b/dolaczam <tag gildii>"
  206.                 else:
  207.                         if {gildia.%name of player%.owner} is true:
  208.                                 send "&4Posiadasz juz gildie!"
  209.                         if {gildie.%name of player%.member} is true:
  210.                                 send "&4Jestes juz w gildii!"
  211.                                 stop
  212.                         if {gildia.zapro.%name of player%.%arg 1%} is true:
  213.                                 set {gildia.tag.%name of player%} to arg 1
  214.                                 broadcast "{@t} Gracz %player% dolaczyl do gildii &2(%{gildia.tag.%name of player%}%)"
  215.                                 set {gildia.%name of player%.member} to true
  216.                                 execute console command "pex user %name of player% add worldguard.*"
  217.                                 execute player command "rg addmember gildia-%{gildia.tag.%name of player%}% %player%"
  218.                                 execute console command "ne prefix %name of player% &c[%arg 1%]"
  219.                                 execute console command "pex user %name of player% remove worldguard.*"
  220.                                 set {gildia.%name of player%.brak} to true
  221.                                 add player to {czlonkowie.%arg 1%::*}
  222.                                 add player to {members.%{gildia.tag.%name of player%}%::*}
  223.                                 stop
  224.                         send "&6Nie masz zaproszenia do gildii %arg 1%"
  225.                        
  226. command /opusc:
  227.         trigger:
  228.                 if {gildia.%name of player%.owner} is true:
  229.                         send "&4Jestes adminem gildii nie mozesz jej opuscic /usun!"
  230.                         stop
  231.                 if {gildia.%name of player%.brak} is false:
  232.                         send "{@t} Nie masz gildii!"
  233.                         stop
  234.                 else:
  235.                         if {gildia.%name of player%.member} is true:
  236.                                 set {gildia.%name of player%.member} to false
  237.                                 execute console command "pex user %name of player% add worldguard.*"
  238.                                 execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %player%"
  239.                                 execute console command "pex user %name of player% remove worldguard.*"
  240.                                 broadcast "{@t} Gracz %player% opuscil gildie &2(%{gildia.tag.%name of player%}%)"
  241.                                 execute console command "ne prefix %name of player% &7"
  242.                                 set {gildia.%name of player%.brak} to true
  243.                                 set {gildia.tag.%name of player%} to ""
  244.                         else:
  245.                                 send "&8Nie jestes w gildii"
  246.                        
  247. command /wywal [<player>]:
  248.         trigger:
  249.                 if arg 1 is not set:
  250.                         send "&6Poprawne uzycie &b/wywal <nick>"
  251.                 else:
  252.                         if {gildia.%name of player%.owner} is true:
  253.                                 if {gildia.tag.%name of player%} is {gildia.tag.%arg player%}:
  254.                                         if {gildia.%arg player%.owner} is true:
  255.                                                 send "&6Nie wywalisz siebie xd"
  256.                                                 stop
  257.                                         execute console command "pex user %name of player% add worldguard.*"
  258.                                         execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %arg player%"
  259.                                         execute console command "pex user %name of player% remove worldguard.*"
  260.                                         broadcast "{@t} &4Gracz %player% wyzucil z gildii gracza &c%arg player% &2(%{gildia.tag.%name of player%}%)"
  261.                                         execute console command "ne prefix %arg-player% &c[%arg 1%]"
  262.                                         set {gildia.tag.%arg player%} to ""
  263.                                         set {gildia.%arg player%.member} to false
  264.                                         set {gildia.%arg-player%.brak} to false
  265.                                         teleport argument to spawn
  266.                                         send "&3Wywalono Ciebie z gildi! &bPrzeteleportowano cie na spawn!" to arg player
  267.                                        
  268. command /setbaza:
  269.         trigger:
  270.                 if {gildia.%name of player%.owner} is true:
  271.                         set {gildia.home.%{gildia.tag.%name of player%}%} to location of player
  272.                         send "&{@t} ustawiles baze gildii!"
  273.                         set {gildia.%name of player%.tagg} to true
  274.                 else:
  275.                         send "&6Nie jestes zalozycielem nie mozesz przestawiac bazy!"
  276.                        
  277. on death of player:
  278.         set {_x} to a random integer between 0 and 500
  279.         attacker is a player
  280.         victim is a player
  281.         set death message to "&c%victim% &bzostal zabity przez &c%attacker% &6+%{_x}%"
  282.         add {_x} to {ranking.%attacker%}
  283.                                                
  284. on chat:
  285.         set {_chat} to "{@czat}"
  286.         if {gildia.%name of player%.owner} is true:
  287.                 replace all "{TAG}" with "**%{gildia.tag.%name of player%}%" in {_chat}
  288.         if {gildia.%name of player%.member} is true:
  289.                 replace all "{TAG}" with "%{gildia.tag.%name of player%}%" in {_chat}
  290.         if {gildia.%name of player%.mod} is true:
  291.                 replace all "{TAG}" with "*%{gildia.tag.%name of player%}%" in {_chat}
  292.         replace all "{@pobraniejeslibrak}" with "" in {_chat}
  293.         replace all "{PLAYER}" with "%player%" in {_chat}
  294.         replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  295.         replace all "{MESSAGE}" with "%message%" in {_chat}
  296.         replace all "{RANK}" with "%{ranking.%name of player%}%" in {_chat}
  297.         replace all "<none>" with "&61000" in {_chat}
  298.         send "%{_chat}%" to all players
  299.         cancel event
  300.        
  301. command /Gildie_Setspawn:
  302.         trigger:
  303.                 if player has permission "sk":
  304.                         set {spawn} to location of player
  305.                         send "{@t} ustawiono set spawn blokady cuboidow!"
  306.                 else:
  307.                         send "&6Brak permisji"
  308.                        
  309. command /lider <player>:
  310.         trigger:
  311.                 if {gildia.%name of player%.owner} is true:
  312.                         if arg 1 is set:
  313.                                 if {gildia.%arg-player%.brak} is false:
  314.                                         send "&9Ten gracz nie ma gildii"
  315.                                         stop
  316.                                 set {gildia.%arg-player%.owner} to true
  317.                                 set {gildia.%name of player%.owner} to false
  318.                                 set {gildia.%name of player%.member} to true
  319.                                 execute console command "pex user %name of player% add worldguard.*"
  320.                                 execute console command "ne prefix %name of player% &c[%{gildia.tag.%name of player%}%]"
  321.                                 execute console command "ne prefix %arg-player% &c[**][%{gildia.tag.%name of player%}%]"
  322.                                 execute player command "rg removeowner %{gildia.tag.%name of player%}% %name of player%"
  323.                                 execute player command "rg addowner %{gildia.tag.%name of player%}% %arg-player%"
  324.                                 execute console command "pex user %name of player% remove worldguard.*"
  325.                                 broadcast "&6Lider gildii &2(%{gildia.tag.%name of player%}%) zostal oddany &b%arg-player%"
  326.                         else:
  327.                                 send "&6Poprawne uzycie &b/lider <nick>"
  328.                 else:
  329.                         send "&9Nie jestes Liderem gildii"
  330.                        
  331.                                        
  332. command /f:
  333.         aliases: g, gildia, factions, frakcje, gildie
  334.         trigger:
  335.                 send "&7======================&9{@t}&7===================="
  336.                 send "&6/Zaloz <TAG> <NAZWA> - &a Zakladasz gildie"
  337.                 send "&6/Wywal <nick> - &a Wywalasz wybrana osobe z gildii"
  338.                 send "&6/Zapros <nick> - &a Zapraszasz wybrana osobe do gildii"
  339.                 send "&6/Dolaczam <NAZWA GILDII> - &a Dolaczasz do wybranej gildii"
  340.                 send "&6/SetBaza - &a Ustawiasz baze gildii w miejscu stania"
  341.                 send "&6/Baza - &a Teleport Do Gildii"
  342.                 send "&6/Opusc - &a Opuszczasz Gildie"
  343.                 send "&6/Usun - &a Usuwasz swoja gildie"
  344.                 send "&6/Opis <opis> - &a Ustawiasz opis swojej gildii"
  345.                 send "&6/Lider <Nick> - &a Oddajesz lidera gildii"
  346.                 send "&6/Lista - &a Lista gildii na serwerze"
  347.                 send "-----------------------------------------------------"
  348.                        
  349. on region enter:
  350.         if player is the owner of the region:
  351.                 create timed bar with text "&2Wszedles na teren swojej gildii :)" to player for 10 seconds
  352.                 stop
  353.         if player is member of the region:
  354.                 create timed bar with text "&bCzlonek twojej gildii - %player% wszedl na wasz cuboid!" to all owners of the region for 10 seconds
  355.                 create timed bar with text "&bCzlonek twojej gildii - %player% wszedl na wasz cuboid!" to all members of the region for 10 seconds
  356.                 stop
  357.         create timed bar with text "&cNie Przyjaciel - %player% wszedl na twoj teren!" to all owners of the region for 10 seconds
  358.         create timed bar with text "&cNie Przyjaciel - %player% wszedl na wasz teren!" to all members of the region for 10 seconds
  359.         create timed bar with text "&cWszedles na teren gildyjny - %{gildia.tag.%owner of region%}%" to player for 10 seconds
  360.  
  361. on region exit:
  362.         if player is the owner of the region:
  363.                 create timed bar with text "&cWychodzisz z terenu swojej gildii uwazaj na siebie!" to player for 10 seconds
  364.                 stop
  365.         if player is member of the region:
  366.                 create timed bar with text "&cCzlonek twojej gildii - %player% opuscil teren!" to all owners of the region for 10 seconds
  367.                 create timed bar with text "&bOpuszczasz teren swojej gildii!" to player for 10 seconds
  368.                 stop
  369.         create timed bar with text "&aKtos opuscil twoj teren" to all owners of the region for 10 seconds
  370.         create timed bar with text "&aKtos opuscil twoj teren" to all members of the region for 10 seconds
  371.         create timed bar with text "&7Opusciles teren gildii %{gildia.tag.%owner of region%}%" to player for 10 seconds