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 out 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.

Currency converter (1000 to 1k)

Discussion in 'Skript' started by Narek7445, Jun 21, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. Narek7445

    Narek7445 Member

    Joined:
    May 12, 2019
    Messages:
    4
    Likes Received:
    0
    Can i make with else way? And what way
    command /money:
    trigger:
    if {money.%player%} >= 1000
    set {ac.%player%} to {money.%player%} / 10
    send "Money >> %{ac.%player%}%"
     
  2. IDuckz_

    IDuckz_ Active Member

    Joined:
    Jul 25, 2019
    Messages:
    106
    Likes Received:
    2
    Can you send the full code of what you are using this skript for?
     
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Try:
    Code (Skript):
    1.  
    2. command /money:
    3.     trigger:
    4.         if {money.%player%} is between 1000 and 9999:
    5.             set {_first} to first character of {money.%player%}
    6.             send "Money >> %{_first}%K"
    7.  
    Although, if I'm not mistaken, someone made a code of a function that designated the letter of the value of money. For example, 1k, 1m, 1b, 1t, 1q, etc.
     
    • Agree Agree x 1
  4. ishc3ice

    ishc3ice New Member

    Joined:
    Jul 29, 2019
    Messages:
    5
    Likes Received:
    0
    its really simple. i think lol
    try:
    Code (Text):
    1. command /money:
    2.     trigger:
    3.         if {money.%player%} is more than 999:
    4.             set {_m} to ({money.%player%} / 1000)
    5.             message "&aYour Balance is &b%{_m}%k!"
    6.         else:
    7.             message "&aYour Balance is &b%{money.%player%}%!"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...