Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.15 KB | None | 0 0
  1. @name CSGOCaseOpener (edit AdrianeQ)
  2. @inputs EGP:wirelink EGP2:wirelink User:entity
  3. @outputs X Y Kage:string
  4. @persist O Time Array:array Temp PriceArray:array Player:entity SideA SideB Money MoneyOld BaseHeight ABlock BBlock CBlock DBlock Speed Random KeyPrice First AItem:string AMaterial:string BItem:string BMaterial:string CItem:string CMaterial:string DItem:string DMaterial:string Paid
  5. @trigger
  6.  
  7. interval(100)
  8. Screen = entity():isWeldedTo()
  9. #entity():createWire(Screen,"EGP","wirelink")
  10. #entity():createWire(Screen,"User","User")
  11. PriceArray = array(0,3400,4900,6100,7120,7800,8400,8900,9100,9610,9750,9850,9125,9975,30000)
  12. KeyPrice= 30000
  13. #=====
  14. #findByClass("player")
  15. #Player = findClosest(entity():pos())
  16. #KeyPrice=floor(Player:money()/50)
  17. #if (KeyPrice > owner():money()/200) {KeyPrice = floor(owner():money()/200)}
  18. #EGP:egpText(5,"Buy Key " + KeyPrice + "$",vec2(80,285))
  19. #Time++
  20. #if (Time % 30 == 0) {First = 1}
  21. #print(Time)Q
  22. #=====
  23. if(First == 0) {
  24. First = 1
  25. Paid = 0
  26. ABlock=0
  27. BBlock=127
  28. CBlock=254
  29. DBlock=381
  30. BaseHeight=155
  31. Array = array("vgui/entities/weapon_mad_knife","vgui/gfx/vgui/awp","vgui/gfx/vgui/m4a1","vgui/gfx/vgui/scout","vgui/gfx/vgui/p90","vgui/gfx/vgui/aug","vgui/gfx/vgui/xm1014","vgui/gfx/vgui/galil","vgui/gfx/vgui/ak47","vgui/gfx/vgui/famas","vgui/entities/weapon_mad_deagle","vgui/gfx/vgui/usp45","vgui/entities/weapon_mad_dual","vgui/gfx/vgui/glock18","vgui/gfx/vgui/p228")
  32.  
  33.  
  34. Speed=random(124.76,126.76)
  35. #Min Speed = 124.76
  36. #Max Speed = 126.76
  37. EGP:egpBox(1,vec2(500,500),vec2(1000,1000))
  38. EGP:egpColor(1,vec(16,24,35))
  39. EGP:egpBox(2,vec2(256,170),vec2(400,170))
  40. EGP:egpColor(2,vec(35,42,46))
  41. EGP:egpBox(3,vec2(256,170),vec2(395,165))
  42. EGP:egpColor(3,vec(22,22,22))
  43.  
  44. EGP:egpBox(4,vec2(256,300),vec2(395,50))
  45. EGP:egpColor(4,vec(79,113,35))
  46. EGP:egpText(5,"Start spin " + 10000 + "$",vec2(80,285))
  47. EGP:egpSize(5,30)
  48.  
  49.  
  50.  
  51. EGP:egpText(6,"P250: " + floor(KeyPrice/9) + "$ - " + floor(KeyPrice/8) + "$",vec2(30,350))
  52. EGP:egpSize(6,15)
  53. EGP:egpText(7,"Glock-18: " + floor(KeyPrice/7) + "$ - " + floor(KeyPrice/6) + "$",vec2(30,370))
  54. EGP:egpSize(7,15)
  55. EGP:egpText(8,"Dual Berrettas: " + floor(KeyPrice/5) + "$ - " + floor(KeyPrice/5) + "$",vec2(30,390))
  56. EGP:egpSize(8,15)
  57. EGP:egpText(9,"USP-S: " + floor(KeyPrice/4) + "$ - " + floor(KeyPrice/3) + "$",vec2(30,410))
  58. EGP:egpSize(9,15)
  59. EGP:egpText(16,"Desert Eagle: " + floor(KeyPrice/2) + "$ - " + floor(KeyPrice/2) + "$",vec2(30,430))
  60. EGP:egpSize(16,15)
  61.  
  62. EGP:egpText(17,"FAMAS: " + floor(KeyPrice*1.0) + "$ - " + floor(KeyPrice*1.30) + "$",vec2(30,450))
  63. EGP:egpSize(17,15)
  64. EGP:egpText(18,"AK-47: " + floor(KeyPrice*1.30) + "$ - " + floor(KeyPrice*1.60) + "$",vec2(30,470))
  65. EGP:egpSize(18,15)
  66. EGP:egpText(19,"GalilAR: " + floor(KeyPrice*1.60) + "$ - " + floor(KeyPrice*1.90) + "$",vec2(30,490))
  67. EGP:egpSize(19,15)
  68. EGP:egpText(26,"XM1014: " + floor(KeyPrice*2) + "$ - " + floor(KeyPrice*2.3) + "$",vec2(225,350))
  69. EGP:egpSize(26,15)
  70.  
  71. EGP:egpText(28,"AUG: " + floor(KeyPrice*3) + "$ - " + floor(KeyPrice*4) + "$",vec2(225,370))
  72. EGP:egpSize(28,15)
  73. EGP:egpText(29,"P90: " + floor(KeyPrice*4) + "$ - " + floor(KeyPrice*5) + "$",vec2(225,390))
  74. EGP:egpSize(29,15)
  75. EGP:egpText(36,"SSG 008: " + floor(KeyPrice*5) + "$ - " + floor(KeyPrice*6) + "$",vec2(225,410))
  76. EGP:egpSize(36,15)
  77.  
  78. EGP:egpText(39,"M4A1-S: " + floor(KeyPrice*8) + "$ - " + floor(KeyPrice*12) + "$",vec2(225,430))
  79. EGP:egpSize(39,15)
  80. EGP:egpText(46,"AWP: " + floor(KeyPrice*12) + "$ - " + floor(KeyPrice*15) + "$",vec2(225,450))
  81. EGP:egpSize(46,15)
  82.  
  83. EGP:egpText(47,"Crimsomweb Karambit: " + floor(KeyPrice*30) + "$ - " + floor(KeyPrice*70) + "$",vec2(225,470))
  84. EGP:egpSize(47,15)
  85.  
  86.  
  87. EGP:egpColor(6,vec(45,62,150))
  88. EGP:egpColor(7,vec(45,62,150))
  89. EGP:egpColor(8,vec(45,62,150))
  90. EGP:egpColor(9,vec(45,62,150))
  91. EGP:egpColor(16,vec(45,62,150))
  92.  
  93. EGP:egpColor(17,vec(103,66,161))
  94. EGP:egpColor(18,vec(103,66,161))
  95. EGP:egpColor(19,vec(103,66,161))
  96. EGP:egpColor(26,vec(103,66,161))
  97.  
  98. EGP:egpColor(28,vec(184,42,126))
  99. EGP:egpColor(29,vec(184,42,126))
  100. EGP:egpColor(36,vec(184,42,126))
  101.  
  102. EGP:egpColor(39,vec(184,41,41))
  103. EGP:egpColor(46,vec(184,41,41))
  104.  
  105. EGP:egpColor(47,vec(180,180,2))
  106.  
  107.  
  108. }
  109.  
  110. #if (X>75&450>X&Y>275&Y<375) {
  111.  
  112. if (Paid==0) {moneyRequest(User,KeyPrice,3)}
  113. if (moneyClk()) {
  114. ABlock=0
  115. BBlock=127
  116. CBlock=254
  117. DBlock=381
  118. soundPlay(1,3,"bot/alright_lets_do_this.wav")
  119. Speed=random(124.76,126.76)
  120. Paid=1
  121. }
  122.  
  123.  
  124. #EGP:egpBox(51,vec2(0,170),vec2(120,170))
  125. #EGP:egpBox(50,vec2(512,170),vec2(120,170))
  126.  
  127.  
  128.  
  129. if (Paid == 1) {
  130. EGP:egpBox(10,vec2(ABlock,BaseHeight),vec2(100,100))
  131. EGP:egpColor(10,vec(180,180,180))
  132. EGP:egpBox(11,vec2(ABlock,BaseHeight),vec2(100,100))
  133. EGP:egpMaterial(11,AMaterial)
  134. EGP:egpBox(12,vec2(ABlock,BaseHeight+60),vec2(100,30))
  135. EGP:egpText(130,AItem,vec2(ABlock-45,BaseHeight+50))
  136. EGP:egpColor(130,vec(255,255,255))
  137. EGP:egpSize(130,15)
  138.  
  139. EGP:egpBox(20,vec2(BBlock,BaseHeight),vec2(100,100))
  140. EGP:egpColor(20,vec(180,180,180))
  141. EGP:egpBox(21,vec2(BBlock,BaseHeight),vec2(100,100))
  142. EGP:egpMaterial(21,BMaterial)
  143. EGP:egpBox(22,vec2(BBlock,BaseHeight+60),vec2(100,30))
  144. EGP:egpText(23,BItem,vec2(BBlock-45,BaseHeight+50))
  145. EGP:egpColor(23,vec(255,255,255))
  146. EGP:egpSize(23,15)
  147.  
  148. EGP:egpBox(30,vec2(CBlock,BaseHeight),vec2(100,100))
  149. EGP:egpColor(30,vec(180,180,180))
  150. EGP:egpBox(31,vec2(CBlock,BaseHeight),vec2(100,100))
  151. EGP:egpMaterial(31,CMaterial)
  152. EGP:egpBox(32,vec2(CBlock,BaseHeight+60),vec2(100,30))
  153. EGP:egpText(33,CItem,vec2(CBlock-45,BaseHeight+50))
  154. EGP:egpColor(33,vec(255,255,255))
  155. EGP:egpSize(33,15)
  156.  
  157. EGP:egpBox(40,vec2(DBlock,BaseHeight),vec2(100,100))
  158. EGP:egpColor(40,vec(180,180,180))
  159. EGP:egpBox(41,vec2(DBlock,BaseHeight),vec2(100,100))
  160. EGP:egpMaterial(41,DMaterial)
  161. EGP:egpBox(42,vec2(DBlock,BaseHeight+60),vec2(100,30))
  162. EGP:egpText(43,DItem,vec2(DBlock-45,BaseHeight+50))
  163. EGP:egpColor(43,vec(255,255,255))
  164. EGP:egpSize(43,15)
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. Speed=Speed*0.98
  176. if (Speed < 10) {Speed=Speed*0.98}
  177. if (Speed < 1) {
  178. Speed=0
  179. #hint(toString(ABlock),5)1
  180. }
  181. O++
  182.  
  183.  
  184. if (ABlock < 0) {
  185. Random = ceil(random(0,10000))
  186. if (Random < 10001) {
  187. EGP:egpColor(12,vec(180,180,2))
  188. AItem = "Crimsonweb Karambit"
  189. AMaterial = Array[1,string]
  190.  
  191. }
  192. if (Random < PriceArray[14,number]) {
  193. EGP:egpColor(12,vec(184,41,41))
  194. AItem = "AWP"
  195. AMaterial = Array[2,string]
  196.  
  197. }
  198. if (Random < PriceArray[13,number]) {
  199. EGP:egpColor(12,vec(184,41,41))
  200. AItem = "M4A1-S"
  201. AMaterial = Array[3,string]
  202.  
  203.  
  204. }
  205. if (Random < PriceArray[12,number]) {
  206. EGP:egpColor(12,vec(184,42,126))
  207. AItem = "SSG 008"
  208. AMaterial = Array[4,string]
  209.  
  210.  
  211. }
  212. if (Random < PriceArray[11,number]) {
  213. EGP:egpColor(12,vec(184,42,126))
  214. AItem = "P90"
  215. AMaterial = Array[5,string]
  216.  
  217.  
  218. }
  219. if (Random < PriceArray[10,number]) {
  220. EGP:egpColor(12,vec(184,42,126))
  221. AItem = "AUG"
  222. AMaterial = Array[6,string]
  223.  
  224.  
  225. }
  226. if (Random < PriceArray[9,number]) {
  227. EGP:egpColor(12,vec(103,66,161))
  228. AItem = "XM1014"
  229. AMaterial = Array[7,string]
  230.  
  231.  
  232. }
  233. if (Random < PriceArray[8,number]) {
  234. EGP:egpColor(12,vec(103,66,161))
  235. AItem = "GalilAR"
  236. AMaterial = Array[8,string]
  237.  
  238. }
  239. if (Random < PriceArray[7,number]) {
  240. EGP:egpColor(12,vec(103,66,161))
  241. AItem = "AK-47"
  242. AMaterial = Array[9,string]
  243.  
  244. }
  245. if (Random < PriceArray[6,number]) {
  246. EGP:egpColor(12,vec(103,66,161))
  247. AItem = "FAMAS"
  248. AMaterial = Array[10,string]
  249.  
  250. }
  251. if (Random < PriceArray[5,number]) {
  252. EGP:egpColor(12,vec(45,62,150))
  253. AItem = "Desert Eagle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement