kondziu156
Użytkownik-
Ilość zawartości
170 -
Rejestracja
-
Ostatnia wizyta
Treść opublikowana przez kondziu156
-
on damage: if {test.%attacker%} is true: apply poison 1 to victim for 10 seconds stop else: send "Nie dziala" to attacker stop
-
nauczyłem się nowego condition :D Czy jest podzielne przez 60. Dziękuje ;3
-
Sry dawno w skripcie nie siedziałem i zapomniałem o '*' xd Dziękuje za poprawienie
-
Czy da się sczytać amount of items z zmiennej parsed as item?
kondziu156 odpowiedział(a) na piter909 pytanie w Pytania i problemy
set {_ilosc} to {zmienna} parsed as integer -
Jeżeli jest to serwer z dropem, to może stały efekt ? np. Haste I A jakie błędy wywala ?
-
on cosume: if name of player's tool is "&2Super ciastko": add 180 to {efekt::%player%::speed} #Czas w sekundach trwania efektu add player to {efekty::speed} #Dodajemy gracza do listy, ktora bedziemy zapetlacevery second: loop {efekty::speed}: #zapetla liste if {efekt::%loop-value%::speed} is bigger than 0: #sprawdza czy gracz z listy ma jeszcze efekt apply speed 2 to loop-value for second #Daje efekt graczowi else if {efekt::%loop-value%::speed} is 0: # Gdy efekt sie skonczy remove loop-value from {efekty::speed} #Usuwa gracza z listy (usuwa efekt) Coś takiego ? Chyba nie powinno za bardzo obciążać :)
-
command /vip: permission: kit.vip trigger: if {kit::vip::%player%} is not set: set {kit::vip::%player%} to 0 else: if {kit::vip::%player%} is bigger than 0: send "&6Musisz poczekac jeszcze: &a%{kit::vip::%player%} minut&6!" stop else: send "&6Otrzymales kit &aVipa&6!" give 1 diamond helmet of protection 4 named "&6Kask Vipa" give 1 diamond chestplate of protection 4 named "&6Klata Vipa" give 1 diamond leggings of protection 4 named "&6Spodnie Vipa" give 1 diamond boots of protection 4 named "&6Sandaly Vipa" give 1 diamond sword of sharpness 5 named "&6Miecz Vipa" add 180 to {kit::vip::%player%} stopcommand /svip: permission: kit.svip trigger: if {kit::svip::%player%} is not set: set {kit::svip::%player%} to 0 else: if {kit::svip::%player%} is bigger than 0: send "&6Musisz poczekac jeszcze: &a%{kit::svip::%player%} minut&6!" stop else: send "&6Otrzymales kit &5SVipa&6!" give 1 diamond helmet of protection 4 and unbreaking 3 named "&2Kask SVipa" give 1 diamond chestplate of protection 4 and unbreaking 3 named "&2Klata SVipa" give 1 diamond leggings of protection 4 and unbreaking 3 named "&2Spodnie SVipa" give 1 diamond boots of protection 4 and unbreaking 3 named "&2Sandaly SVipa" give 1 diamond sword of sharpness 5 and fire aspect 2 named "&2Miecz SVipa" add 180 to {kit::svip::%player%} stopevery minute: loop all players: if {kit::vip::%player%} is bigger than 0: remove 1 from {kit::vip::%player%} if {kit::svip::%player%} is bigger than 0: remove 1 from {kit::svip::%player%}Nie testowane :)
-
No, ciekawy skrypt :) Nie trzeba się z modami męczyć :D
-
Marek w skrypcie z neta...
- 16 odpowiedzi
-
A zrobiłeś tą poprawkę co napisałem ? teleport player to {_p} na teleport {_p} to player
- 16 odpowiedzi
-
No to przepraszam, ale pisałem go na szybko. To w końcu ten skrypt zadziałał (z netu), czy nie ?
- 16 odpowiedzi
-
command /tpa [<text>]: trigger: if arg 1 is not set: send "Podaj nick gracza." stop set {_arg1} to arg 1 set {_arg1} to {_arg1} parsed as offlineplayer if {_arg1} is online: send "Gracz %player% wysyla Tobie zapytanie o teleportacje." to {_arg1} send "Wpisz &e/tpaccept &raby akceptowac" to {_arg1} send "Wpisz &e/tpdeny &raby anulowac" to {_arg1} send "Wyslales zapytanie o akceptowanie teleportacji do: %{_arg1}%" set {tpa::%{_arg1}%::sendAsk} to name of player set {tpa::%player%::toTeleport} to {_arg1}on quit: if {tpa::%player%::toTeleport} is set: clear {tpa::%{tpa::%player%::toTeleport}%::toTeleport} clear {tpa::%player%::toTeleport} if {tpa::%player%::sendAsk} is set: clear {tpa::%{tpa::%player%::sendAsk}%::sendAsk} clear {tpa::%player%::sendAsk}command /tpaccept: trigger: if {tpa::%player%::sendAsk} is set: set {_p} to {tpa::sendAsk::%player%} set {_p} to {_p} parsed as offlineplayer if {_p} is online: send "Gracz %player% akceptowal twoje zapytanie o teleportacje." to {_p} send "Nie ruszaj sie przez 5 sekund." to {_p} send "Akceptowales zapytanie o teleportacje do Ciebie od %{_p}%" clear {tpa::%{_p}%::toTeleport} clear {tpa::%player%::toTeleport} clear {tpa::%{_p}%::sendAsk} clear {tpa::%player%::sendAsk} set {_x} to x-location of {_p} set {_y} to y-location of {_p} set {_z} to z-location of {_p} loop 5 times: if difference between x-location of {_p} and {_x} is larger than 0.5: send "Ruszyles sie. Teleportacja przerwana." to {_p} stop if difference between y-location of {_p} and {_y} is larger than 0.5: send "Ruszyles sie. Teleportacja przerwana." to {_p} stop if difference between z-location of {_p} and {_z} is larger than 0.5: send "Ruszyles sie. Teleportacja przerwana." to {_p} stop wait 1 second teleport _p} to player stop clear {tpa::%{_p}%::toTeleport} clear {tpa::%player%::toTeleport} clear {tpa::%{_p}%::sendAsk} clear {tpa::%player%::sendAsk} send "Nie ma od kogo akceptowac teleportacji." stop send "Nie dostales prosby o teleporacje."command /tpdeny: trigger: if {tpa::%player%::sendAsk} is set: set {_p} to {tpa::%player%::sendAsk} set {_p} to {_p} parsed as offlineplayer if {_p} is online: clear {tpa::%{_p}%::toTeleport} clear {tpa::%player%::toTeleport} clear {tpa::%{_p}%::sendAsk} clear {tpa::%player%::sendAsk} send "Odrzucono prosbe o teleportacje od gracza %player%" to {_p} send "Odrzuciles prosbe o teleportacje do gracza %{_p}%" stop clear {tpa::%{_p}%::toTeleport} clear {tpa::%player%::toTeleport} clear {tpa::%{_p}%::sendAsk} clear {tpa::%player%::sendAsk} send "Nie ma od kogo odrzucic teleportacji." stop send "Nie dostales prosby o teleporacje."Ciekawie to zrobiłeś, ale dałeś teleport player to {_p} czyli teleportuje tego co akceptuje do tego co wysłał :) zmieniłem na teleport {_p} to player
- 16 odpowiedzi
-
moznaby dodac tylko, aby dostal slowness 255, i nie mogl sie ruszyc (bez skQuery) a z tym na odwrót to dziwne
- 16 odpowiedzi
-
command /ustawspawn: permission: dupa trigger: set {spawn::%player's world%} to location of player command /spawn: trigger: if {teleportacja::%player%} is true: send "&aJuz jestes w trakcie teleportacji" stop else: set {teleportacja::%player%} to true wait 3 seconds if {teleportacja::%player%} is true: teleport player to {spawn::%player's world%} set {teleportacja::%player%} to false stopon any movement: if {teleportacja::%player%} is true: send "&cTeleportacja anulowana!" set {teleportacja::%player%} to false
-
command /check <player> [<text>]: permission: check.player trigger: if arg 2 is not set: set {sprawdzanie::%arg 1%} loop 5 times: broadcast "&c&l%arg 1% %4&lZapraszamy na TS! Logniesz Perm! / &6%player%" stop if arg 2 is "ok": if {sprawdzanie::%arg 1%} is true: set {sprawdzanie::%arg 1%} to false broadcast "&a%arg 1% &2jest czysty!" stop if arg 2 is "ban": if {sprawdzanie::%arg 1%} is true: set {srpawdzanie::%arg 1%} to false kick arg 1 due to "&4Permamentny ban, wyjasnione na ts /&c%player%" ban arg 1 send "&c%arg 1% &4otrzymal permamentnego bana za cheaty! przez: &c&l%player%"on quit: if {sprawdzanie::%player%} is true: ban player
-
command /ustawspawn: permission: dupa trigger: set {spawn::%player's world%} to location of player command /spawn: trigger: if {teleportacja::%player%} isn't true: set {teleportacja::%player%} to true wait 3 seconds if {teleportacja::%player%} is true: teleport player to {spawn::%player's world%} set {teleportacja::%player%} to false stop else: send "&aJuz jestes w trakcie teleportacji"on any movement: if {teleportacja::%player%} is true: send "&cTeleportacja anulowana!" set {teleportacja::%player%} to false
-
21 linia na send "&aZaakceptowales prosbe &2%{tpa.%player%.requester}%&a!" i wymaga skQuery (on any movement)
- 16 odpowiedzi
-
command /tpa [<player>]: trigger: if arg 1 is set: if {tpa.%arg%} is false: set {tpa.%arg%} to true set {tpa.%arg%.requester} to player send "&aWyslales prosbe o teleportacje." send "&e%player% &6wyslal tobie prosbe o teleportacje!" send "&6Wpisz &a/tpaccept &6by akceptowac." to arg send "&6Wpisz &a/tpdeny &6by anulowac." to arg set {tpa.%arg%.accept} to true stop else: send "&cTen gracz otrzymal juz prosbe od ciebie badz innego gracza!" stopcommand /tpaccept: trigger: if {tpa.%player%} is true: if {tpa.%player%.accept} is true: set {tpa.%player%.accept} to false send "&aZaakceptowales prosbe &2%{tpa.%arg%.requester}%&a!" send "&2%player% &azaakceptowal twoja prosbe!" to {tpa.%player%.requester} set {teleporting.%{tpa.%player%.requester}%} to true send "&aNie ruszaj sie przez 5 sekund!" to player wait 5 seconds set {tpa.%player%} to false set {teleporting.%{tpa.%player%.requester}%} to false teleport {tpa.%player%.requester} to playercommand /tpdeny: trigger: if {tpa.%player%} is true: set {tpa.%player%} to false set {tpa.%player%.accept} to false send "&cAnulowales prosbe o teleportacje!" send "&c%player% &4anulowal twoja prosbe" to {tpa.%player%.requester}on any movement: if {teleporting.%player%} is true: cancel eventon quit: if {teleporting.%player%} is true: set {teleporting.%player%} to false#zabezpieczenie przed bugowaniem sie
- 16 odpowiedzi
-
on right click holding a 1: send "&6Zaczynam..." remove 1 1 from player loop players in radius 10: apply blindness 1 to loop-player for 30 seconds
-
Ja dodałbym jeszcze im speeda: command /policja <player>: permission: policja.policja trigger: loop 5 times: spawn 1 zombie at arg-location apply speed 2 to last spawned entity send "&3Naslales policje na %arg 1%!!!!"
-
Skript - Możliwość Edytowania z poziomu gry.
kondziu156 odpowiedział(a) na rafi789 pytanie w Pytania i problemy
Skrypt nie oferuje jeszcze takiej opcji :/ Ale jest to dobry pomysl na dodatek :) Ciekawą opcją mogłoby być też Metaprogramowanie, czyli Skrypt, który pisze Skrypty ^ ^ -
loop players in radius 10 around player: exit loop if loop-player has permission "spawn.leave": dalszy kod
-
Chodzi o loopa ? loop players in radius x around player:albo loop players in radius 10:Nie jestem pewien
-
pewnie byłoby to jakoś możliwe, ale zbyt skomplikowane. Nie lepiej zapisać go do zmiennej ? np do {save::%nazwa budowli%:: *} tylko nie wiem czy dało by się to przenosić
-
command /jumppad: trigger: if player is op: give 1 gold plate named "&aJump Pad" to player stop trigger else: send "&cNie masz uprawnien do tego!" stop triggeron place of gold plate: if name of player's tool is "&aJump Pad": if player is op: set {jumppad.%location of event-block%} to true stopon break: if {jumppad.%location of event-block%} is true: if player is op: clear {jumppad.%location of event-block%} set block to air stop else: cancel event if {jumppad.%location of block over event-block%} is true: if player is op: clear {jumppad.%location of block over event-block%} set block to air stop else: cancel event else: stopevery 8 tick: loop all players: if {jumppad.%location of block below loop-player%} is true: push the player upward at speed 1.5 wait 5 tick push the player horizontally forward at speed 4
