Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. # Mozesz na spokojnie dodac do lore funkcje na spacje, zadziala.
  2. # Bledy? Pisz, naprawie jak najszybciej!
  3.  
  4. function shadowCommand(t: text, p: player):
  5. replace all " " with "" in {_t}
  6. set {_t} to ("%{_t}%" parsed as number)
  7. if {_t} is number:
  8. if {money::%{_p}%} >= {_t}:
  9. remove {_t} from {money::%{_p}%}
  10. give {_p} 1 brick named "&f&lKarta Kredytowa" with lore "&0||&eWartosc: &b%{_t}%$"
  11. stop
  12. send "&cNie mozesz tyle wyplacic, poniewaz tyle nie masz na koncie!" to {_p}
  13.  
  14. function shadowMessage(p: player):
  15. send "&2Twoj stan konta: &a%{money::%{_p}%}%$" to {_p}
  16.  
  17. function shadowDzialanie(p: player):
  18. {_p}'s tool is brick:
  19. amount of item {_p}'s tool = 1:
  20. set {_lore} to "%uncoloured lore of {_p}'s tool%"
  21. replace all " " and "$" and "Wartosc" and ":" and "||" with "" in {_lore}
  22. set {_lore} to ("%{_lore}%" parsed as number)
  23. add {_lore} to {money::%{_p}%}
  24. send "&2Pomyslnie dodano karte do twojego konta, aktualnie posiadasz: &a%{money::%{_p}%}%$" to {_p}
  25. remove {_p}'s tool from {_p}'s inventory
  26. stop
  27. send "&cMozesz jedynie trzymac x1!" to {_p}
  28.  
  29. on rightclick with brick:
  30. set {_p} to player
  31. shadowDzialanie({_p})
  32.  
  33. command /kasa [<text>]:
  34. aliases: money, monety, hajs
  35. trigger:
  36. set {_p} to player
  37. shadowMessage({_p})
  38.  
  39. command /karta [<text>]:
  40. trigger:
  41. arg 1 is set:
  42. set {_number} to ("%arg 1%" parsed as number)
  43. {_number} > 0:
  44. set {_p} to player
  45. set {_t} to arg 1
  46. shadowCommand({_t}, {_p})
  47. stop
  48. {_number} doesn't contain " ":
  49. send "&cTa kwota jest zbyt niska!"
  50. stop
  51. replace all " " with "" in {_number}
  52. set {_number} to ("%arg 1%" parsed as number)
  53. set {_p} to player
  54. set {_t} to arg 1
  55. shadowCommand({_t}, {_p})
  56. stop
  57. send "&cPodaj kwote, musi byc ona wieksza od 0!"
  58. send "&7&oPamietaj... Mozna odzielac spacjami, ulatwia to strasznie!"
  59. send "&7&oPlanowane dodanie: Mozliwosc wpisywania k, kk, kkk!"
  60.  
  61. on join:
  62. add 1000000 to {money::%player%}
  63. send "&4&oUsun ta linijke, dodaje to 1kk do stanu konta!"
  64. send "&4&oTa linijka byla dla testow, nie ma za co :D!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement