variables:
{id::exc} = 1
on death of player:
if attacker is player:
if attacker's tool is diamond sword:
if name of attacker's tool is "&e&oExcalibur":
set {_x} to 2nd line of lore of attacker's tool
replace all "&fPlayers Killed: " with "" in {_x}
set {_x} to {_x} parsed as number
add 1 to {_x}
set 3nd line of lore of attacker's tool to "&fPlayers Killed: %{_x}+1%"
on damage:
if name of attacker's tool is "&e&oExcalibur":
remove strength from the attacker
apply strength 6 to attacker for 3.9 seconds
on rightclick on sign:
if line 1 is "&1[EXCALIBUR]":
if player's account is greater than or equal to 300000:
give 1 Diamond Sword named "&e&oExcalibur" with lore "&fDiamond Sword||&6&oDescription: &fWlasnosc %player%||&fPlayers Killed: 0||&fStrange Weapon: %{id.exc}%" to player
remove 300000 from player's account
Add 1 to {id.exc}
send "&6[SignShop] &fYou have bought &eEXCALIBUR!"
else:
send "&6[SignShop] &fYou don't have &a$300000 &fto pay!"
command /exc:
permission: exc.admin
trigger:
give 1 Diamond Sword named "&e&oExcalibur" with lore "&fDiamond Sword||&6&oDescription: &fWlasnosc %player%||&fPlayers Killed: 0||&fStrange Weapon: %{id.exc}%" to player
Add 1 to {id.exc}
send "&6[SignShop] &fYou have bought &eEXCALIBUR!"
Pytanie
Grovciu 0
Siemka mam skrypt na bron i wystąpiły 4 błędy czy naprawił by ktoś ten skrypt?
https://imgur.com/a/h0vEk <------- BŁĘDY
> SKRYPT:
variables: {id::exc} = 1 on death of player: if attacker is player: if attacker's tool is diamond sword: if name of attacker's tool is "&e&oExcalibur": set {_x} to 2nd line of lore of attacker's tool replace all "&fPlayers Killed: " with "" in {_x} set {_x} to {_x} parsed as number add 1 to {_x} set 3nd line of lore of attacker's tool to "&fPlayers Killed: %{_x}+1%" on damage: if name of attacker's tool is "&e&oExcalibur": remove strength from the attacker apply strength 6 to attacker for 3.9 seconds on rightclick on sign: if line 1 is "&1[EXCALIBUR]": if player's account is greater than or equal to 300000: give 1 Diamond Sword named "&e&oExcalibur" with lore "&fDiamond Sword||&6&oDescription: &fWlasnosc %player%||&fPlayers Killed: 0||&fStrange Weapon: %{id.exc}%" to player remove 300000 from player's account Add 1 to {id.exc} send "&6[SignShop] &fYou have bought &eEXCALIBUR!" else: send "&6[SignShop] &fYou don't have &a$300000 &fto pay!" command /exc: permission: exc.admin trigger: give 1 Diamond Sword named "&e&oExcalibur" with lore "&fDiamond Sword||&6&oDescription: &fWlasnosc %player%||&fPlayers Killed: 0||&fStrange Weapon: %{id.exc}%" to player Add 1 to {id.exc} send "&6[SignShop] &fYou have bought &eEXCALIBUR!"Edytowane przez GrovciuOdnośnik do komentarza
https://skript.pl/temat/24706-excalibur-skript/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi