Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. @name Donation Code Improvement
  2. @inputs EGP:wirelink User:entity
  3. @outputs
  4. @persist Amount Donations A
  5. @trigger
  6.  
  7. if( Amount >= 35000 ){ #Chance this number to the max donation.
  8. Amount = 35000 #Chance this number to the same as above.
  9. }
  10.  
  11. interval(100)
  12.  
  13. Cursor = EGP:egpCursor(User) #Defines
  14. function number button(Num){
  15. return inrange(Cursor,EGP:egpPos(Num),EGP:egpPos(Num) + EGP:egpSize(Num)) #Function for buttons
  16. }
  17.  
  18. EGP:egpDrawTopLeft(1)
  19. EGP:egpRoundedBox(1,vec2(50,50),vec2(400,100))
  20. EGP:egpColor(1,vec(24,16,229))
  21.  
  22. EGP:egpDrawTopLeft(2)
  23. EGP:egpRoundedBox(2,vec2(50,350),vec2(400,100))
  24. EGP:egpColor(2,vec(198,209,46))
  25.  
  26. EGP:egpDrawTopLeft(3)
  27. EGP:egpRoundedBox(3,vec2(50,175),vec2(400,150))
  28. EGP:egpColor(3,vec(22,213,28))
  29.  
  30. EGP:egpText(4, "Donation EGP made by SulfurTrash", vec2(70, 85))
  31. EGP:egpSize(4, 24)
  32.  
  33. EGP:egpText(5, "Amount of Donation: $" + Amount + "", vec2(80,210))
  34. EGP:egpSize(5, 30)
  35.  
  36. EGP:egpDrawTopLeft(6)
  37. EGP:egpRoundedBox(6,vec2(100,265),vec2(50,50))
  38. EGP:egpColor(6,vec(255,0,0))
  39.  
  40. EGP:egpDrawTopLeft(7)
  41. EGP:egpRoundedBox(7,vec2(350,265),vec2(50,50))
  42. EGP:egpColor(7,vec(0,100,0))
  43.  
  44. EGP:egpDrawTopLeft(8)
  45. EGP:egpRoundedBox(8,vec2(175,265),vec2(150,50))
  46.  
  47. EGP:egpText(9, "Total Donations: $" + Donations + "", vec2(120,380))
  48. EGP:egpSize(9,30)
  49.  
  50. if(button(6)){
  51. Amount -= 500
  52. }
  53.  
  54. if(button(7)){
  55. Amount += 500
  56. }
  57.  
  58. if(button(8)){
  59. moneyRequest(User, Amount, "SulfurTrash'es Donation Code")
  60. }
  61.  
  62. if(moneyNoClk()){
  63. Amount = 0
  64. }
  65.  
  66. if(moneyClk()){
  67. Donations +=Amount
  68. A = 1
  69. }
  70.  
  71. if (clk("a")) {A = 0}
  72. if (clk("a2")) {Amount = 0}
  73.  
  74. if (A == 1)
  75. {
  76. timer("a",1000)
  77. timer("a2",1000)
  78. }
  79.  
  80. if( Amount <= 0 ){
  81. Amount = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement