Skocz do zawartości
  • 0

Event "on right click" nie działa


xMuffionex
 Udostępnij

Pytanie

20 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
5 godzin temu, xMuffionex napisał:

no juz poprawilem i nadal nie dziala

 

Mi działa, testowałem. Możliwe, że źle wytabowałaś, lub jakieś spacje się tam pojawiły. Jakieś errory są?

on right click:
	if player is holding slimeball named "&a&llobby":
		execute console command "/spawn %player%"

 

Odnośnik do odpowiedzi
Udostępnij na innych stronach

  • 0
56 minut temu, kultek napisał:

mogę cały skrypt zobaczyć?

caly chcesz ? hmm no to okej XDDD

 

Na samym dole to jest

Spoiler
#
# Skrypty xMuffionexa
#

command /disco <text>:
	permission: srdisco
	trigger:
		if arg 1 is "on":
			add leather helmet named "&1D&2i&3s&4c&5o" to the player's helmet
			add leather chestplate named "&1D&2i&3s&4c&5o" to the player's chestplate
			add leather leggings named "&1D&2i&3s&4c&5o" to the player's leggings
			add leather boots named "&1D&2i&3s&4c&5o" to the player's boots
			send "&7Dostales &1D&2i&3s&4c&5o &7zbroje!"
			loop 99999 times:
				dye player's helmet (255, 51, 51)
				dye player's chestplate (255, 51, 51)
				dye player's leggings (255, 51, 51)
				dye player's boots (255, 51, 51)
				wait 5 tick
				dye player's helmet (255, 0, 0)
				dye player's chestplate (255, 0, 0)
				dye player's leggings (255, 0, 0)
				dye player's boots (255, 0, 0)
				wait 5 tick
				dye player's helmet (204, 0, 0) 
				dye player's chestplate (204, 0, 0)
				dye player's leggings (204, 0, 0)
				dye player's boots (204, 0, 0)
				wait 5 tick
				dye player's helmet (204, 104 , 0) 
				dye player's chestplate (204, 104 , 0)
				dye player's leggings (204, 104 , 0)
				dye player's boots (204, 104 , 0)
				wait 5 tick
				dye player's helmet (255, 128, 0) 
				dye player's chestplate (255, 128, 0)
				dye player's leggings (255, 128, 0)
				dye player's boots (255, 128, 0)
				wait 5 tick
				dye player's helmet (255, 153, 51)
				dye player's chestplate (255, 153, 51)
				dye player's leggings (255, 153, 51)
				dye player's boots (255, 153, 51)
				wait 5 tick
				dye player's helmet (255, 255, 51)
				dye player's chestplate (255, 255, 51)
				dye player's leggings (255, 255, 51)
				dye player's boots (255, 255, 51)
				wait 5 tick
				dye player's helmet (255, 255, 0)
				dye player's chestplate (255, 255, 0)
				dye player's leggings (255, 255, 0)
				dye player's boots (255, 255, 0)
				wait 5 tick
				dye player's helmet (204, 204, 0)
				dye player's chestplate (204, 204, 0)
				dye player's leggings (204, 204, 0)
				dye player's boots (204, 204, 0)
				wait 5 tick
				dye player's helmet (102, 204, 0)
				dye player's chestplate (102, 204, 0)
				dye player's leggings (102, 204, 0)
				dye player's boots (102, 204, 0)
				wait 5 tick
				dye player's helmet (128, 255, 0) 
				dye player's chestplate (128, 255, 0)
				dye player's leggings (128, 255, 0)
				dye player's boots (128, 255, 0)
				wait 5 tick
				dye player's helmet (153, 255, 51) 
				dye player's chestplate (153, 255, 51)
				dye player's leggings (153, 255, 51)
				dye player's boots (153, 255, 51)
				wait 5 tick
				dye player's helmet (51, 255, 51) 
				dye player's chestplate (51, 255, 51)
				dye player's leggings (51, 255, 51)
				dye player's boots (51, 255, 51)
				wait 5 tick
				dye player's helmet (0, 255, 0)
				dye player's chestplate (0, 255, 0)
				dye player's leggings (0, 255, 0)
				dye player's boots (0, 255, 0)
				wait 5 tick
				dye player's helmet (0, 204, 0)
				dye player's chestplate (0, 204, 0)
				dye player's leggings (0, 204, 0)
				dye player's boots (0, 204, 0)
				wait 5 tick
				dye player's helmet (0, 204, 102) 
				dye player's chestplate (0, 204, 102) 
				dye player's leggings (0, 204, 102) 
				dye player's boots (0, 204, 102) 
				wait 5 tick
				dye player's helmet (0, 255, 128)
				dye player's chestplate (0, 255, 128)
				dye player's leggings (0, 255, 128)
				dye player's boots (0, 255, 128)
				wait 5 tick
				dye player's helmet (51, 255, 153)
				dye player's chestplate (51, 255, 153)
				dye player's leggings (51, 255, 153)
				dye player's boots (51, 255, 153)
				wait 5 tick
				dye player's helmet (51, 255, 255)
				dye player's chestplate (51, 255, 255)
				dye player's leggings (51, 255, 255)
				dye player's boots (51, 255, 255)
				wait 5 tick
				dye player's helmet (0, 255, 255)
				dye player's chestplate (0, 255, 255)
				dye player's leggings (0, 255, 255)
				dye player's boots (0, 255, 255)
				wait 5 tick
				dye player's helmet (0, 204, 204)
				dye player's chestplate (0, 204, 204)
				dye player's leggings (0, 204, 204)
				dye player's boots (0, 204, 204)
				wait 5 tick
				dye player's helmet (0, 102, 204)
				dye player's chestplate (0, 102, 204)
				dye player's leggings (0, 102, 204)
				dye player's boots (0, 102, 204)
				wait 5 tick
				dye player's helmet (0, 128, 255)
				dye player's chestplate (0, 128, 255)
				dye player's leggings (0, 128, 255)
				dye player's boots (0, 128, 255)
				wait 5 tick
				dye player's helmet (51, 153, 255)
				dye player's chestplate (51, 153, 255)
				dye player's leggings (51, 153, 255)
				dye player's boots (51, 153, 255)
				wait 5 tick
				dye player's helmet (51, 51, 255)
				dye player's chestplate (51, 51, 255)
				dye player's leggings (51, 51, 255)
				dye player's boots (51, 51, 255)
				wait 5 tick
				dye player's helmet (0, 0, 255)
				dye player's chestplate (0, 0, 255)
				dye player's leggings (0, 0, 255)
				dye player's boots (0, 0, 255)
				wait 5 tick
				dye player's helmet (0, 0, 204)
				dye player's chestplate (0, 0, 204)
				dye player's leggings (0, 0, 204)
				dye player's boots (0, 0, 204)
				wait 5 tick
				dye player's helmet (102, 0, 204)
				dye player's chestplate (102, 0, 204)
				dye player's leggings (102, 0, 204)
				dye player's boots (102, 0, 204)
				wait 5 tick
				dye player's helmet (127, 0, 255)
				dye player's chestplate (127, 0, 255)
				dye player's leggings (127, 0, 255)
				dye player's boots (127, 0, 255)
				wait 5 tick
				dye player's helmet (153, 51, 255)
				dye player's chestplate (153, 51, 255)
				dye player's leggings (153, 51, 255)
				dye player's boots (153, 51, 255)
				wait 5 tick
				dye player's helmet (255, 51, 255)
				dye player's chestplate (255, 51, 255)
				dye player's leggings (255, 51, 255)
				dye player's boots (255, 51, 255)
				wait 5 tick
				dye player's helmet (255, 0, 255)
				dye player's chestplate (255, 0, 255)
				dye player's leggings (255, 0, 255)
				dye player's boots (255, 0, 255)
				wait 5 tick
				dye player's helmet (204, 0, 204)
				dye player's chestplate (204, 0, 204)
				dye player's leggings (204, 0, 204)
				dye player's boots (204, 0, 204)
				wait 5 tick
				dye player's helmet (204, 0, 102)
				dye player's chestplate (204, 0, 102)
				dye player's leggings (204, 0, 102)
				dye player's boots (204, 0, 102)
				wait 5 tick
				dye player's helmet (255, 0, 127)
				dye player's chestplate (255, 0, 127)
				dye player's leggings (255, 0, 127)
				dye player's boots (255, 0, 127)
				wait 5 tick
				dye player's helmet (255, 51, 153)
				dye player's chestplate (255, 51, 153)
				dye player's leggings (255, 51, 153)
				dye player's boots (255, 51, 153)
				
		if arg 1 is "halloween":
			add jack-o-lantern named "&1D&2i&3s&4c&5o &eHalloween" to the player's helmet
			add leather chestplate named "&1D&2i&3s&4c&5o &eHalloween" to the player's chestplate
			add leather leggings named "&1D&2i&3s&4c&5o &eHalloween" to the player's leggings
			add leather boots named "&1D&2i&3s&4c&5o &eHalloween" to the player's boots
			send "&7Dostales &1D&2i&3s&4c&5o &eHalloween &7zbroje!"
			loop 99999 times:
				wait 5 tick
				dye player's chestplate (255, 178, 102)
				dye player's leggings (255, 178, 102)
				dye player's boots (255, 178, 102)
				wait 5 tick
				dye player's chestplate (255, 153, 51)
				dye player's leggings (255, 153, 51)
				dye player's boots (255, 153, 51)
				wait 5 tick
				dye player's chestplate (255, 128, 0)
				dye player's leggings (255, 128, 0)
				dye player's boots (255, 128, 0)
				wait 5 tick
				dye player's chestplate (204, 102, 0)
				dye player's leggings (204, 102, 0)
				dye player's boots (204, 102, 0)
				wait 5 tick
				dye player's chestplate (153, 76, 0)
				dye player's leggings (153, 76, 0)
				dye player's boots (153, 76, 0)

		if arg 1 is "off":
			remove jack-o-lantern named "&1D&2i&3s&4c&5o &eHalloween" from player's inventory
			remove leather helmet from player's inventory
			remove leather chestplate from player's inventory
			remove leather leggings from player's inventory
			remove leather boots from player's inventory
			
	
