Aller au contenu

[HUB] Parrainer un joueur


Messages recommandés

Posté(e)
Précise ta demande, elle est à des années lumières d'être complète.

 

C'est plutôt clair. Tu parraines une personne qui ne s'est jamais connectée avec une commande, tu reçois une certaine somme si elle se connecte dans un délai donné, et si elle fait un certain nombre de kills avant un autre délai plus long, tu reçois une autre somme.

Il manque que quelques infos -qu'on redemande certes à chaque fois donc il faudrait le dire spontanément quand on a déjà fait des dizaines de demandes-, genre comment est géré l'argent sur le serveur.

Posté(e)

Étant donné que tu a fait un effort pour suivre les règles je te supprime pas ton sujet. Mais c'est à la condition que tu rédige une description en details de ce que tu veut car la on ne comprend rien.

Posté(e)

Je suis désoler , j'ai pas vu vos messages , quand vu que je terminer a 17 heure aujourd'hui , mais c'est bon , je suis enfin libre :)

 

Réponse:

- Sans Bungee , tout sur un serveur

- Il y a 2 types d'argent sur mon serveur: RatioMoney (Iconomy) et EpicMoney (Script) , mais moi je le voudrais en Iconomy :)

Posté(e)

Je t'ai fait le skript regarde:

Command /sponsor [<text>]:
   trigger:
       if arg 1 is not set:
           send "&6______-----&f&lParrainer un joueur !&6-----______"
           send "&eSur &cRatiofight &etu peux parrainer un ami qui n'a jamais visiter &cRatiofight &etu pouras avoir en récompense: 500 RatioMoney"
           send "&6✔ Etape 1: &eTape dans le tchat &f/sponsor [Pseudo de ton ami]"
           send "&6✔ Etape 2: &eTon ami a 10 minute pour se connecter!"
           send "&6✔ Etape 3: &eSi ton ami c'est connecter tu reçois 50 RatioMoney!"
           send "&6✔ Etape 4: &eSi ton ami est nouveau à ta prochaine connexion tu reçois les 500 RatioMoney!"
       if arg 1 is "%player%":
           send "&cTu peux pas te parrainer toi même"
       else:   
           clear {byparrainage%arg-1%}
           wait 1 tick
           set {parrainage%arg-1%} to true
           set {byparrainage%arg-1%} to player
           wait 10 minutes
           set {parrainage%arg-1%} to false


on first join:
   if {parrainage%player%} is true:
       send "&aTu t'est fait parrainer par: %{byparrainage%player%}%"
       send "&6Donc tu reçois 500 RatioMoney"
       execute console command "/money give %player% 500"
       loop {byparrainage%player%}:
           send "&6%player% à valider ton parrainage tu reçois 500 RatioMoney à ta prochaine connexion!" to loop-value
           send "&6Est tu as gagner 50 RatioMoney!" to loop-value
           execute console command "/money give %loop-value% 50"
           set {argentpar.%loop-value%} to true

on join:
   if {parrainage%player%} is true:
       send "&aTu t'est fait parrainer par: %{byparrainage%player%}%"
       send "&6Donc tu reçois 100 RatioMoney"
       execute console command "/money give %player% 100"
       loop {byparrainage%player%}:
           send "&6%player% à valider ton parrainage!" to loop-value
           send "&6Est tu as gagner 50 RatioMoney!" to loop-value
           execute console command "/money give %loop-value% 50"
       if {argentpar.%player%} is true:
           clear {argentpar.%player%}
           execute console command "/money give %player% 500"

Posté(e)

Voila c'est bon:

Command /sponsor [<text>]:
   trigger:
       if arg 1 is not set:
           send "&6______-----&f&lParrainer un joueur !&6-----______"
           send "&eSur &cRatiofight &etu peux parrainer un ami qui n'a jamais visiter &cRatiofight &etu pouras avoir en récompense: 500 RatioMoney"
           send "&6✔ Etape 1: &eTape dans le tchat &f/sponsor [Pseudo de ton ami]"
           send "&6✔ Etape 2: &eTon ami a 10 minute pour se connecter!"
           send "&6✔ Etape 3: &eSi ton ami c'est connecter tu reçois 50 RatioMoney!"
           send "&6✔ Etape 4: &eSi ton ami est nouveau à ta prochaine connexion tu reçois les 500 RatioMoney!"
       if arg 1 is "%player%":
           send "&cTu peux pas te parrainer toi même"
       else:   
           clear {byparrainage%arg-1%::*}
           wait 1 tick
           set {parrainage%arg-1%} to true
           set {byparrainage%arg-1%::*} to player
           wait 10 minutes
           set {parrainage%arg-1%} to false


on first join:
   if {parrainage%player%} is true:
       send "&aTu t'est fait parrainer par: %{byparrainage%player%::*}%"
       send "&6Donc tu reçois 500 RatioMoney"
       execute console command "/money give %player% 500"
       loop value {byparrainage%player%::*}:
           send "&6%player% à valider ton parrainage tu reçois 500 RatioMoney à ta prochaine connexion!" to loop-value
           send "&6Est tu as gagner 50 RatioMoney!" to loop-value
           execute console command "/money give %loop-value% 50"
           set {argentpar.%loop-value%} to true

on join:
   if {parrainage%player%} is true:
       send "&aTu t'est fait parrainer par: %{byparrainage%player%::*}%"
       send "&6Donc tu reçois 100 RatioMoney"
       execute console command "/money give %player% 100"
       loop {byparrainage%player%::*}:
           send "&6%player% à valider ton parrainage!" to loop-value
           send "&6Est tu as gagner 50 RatioMoney!" to loop-value
           execute console command "/money give %loop-value% 50"
       if {argentpar.%player%} is true:
           clear {argentpar.%player%}
           execute console command "/money give %player% 500"

Posté(e)
Command /sponsor [<text>]:
   trigger:
       if arg 1 is not set:
           send "&6______-----&f&lParrainer un joueur !&6-----______"
           send "&eSur &cRatiofight &etu peux parrainer un ami qui n'a jamais visiter &cRatiofight &etu pouras avoir en récompense: 500 RatioMoney"
           send "&6✔ Etape 1: &eTape dans le tchat &f/sponsor [Pseudo de ton ami]"
           send "&6✔ Etape 2: &eTon ami a 10 minute pour se connecter!"
           send "&6✔ Etape 3: &eSi ton ami c'est connecter tu reçois 50 RatioMoney!"
           send "&6✔ Etape 4: &eSi ton ami est nouveau à ta prochaine connexion tu reçois les 500 RatioMoney!"
       if arg 1 is "%player%":
           send "&cTu peux pas te parrainer toi même"
       else:   
           clear {byparrainage%arg-1%::*}
           wait 1 tick
           set {parrainage%arg-1%} to true
           set {byparrainage%arg-1%::*} to player
           wait 10 minutes
           set {parrainage%arg-1%} to false


on first join:
   if {parrainage%player%} is true:
       send "&aTu t'est fait parrainer par: %{byparrainage%player%::*}%"
       send "&6Donc tu reçois 500 RatioMoney"
       execute console command "/money give %player% 500"
       loop {byparrainage%player%::*}:
           send "&6%player% à valider ton parrainage tu reçois 500 RatioMoney à ta prochaine connexion!" to loop-value
           send "&6Est tu as gagner 50 RatioMoney!" to loop-value
           execute console command "/money give %loop-value% 50"
           set {argentpar.%loop-value%} to true

on join:
   if {parrainage%player%} is true:
       send "&aTu t'est fait parrainer par: %{byparrainage%player%::*}%"
       send "&6Donc tu reçois 100 RatioMoney"
       execute console command "/money give %player% 100"
       loop {byparrainage%player%::*}:
           send "&6%player% à valider ton parrainage!" to loop-value
           send "&6Est tu as gagner 50 RatioMoney!" to loop-value
           execute console command "/money give %loop-value% 50"
       if {argentpar.%player%} is true:
           clear {argentpar.%player%}
           execute console command "/money give %player% 500"

Posté(e)

C'est bon aucune erreur , mais sa ne marche pas :'( J'ai test avec un nouveau joueur , mais il faut mettre les majuscules ou pas ? Car quand j'ai mis son pseudo , ça ma pas envoyé de message

Posté(e)

ERREUR:

Même si le joueur n'est pas nouveau on peut le parainer et avoir l'argent

 

Script modifié:

Command /sponsor [<text>]:
   trigger:
       if arg 1 is not set:
           send "&6______-----&f&lParrainer un joueur !&6-----______"
           send "&eSur &cRatioFight &etu peux parrainer un ami qui n'a jamais visiter &cRatioFight &etu pouras avoir en récompense: 500 RatioMoneys"
           send "&6✔ Etape 1: &eTape dans le tchat &f/sponsor [Pseudo de ton ami]"
           send "&6✔ Etape 2: &eTon ami a 10 minute pour se connecter!"
           send "&6✔ Etape 3: &eSi ton ami c'est connecter tu reçois 50 RatioMoneys!"
           send "&6✔ Etape 4: &eSi ton ami est nouveau à ta prochaine connexion tu reçois les 500 RatioMoneys!"
           send " "
           send "&4⚠ &c&lEcrivez bien le pseudo du joueur avec les majuscules ECT , sinon vous n'aurez pas votre parrainage validé ! &4⚠"
           send "&6______-----&f&lParrainer un joueur !&6-----______"
       if arg 1 is "%player%":
           send "&e[&6Parrainer&e] &cTu peux pas te parrainer toi même"
       if arg 1 is set:
           clear {byparrainage%arg-1%::*}
           wait 1 tick
           set {parrainage%arg-1%} to true
           set {byparrainage%arg-1%::*} to player
           message "&e[&6Parrainer&e] &6Vous avez bien fait votre parrainage pour &a%arg% &6!"
           wait 10 minutes
           set {parrainage%arg-1%} to false


on first join:
   if {parrainage%player%} is true:
       send "&e[&6Parrainer&e] &aTu t'est fait parrainer par: %{byparrainage%player%::*}%"
       send "&e[&6Parrainer&e] &6Donc tu reçois 500 RatioMoneys"
       execute console command "/money give %player% 500"
       loop {byparrainage%player%::*}:
           send "&e[&6Parrainer&e] &6%player% à valider ton parrainage tu reçois 500 RatioMoneys à ta prochaine connexion!" to loop-value
           send "&e[&6Parrainer&e] &6Et tu as gagner 50 RatioMoneys!" to loop-value
           send loop-value title "&2Félicitation" with subtitle "&a&lParrainage Validé !" for 2 seconds
           execute console command "/money give %loop-value% 50"
           set {argentpar.%loop-value%} to true

on join:
   if {parrainage%player%} is true:
       send "&e[&6Parrainer&e] &aTu t'est fait parrainer par: %{byparrainage%player%::*}%"
       send "&e[&6Parrainer&e] &6Donc tu reçois 100 RatioMoneys"
       execute console command "/money give %player% 100"
       loop {byparrainage%player%::*}:
           send "&e[&6Parrainer&e] &6%player% à valider ton parrainage!" to loop-value
           send "&e[&6Parrainer&e] &6Et tu as gagner 50 RatioMoneys!" to loop-value
           execute console command "/money give %loop-value% 50"
       if {argentpar.%player%} is true:
           clear {argentpar.%player%}
           execute console command "/money give %player% 500"

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