Aller au contenu

Messages recommandés

Posté(e) (modifié)
Essaye remove "%{_Test::1}%" from {_Test::*}

 

Toujour l'erreur :

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! [skript] Severe Error:

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.

[00:20:10 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/

[00:20:10 ERROR]: #!#! and check whether this error has already been reported.

[00:20:10 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,

[00:20:10 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.

[00:20:10 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.

[00:20:10 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! Stack trace:

[00:20:10 ERROR]: #!#! java.lang.NullPointerException

[00:20:10 ERROR]: #!#! at ch.njol.skript.lang.Variable.setIndex(Variable.java:346)

[00:20:10 ERROR]: #!#! at ch.njol.skript.lang.Variable.change(Variable.java:423)

[00:20:10 ERROR]: #!#! at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)

[00:20:10 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)

[00:20:10 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)

[00:20:10 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)

[00:20:10 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)

[00:20:10 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:150)

[00:20:10 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)

[00:20:10 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)

[00:20:10 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)

[00:20:10 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)

[00:20:10 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:396)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityPlayer.die(EntityPlayer.java:417)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityLiving.damageEntity(EntityLiving.java:812)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityHuman.damageEntity(EntityHuman.java:800)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityPlayer.damageEntity(EntityPlayer.java:496)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityHuman.attack(EntityHuman.java:1001)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityPlayer.attack(EntityPlayer.java:1063)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1355)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:52)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:11)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)

[00:20:10 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

[00:20:10 ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)

[00:20:10 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)

[00:20:10 ERROR]: #!#! at java.lang.Thread.run(Thread.java:745)

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! Version Information:

[00:20:10 ERROR]: #!#! Skript: 2.2-SNAPSHOT

[00:20:10 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT

[00:20:10 ERROR]: #!#! Minecraft: 1.8.8

[00:20:10 ERROR]: #!#! Java: 1.8.0_91 (OpenJDK 64-Bit Server VM 25.91-b14)

[00:20:10 ERROR]: #!#! OS: Linux amd64 2.6.32-042stab120.6

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! Running CraftBukkit: false

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! Current node: null

[00:20:10 ERROR]: #!#! Current item: remove "%{_Test::1}(as java.lang.Object)%" from {_Test::*}(as java.lang.Object)

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! Thread: Server thread

[00:20:10 ERROR]: #!#!

[00:20:10 ERROR]: #!#! End of Error.

[00:20:10 ERROR]: #!#!

 

Et code :

on death:
   victim is a player
   set death message to ""
   set {_obj} to {attaqueur.%victim%}'s tool
   set {_Test::*} to split "%tool of player%" at "of "
   set {_Test} to "%{_Test::*}%"
   loop 10 times:
       set {_Test::*} to split "%{_Test}%" at ", "
       set {_Test} to "%{_Test::*}%"
   set {_Test::*} to split "%{_Test}%" at " and "
   remove "%{_Test::1}%" from {_Test::*}
   set {_Test::*} to {_Test::*}
   set {_Test2} to size of {_Test::*}
   replace "named ""%name of tool of player%""" with "" in {_Test::%{_Test2}%}
   if {_Test2} is 1:
       set {_Yest} to "%{_Test::1}%"
   else if {_Test2} is 2:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%"
   else if {_Test2} is 3:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%"
   else if {_Test2} is 4:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%"
   else if {_Test2} is 5:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%"
   else if {_Test2} is 6:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%"
   else if {_Test2} is 7:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%"
   else if {_Test2} is 8:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%||%{_Test::8}%"

   json("@a","&b%victim% &eà été tué par &b%{attaqueur.%victim%}% &e avec|| &a[%name of tool of {attaqueur.%victim%}%&a]||ttp:&7%{_Yest}%")

on damage:
   victim is a player
   set {attaqueur.%victim%} to attacker

Modifié par Safarival
Posté(e) (modifié)
Essaye remove "%{_Test::1}%" from {_Test::*}

 

Je viens de remarquer que quand j'avais reload le skript tout seul il y avait l'erreur que je vous ai marquer au dessus.

 

 

Mais quand je reload all je découvre de nouvelle erreur sur le skript:

[11:02:43 WARN]: Possible name conflict of variables {Test::%{_Test2}%} and {Test::1} (there might be more conflicts). (Mort.sk, line 14: replace "named ""%name of tool of player%""" with "" in {_Test::%{_Test2}%}')

[11:02:43 WARN]: Possible name conflict of variables {Test::2} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 18: set {_Yest} to "%{_Test::1}%||%{_Test::2}%"')

[11:02:43 WARN]: Possible name conflict of variables {Test::3} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 20: set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%"')

[11:02:43 WARN]: Possible name conflict of variables {Test::4} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 22: set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%"')

[11:02:43 WARN]: Possible name conflict of variables {Test::5} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 24: set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%"')

[11:02:43 WARN]: Possible name conflict of variables {Test::6} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 26: set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%"')

[11:02:43 WARN]: Possible name conflict of variables {Test::7} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 28: set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%"')

[11:02:43 WARN]: Possible name conflict of variables {Test::8} and {Test::%{_Test2}%} (there might be more conflicts). (Mort.sk, line 30: set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%||%{_Test::8}%"')

[11:02:43 ERROR]: The function 'json' does not exist (Mort.sk, line 32: json("@a", "&b%victim% &e? ?t? tu? par &b%{attaqueur.%victim%}% &e avec|| &a[%name of tool of {attaqueur.%victim%}%&a]||ttp:&7%{_Yest}%")')

[11:02:43 WARN]: an entity cannot be saved, i.e. the contents of the variable {attaqueur.%the attacked entity%} will be lost when the server stops. (Mort.sk, line 36: set {attaqueur.%victim%} to attacker')

Modifié par Safarival
Posté(e) (modifié)
Essaye de mettre le skript json.sk dans le même .Sk que ton skript

 

Je viens de le faire et maintenant je n'est plus d'erreur sauf une c'est toujour la ligne :

remove {_Test::1} from {_Test::*}

 

Et quand je l'enlève sa marque le message mais pas la description de l'épée. Image :

 

http://www.image-heberg.fr/files/15269250191492734692.png

 

A la place de la description sa marque " 0 Air" comme tu peut le voir sur la photo

 

Cordialement,

Safarival.

Modifié par Invité
Posté(e)
quelle est l'erreur ?

Erreur :

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! [skript] Severe Error:

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.

[19:37:29 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/

[19:37:29 ERROR]: #!#! and check whether this error has already been reported.

[19:37:29 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,

[19:37:29 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.

[19:37:29 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.

[19:37:29 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! Stack trace:

[19:37:29 ERROR]: #!#! java.lang.NullPointerException

[19:37:29 ERROR]: #!#! at ch.njol.skript.lang.Variable.setIndex(Variable.java:346)

[19:37:29 ERROR]: #!#! at ch.njol.skript.lang.Variable.change(Variable.java:423)

[19:37:29 ERROR]: #!#! at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)

[19:37:29 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)

[19:37:29 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)

[19:37:29 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)

[19:37:29 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)

[19:37:29 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:150)

[19:37:29 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)

[19:37:29 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)

[19:37:29 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)

[19:37:29 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)

[19:37:29 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:396)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityPlayer.die(EntityPlayer.java:417)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityLiving.damageEntity(EntityLiving.java:812)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityHuman.damageEntity(EntityHuman.java:800)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityPlayer.damageEntity(EntityPlayer.java:496)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityHuman.attack(EntityHuman.java:1001)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.EntityPlayer.attack(EntityPlayer.java:1063)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1355)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:52)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:11)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)

[19:37:29 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

[19:37:29 ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)

[19:37:29 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)

[19:37:29 ERROR]: #!#! at java.lang.Thread.run(Thread.java:745)

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! Version Information:

[19:37:29 ERROR]: #!#! Skript: 2.2-SNAPSHOT

[19:37:29 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT

[19:37:29 ERROR]: #!#! Minecraft: 1.8.8

[19:37:29 ERROR]: #!#! Java: 1.8.0_91 (OpenJDK 64-Bit Server VM 25.91-b14)

[19:37:29 ERROR]: #!#! OS: Linux amd64 2.6.32-042stab120.6

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! Running CraftBukkit: false

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! Current node: null

[19:37:29 ERROR]: #!#! Current item: remove {_Test::1}(as java.lang.Object) from {_Test::*}(as java.lang.Object)

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! Thread: Server thread

[19:37:29 ERROR]: #!#!

[19:37:29 ERROR]: #!#! End of Error.

[19:37:29 ERROR]: #!#!

Posté(e) (modifié)
Set {Test::1} sur une variable temporaire et ensuite fais remove {Variable_Tempo} from {Test::*}

 

Merci maintenant il n'y à plus d’erreur voilà comment j'ai fait :

   set {Test::1} to {_Test1}
   remove {_Test1} from {_Test::*}

 

Mais même si il n'y à plus d’erreur sa me marque toujours "0 air" dans la description :( comme sur la photo :

http://www.image-heberg.fr/files/15269250191492734692.png

 

Par contre il n'y à pas d'erreur mais il y à cela de marquer lorsque je reload ce skript :

http://www.image-heberg.fr/files/15272570031531141024.png

Modifié par Safarival
Posté(e)
Merci maintenant il n'y à plus d’erreur voilà comment j'ai fait :

   set {Test::1} to {_Test1}
   remove {_Test1} from {_Test::*}

 

Mais même si il n'y à plus d’erreur sa me marque toujours "0 air" dans la description :( comme sur la photo :

http://www.image-heberg.fr/files/15269250191492734692.png

 

Par contre il n'y à pas d'erreur mais il y à cela de marquer lorsque je reload ce skript :

http://www.image-heberg.fr/files/15272570031531141024.png

 

Le deuxième screen n'est pas grave (Pour moi).

Après pour le "0 air" ,je ne sais vraiment pas.

Posté(e) (modifié)

Tu a inverser les variables au set ;)

set {_Test1} to {Test::1}
remove {_Test1} from {_Test::*}

 

Et l'erreur du screen 2 sa veut dire que si ton serveur crash ( ou s'arrete simplement ) ta variable {attackeur.%the attacker%} sera clear

 

Pour résoudre sa fais pareil ;)

 

set {_Attacker} to attacker
set {_Victim} to victim
set {attaquer.%{_Victim}%} to {_Attacker}

Modifié par Invité
Posté(e) (modifié)
Tu a inverser les variables au set ;)

set {_Test1} to {Test::1}
remove {_Test1} from {_Test::*}

 

Effectivement merci j'ai rectifier mais j'ai reload ensuite le skript et le " 0 air " ce trouve toujours la je ne comprend pas pourtant plus aucune erreur ni dans la console ni en jeu. :( Voiçi le code en entier, sans erreur mais avec le 0 air:

 

on death:
   victim is a player
   set death message to ""
   set {_obj} to {attaqueur.%victim%}'s tool
   set {_Test::*} to split "%tool of player%" at "of "
   set {_Test} to "%{_Test::*}%"
   loop 10 times:
       set {_Test::*} to split "%{_Test}%" at ", "
       set {_Test} to "%{_Test::*}%"
   set {_Test::*} to split "%{_Test}%" at " and "
   set {_Test1} to {Test::1}
   remove {_Test1} from {_Test::*}
   set {_Test::*} to {_Test::*}  
   set {_Test2} to size of {_Test::*}
   replace "named ""%name of tool of player%""" with "" in {_Test::%{_Test2}%}
   if {_Test2} is 1:
       set {_Yest} to "%{_Test::1}%"
   else if {_Test2} is 2:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%"
   else if {_Test2} is 3:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%"
   else if {_Test2} is 4:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%"
   else if {_Test2} is 5:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%"
   else if {_Test2} is 6:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%"
   else if {_Test2} is 7:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%"
   else if {_Test2} is 8:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%||%{_Test::8}%"

   json("@a", "&b%victim% &eà été tué par &b%{attaqueur.%victim%}% &e avec|| &a[%name of tool of {attaqueur.%victim%}%&a]||ttp:&7%{_Yest}%")

on damage:
   victim is a player
   set {_Attacker} to attacker
   set {_Victim} to victim
   set {attaqueur.%victim%} to {_Attacker}

 

Et l'erreur du screen 2 sa veut dire que si ton serveur crash ( ou s'arrete simplement ) ta variable {attackeur.%the attacker%} sera clear

 

Pour résoudre sa fais pareil ;)

 

set {_Attacker} to attacker
set {_Victim} to victim
set {attaquer.%{_Victim}%} to {_Attacker}

 

Oui merci c'est vrai que sa n'a aucune impact sur le skript mais sa fait plus propre de n'avoir aucune erreur lors du sk reloas :) Merci

Modifié par Invité
  • J'aime 1
Posté(e) (modifié)
Effectivement merci j'ai rectifier mais j'ai reload ensuite le skript et le " 0 air " ce trouve toujours la je ne comprend pas pourtant plus aucune erreur ni dans la console ni en jeu. :( Voiçi le code en entier, sans erreur mais avec le 0 air:

 

on death:
   victim is a player
   set death message to ""
   set {_obj} to {attaqueur.%victim%}'s tool
   set {_Test::*} to split "%tool of player%" at "of "
   set {_Test} to "%{_Test::*}%"
   loop 10 times:
       set {_Test::*} to split "%{_Test}%" at ", "
       set {_Test} to "%{_Test::*}%"
   set {_Test::*} to split "%{_Test}%" at " and "
   set {_Test1} to {Test::1}
   remove {_Test1} from {_Test::*}
   set {_Test::*} to {_Test::*}
   set {_Test2} to size of {_Test::*}
   replace "named ""%name of tool of player%""" with "" in {_Test::%{_Test2}%}
   if {_Test2} is 1:
       set {_Yest} to "%{_Test::1}%"
   else if {_Test2} is 2:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%"
   else if {_Test2} is 3:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%"
   else if {_Test2} is 4:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%"
   else if {_Test2} is 5:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%"
   else if {_Test2} is 6:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%"
   else if {_Test2} is 7:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%"
   else if {_Test2} is 8:
       set {_Yest} to "%{_Test::1}%||%{_Test::2}%||%{_Test::3}%||%{_Test::4}%||%{_Test::5}%||%{_Test::6}%||%{_Test::7}%||%{_Test::8}%"

   json("@a", "&b%victim% &eà été tué par &b%{attaqueur.%victim%}% &e avec|| &a[%name of tool of {attaqueur.%victim%}%&a]||ttp:&7%{_Yest}%")

on damage:
   victim is a player
   set {_Attacker} to attacker
   set {_Victim} to victim
   set {attaqueur.%victim%} to {_Attacker}

 

 

 

Oui merci c'est vrai que sa n'a aucune impact sur le skript mais sa fait plus propre de n'avoir aucune erreur lors du sk reloas :) Merci

Je ralume mon pc et jfais un teste jte redit quoi

 

EDIT :

 

Tien fonctionnel tester !

 

on death:
   victim is a player
   set death message to ""
   set {_obj} to {attaqueur.%victim%}'s tool
   set {_Test::*} to split "%{_obj}%" at " of "
   set {_Test} to "%{_Test::*}%"
   loop 10 times:
       set {_Test::*} to split "%{_Test}%" at ", "
       set {_Test} to "%{_Test::*}%"
   set {_Test::*} to split "%{_Test}%" at " and "
   set {_Test1} to "%{_Test::1}%"
   remove {_Test1} from {_Test::*}
   set {_Test::*} to {_Test::*} 
   set {_Test2} to size of {_Test::*}
   replace "named ""%name of tool of attacker%""" with "" in {_Test::%{_Test2}%}
   if {_Test2} is 1:
       set {_Yest} to "&7%{_Test::1}%"
   else if {_Test2} is 2:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%"
   else if {_Test2} is 3:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%"
   else if {_Test2} is 4:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%"
   else if {_Test2} is 5:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%"
   else if {_Test2} is 6:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%"
   else if {_Test2} is 7:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%%nl%&7%{_Test::7}%"
   else if {_Test2} is 8:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%%nl%&7%{_Test::7}%%nl%&7%{_Test::8}%"
   json("@a", "&b%victim% &eà été tué par &b%{attaqueur.%victim%}% &eavec|| &a[%name of tool of attacker%&a]||ttp:&7%{_Yest}%")

on damage:
   victim is a player
   set {_Attacker} to attacker
   set {_Victim} to victim
   set {attaqueur.%{_Victim}%} to {_Attacker}

command /teste:
   trigger:
       give a diamond sword of sharpness 5, knockback 3, fire aspect 1 and unbreaking 3 named "&4Ahah t'es mort" to player

Modifié par LeCraftDeOuf
  • J'aime 1
Posté(e)

Merci sa marche ! ! ! :)

 

Je te remercie par contre je vais t’embêter une dernière fois es que il serrait possible d'afficher les enchantement dans la base de la description ?

Je m'explique, tu ma donné les enchantement maintenant je voudrais les autres infos de l'épée :

 

Nom de l'épée

 

Enchantement 1

Enchantement 2

Enchantement 3

Enchantement 4

Lore de l'épée

 

+nombre d'attack damage

Et la durabilité

 

donc en gros il faudrait %attackers tool% et intégré les enchantement dedans :).

Merci encore pour ton aide je te mais 1 like :).

Posté(e) (modifié)

Jvais voir sa durabilité j'arriverai après les autres c'est à tester :)

 

 

EDIT:

 

on death:
   victim is a player
   set death message to ""
   set {_obj} to {attaqueur.%victim%}'s tool
   set {_Test::*} to split "%{_obj}%" at " of "
   set {_Test} to "%{_Test::*}%"
   loop 10 times:
       set {_Test::*} to split "%{_Test}%" at ", "
       set {_Test} to "%{_Test::*}%"
   set {_Test::*} to split "%{_Test}%" at " and "
   set {_Test1} to "%{_Test::1}%"
   remove {_Test1} from {_Test::*}
   set {_Test::*} to {_Test::*}
   set {_Test2} to size of {_Test::*}
   replace "named ""%name of tool of attacker%""" with "" in {_Test::%{_Test2}%}
   if {_Test2} is 1:
       set {_Yest} to "&7%{_Test::1}%"
   else if {_Test2} is 2:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%"
   else if {_Test2} is 3:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%"
   else if {_Test2} is 4:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%"
   else if {_Test2} is 5:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%"
   else if {_Test2} is 6:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%"
   else if {_Test2} is 7:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%%nl%&7%{_Test::7}%"
   else if {_Test2} is 8:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%%nl%&7%{_Test::7}%%nl%&7%{_Test::8}%"

   json("@a", "&b%victim% &eà été tué par &b%{attaqueur.%victim%}% &eavec|| &a[%name of tool of attacker%&a]||ttp:&7%{_Yest}%%nl%%lore of tool of attacker%")

on damage:
   victim is a player
   set {_Attacker} to attacker
   set {_Victim} to victim
   set {attaqueur.%{_Victim}%} to {_Attacker}

command /teste:
   trigger:
       give a diamond sword of sharpness 5, knockback 3, fire aspect 1 and unbreaking 3 named "&4Ahah t'es mort" with lore "&6Mdrrrr" to player            

Lore j'ai réussie mais le reste non

Modifié par LeCraftDeOuf
Posté(e)
Jvais voir sa durabilité j'arriverai après les autres c'est à tester :)

 

 

EDIT:

 

on death:
   victim is a player
   set death message to ""
   set {_obj} to {attaqueur.%victim%}'s tool
   set {_Test::*} to split "%{_obj}%" at " of "
   set {_Test} to "%{_Test::*}%"
   loop 10 times:
       set {_Test::*} to split "%{_Test}%" at ", "
       set {_Test} to "%{_Test::*}%"
   set {_Test::*} to split "%{_Test}%" at " and "
   set {_Test1} to "%{_Test::1}%"
   remove {_Test1} from {_Test::*}
   set {_Test::*} to {_Test::*}
   set {_Test2} to size of {_Test::*}
   replace "named ""%name of tool of attacker%""" with "" in {_Test::%{_Test2}%}
   if {_Test2} is 1:
       set {_Yest} to "&7%{_Test::1}%"
   else if {_Test2} is 2:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%"
   else if {_Test2} is 3:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%"
   else if {_Test2} is 4:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%"
   else if {_Test2} is 5:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%"
   else if {_Test2} is 6:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%"
   else if {_Test2} is 7:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%%nl%&7%{_Test::7}%"
   else if {_Test2} is 8:
       set {_Yest} to "&7%{_Test::1}%%nl%&7%{_Test::2}%%nl%&7%{_Test::3}%%nl%&7%{_Test::4}%%nl%&7%{_Test::5}%%nl%&7%{_Test::6}%%nl%&7%{_Test::7}%%nl%&7%{_Test::8}%"

   json("@a", "&b%victim% &eà été tué par &b%{attaqueur.%victim%}% &eavec|| &a[%name of tool of attacker%&a]||ttp:&7%{_Yest}%%nl%%lore of tool of attacker%")

on damage:
   victim is a player
   set {_Attacker} to attacker
   set {_Victim} to victim
   set {attaqueur.%{_Victim}%} to {_Attacker}

command /teste:
   trigger:
       give a diamond sword of sharpness 5, knockback 3, fire aspect 1 and unbreaking 3 named "&4Ahah t'es mort" with lore "&6Mdrrrr" to player            

Lore j'ai réussie mais le reste non

J'ai fait le nom de l'épée ducoup moi par contre je n'arrive pas trouver pour la durabilité et le nombre d'attack de l'épée :(

Esque quelqu'un connais les variables de ceci s'il vous plait ?

J'ai éssayer %damage of tool of attacker% mais sa ne marche pas :(

 

EDIT:

 

Quand je fait :

set {_DAMAGE} to Damage of tool of attacker

 

Sa marche presque puisque sa marque un chiffre mais sa marque le nombre de points de vie que l'attacker a enlever en tapant le dernier coup.

J’espère que c'est compréhensible :)

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.