on quit:
	remove jack-o-lantern named "&1D&2i&3s&4c&5o &eHalloween" from player's inventory
	remove leather helmet from player's inventory
	remove leather chestplate from player's inventory
	remove leather leggings from player's inventory
	remove leather boots from player's inventory
    
#
#	BroadCast/BC
#

command /bc [<text>]:
    trigger:
        if player has permission "mc.broadcast":
        arg-1 is set:
            broadcast "&4&lUWAGA! &8» &7%colored arg-1%"
            arg-1 is not set:
                send "&8» &7Poprawne uzycie : &c/bc <wiadomosc> &7!"
        else:
            send "&cNie posiadasz permisji!" 
            
            

        
command /report [<player>]:
    usage: /report <Gracz>
    trigger:
        open chest with 4 rows named "&8&l» Zglaszanie &c&l%arg 1%" to player
        wait 1 tick
        format slot 0 of player with 1 of 160:5 to close 
        format slot 1 of player with 1 of 160:5 to close
        format slot 2 of player with 1 of 160:5 to close
        format slot 3 of player with 1 of 160:5 to close 
        format slot 4 of player with 1 of 160:5 to close
        format slot 5 of player with 1 of 160:5 to close 
        format slot 6 of player with 1 of 160:5 to close 
        format slot 7 of player with 1 of 160:5 to close 
        format slot 8 of player with 1 of 160:5 to close
        format slot 9 of player with 1 of 160:5 to close
        format slot 10 of player with 1 of 442 named "&8&l» &6Sojusz miedzy-druzynowy" to close then run [execute player command "report1 %arg 1%"]
        format slot 11 of player with 1 of 276 named "&8&l» &6Cheaty" to close then run [execute player command "report2 %arg 1%"]
        format slot 12 of player with 1 of 386 named "&8&l» &6Zle zachowanie" to close then run [execute player command "report3 %arg 1%"]
        format slot 13 of player with 1 of 323 named "&8&l» &6Reklama" to close then run [execute player command "report4 %arg 1%"]
        format slot 14 of player with 1 of 355 named "&8&l» &6Afk" to close then run [execute player command "report5 %arg 1%"]                
        format slot 17 of player with 1 of 160:5 to close 
        format slot 18 of player with 1 of 160:5 to close 
        format slot 26 of player with 1 of 160:5 to close 
        format slot 27 of player with 1 of 160:5 to close 
        format slot 35 of player with 1 of 160:5 to close 
       
command /report1 [<player>]:
    trigger:
        if arg 1 is set:
            send "&6Zgloszenie zostalo wyslane!"
            loop all players:
                if loop-player has permission "admin.report":
                    send "&8[&cReport&8] &c%arg 1% &8&l» &6Sojusz miedzy-druzynowy" to loop-player
                    send "&8[&cReport&8] &6^^ zgloszone przez &c%player%" to loop-player
        else:
            send "&cPodaj gracza!"
            
command /report2 [<player>]:
    trigger:
        if arg 1 is set:
            send "&6Zgloszenie zostalo wyslane!"
            loop all players:
                if loop-player has permission "admin.report":
                    send "&8[&cReport&8] &c%arg 1% &8&l» &6Cheaty " to loop-player
                    send "&8[&cReport&8] &6^^ zgloszone przez &c%player%" to loop-player
        else:
            send "&cPodaj gracza!"
           
command /report3 [<player>]:
    trigger:
        if arg 1 is set:
            send "&6Zgloszenie zostalo wyslane!"
            loop all players:
                if loop-player has permission "admin.report":
                    send "&8[&cReport&8] &c%arg 1% &8&l» &6Zle zachowanie" to loop-player
                    send "&8[&cReport&8] &6^^ zgloszone przez &c%player%" to loop-player
        else:
            send "&cPodaj gracza!"
            
command /report4 [<player>]:
    trigger:
        if arg 1 is set:
            send "&6Zgloszenie zostalo wyslane!"
            loop all players:
                if loop-player has permission "admin.report":
                    send "&8[&cReport&8] &c%arg 1% &8&l» &6Reklama" to loop-player
                    send "&8[&cReport&8] &6^^ zgloszone przez &c%player%" to loop-player
        else:
            send "&cPodaj gracza!"
            
command /report5 [<player>]:
    trigger:
        if arg 1 is set:
            send "&6Zgloszenie zostalo wyslane!"
            loop all players:
                if loop-player has permission "admin.report":
                    send "&8[&cReport&8] &c%arg 1% &8&l» &6Afk" to loop-player
                    send "&8[&cReport&8] &6^^ zgloszone przez &c%player%" to loop-player
        else:
            send "&cPodaj gracza!"
            
            
            
on right click:
	if name of player's tool is "&a&llobby":
		execute console command "/spawn %player%"

 



 

Edytowane przez BrixNW
Odnośnik do odpowiedzi
Udostępnij na innych stronach

  • 0

Nie działa ci bo zapewne masz jakieś wspaniałe połączenie bukkit + 1.8 + skript 2.1

I wierz mi - jeżeli masz chociaż jeden z powyższych to nie będzie nigdy wszystko działać poprawnie.

Odnośnik do odpowiedzi
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...