Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Général
- on script load:
- clear {coke::*}
- clear {cannabis::*}
- #Bananes
- on join:
- if {cannabis::%player%} is set:
- clear {cannabis::%player%}
- on right click on 1202:
- if {cannabis::%player%} is not set:
- set {cannabis::%player%} to 1
- send "&aRécolte en cours ."
- wait 3 seconds
- send "&aRécolte en cours .."
- wait 3 seconds
- send "&aRécolte en cours ..."
- wait 3 seconds
- clear {cannabis::%player%}
- if chance of 100%:
- give 1 6506 named "&aFeuille de Cannabis" with lore "&eInformation &6• &eVa traiter cette feuille ||&epour qu'elle soit vendable" to player
- send "&7[&aRécolte&7] &7Tu viens de recolte une feuille de cannabis"
- stop
- else:
- send "&cAh, tu n'a rien trouvé !"
- stop
- if {cannabis::%player%} is set:
- send "&7[&cOwnLineRp&7] &cTu es déja occupé a récolté !" to player
- stop
- on join:
- if {coke::%player%} is set:
- clear {coke::%player%}
- on right click on 1206:
- if {coke::%player%} is not set:
- set {coke::%player%} to 1
- send "&aRécolte en cours ."
- wait 3 seconds
- send "&aRécolte en cours .."
- wait 3 seconds
- send "&aRécolte en cours ..."
- wait 3 seconds
- clear {coke::%player%}
- if chance of 100%:
- give 1 6515 named "&aSachet de Cokaine" with lore "&eInformation &6• &eVa traiter ce sachet ||&epour qu'elle soit vendable" to player
- send "&7[&aRécolte&7] &7Tu viens de recolte un sachet de Cokaine"
- stop
- else:
- send "&cAh, tu n'a rien trouvé !"
- stop
- if {coke::%player%} is set:
- send "&7[&cOwnLineRp&7] &cTu es déja occupé a récolté !" to player
- stop
- options:
- Traitementfinis: &2{&aTraitement Finis &2} &aBravo tu viens de finir de traiter
- TraitementFail: &2{&cTraitement Erreur &2} &cDommage ton traitement n'est pas finis
- on script load:
- clear {traitementcoke::*}
- clear {traitementcannabis::*}
- command /traitement <text>:
- trigger:
- if arg 1 is "cannabis1":
- open chest with 1 rows named "&2{ &aTraiteur &2}" to player
- make a gui slot 0 and 1 and 2 and 3 and 5 and 6 and 7 of player with black stained glass pane named "&2{ &aTraiteur &2}" to do nothing
- make a gui slot 8 of player with 166 named "&c&lFermer" to do nothing
- make a gui slot 4 of player with 6506 named "&aTraiter" with lore "&f&l[&cInformation&f&l] ||&81 Feuille de cannabis contre 1 Feuille de cannabis traiter" to run:
- if player's contains 1 6506 named "&aFeuille de Cannabis" with lore "&eInformation &6• &eVa traiter cette feuille ||&epour qu'elle soit vendable":
- if {traitementcannabis::%player%} is not set:
- set {traitementcannabis::%player%} to 1
- send "&7&l{&eTraitement&7&l] &a10 %"
- wait 1 second
- send "&7&l{&eTraitement&7&l] &a20 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a30 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a40 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a50 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a60 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a70 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a80 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a90 %"
- wait 2 second
- send "&7&l{&eTraitement&7&l] &a100 %"
- send "{@Traitementfinis}"
- else:
- send "{@TraitementFail}"
- if {traitementcannabis::%player%} is set:
- send "&7[&cOwnLineRp&7] &cTu es déja occupé a récolté !" to player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement