on load:
if folder "plugins/drop" doesn't exists:
create folder "plugins/drop"
if file "plugins/drop/config.yml" doesn't exists:
create file "plugins/drop/config.yml"
set "config.diamond" to "5" in yaml file "plugins/drop/config.yml"
set {diamond} to single value "config.diamond" get of "plugins/drop/config.yml"
on mine of stone:
if player's gamemode is survival:
if {Diament::Drop::%player%} is true:
if {DropEq::Drop::%player%} is true:
if player's y-coordinate is smaller than {@w_diament}:
chance of %{diamond}%%:
set {_x} to a random integer between 18 and 1
send "&2» &7Znalazles: &bDiament &8[&a1 &cszt&8] &4+ &9%{_x}% pkt"
give 1 diamond to player
add 1 to {diamenty.%player%}
add {_x} to {staty.%player%}
else:
if player's gamemode is survival:
if {Diament::Drop::%player%} is true:
if {DropEq::Drop::%player%} is true:
if player's y-coordinate is smaller than {@w_diament}:
chance of %{diamond}%%:
set {_x} to a random integer between 18 and 1
send "&2» &7Znalazles: &bDiament &8[&a1 &cszt&8] &4+ &9%{_x}% pkt"
give 1 diamond to player
add 1 to {diamenty.%player%}
add {_x} to {staty.%player%}
Pytanie
Crystal_PL 93
Wywala błędy: Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!
on load:
if folder "plugins/drop" doesn't exists:
create folder "plugins/drop"
if file "plugins/drop/config.yml" doesn't exists:
create file "plugins/drop/config.yml"
set "config.diamond" to "5" in yaml file "plugins/drop/config.yml"
set {diamond} to single value "config.diamond" get of "plugins/drop/config.yml"
on mine of stone:
if player's gamemode is survival:
if {Diament::Drop::%player%} is true:
if {DropEq::Drop::%player%} is true:
if player's y-coordinate is smaller than {@w_diament}:
chance of %{diamond}%%:
set {_x} to a random integer between 18 and 1
send "&2» &7Znalazles: &bDiament &8[&a1 &cszt&8] &4+ &9%{_x}% pkt"
give 1 diamond to player
add 1 to {diamenty.%player%}
add {_x} to {staty.%player%}
else:
if player's gamemode is survival:
if {Diament::Drop::%player%} is true:
if {DropEq::Drop::%player%} is true:
if player's y-coordinate is smaller than {@w_diament}:
chance of %{diamond}%%:
set {_x} to a random integer between 18 and 1
send "&2» &7Znalazles: &bDiament &8[&a1 &cszt&8] &4+ &9%{_x}% pkt"
give 1 diamond to player
add 1 to {diamenty.%player%}
add {_x} to {staty.%player%}
Odnośnik do komentarza
Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi