on walking on 148:
if player is in world "world":
apply potion of speed 3 to the player for 5 second
apply potion of regeneration 3 to the player for 5 second
push the player upwards at speed 2
push the player horizontally forward at speed 2
play raw sound "random.bow" at event-block with pitch 3 volume 4
set {jump::%player%} to true
stop
on damage:
if damage was caused by fall:
if {jump::%victim%}:
set {jump::%victim%} to false
cancel event
Nie testowane, może trzeba wytabować.
command /koddodaj [<text>] [<integer>] [<integer>]:
trigger:
if arg 1 and arg 2 and arg 3 is set:
set {codes::%arg 1%::status} to true
set {codes::%arg 1%::money} to arg 2
set {codes::%arg 1%::amount} to arg 3
send "Poprawnie dodałeś kod."
else:
send "Poprawne użycie: /koddodaj kod kwota ilosc"
command /kod [<text>]:
trigger:
if arg 1 is set:
if {codes::%arg 1%::status} is set:
if {codes::%arg 1%::status} is false:
send "Ten kod został już wykorzystany"
stop
remove 1 from {codes::%arg 1%::amount}
add {codes::%arg 1%::money} to player's balance
if {codes::%arg 1%::amount} is 0:
set {codes::%arg 1%::status} to false
send "Wykorzystałeś kod"
else:
send "Nieprawidłowy kod."
else:
send "Poprawne użycie: /kod kod"
Nie testowane
Po pierwsze, korzystanie celowo z starszej wersji jest kompletnie bez sensu.
Po drugię, z komunikatu na chacie wynika, że coś poszło nie tak z pluginem. Error powinien być w konsoli/logach, więc prosiłbym o pokazanie.
function cooldown(p: player):: boolean:
set {%{_p}%::move} to false
loop 5 times:
wait 1 second
if {%{_p}%::move}:
set {%{_p}%::move} to false
return false
return true
command /lobby [<text>]:
trigger:
if cooldown(player):
send "Poruszyłeś się!"
stop
teleport player to location at -187, 64, 5 in world "world"
send "&a&lZostałeś teleportowany do lobby"
on any move:
set {%player%::move} to true
ale wytabować trzeba, coś mi zepsuł format