Advertisement
Guest User

Untitled

a guest
Apr 6th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function parse4(balance: text) :: text:
  2.     if last 3 characters of {_balance} are "000":
  3.         set {_last} to ""
  4.         return "%{_last}%"
  5.         stop
  6.     else if last 2 characters of {_balance} are "00":
  7.         return ".%first character of {_balance}%"
  8.         stop
  9.     else if last character of {_balance} is "0":
  10.         return ".%first 2 characters of {_balance}%"
  11.         stop
  12.     else if last character of {_balance} is not "0":
  13.         return ".%{_balance}%"
  14.         stop
  15.  
  16. function NumbersToWords(num: string, p: player) :: text:
  17.     length of {_num} <= 6:
  18.         return "%{balanceplayer1::%{_p}%}%"
  19.  
  20.     else if length of {_num} = 7:
  21.         set {_num_} to parse4("%subtext of {_num} from 2 and 4%")
  22.         return "%first 1 characters of {_num}%%{_num_}%M"
  23.  
  24.  
  25.     else if length of {_num} = 8:
  26.         set {_num_} to parse4("%subtext of {_num} from 3 and 5%")
  27.         return "%first 2 characters of {_num}%%{_num_}%M"
  28.  
  29.     else if length of {_num} = 9:
  30.         set {_num_} to parse4("%subtext of {_num} from 4 and 6%")
  31.         return "%first 3 characters of {_num}%%{_num_}%M"
  32.  
  33.     else if length of {_num} = 10:
  34.         set {_num_} to parse4("%subtext of {_num} from 5 and 7%")
  35.         return "%first 1 characters of {_num}%%{_num_}%B"
  36.  
  37.     else if length of {_num} = 11:
  38.         set {_num_} to parse4("%subtext of {_num} from 6 and 8%")
  39.         return "%first 2 characters of {_num}%%{_num_}%B"
  40.  
  41.     else if length of {_num} = 12:
  42.         set {_num_} to parse4("%subtext of {_num} from 7 and 9%")        
  43.         return "%first 3 characters of {_num}%%{_num_}%B"
  44.  
  45.     else if length of {_num} = 13:
  46.         set {_num_} to parse4("%subtext of {_num} from 8 and 10%")
  47.         return "%first 1 characters of {_num}%%{_num_}%T"
  48.  
  49.     else if length of {_num} = 14:
  50.         set {_num_} to parse4("%subtext of {_num} from 9 and 11%")
  51.         return "%first 2 characters of {_num}%%{_num_}%T"
  52.  
  53.     else if length of {_num} = 15:
  54.         set {_num_} to parse4("%subtext of {_num} from 10 and 12%")
  55.         return "%first 3 characters of {_num}%%{_num_}%T"
  56.  
  57.     else if length of {_num} = 16:
  58.         set {_num_} to parse4("%subtext of {_num} from 11 and 13%")
  59.         return "%first 1 characters of {_num}%%{_num_}%Q"
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. function deleteBoard(p: player):
  67.     delete stylish scoreboard "T-%{_p}%"
  68. on join:
  69.     player is online
  70.     deleteBoard(player)
  71.     loop 999999999 times:
  72.         player is offline:
  73.             stop
  74.         if stylish scoreboard "T-%player%" does not exist:
  75.             create new stylish scoreboard named "T-%player%"
  76.             loop 15 times:
  77.                 create a new id based score "%player%Slot%loop-value-2%" with text "§%loop-number-2%" slot loop-value-2 for stylish scoreboard "T-%player%"
  78.         if player's world is "KitPvP":
  79.            set title of stylish scoreboard "T-%player%" to "&f&l&nLoL&b&l&nMC"
  80.            set the text of id "%player%Slot15" to "&a&b&a"
  81.            set the text of id "%player%Slot14" to "&a&b&a"
  82.            set the text of id "%player%Slot13" to "&a&b&a"
  83.            set the text of id "%player%Slot12" to "&a&lBank Account"
  84.            set the text of id "%player%Slot11" to "&a&l> &f$%{money::%player%}%"
  85.            set the text of id "%player%Slot10" to "&r&a"
  86.            set the text of id "%player%Slot9" to "&c&lPlayer Stats"
  87.            if "%{kills::%uuid of player%}/{deaths::%uuid of player%}%" is "Infinity":
  88.                set the text of id "%player%Slot8" to "&c&l> &cKDR &f%{kills::%uuid of player%}% / %{deaths::%uuid of player%}% / %{kills::%uuid of player%}%"
  89.            else:
  90.                set the text of id "%player%Slot8" to "&c&l> &cKDR &f%{kills::%uuid of player%}% / %{deaths::%uuid of player%}% / %{kills::%uuid of player%}/{deaths::%uuid of player%}%"
  91.            set the text of id "%player%Slot7" to "&c&l> &cMultiplier &f%{boosterm::%player%} + {ksbooster::%player%} + {rankbooster::%uuid of player%}%x &7(/mp)"
  92.            set the text of id "%player%Slot6" to "&b&c&b"
  93.            set the text of id "%player%Slot5" to "&e&lVote Party"
  94.            set the text of id "%player%Slot4" to "&e&l> &f 0 / 10"
  95.            set the text of id "%player%Slot3" to "&b&d&a"
  96.            set the text of id "%player%Slot2" to "&b&d&a"
  97.            set the text of id "%player%Slot1" to "&b&d&a"
  98.            set stylish scoreboard of player to "T-%player%"
  99.            delete {_title}
  100.        wait 10 ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement