Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with new version #771

Closed
Elecast2 opened this issue Aug 5, 2017 · 2 comments
Closed

Error with new version #771

Elecast2 opened this issue Aug 5, 2017 · 2 comments

Comments

@Elecast2
Copy link

Elecast2 commented Aug 5, 2017

Mi Skript worked perfectly in the 1.12 release of skript, but now with the lastest update in 1.12.1 give me this error:

[07:27:05] [Client thread/INFO]: [CHAT] [Skript] Reloading survival.sk... [07:27:05] [Client thread/INFO]: [CHAT] Can't understand this expression: player (survival.sk, line 18: "%{survival.saltando::*}%" contains "%player%":') [07:27:05] [Client thread/INFO]: [CHAT] Can't understand this expression: player (survival.sk, line 21: "%{survival.salto::*}%" contains "%player%":') [07:27:05] [Client thread/INFO]: [CHAT] The expression 'victim' can only be used in a damage or death event (survival.sk, line 42: "%{survival.saltando::*}%" contains "%victim%":') [07:27:05] [Client thread/INFO]: [CHAT] Can't understand this condition/effect: make player execute "/warp tutorial" (survival.sk, line 71: make player execute "/warp tutorial"') [07:27:05] [Client thread/INFO]: [CHAT] The join message can only be used in a join event (survival.sk, line 72: set join message to "&e%player% &6ha entrado por primera vez!"') [07:27:05] [Client thread/INFO]: [CHAT] Can't understand this condition/effect: give 64 cooked porkchop to player (survival.sk, line 73: give 64 cooked porkchop to player') [07:27:05] [Client thread/INFO]: [CHAT] Can't understand this expression: location of block (survival.sk, line 353: "%{spawners::*}%" contains "%location of block%":') [07:27:05] [Client thread/INFO]: [CHAT] The expression 'victim' can only be used in a damage or death event (survival.sk, line 390: "%victim%" is "armor stand", "chicken", "cow", "pig" or "sheep":') [07:27:05] [Client thread/INFO]: [CHAT] Cannot use 'attacker' outside of a damage/death/destroy event (survival.sk, line 392: attacker is a player:') [07:27:05] [Client thread/INFO]: [CHAT] [Skript] Encountered 9 errors while reloading survival.sk!

This is the skript:

command /salto:
	permission: mycmd.mmc
	permission message: Debes ser &b&lMMC &fo &a&lMMC&e&l+ &fpara usar este comando
	trigger:
		"%{survival.salto::*}%" contains "%player%":
			set player's fly mode to false
			remove the player from {survival.salto::*}
			remove the player from {survival.saltando::*}
			message "&cHas desactivado el doble-salto"
		else:
			set player's fly mode to true
			add the player to {survival.salto::*}
			remove the player from {survival.saltando::*}
			message "&aHas activado el doble-salto"

on flight toggle:
	"%{survival.saltando::*}%" contains "%player%":
		cancel event
		stop
	"%{survival.salto::*}%" contains "%player%":
		set {_x} to x-coordinate of player
		set {_y} to y-coordinate of player
		set {_z} to z-coordinate of player
		make console execute "playsound entity.enderdragon.flap block %player% %{_x}% %{_y}% %{_z}% 10 1"
		add the player to {survival.saltando::*}
		wait 1 tick
		set player's fly mode to false
		push the player upwards at speed 1.5
		push the player forwards at speed 2
		set {_food} to the player's food level
		add -1 to {_food}
		set the player's food level to {_food}
		wait 10 seconds
		"%{survival.salto::*}%" contains "%player%":
			"%{survival.saltando::*}%" contains "%player%":
				remove the player from {survival.saltando::*}
				set player's fly mode to true

on damage of player:
	damage cause is fall:
		"%{survival.saltando::*}%" contains "%victim%":
			cancel event
			wait 1 tick
			set victim's fly mode to true
			remove the victim from {survival.saltando::*}

command /reglas:
	trigger:
		message "&f&l&m=============&E&L(&c&lREGLAS DEL JUEGO&E&L)&7&l&m============="
		message "   &f>> &6Prohibido el uso de hacks o clientes modificados que"
		message "        &6otorgen ventajas sobre los demas."
		message ""
		message "   &f>> &6Prohibido aprovecharse de algún bug o error."
		message ""
		message "   &f>> &6Prohibido hacer spam o flood."
		message ""
		message "   &7Para reportar: &bfacebook.com/groups/MinemoraReportes/"
		message "&7&l&m======================&f&l&m======================"

command /tutorial:
	trigger:
		message "&f&l&m================&B&L(&A&lCOMO JUGAR&B&L)&7&l&m================"
		message "   &aSurvival &7consiste en un juego donde debes sobrevivir tal cual como es en el modo Solitario de Minecraft, con la diferencia de que aca puedes proteger tus terrenos, debes tener cuidado con los demas ya que hay PvP, y posee un sistema de economia con el cual puedes generar dinero haciendo tiendas, o puedes comprar en ellas."
		message "&7&l&m======================&f&l&m======================"

#aliases:
#	totem = 449

on first join:
	make player execute "/warp tutorial"
	set join message to "&e%player% &6ha entrado por primera vez!"
	give 64 cooked porkchop to player

command /cabeza <offline player>:
	permission: mycmd.mmc
	permission message: Debes ser &b&lMMC &fo &a&lMMC&e&l+ &fpara usar este comando
	usage: &e/cabeza <nickname> &cej &6-> &7/cabeza Notch
	trigger:
		set {_player} to "%arg 1%" parsed as offline player
		give {_player}'s skull to player
		message "&aHas obtenido una cabeza de &b%{_player}% &apor &d10 &5Moras"
		make console execute "echo take %player% 10"

command /prefijo [<text>]:
	permission: mycmd.mmc
	permission message: Debes ser &b&lMMC &fo &a&lMMC&e&l+ &fpara usar este comando
	trigger:
		arg 1 is not set:
			set player's prefix to ""
			message "Te has quitado el prefijo satisfactoriamente!"
			stop
		"%arg 1%" is "borrar":
			set player's prefix to ""
			message "Te has quitado el prefijo satisfactoriamente!"
			stop
		if the length of "%arg 1%" is greater than 16:
			message "&cEl prefijo no puede tener mas de 16 caracteres"
			stop
		set player's prefix to ""
		wait 1 tick
		set player's prefix to "&8[&r%arg 1%&8] %player's prefix%"
		message "Te has cambiado el prefijo satisfactoriamente!"

#command /evo:
#	permission: mycmd.mmcm
#	permission message: Debes ser &b&lMMC &fo &a&lMMC&e&l+ &fpara usar este comando
#	trigger:
#		"%player's tool%" is "totem":
#			set {_espera} to difference between {survival.%player%.totem.lastused} and now
#			if {_espera} is less than 10 seconds:
#				message "&7[&f&l!&7] &cDebes esperar %difference between 10 seconds and {_espera}% para volver a usar esto" to player
#				stop
#			set {_count} to 0
#			loop blocks from the block below the player in the horizontal facing of the player:
#				{_count} is less than 5:
#					set {_x} to x-coordinate of loop-block
#					set {_y} to y-coordinate of loop-block
#					set {_z} to z-coordinate of loop-block
#					add 0.7 to {_y}
#					make console execute "/summon minecraft:evocation_fangs %{_x}% %{_y}% %{_z}%"
#					loop entities in radius 1 of loop-block:
#						damage loop-entity by 15
#					wait 3 ticks
#					add 1 to {_count}
#				{_count} is 6:
#					exit loop
#			set {survival.%player%.totem.lastused} to now
#		else:
#			message "&cDebes tener un totem en la mano para usar este comando" to player

command /pantalla <text>:
	permission: mycmd.mmcm
	permission message:	"&fDebes ser &a&lMMC&e&l+ &fpara uar este comando!"
	trigger:
		set {_espera} to difference between {playerevents.%player%.pantalla.lastused} and now
		if {_espera} is less than 30 seconds:
			message "&7[&f&l!&7] &cDebes esperar %difference between 30 seconds and {_espera}% para volver a usar este comando" to player
			stop
		make console execute "title @a title {""text"":""%arg 1%"",""color"":""white""}"
		make console execute "title @a subtitle {""text"":""Enviado por: "",""color"":""gray"",""extra"":[{""text"":""%player%"",""color"":""white""}]}"
		set {playerevents.%player%.pantalla.lastused} to now

command /mm:
	trigger:
		message "&m----------------------------------------------------"
		message "  &6&l>> &3&lMM &fIncluye:"
		message "&m----------------------------------------------------"
		message "  &6&l>> &2&lVentajas Generales"
		message " &e&l- &fTag &3&lMM"
		message " &e&l- &fChat de &cC&6o&el&ao&br&1e&ds"
		message " &e&l- &fEntrar a cualquier juego aunque este lleno"
		message " &e&l- &fMas Coleccionables en el lobby"
		message ""
		message "  &6&l>> &2&lVentajas en los Juegos"
		message " &e&l- &fMas Kits en los juegos"
		message " &e&l- &f3 homes en el Survival"
		message " &e&l- &fNo esperas entre tpas"
		message " &e&l- &fKits mejorados en Puentes"
		message " &e&l- &fMas partidas ranked en ArenaPvP"
		message "&m----------------------------------------------------"
		message "&e(Presiona &lt&e y usa la rueda del mouse)"

command /mmc:
	trigger:
		message "&m----------------------------------------------------"
		message "  &6&l>> &b&lMMC &fIncluye:"
		message "&m----------------------------------------------------"
		message "  &6&l>> &2&lVentajas Generales"
		message " &e&l- &fTag &b&lMMC"
		message " &e&l- &fChat de &cC&6o&el&ao&br&1e&ds &fy &l&n&oEfectos"
		message " &e&l- &fEntrar a cualquier juego aunque este lleno"
		message " &e&l- &fMas Coleccionables en el lobby"
		message " &e&l- &fPrefijos"
		message ""
		message "  &6&l>> &2&lVentajas en los Juegos"
		message " &e&l- &fMas Kits en todos los juegos"
		message " &e&l- &fTienda de cosas especiales Eggwars"
		message " &e&l- &fKits mejorados en Puentes"
		message " &e&l- &fMas partidas ranked en ArenaPvP"
		message " &e&l- &fVotar por tipo de cofre"
		message " &e&l- &f5 homes en el Survival"
		message " &e&l- &fNo esperas entre tpas"
		message " &e&l- &f1 Spawner en el Survival"
		message " &e&l- &fNo pierdes items ni XP al morir"
		message " &e&l- &fDoble salto en el Survival"
		message " &e&l- &fCabezas!"
		message " &e&l- &fMontar personas!"
		message " &e&l- &fY mucho mas con &b&lMMC&f!!"
		message "&m----------------------------------------------------"
		message "&e(Presiona &lt&e y usa la rueda del mouse)"

command /mmc+:
	trigger:
		message "&m----------------------------------------------------"
		message "  &6&l>> &a&lMMC&e&l+ &fIncluye:"
		message "&m----------------------------------------------------"
		message "  &6&l>> &2&lVentajas Generales"
		message " &e&l- &fTag &aMMC&e&l+"
		message " &e&l- &fChat de &cC&6o&el&ao&br&1e&ds &fy &l&n&oEfectos"
		message " &e&l- &fEntrar a cualquier juego aunque este lleno"
		message " &e&l- &fTodos los Coleccionables"
		message " &e&l- &fPrefijos"
		message " &e&l- &fMensajes de Pantalla"
		message " &e&l- &fMontar personas en el lobby!"
		message ""
		message "  &6&l>> &2&lVentajas en los Juegos"
		message " &e&l- &fTodos los Kits en los juegos"
		message " &e&l- &fTienda de cosas especiales Eggwars"
		message " &e&l- &fKits mejorados en Puentes"
		message " &e&l- &fMas partidas ranked en ArenaPvP"
		message " &e&l- &fVotar por tipo de cofre, clima, salto, hora"
		message " &e&l- &f8 homes en el Survival"
		message " &e&l- &fNo esperas entre tpas"
		message " &e&l- &f2 Spawner en el Survival"
		message " &e&l- &fNo pierdes items ni XP al morir"
		message " &e&l- &fDoble salto en el Survival"
		message " &e&l- &fCabezas!"
		message " &e&l- &fMuebles en el survival!"
		message " &e&l- &fComandos /craft /ec y /recipe"
		message " &e&l- &fAtencion Preferencial"
		message " &e&l- &fY mucho mas con &a&lMMC&e&l+&f!!"
		message "&m----------------------------------------------------"
		message "&e(Presiona &lt&e y usa la rueda del mouse)"

command /youtube:
	trigger:
		message "&m----------------------------------------------------"
		message "  &6&l>> &eRequisitos para el rango &c&lYT&a:"
		message "&m----------------------------------------------------"
		message "- &6&l1000 &fsuscriptores como minimo."
		message "- Debes realizar una review del servidor que muestre todas sus modalidades activas y nombre las que se abriran"
		message "- El video debe ser hablado, y debe llegar por lo menos a 100 Reproducciones y 20 Likes"
		message "- En la descripcion del video debes colocar tu nombre de usuario para verificar que sea su cuenta"
		message "- Una vez hecho el video debe comunicarse por mensaje privado a &b&nhttps://www.facebook.com/MinemoraNetwork"
		message "- Si el video cumple los requisitos le colocaremos el rango"
		message "&m----------------------------------------------------"
		message "- Si tienes mas de &6&l5k&f puedes optar por el rango YT+ y solo debes grabar en el server o entrar en un directo"
		message "  para tener el rango, para esto debes entrar en comunicacion con algun moderador"
		message "&m----------------------------------------------------"
		message "&e(Presiona &lt&e y usa la rueda del mouse)"

command /venezuela:
	trigger:
		message "&m----------------------------------------------------"
		message "  &6&l>> &3&lMM&f, &b&lMMC &2o &a&lMMC&e&l+ &2en Bolivares:"
		message "&m----------------------------------------------------"
		message "&6&l1 &fPor ahora el unico metodo de pago es Deposito o Transferencia"
		message "&6&l2 &fPrimero debe dirigirse a nuestra pagina de Facebook"
		message "- &b&n https://www.facebook.com/MinemoraNetwork"
		message "&6&l3 &fLuego nos envia un Mensaje privado diciendo que desea comprar rango en Bolivares"
		message "&6&l4 &fNosotros le enviaremos los datos para hacer la transferencia y los precios disponibles"
		message "&6&l5 &fLuego de realizar la transferencia, debe enviar el Numero de referencia junto al nombre de usuario"
		message "&m----------------------------------------------------"

command /mobspawn <text>:
	permission: mycmd.coop
	trigger:
		set {_spawner} to false
		if player's target block is set:
			loop blocks in radius 5 of player:
				loop-block is target block:
					set {_x} to x-coordinate of target block
					set {_y} to y-coordinate of target block
					set {_z} to z-coordinate of target block
					make console execute "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {SpawnData:{id:""minecraft:%arg 1%""}}"
					message "&cADVERTENCIA! &ERecuerda anotar en algun archivo el player al que le has dado este spawner!!"
					set {_spawner} to true
			if {_spawner} is false:
				message "&cDebes estar cerca y mirando hacia el bloque que quieres hacer spawner"
		else:
			message "&cDebes estar mirando hacia el bloque que quieres hacer spawner"

