Moglibyście przepisać mi ten skrypt od nowa tak, aby działał prawidłowo?
#--------------------------------------------------------------------------
# Praca: Policjant
#--------------------------------------------------------------------------
on join:
if player has permission "praca.policja":
set player's tag to "&f[&bPLPD&f]&a "
on sign change:
player has permission "srPrace"
line 1 is "praca"
line 2 is "policja"
set line 1 to "&e&m-----------"
set line 2 to "&0&lPraca:"
set line 3 to "&a&lPolicjant"
set line 4 to "&e&m-----------"
stop
on right click on sign:
if line 1 of clicked block is "&e&m-----------":
if line 2 of clicked block is "&0&lPraca:":
if line 3 of clicked block is "&a&lPolicjant":
if line 4 of clicked block is "&e&m-----------":
if {jobs.policjant.%player%} is false:
if {reputacja.%player%} is greater or equal to 2500:
remove 2500 from {reputacja.%player%}
execute console command "pex user %player% add praca.policja"
send "&0&l>>> &7&l* &aUzyskales dostep do pracy policjanta, mozesz napisac podanie na range policjanta!"
set {jobs.policjant.%player%} to true
else:
send "&0&l>>> &7&l* &aNie posiadasz &b2500 &apunktow reputacji"
send "&0&l>>> &7&l* &aAby sprawdzic stan reputacji wpisz: &b/reputacja"
else:
send "&0&l>>> &7&l* &cMasz juz ta prace!"
stop
#--------------------------------------------------------------------------
# Reputacja
#--------------------------------------------------------------------------
variables:
{reputacja.%player%} = 0
command /reputacja:
trigger:
send "&4&m----&f&m---&7&m----------------------------------&f&m---&4&m----"
send "&0&l>>> &7&l* &aTwoja reputacja to: &b%{reputacja.%player%}%"
send "&f(&eCo 30 minut otrzymujesz 5 pkt reputacji&f)"
send "&f(&dRangi Vip&f/&dSVip&f/&dEVip otrzymuja 10 pkt reputacji&f)"
send "&4&m----&f&m---&7&m----------------------------------&f&m---&4&m----"
command /reputacjadaj:
trigger:
send "&0&l>>> &7&l* &aDostales &b2500 &apkt reputacji!"
add 2500 to {reputacja.%player%}
every 1800 seconds:
loop all players:
send "&0&l>>> &7&l* &aOtrzymales wyplate, Twoja wyplata to &b100&e$" to loop-player
send "&0&l>>> &7&l* &b+5 &areputacji &f(&e/reputacja&f)" to loop-player
add 100 to balance of loop-player
add 5 to {reputacja.%loop-player%}
if loop-player has permission "wyplata.vip":
send "&0&l>>> &7&l* &aOtrzymales dodatkowa wyplate za posiadanie konta &bVIP&a. Dodatkowa wyplata to &b1500&e$" to loop-player
send "&0&l>>> &7&l* &b+10 &areputacji &f(&e/reputacja&f)" to loop-player
add 10 to {reputacja.%loop-player%}
add 1500 to balance of loop-player
if loop-player has permission "wyplata.policjant":
send "&0&l>>> &7&l* &aOtrzymales wyplate &bPolicjanta&a, Twoja wyplata to &b2500&e$" to loop-player
add 2500 to balance of loop-player
Pytanie
JellyBeans 3
Witam,
Moglibyście przepisać mi ten skrypt od nowa tak, aby działał prawidłowo?
#-------------------------------------------------------------------------- # Praca: Policjant #-------------------------------------------------------------------------- on join: if player has permission "praca.policja": set player's tag to "&f[&bPLPD&f]&a " on sign change: player has permission "srPrace" line 1 is "praca" line 2 is "policja" set line 1 to "&e&m-----------" set line 2 to "&0&lPraca:" set line 3 to "&a&lPolicjant" set line 4 to "&e&m-----------" stop on right click on sign: if line 1 of clicked block is "&e&m-----------": if line 2 of clicked block is "&0&lPraca:": if line 3 of clicked block is "&a&lPolicjant": if line 4 of clicked block is "&e&m-----------": if {jobs.policjant.%player%} is false: if {reputacja.%player%} is greater or equal to 2500: remove 2500 from {reputacja.%player%} execute console command "pex user %player% add praca.policja" send "&0&l>>> &7&l* &aUzyskales dostep do pracy policjanta, mozesz napisac podanie na range policjanta!" set {jobs.policjant.%player%} to true else: send "&0&l>>> &7&l* &aNie posiadasz &b2500 &apunktow reputacji" send "&0&l>>> &7&l* &aAby sprawdzic stan reputacji wpisz: &b/reputacja" else: send "&0&l>>> &7&l* &cMasz juz ta prace!" stop #-------------------------------------------------------------------------- # Reputacja #-------------------------------------------------------------------------- variables: {reputacja.%player%} = 0 command /reputacja: trigger: send "&4&m----&f&m---&7&m----------------------------------&f&m---&4&m----" send "&0&l>>> &7&l* &aTwoja reputacja to: &b%{reputacja.%player%}%" send "&f(&eCo 30 minut otrzymujesz 5 pkt reputacji&f)" send "&f(&dRangi Vip&f/&dSVip&f/&dEVip otrzymuja 10 pkt reputacji&f)" send "&4&m----&f&m---&7&m----------------------------------&f&m---&4&m----" command /reputacjadaj: trigger: send "&0&l>>> &7&l* &aDostales &b2500 &apkt reputacji!" add 2500 to {reputacja.%player%} every 1800 seconds: loop all players: send "&0&l>>> &7&l* &aOtrzymales wyplate, Twoja wyplata to &b100&e$" to loop-player send "&0&l>>> &7&l* &b+5 &areputacji &f(&e/reputacja&f)" to loop-player add 100 to balance of loop-player add 5 to {reputacja.%loop-player%} if loop-player has permission "wyplata.vip": send "&0&l>>> &7&l* &aOtrzymales dodatkowa wyplate za posiadanie konta &bVIP&a. Dodatkowa wyplata to &b1500&e$" to loop-player send "&0&l>>> &7&l* &b+10 &areputacji &f(&e/reputacja&f)" to loop-player add 10 to {reputacja.%loop-player%} add 1500 to balance of loop-player if loop-player has permission "wyplata.policjant": send "&0&l>>> &7&l* &aOtrzymales wyplate &bPolicjanta&a, Twoja wyplata to &b2500&e$" to loop-player add 2500 to balance of loop-playerOdnośnik do komentarza
https://skript.pl/temat/10722-naprawa-skryptu/Udostępnij na innych stronach
10 odpowiedzi na to pytanie
Rekomendowane odpowiedzi