Aller au contenu

Compter le nombre de coup d'épée


Messages recommandés

Posté(e)

Bonjour,

 

Je voudrais un skript pouc compter combien de fois la personne a taper en x seconde,

 

Je veux pas du on left click: pourquoi ? car quand une personne fait du Kill Aura ben ça compte pas comme des click bizar donc je voudrais faire un systeme que quand la personne a taper X fois la personne ça nous envoie un message

Posté(e)

Bonsoir;

Normalement c'est ça, vérifiez si il marche je vient de le faire vite fait.

options:
   number: 7

on damage:
   if victim and attacker is a player:
       if {WCAntiKill.%uuid of attacker%.count} is not set:
           add 1 to {WCAntiKill.%uuid of attacker%.count}
           wait 1 second
           delete {WCAntiKill.%uuid of attacker%.count}
       else:
           add 1 to {WCAntiKill.%uuid of attacker%.count}
       if {WCAntiKill.%uuid of attacker%.count} >= {@number}:
           #Ecris ton systéme de message.
       else:
           stop

Posté(e)
Bonsoir;

Normalement c'est ça, vérifiez si il marche je vient de le faire vite fait.

options:
   number: 7

on damage:
   if victim and attacker is a player:
       if {WCAntiKill.%uuid of attacker%.count} is not set:
           add 1 to {WCAntiKill.%uuid of attacker%.count}
           wait 1 second
           delete {WCAntiKill.%uuid of attacker%.count}
       else:
           add 1 to {WCAntiKill.%uuid of attacker%.count}
       if {WCAntiKill.%uuid of attacker%.count} >= {@number}:
           #Ecris ton systéme de message.
       else:
           stop

marche po

on damage:
   if attacker is a player:
       if victim is a citizen:
           if {WCAntiKill.%attacker%.count} is not set:
               add 1 to {WCAntiKill.%attacker%.count}
               wait 10 second
               delete {WCAntiKill.%attacker%.count}
           else:
               add 1 to {WCAntiKill.%attacker%.count}
           if {WCAntiKill.%attacker%.count} >= 1:
               broadcast "cc %{WCAntiKill.%attacker%.count}%"
           else:
               stop

Ok, j'ai compris, sa compte quand on tape des mobs, mais si c'est un NPC ça compte pas c'est assez wtf

×
×
  • 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.