command /tienda <number> <number>:
	permission: mycmd.admin
	trigger:
		make player execute "//expand vert"
		wait 5 ticks
		make player execute "/rg define tienda-%arg 1%"
		wait 5 ticks
		make player execute "/as add rent tienda-%arg 1%"
		wait 5 ticks
		make player execute "/as setprice %arg 2% tienda-%arg 1%"
		make player execute "/as addsign tienda-%arg 1%"
		make player execute "/rg setpriority tienda-%arg 1% 10"

command /buytienda <text> <text>:
	permission: mycmd.admin
	trigger:
		set {_player} to "%arg 1%" parsed as player
		if {kit.%{_player}%.%arg 2%} >= 1:
			add 1 to {kit.%{_player}%.%arg 2%}
		else:
			set {kit.%{_player}%.%arg 2%} to 1
		message "" to {_player}
		message "" to {_player}
		message "" to {_player}
		message "&m----------------------------------------------------" to {_player}
		message "&a&l- MENSAJE SOBRE TU COMPRA -" to {_player}
		"%arg 2%" is "Spawner":
			message "&eUsa el comando &c/recibir %arg 2% <tipo de mob> &epara hacer aparecer tu spawner exactamente en el bloque al que estes mirando. &c¡Recuerda que solo tienes una oportunidad para elegir donde colocarlo y de que criatura sera!" to {_player}
			message "&aCriaturas disponibles: &6skeleton, spider, zombie, slime, cave_spider, silverfish, blaze, magma_cube, bat, guardian, pig, sheep, cow, chicken, squid, wolf, mooshroom, ocelot, horse, rabbit, polar_bear, llama, parrot" to {_player}
		else:
			message "&eUsa el comando &c/recibir %arg 2% &epara hacer aparecer tu kit debajo de ti" to {_player}
		message "&eDebes repetir este comando en otro lugar para aparecer el resto de tu compra. Disponibles: &c&l%{kit.%{_player}%.%arg 2%}%" to {_player}
		message "&m----------------------------------------------------" to {_player}

command /recibir <text> [<text>]:
	trigger:
		if {kit.%player%.%arg 1%} is not set:
			message "&cNo posees Kit o Spawner. Visita &btienda.minemora.net &cpara comprar uno." to player
			stop
		if {kit.%player%.%arg 1%} is 0:
			message "&cNo posees Kit o Spawner. Visita &btienda.minemora.net &cpara comprar uno." to player
			stop
		"%arg 1%" is "Spawner":
			if player cannot build at the target block of player:
				message "&cNo puedes colocar el Spawner aqui, este lugar esta protegido por otra persona!"
				stop
			"%{spawners::*}%" contains "%location of target block%":
				message "&cNo puedes colocar el Spawner en el mismo lugar de otro spawner!"
				stop
		else:
			if player cannot build at the block at location of player:
				message "&cNo puedes usar el comando aqui, este lugar esta protegido por otra persona!"
				stop
		"%arg 1%" is "Piedra":
			set the block at location of player to chest
			set {_chest} to block at location of player
			add 1728 stone to {_chest}
		"%arg 1%" is "Spawner":
			"%arg 2%" is "skeleton" or "spider" or "zombie" or "slime" or "cave_spider" or "silverfish" or "blaze" or "magma_cube" or "bat" or "guardian" or "pig" or "sheep" or "cow" or "chicken" or "squid" or "wolf" or "mooshroom" or "ocelot" or "horse" or "rabbit" or "polar_bear" or "llama" or "parrot":
				set {kit.%player%.%arg 1%} to {kit.%player%.%arg 1%} - 1
				set {_x} to x-coordinate of target block
				set {_y} to y-coordinate of target block
				set {_z} to z-coordinate of target block
				make console execute "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {SpawnData:{id:""minecraft:%arg 2%""}}"
				add location of target block to {spawners::*}
				add location of target block to {spawners.%player%::*}
				message ""
				message ""
				message ""
				message "&m----------------------------------------------------"
				message "&eInformacion: &aTu spawner ha sido colocado satisfactoriamente!"
				message "&6Te quedan &c%{kit.%player%.%arg 1%}% &6restantes!"
				message "&cSi tuviste algun problema puedes explicarlo enviando un correo a &bsoporte@minemora.net &ao escribirnos por mensaje privado a nuestra pagina de &9Facebook &bhttps://www.facebook.com/MinemoraNetwork/"
				message "&m----------------------------------------------------"
			else:
				message "&cError &7(Mob desconocido o no disponible) &cescribe correctamente uno de los mobs indicados en la lista!"
				message "&aCriaturas disponibles: &6skeleton, spider, zombie, slime, cave_spider, silverfish, blaze, magma_cube, bat, guardian, pig, sheep, cow, chicken, squid, wolf, mooshroom, ocelot, horse, rabbit, polar_bear, llama, parrot"

