Aller au contenu
  • 0

Aide skript de level up metier


Question

Posté(e)

j'ai fait ce skript de level up de metier et ya beaucoup d'ereures aidez moi plz 

command /job:
    trigger:
        send "&a[&3Bucheron&a] &a[&3Niv &a: &3%{lvlb.%player%}] &3%{xpb.%player%}&a/&35000"
        send "&a[&3Mineur&a] &a[&3Niv &a: &3%{lvlm.%player%}] &3%{xpm.%player%}&a/&35000"
        send "&a[&3Chasseur&a] &a[&3Niv &a: &3%{lvlh.%player%}] &3%{xph.%player%}&a/&35000"
        send "&a[&3Farmeur&a] &a[&3Niv &a: &3%{lvlf.%player%}] &3{xpf.%player%}&a/&35000"
        
on break of oak wood:
    send "&a[&3Bucheron&a] &3+ &a3 &3xp"
    add 3 to {xpb.%player%}
    if {xpb.%player%} is greater than 5000:
        add 1 to {lvlb.%player%}
        
on break of diamond ore:
    send "&a[&3Mineur&a] &3+ &a5 &3xp"
    add 5 to {xpm.%player%}
    if {xpm.%player%} is greater than 5000:
        add 1 to {lvlm.%player%}
        
on break of emerald ore:
    send "&a[&3Mineur&a] &3+ &a10 &3xp"
    add 10 to {xpm.%player%}
    if {xpm.%player%} is greater than 5000:
        add 1 to {lvlm.%player%}
        
on break of obsidian:
    send "&a[&3Mineur&a] &3+ &a15 &3xp"
    add 15 to {xpm.%player%}
    if {xpm.%player%} is greater than 5000:
        add 1 to {lvlm.%player%}

on break of melon:
    send "&a[&3Farmeur&a] &3+ &a15 &3xp"
    add 5 to {xpm.%player%}
    if {xpf.%player%} is greater than 5000:
        add 1 to {lvlf.%player%}
    
on death:
    if the attacker is a player:
        if the victim is a zombie:
            add 10 to {xph.%attacker%}
            send "&a[&3Chasseur&a] &3+ &a3 &10xp"
            if {xph.%attacker%} is greater than 5000:
                add 1 to {lvlh.%player%}
    

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonsoir,

Un peu compliqué de t'aider si tu ne donnes pas les erreurs que tu obtiens lorsque tu charges le Skript. J'ai vérifié ton code, celui-ci semble bon, donc cela doit être une histoire d'espace certainement ?

Bonne soirée ?

  • 0
Posté(e)

Oui c'est une erreur d'espace, je suis sur téléphone, je ne peux pas réellement te corriger ceci, mais c'est une histoire de tabulation envers ces lignes la qui ne sont pas similaires aux autres.

 

Voici quelques liens pour t'aider : https://skript-mc.fr/topic/-son-code-seul/ ou https://skript-mc.fr/topic/14818-aide-primaire-régler-les-problèmes-de-tab/

Cordialement, 

  • 0
Posté(e)

Salut, tu as une balise pour code :

command /job:
	trigger:
		send "&a[&3Bucheron&a] &a[&3Niv &a: &3%{lvlb.%player%}] &3%{xpb.%player%}&a/&35000"
		send "&a[&3Mineur&a] &a[&3Niv &a: &3%{lvlm.%player%}] &3%{xpm.%player%}&a/&35000"
		send "&a[&3Chasseur&a] &a[&3Niv &a: &3%{lvlh.%player%}] &3%{xph.%player%}&a/&35000"
		send "&a[&3Farmeur&a] &a[&3Niv &a: &3%{lvlf.%player%}] &3{xpf.%player%}&a/&35000"

on break of oak wood:
	send "&a[&3Bucheron&a] &3+ &a3 &3xp"
	add 3 to {xpb.%player%}
	if {xpb.%player%} is greater than 5000:
	add 1 to {lvlb.%player%}

on break of diamond ore:
	send "&a[&3Mineur&a] &3+ &a5 &3xp"
	add 5 to {xpm.%player%}
	if {xpm.%player%} is greater than 5000:
		add 1 to {lvlm.%player%}

on break of emerald ore:
	send "&a[&3Mineur&a] &3+ &a10 &3xp"
	add 10 to {xpm.%player%}
	if {xpm.%player%} is greater than 5000:
		add 1 to {lvlm.%player%}

on break of obsidian:
	send "&a[&3Mineur&a] &3+ &a15 &3xp"
	add 15 to {xpm.%player%}
	if {xpm.%player%} is greater than 5000:
		add 1 to {lvlm.%player%}

on break of melon:
	send "&a[&3Farmeur&a] &3+ &a15 &3xp"
	add 5 to {xpm.%player%}
	if {xpf.%player%} is greater than 5000:
		add 1 to {lvlf.%player%}

on death:
	if the attacker is a player:
		if the victim is a zombie:
			add 10 to {xph.%attacker%}
			send "&a[&3Chasseur&a] &3+ &a3 &10xp"
			if {xph.%attacker%} is greater than 5000:
				add 1 to {lvlh.%player%}

j'ai normalement corriger tes tabs 

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.