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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

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

Bungeecord Skungee

Discussion in 'Skript' started by Brok3nmind, Aug 12, 2018.

Thread Status:
Not open for further replies.
  1. Brok3nmind

    Brok3nmind Well-Known Member

    Joined:
    Feb 3, 2017
    Messages:
    63
    Likes Received:
    1
    How can i do it that my coins skript works on every server so what i mean is when i upload my coins skript on the skungee script folder and i do on server 1 /coins then it says you have 1$ but when I do /coins on server 2 i have 5$ how can i do it that i have 1 ammount on every server pls help
    Money Skript
    Code (Skript):
    1. #Money
    2.  
    3. options:
    4.     noperms: &8[&eMoney&8] &cYou don't have enough permissions.
    5.    
    6. variables:
    7.     {money.%player%} = 0
    8. every 3 ticks:
    9.     loop all players:
    10.         if {money.%loop-player%} > 1000000000:
    11.             set {money.%loop-player%} to 1000000000
    12.             send "&6&lSystem&8: &7You can't have more than &a$1000000000" to loop-player
    13. command /coins [<text>] [<offlineplayer>] [<integer>]:
    14.     aliases: money, balance
    15.     trigger:
    16.         if arg-1 is not set:
    17.             send "&6&lSystem&8: &7You have &a$%{money.%player%}%"
    18.             stop
    19.         if player has permission "modify.coins":
    20.             if arg-1 is "remove":
    21.                 if arg 2 is set:
    22.                     if arg 3 is set:
    23.                         if arg 3 is 0:
    24.                             send "&6&lSystem&8: &7You can't remove &2%arg-2% &a$0" to sender
    25.                         else:
    26.                             remove arg 3 from {money.%arg 2%}
    27.                             send "&6&lSystem&8: &7You removed &a$%arg 3% from &2%arg 2%" to sender
    28.                             send "&6&lSystem&8: &7Your account balance has been reduced by &a$%arg 3%" to arg-2
    29.                             stop
    30.                     else:
    31.                         send "&6&lSystem&8: &7/Coins remove &7player &cammount"
    32.                 else:
    33.                     send "&6&lSystem&8: &7/Coins remove &cplayer &7ammount"
    34.             if arg-1 is "add":
    35.                 if arg 2 is set:
    36.                     if arg 3 is set:
    37.                         if arg 3 is 0:
    38.                             send "&6&lSystem&8: &7You can't give &2%arg-2% &a$0" to sender
    39.                         else:
    40.                             add arg 3 to {money.%arg 2%}
    41.                             send "&6&lSystem&8: &7You added &a$%arg 3% &7to &2%arg 2%" to sender
    42.                             send "&6&lSystem&8: &7You became &a$%arg 3% &7your new balance is &a$%{money.%arg-2%}%" to arg-2
    43.                             stop
    44.                     else:
    45.                         send "&6&lSystem&8: &7/Coins add &7player &cammount"
    46.                 else:
    47.                     send "&6&lSystem&8: &7/Coins add &cplayer &7ammount"
    48.             if arg-1 is "set":
    49.                 if arg 2 is set:
    50.                     if arg 3 is set:
    51.                         if arg 3 is set:
    52.                         set {money.%arg 2%} to arg 3
    53.                         send "&6&lSystem&8: &7You have set the money from &2%arg 2% &7to &a$%arg 3%&7." to sender
    54.                         send "&6&lSystem&8: &7Your balance has been set to &a$%{money.%arg-2%}%" to arg-2
    55.                         stop
    56.                     else:
    57.                         send "&6&lSystem&8: &7/Coins set &7player &cammount"
    58.                 else:
    59.                     send "&6&lSystem&8: &7/Coins set &cplayer &7ammount"
    60.             if arg-1 is "reset":
    61.                 if arg 2 is set:
    62.                     set {money.%arg 2%} to 0
    63.                     send "&6&lSystem&8: &7You reset the money from &c%arg-2%" to sender
    64.                     send "&6&lSystem&8: &7Your balance has been reset to &a$%{money.%arg-2%}%" to arg-2
    65.                     stop
    66.                 else:
    67.                     send "&6&lSystem&8: &7/Coins &7reset &cplayer"
    68.         else:
    69.             send "&6&lSystem&8: &cYou don't have the permission" to sender
    70.                
    71.  
    72. #command /pay [<player>] [<integer>]:
    73. #    trigger:
    74. #        if arg 1 is not set:
    75. #            send "&6&lSystem&8: &cUsage: /pay <player> <amount>" to sender
    76. #            stop
    77. #        if arg 1 is "%sender%":
    78. #            send "&6&lSystem&8: &cYou can not send yourself money." to sender
    79. #            stop
    80. #        if arg 2 is not set:
    81. #            send "&6&lSystem&8: &cUsage: /pay <player> <amount>" to sender
    82. #            stop
    83. #        if arg 2 is set:
    84. #            if arg 2 is less than 1:
    85. #                send "&6&lSystem&8: &cYou can not send less than 0 money to someone." to sender
    86. #            if arg 2 is bigger than 0:
    87. #                if arg 2 is less than {money.%sender%} +1:
    88. #                    add arg 2 to {money.%arg 1%}
    89. #                    remove arg 2 from {money.%sender%}
    90. #                    send "&6&lSystem&8: &7You have paid &c%arg 1% $%arg 2%&7." to sender
    91. #                    send "&6&lSystem&8: &c%sender% &7has paid you &c$%arg 2%&7." to arg 1
    92. #                else:
    93. #                    send "&6&lSystem&8: &cYou can not send more money to someone like you." to sender
     
    #1 Brok3nmind, Aug 12, 2018
    Last edited: Aug 12, 2018
  2. Flajakay

    Flajakay Well-Known Member

    Joined:
    Jul 29, 2018
    Messages:
    48
    Likes Received:
    1
    Show your code.
     
  3. Brok3nmind

    Brok3nmind Well-Known Member

    Joined:
    Feb 3, 2017
    Messages:
    63
    Likes Received:
    1
    Code (Skript):
    1. #Money
    2.  
    3. options:
    4.     noperms: &8[&eMoney&8] &cYou don't have enough permissions.
    5.    
    6. variables:
    7.     {money.%player%} = 0
    8. every 3 ticks:
    9.     loop all players:
    10.         if {money.%loop-player%} > 1000000000:
    11.             set {money.%loop-player%} to 1000000000
    12.             send "&6&lSystem&8: &7You can't have more than &a$1000000000" to loop-player
    13. command /coins [<text>] [<offlineplayer>] [<integer>]:
    14.     aliases: money, balance
    15.     trigger:
    16.         if arg-1 is not set:
    17.             send "&6&lSystem&8: &7You have &a$%{money.%player%}%"
    18.             stop
    19.         if player has permission "modify.coins":
    20.             if arg-1 is "remove":
    21.                 if arg 2 is set:
    22.                     if arg 3 is set:
    23.                         if arg 3 is 0:
    24.                             send "&6&lSystem&8: &7You can't remove &2%arg-2% &a$0" to sender
    25.                         else:
    26.                             remove arg 3 from {money.%arg 2%}
    27.                             send "&6&lSystem&8: &7You removed &a$%arg 3% from &2%arg 2%" to sender
    28.                             send "&6&lSystem&8: &7Your account balance has been reduced by &a$%arg 3%" to arg-2
    29.                             stop
    30.                     else:
    31.                         send "&6&lSystem&8: &7/Coins remove &7player &cammount"
    32.                 else:
    33.                     send "&6&lSystem&8: &7/Coins remove &cplayer &7ammount"
    34.             if arg-1 is "add":
    35.                 if arg 2 is set:
    36.                     if arg 3 is set:
    37.                         if arg 3 is 0:
    38.                             send "&6&lSystem&8: &7You can't give &2%arg-2% &a$0" to sender
    39.                         else:
    40.                             add arg 3 to {money.%arg 2%}
    41.                             send "&6&lSystem&8: &7You added &a$%arg 3% &7to &2%arg 2%" to sender
    42.                             send "&6&lSystem&8: &7You became &a$%arg 3% &7your new balance is &a$%{money.%arg-2%}%" to arg-2
    43.                             stop
    44.                     else:
    45.                         send "&6&lSystem&8: &7/Coins add &7player &cammount"
    46.                 else:
    47.                     send "&6&lSystem&8: &7/Coins add &cplayer &7ammount"
    48.             if arg-1 is "set":
    49.                 if arg 2 is set:
    50.                     if arg 3 is set:
    51.                         if arg 3 is set:
    52.                         set {money.%arg 2%} to arg 3
    53.                         send "&6&lSystem&8: &7You have set the money from &2%arg 2% &7to &a$%arg 3%&7." to sender
    54.                         send "&6&lSystem&8: &7Your balance has been set to &a$%{money.%arg-2%}%" to arg-2
    55.                         stop
    56.                     else:
    57.                         send "&6&lSystem&8: &7/Coins set &7player &cammount"
    58.                 else:
    59.                     send "&6&lSystem&8: &7/Coins set &cplayer &7ammount"
    60.             if arg-1 is "reset":
    61.                 if arg 2 is set:
    62.                     set {money.%arg 2%} to 0
    63.                     send "&6&lSystem&8: &7You reset the money from &c%arg-2%" to sender
    64.                     send "&6&lSystem&8: &7Your balance has been reset to &a$%{money.%arg-2%}%" to arg-2
    65.                     stop
    66.                 else:
    67.                     send "&6&lSystem&8: &7/Coins &7reset &cplayer"
    68.         else:
    69.             send "&6&lSystem&8: &cYou don't have the permission" to sender
    70.                
    71.  
     
  4. Flajakay

    Flajakay Well-Known Member

    Joined:
    Jul 29, 2018
    Messages:
    48
    Likes Received:
    1
    Code (Skript):
    1.             if arg-1 is "set":
    2.                 if arg 2 is set:
    3.                     if arg 3 is set:
    4.                         if arg 3 is set:
    line 48-51
    for what you put two "if arg 3 is set"?
    Any errors in console?
     
    #4 Flajakay, Aug 12, 2018
    Last edited: Aug 12, 2018
  5. Brok3nmind

    Brok3nmind Well-Known Member

    Joined:
    Feb 3, 2017
    Messages:
    63
    Likes Received:
    1
    Ok i fixed it with the twice arg-3, what is with 52-55 cuz no errors
    --- Double Post Merged, Aug 12, 2018, Original Post Date: Aug 12, 2018 ---
    Can you help me?
     
Thread Status:
Not open for further replies.
Loading...