on break of mob spawner:
	"%{spawners::*}%" contains "%location of block%":
		"%{spawners.%player%::*}%" contains "%location of block%":
			add 1 to {kit.%player%.Spawner}
			remove location of block from {spawners::*}
			remove location of block from {spawners.%player%::*}
			message ""
			message ""
			message ""
			message "&m----------------------------------------------------"
			message "&a&l- ACABAS DE ROMPER UN SPAWNER COMPRADO -"
			message "&eUsa el comando &c/recibir Spawner <tipo de mob> &epara hacer aparecer tu spawner exactamente en el bloque al que estes mirando. &c¡Recuerda que solo tienes una oportunidad para elegir donde colocarlo y de que criatura sera!"
			message "&aCriaturas disponibles: &6skeleton, spider, zombie, slime, cave_spider, silverfish, blaze, magma_cube, bat, guardian, pig, sheep, cow, chicken, squid, wolf, mooshroom, ocelot, horse, rabbit, polar_bear, llama, parrot"
			message "&eDebes repetir este comando en otro lugar para aparecer el resto de tus spawners. Disponibles: &c&l%{kit.%player%.Spawner}%"
			message "&m----------------------------------------------------" to player
		else:
			cancel event
			message "&cNo puedes romper un spawner comprado por otra persona, solo el dueño puede hacerlo"

command /tiendap:
	permission: mycmd.admin
	trigger:
		loop 100 times:
			make player execute "/rg setpriority tienda-%loop-number% 10"

command /spawn:
	trigger:
		make player execute "/warp spawn"

command /tiendas:
	trigger:
		make player execute "/warp tiendas"

command /tutoriales:
	trigger:
		make player execute "/warp tutorial"

on death:
	"%victim%" is "armor stand", "chicken", "cow", "pig" or "sheep":
		stop
	attacker is a player:
		add 1 to balance of attacker
		message "&eHas cogido &d1 &5Mora" to attacker
#		set {_x} to x-coordinate of attacker
#		set {_y} to y-coordinate of attacker
#		set {_z} to z-coordinate of attacker
#		make console execute "playsound entity.experience_orb.pickup block %attacker% %{_x}% %{_y}% %{_z}% 10 1.5"
#		drop 1 mellohi music disc named "&d1 &5Mora" at location of victim

#on pick up of mellohi music disc:
#	name of item is "&d1 &5Mora":
#		wait 1 tick
#		remove the item from player
#		add 1 to balance of player
#		message "&eHas cogido &d1 &5Mora" to player
#		set {_x} to x-coordinate of player
#		set {_y} to y-coordinate of player
#		set {_z} to z-coordinate of player
#		make console execute "playsound entity.experience_orb.pickup block %player% %{_x}% %{_y}% %{_z}% 10 1.5"

sorry for bad english

@bensku
Copy link
Member

bensku commented Aug 5, 2017

Perhaps bad English, but this is a good bug report. You posted pretty much all relevant information that I need to know about this issue.

bensku added a commit that referenced this issue Aug 5, 2017
@bensku
Copy link
Member

bensku commented Aug 5, 2017

That bug is fixed. If problem persists in next release, open a new one, it might be related to addons, so please include list of them.

@bensku bensku closed this as completed Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants