1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

,

Discussion in 'Requests' started by noam sapir, Jul 1, 2017.

  1. noam sapir

    noam sapir Member

    Joined:
    Jul 1, 2017
    Messages:
    2
    Likes Received:
    0
    .
     
    #1 noam sapir, Jul 1, 2017
    Last edited: Aug 7, 2019
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Sry. but the code looks for me horroible. i there is maybe simpler and easier to read code.

    Code (Skript):
    1. command /givebooster [<player>]:
    2.     trigger:
    3.         if arg-1 is set:
    4.            set {_p} to arg-1
    5.         else:
    6.             set {_p} to player
    7.         add 1 to {booster.serveur::%uuid of {_p}%}#i have create here list. Thanks me later. This is very usefull!
    8.         send "{@PrefixBooster} &7Tu as &f%{booster.serveur::%uuid of {_p}%}% &7Booster !" to {_p}
    9.         if {_p} is not player:
    10.             send "{@PrefixBooster} &7Ce joueur possède &f%{booster.serveur::%uuid of {_p}%}% &7Booster !" to player
    11.  
    12. command /delboster:
    13.     trigger:
    14.         delete {Booster.Time::*}
    15.         delete {Booster.Tips::*}
    16.         delete {Booster.Others::*}
    17.  
    18. command /booster [<text>]:
    19.     trigger:
    20.         if arg-1 is "money":
    21.             if {booster.serveur::%uuid of player%} is more than or equal to 1:
    22.                 if {Booster.Time::*} is not set:
    23.                     remove 1 from {booster.serveur::%uuid of player%}
    24.                     broadcast " "
    25.                     broadcast " "
    26.                     broadcast "&f&k::&r &aUn &6&lBooster &aa été activé &f&k::"
    27.                     broadcast " "
    28.                     loop all players:
    29.                         execute console command "tellraw %loop-player% [{""text"":"""",""extra"":[{""text"":""&f&7&nReçois des gains en cliquant ici !"",""clickEvent"":{""action"":""run_command"",""value"":""/tip %arg 1%""},""hoverEvent"":{""action"":""show_text"",""value"":""&7Remercier &f%{booster.serveur.%arg 1%.joueur}%""}}]}]"
    30.                     broadcast " "
    31.                     broadcast " "
    32.                     set {Booster.Time::Minute} to 60
    33.                     set {Booster.Others::By} to player
    34.                     while {Booster.Time::Minute} is not 0:
    35.                         wait a minute
    36.                         subtract 1 from {Booster.Time::Minute}
    37.                      send "&a[&d&lPN&R&A] &6Money booster &7has run out" to players
    38.                      delete {Booster.Time::*}
    39.                      delete {Booster.Tips::*}
    40.                      delete {Booster.Others::*}
    41.  
    42. command /tips:
    43.     trigger:
    44.         if {Booster.Others::by} is set:
    45.             if {Booster.Tips::%player%} is not set:
    46.                  set {Booster.Tips::%player%} to true
    47.                  execute console command "eco give %{Booster.Others::by}% 100"
    48.                  message "&6Looks like someone likes you! here is 100$!" to {Booster.Others::by}
    49.  
    While coding i understand what your problem...

    You did at /tips "%arg-1%". But %arg-1% is as "money" so you need put variables instaead %arg-1%
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    So can u fix my code or say me what 2 change?
    Thanka
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    You have a lot of spacial errors "Ie with your indentation". Did you get any console errors?
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    at least he is trying unlike you asking for help with every single skript, your name doesn't suit you
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    OMG IPARIS IM A BIG FAN!!!! LOVE YOUR SKRIPTS!!! THERE AWESOME YOUR THE REASON I KNOW HOW TO MAKE COMPLEX PLUGINS!!!!!!!!!!!!!!!! LOVE YOUR WORK!!!!!! (agreed)
     

Share This Page

Loading...