Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem ze skryptem na Excalibur


Kirad253

Rekomendowane odpowiedzi

Opublikowano

Co tu jest nie tak ??? 

 

 

 

 

 

on click on sign:
    line 1 is "&1[EXCALIBUR]"
    line 2 is "&6NAJLEPSZA"
    line 3 is "&6BRON!!!"
    line 4 is "$300000"
    player's tool is air:
        give diamond sword named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561" to player's tool
    else:
        send "&cMusisz miec pusta reke, aby otrzymac excalibur!"
 
 
 
 
on leftclick:
    player's tool is diamond sword named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561":
        remove strength from player
        apply strength 7 to player for 3 seconds
 
 
 
 
on death of player:
    attacker's tool is diamond sword named "&e&lExcalibur||Wlasnosc: %attacker%||&f&lZabici gracze: %{killedbyexcalibur.%attacker%}%||&7&lWytrzymalosc: &8&l%health of attacker's tool%&f&l/&7&l1561":
        add 1 to {killedbyexcalibur.%attacker%}
Opublikowano

http://pastebin.com/YFYH6fAY


2015-04-15 19:00:09 [sEVERE] 'player' is not an item stack (Excalibur.sk, line 7: give diamond sword named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561" to player's tool')
2015-04-15 19:00:09 [sEVERE] 'player' is not an item stack (Excalibur.sk, line 15: player's tool is diamond sword named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561":')
2015-04-15 19:00:09 [sEVERE] 'player' is not an item stack (Excalibur.sk, line 23: attacker's tool is diamond sword named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561":')

  • 3 miesiące temu...
  • 3 miesiące temu...
Opublikowano

Masz poprawiony, działa.

 

 Nie istnieje coś takiego jak %health of player's tool% tylko %durability of player's tool%

on click on a sign:
	line 1 is "&1[EXCALIBUR]"
	line 2 is "&6NAJLEPSZA"
	line 3 is "&6BRON!!!"
	line 4 is "$300000"
	player's tool is air:
		give 1 diamond sword named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%durability of player's tool%&f&l/&7&l1561" to player's tool
	else:
		send "&cMusisz miec pusta reke, aby otrzymac excalibur!"
 
 
 
 
on leftclick with diamond sword:
	name of tool of player contains "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%durability of player's tool%&f&l/&7&l1561":
		remove strength from player
		apply strength 7 to player for 3 seconds
 
 
 
 
on death of player:
	if attacker's tool is diamond sword:
		name of tool of attacker contains "&e&lExcalibur||Wlasnosc: %attacker%||&f&lZabici gracze: %{killedbyexcalibur.%attacker%}%||&7&lWytrzymalosc: &8&l%durability of attacker's tool%&f&l/&7&l1561":
			add 1 to {killedbyexcalibur.%attacker%}

xKAm1xO.png

Opublikowano

przerobilem ten skrypt ale mam dalej 1 error

(i co tu jest nie tak?)

Skrypt przerobiony:

on click on 323:
    if line 1 is "&1[EXCALIBUR]":
        if line 2 is "&6NAJLEPSZA":
            if line 3 is "&6BRON!!!":
                if line 4 is "$300000":
        give 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561" to player's tool":
        send "&cZakupiles najlepsza bron serwera &e&oExcalibur!"
 
 
 
 
on leftclick:
    player's tool is 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561":
        remove strength from player
        apply strength 7 to player for 3 seconds
 
 
 
 
on death of player:
    attacker's tool is 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%attacker%}%||&7&lWytrzymalosc: &8&l%health of attacker's tool%&f&l/&7&l1561":
        add 1 to {killedbyexcalibur.%attacker%}

 

 

Errory:

[15:01:21 INFO]: [skript] Reloading Excalibur.sk...
[15:01:21 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Excalibur.sk, line 5: 'if line 4 is "$300000":')
[15:01:21 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Excalibur.sk, line 6: 'give 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561" to player's tool":')
[15:01:21 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '323' (SIGN) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 1: 'on click on 323:')
[15:01:21 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (Excalibur.sk, line 6: 'give 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561" to player's tool":')
[15:01:21 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '276' (DIAMOND_SWORD) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 13: 'player's tool is 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561":')
[15:01:21 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '276' (DIAMOND_SWORD) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 13: 'player's tool is 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%health of player's tool%&f&l/&7&l1561":')
[15:01:21 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '276' (DIAMOND_SWORD) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 21: 'attacker's tool is 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%attacker%}%||&7&lWytrzymalosc: &8&l%health of attacker's tool%&f&l/&7&l1561":')
[15:01:21 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '276' (DIAMOND_SWORD) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 21: 'attacker's tool is 276 named "&e&oExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%attacker%}%||&7&lWytrzymalosc: &8&l%health of attacker's tool%&f&l/&7&l1561":')

[15:01:21 INFO]: [skript] Encountered 1 error while reloading Excalibur.sk


dalej nie dziala

 

a i pytanie na jaka to wersje dziala?

Opublikowano

dalej mam errory

na jaka to wersje

 

errory:

[15:16:07 INFO]: [skript] Reloading Excalibur.sk...
[15:16:07 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '323' (SIGN) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 1: 'on click on a 323:')
[15:16:07 ERROR]: 'air' is not an entity type (Excalibur.sk, line 6: 'player's tool is air:')
[15:16:07 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Excalibur.sk, line 8: 'else:')
[15:16:07 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '276' (DIAMOND_SWORD) in aliases-english.sk or the script's aliases section and use that instead. (Excalibur.sk, line 14: 'on leftclick with 276:')
[15:16:07 ERROR]: Can't compare a slot with an integer (Excalibur.sk, line 23: 'if attacker's tool is 276:')
[15:16:07 INFO]: [skript] Encountered 3 errors while reloading Excalibur.sk!

mam na Bukkit 1.7.2

Hosting Enderchest

  • 11 miesięcy temu...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...