Advertisement
Guest User

Insomnia Gunshop - Udviklet af Bjarke

a guest
May 20th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.24 KB | None | 0 0
  1. @name Insomnia Gunshop - Version 1.0 - Kodet af Bjarke
  2. @inputs EGP:wirelink User:entity CP:wirelink [KU,R1,R2,R3,R4,R5,R6,R7,R8]:entity
  3. @outputs U1 U2 U3 U4 U5 U6 U7 U8
  4. @persist CurUser:entity [Profit,C1,C2,C3,C4,C5,C6,C7,C8,Pris,Count,Omsat,Tjent,S,SS,OpeningTime,M]:number [Butiknavn, Velkommen, Name,Link,Seneste]:string [FinalVelkommen, FinalName]:array
  5. @trigger
  6. if(duped() | dupefinished()){reset())}
  7. if(first()){
  8.  
  9. ## - - - - INDSTILLINGER - - - - ##
  10. Prfoit: 750
  11. Butiknavn = "Insomnia"
  12.  
  13. ## - - - - FUNC & TIMERS & ANDET - - - - ##
  14.  
  15. # - - - TIMERS & Name
  16. timer("stage1",250)
  17. stoptimer("CurUserDistance")
  18. timer("kon1",1000)
  19. timer("kon2",2000)
  20. timer("Tid",3000)
  21. runOnChat(1)
  22.  
  23. setName("- Insomnia Gunshop -
  24. - Udviklet af Bjarke
  25. - Version 1.0 -")
  26.  
  27.  
  28.  
  29. # - - - FUNC
  30. function number wirelink:egpButton(Idx:number,Ply:entity)
  31. {
  32. TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
  33. BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
  34. Cur = This:egpCursor(Ply) return inrange(Cur, TL, BR) exit()
  35. }
  36.  
  37. function number entity:wepPrice()
  38. {
  39. if(This:isShipment()){
  40. return (This:shipmentPrice()+Profit)
  41. }else{return 0}
  42. }
  43.  
  44. function string entity:wepName()
  45. {
  46. if(This:isShipment()){
  47. return This:shipmentName()
  48. }else{return "Udsolgt"}
  49. }
  50.  
  51.  
  52. function void addCursor()
  53. {
  54. EGP:egpPoly(999,array(vec2(0,0),vec2(0,15),vec2(3,12),vec2(5,15),vec2(7,15),vec2(6,11),vec2(10,10)))
  55. EGP:egpColor(999,0,0,0,200)
  56. EGP:egpParentToCursor(999)
  57. }
  58.  
  59. function void addCursor()
  60. {
  61. CP:egpPoly(999,array(vec2(0,0),vec2(0,15),vec2(3,12),vec2(5,15),vec2(7,15),vec2(6,11),vec2(10,10)))
  62. CP:egpColor(999,0,0,0,200)
  63. CP:egpParentToCursor(999)
  64. }
  65.  
  66. ##TID
  67. function string returnTime()
  68. {
  69. SSec=time("sec")
  70. MMin=time("min")
  71. HHour=time("hour")+1
  72. if(SSec<10){Sec="0"+SSec}
  73. else{Sec=""+SSec}
  74. if(MMin<10){Min="0"+MMin}
  75. else{Min=""+MMin}
  76. if(HHour<10){Hour="0"+HHour} elseif(HHour==24){Hour="00"}
  77. elseif(HHour==25){Hour="01"} elseif(HHour==26){Hour="02"}
  78. elseif(HHour==27){Hour="03"} elseif(HHour==28){Hour="04"}
  79. elseif(HHour==29){Hour="05"} elseif(HHour==30){Hour="06"}
  80. else{Hour=""+HHour}
  81. Tid=Hour+":"+Min
  82. return Tid
  83. }
  84.  
  85. Link = "https://hastebin.com/oparaqucez.scala"
  86.  
  87. ## - - - - HELST IKKE RØRE - - - - ##
  88. printColor(vec(255,255,255),"----------------===============INFO===============----------------")
  89. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," Ved brug af Insomnia acceptere du vores",vec(255,0,0)," T.O.S! ",vec(57,194,86),+Link)
  90. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," Brug ",vec(57,194,86),"!help",vec(200,200,200)," for at se en liste over tilg"+ae()+"ngelige commands!")
  91. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," Denne E2 er udviklet af Bjarke!")
  92. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+"",vec(225,225,225)," ]",vec(200,200,200)," "+Butiknavn+" Gunshop er startet 100% op! Og er nu klar til brug")
  93. printColor(vec(255,255,255),"----------------===============INFO===============----------------")
  94.  
  95.  
  96. }
  97. ## - - - FORSIDE - - - ##
  98.  
  99. if(clk("stage1")){
  100. Y = 25
  101. S = 1
  102.  
  103. EGP:egpClear()
  104.  
  105. ##Baggrund
  106. EGP:egpBox(1,vec2(256,256),vec2(512,512))
  107.  
  108. EGP:egpBox(2,vec2(256,256),vec2(512,512))
  109. EGP:egpMaterial(2,"console/background06")
  110. EGP:egpAlpha(2,250)
  111. EGP:egpColor(2,vec(74,119,143))
  112.  
  113. EGP:egpBox(3,vec2(256,256),vec2(512,512))
  114. EGP:egpMaterial(3,"gui/gradient_down")
  115. EGP:egpColor(3,vec4(99,136,157,100))
  116.  
  117. ##Navn
  118. EGP:egpText(4,""+Butiknavn+"",vec2(256,280))
  119. EGP:egpAlign(4,1,1)
  120. EGP:egpSize(4,60)
  121. EGP:egpFont(4,"Courier New")
  122.  
  123. EGP:egpBox(5,vec2(256,300),vec2(300,1))
  124.  
  125. EGP:egpText(6,"Gunshop",vec2(256,315))
  126. EGP:egpAlign(6,1,1)
  127. EGP:egpSize(6,32)
  128. EGP:egpFont(6,"Courier New")
  129.  
  130. ##Logo
  131.  
  132.  
  133. CurUser = noentity() C1=0 C2=0 C3=0 C4=0 C5=0 C6=0 C7=0 C8=0 Pris = 0
  134. addCursor()
  135. }
  136.  
  137. ## - - - VELKOMMEN - - - ##
  138.  
  139. if(clk("stagesvel")){
  140.  
  141. S = 2
  142.  
  143. EGP:egpClear()
  144.  
  145. ##Baggrund
  146. EGP:egpBox(1,vec2(256,256),vec2(512,512))
  147.  
  148. EGP:egpBox(2,vec2(256,256),vec2(512,512))
  149. EGP:egpMaterial(2,"console/background06")
  150. EGP:egpAlpha(2,250)
  151. EGP:egpColor(2,vec(74,119,143))
  152.  
  153. EGP:egpBox(3,vec2(256,256),vec2(512,512))
  154. EGP:egpMaterial(3,"gui/gradient_down")
  155. EGP:egpColor(3,vec4(99,136,157,100))
  156.  
  157. Velkommen="-"
  158. EGP:egpText(4,Velkommen,vec2(256,238))
  159. EGP:egpAlign(4,1,1)
  160. EGP:egpSize(4,52)
  161. EGP:egpFont(4,"Courier New")
  162.  
  163. Name="-"
  164. EGP:egpText(5,Name,vec2(256,274))
  165. EGP:egpAlign(5,1,1)
  166. EGP:egpSize(5,52)
  167. EGP:egpFont(5,"Courier New")
  168.  
  169. EGP:egpText(6,"",vec2(256,50))
  170. EGP:egpAlign(6,1,1)
  171. EGP:egpSize(6,22)
  172. EGP:egpFont(6,"Courier New")
  173.  
  174. EGP:egpText(7,"",vec2(256,75))
  175. EGP:egpAlign(7,1,1)
  176. EGP:egpSize(7,22)
  177. EGP:egpFont(7,"Courier New")
  178.  
  179. EGP:egpText(8,"",vec2(256,100))
  180. EGP:egpAlign(8,1,1)
  181. EGP:egpSize(8,22)
  182. EGP:egpFont(8,"Courier New")
  183.  
  184. timer("Velkommen",100)
  185. }
  186.  
  187. ## - - - BUTIK - - - "
  188.  
  189. if(clk("stageshop")){
  190.  
  191. S = 3
  192. EGP:egpClear()
  193.  
  194. ##Baggrund
  195. EGP:egpBox(1,vec2(256,256),vec2(512,512))
  196.  
  197. EGP:egpBox(2,vec2(256,256),vec2(512,512))
  198. EGP:egpMaterial(2,"console/background06")
  199. EGP:egpAlpha(2,250)
  200. EGP:egpColor(2,vec(74,119,143))
  201.  
  202. EGP:egpBox(3,vec2(256,256),vec2(512,512))
  203. EGP:egpMaterial(3,"gui/gradient_down")
  204. EGP:egpColor(3,vec4(99,136,157,100))
  205.  
  206. EGP:egpBoxOutline(4,vec2(256,256),vec2(325,514))
  207. EGP:egpColor(4,vec4(0,0,0,125))
  208. EGP:egpBox(5,vec2(256,256),vec2(323,514))
  209. EGP:egpColor(5,vec4(45,45,45,125))
  210.  
  211. ##Logud knap
  212. EGP:egpBox(6,vec2(111,17),vec2(34,34))
  213. EGP:egpColor(6,vec4(45,45,45,125))
  214.  
  215. EGP:egpBox(7,vec2(111,17),vec2(1,34))
  216. EGP:egpAngle(7,45)
  217.  
  218. EGP:egpBox(8,vec2(111,17),vec2(1,34))
  219. EGP:egpAngle(8,-45)
  220.  
  221. ##Navn
  222. EGP:egpText(9,"Insomnia",vec2(256,65))
  223. EGP:egpAlign(9,1,1)
  224. EGP:egpSize(9,50)
  225. EGP:egpFont(9,"Courier New")
  226.  
  227. EGP:egpBox(10,vec2(256,85),vec2(250,1))
  228.  
  229. EGP:egpText(11,"Gunshop",vec2(256,100))
  230. EGP:egpAlign(11,1,1)
  231. EGP:egpSize(11,32)
  232. EGP:egpFont(11,"Courier New")
  233.  
  234. ##Vaaben boxe
  235. for(I=1, 8){EGP:egpBox(13+I,vec2(256,138+(I*38)),vec2(310,35)) EGP:egpColor(13+I,vec4(28,28,28,125))}
  236.  
  237. ##Tekst
  238. EGP:egpText(22,"Navn:",vec2(130,148))
  239. EGP:egpAlign(22,1,1)
  240. EGP:egpSize(22,16)
  241. EGP:egpFont(22,"Courier New")
  242.  
  243. EGP:egpText(23,"Pris:",vec2(384,148))
  244. EGP:egpAlign(23,1,1)
  245. EGP:egpSize(23,16)
  246. EGP:egpFont(23,"Courier New")
  247.  
  248. ##Betalings knap
  249. EGP:egpBox(24,vec2(256,500),vec2(325,30))
  250. EGP:egpColor(24,vec4(102,126,140,50))
  251.  
  252. EGP:egpBox(25,vec2(256,486),vec2(325,1))
  253. EGP:egpColor(25,vec(200,200,200))
  254.  
  255. EGP:egpText(26,"INGEN VARER VALGT!",vec2(256,500))
  256. EGP:egpAlign(26,1,1)
  257. EGP:egpSize(26,16)
  258. EGP:egpFont(26,"Courier New")
  259.  
  260. EGP:egpText(27,"~ ~ ~ ~ ~ ~ ~ BETALING ~ ~ ~ ~ ~ ~ ~",vec2(256,474))
  261. EGP:egpAlign(27,1,1)
  262. EGP:egpSize(27,14)
  263. EGP:egpFont(27,"Courier New")
  264.  
  265.  
  266. timer("stagen",500)
  267. timer("stagep",1000)
  268. }
  269.  
  270. ## - - - SHOP TEXT - - -##
  271.  
  272. if(clk("stagen")){
  273.  
  274. S = 3
  275.  
  276. EGP:egpText(29,""+R1:wepName(),vec2(110,176))
  277. EGP:egpText(30,""+R2:wepName(),vec2(110,214))
  278. EGP:egpText(31,""+R3:wepName(),vec2(110,252))
  279. EGP:egpText(32,""+R4:wepName(),vec2(110,290))
  280. EGP:egpText(33,""+R5:wepName(),vec2(110,328))
  281. EGP:egpText(34,""+R6:wepName(),vec2(110,366))
  282. EGP:egpText(35,""+R7:wepName(),vec2(110,404))
  283. EGP:egpText(36,""+R8:wepName(),vec2(110,442))
  284. for(I=1,8){EGP:egpAlign(28+I,0,1) EGP:egpFont(28+I,"Courier New") EGP:egpSize(28+I,20)}
  285. }
  286. if(clk("stagep")){
  287.  
  288. S = 3
  289.  
  290. EGP:egpText(38,""+R1:wepPrice()+",-",vec2(404,166))
  291. EGP:egpText(39,""+R2:wepPrice()+",-",vec2(404,204))
  292. EGP:egpText(40,""+R3:wepPrice()+",-",vec2(404,242))
  293. EGP:egpText(41,""+R4:wepPrice()+",-",vec2(404,280))
  294. EGP:egpText(42,""+R5:wepPrice()+",-",vec2(404,318))
  295. EGP:egpText(43,""+R6:wepPrice()+",-",vec2(404,356))
  296. EGP:egpText(44,""+R7:wepPrice()+",-",vec2(404,394))
  297. EGP:egpText(45,""+R8:wepPrice()+",-",vec2(404,432))
  298. for(I=1,8){EGP:egpAlign(37+I,2) EGP:egpFont(37+I,"Courier New") EGP:egpSize(37+I,20)}
  299. addCursor()
  300. }
  301. # - - - KONTROL PANEL - - - #
  302.  
  303. if(clk("kon1")){
  304.  
  305. SS = 1
  306.  
  307. Y = -12
  308.  
  309. CP:egpClear()
  310.  
  311. ##Baggrund
  312. CP:egpBox(1,vec2(256,256),vec2(512,512))
  313.  
  314. CP:egpBox(2,vec2(256,256),vec2(512,512))
  315. CP:egpMaterial(2,"console/background06")
  316. CP:egpAlpha(2,250)
  317. CP:egpColor(2,vec(74,119,143))
  318.  
  319. CP:egpBox(3,vec2(256,256),vec2(512,512))
  320. CP:egpMaterial(3,"gui/gradient_down")
  321. CP:egpColor(3,vec4(99,136,157,100))
  322.  
  323. ##Navn
  324. CP:egpText(4,"- Insomnia -",vec2(282,40))
  325. CP:egpAlign(4,1,1)
  326. CP:egpSize(4,50)
  327. CP:egpFont(4,"Courier New")
  328.  
  329. ##MENU LINJE
  330. CP:egpBox(7,vec2(26,256),vec2(50,512))
  331. CP:egpColor(7,vec(67,91,104))
  332.  
  333. CP:egpBox(8,vec2(52,256),vec2(1,512))
  334. CP:egpColor(8,vec(200,200,200))
  335.  
  336. ##TEGN
  337. CP:egpText(9,"I",vec2(25,25))
  338. CP:egpAlign(9,1,1)
  339. CP:egpSize(9,25)
  340. CP:egpFont(9,"Courier New")
  341.  
  342.  
  343. ##FOR LOGO
  344. CP:egpBox(10,vec2(282,75),vec2(462,1))
  345. CP:egpColor(10,vec(200,200,200))
  346.  
  347. ##STATISTIKKER
  348. CP:egpBox(14,vec2(282,184-Y),vec2(300,50))
  349. CP:egpColor(14,vec4(201,158,76,150))
  350.  
  351. CP:egpText(15,"STATISTIKKER",vec2(282,186-Y))
  352. CP:egpAlign(15,1,1)
  353. CP:egpSize(15,32)
  354. CP:egpFont(15,"Courier New")
  355. }
  356.  
  357. if(clk("kon2")){
  358.  
  359. SS = 1
  360.  
  361. Y = -12
  362.  
  363.  
  364. ##VAABEN TJEK
  365. CP:egpBox(16,vec2(282,242-Y),vec2(300,50))
  366. CP:egpColor(16,vec4(86,116,93,150))
  367.  
  368. CP:egpText(17,"TJEK V"+aaL()+"BEN",vec2(282,242-Y))
  369. CP:egpAlign(17,1,1)
  370. CP:egpSize(17,32)
  371. CP:egpFont(17,"Courier New")
  372.  
  373. ##INDSTILLINGER
  374. CP:egpBox(18,vec2(282,300-Y),vec2(300,50))
  375. CP:egpColor(18,vec4(133,62,62,150))
  376.  
  377. CP:egpText(19,"INDSTILLINGER",vec2(282,300-Y))
  378. CP:egpAlign(19,1,1)
  379. CP:egpSize(19,32)
  380. CP:egpFont(19,"Courier New")
  381.  
  382. ##KLOKKE
  383. CP:egpBox(20,vec2(282,360-Y),vec2(300,50))
  384. CP:egpColor(20,vec4(0,127,127,150))
  385.  
  386. CP:egpText(21,"",vec2(282,360-Y))
  387. CP:egpAlign(21,1,1)
  388. CP:egpSize(21,30)
  389. CP:egpFont(21,"Courier New")
  390.  
  391. ##UNDERSTREG
  392. CP:egpBox(22,vec2(282,221),vec2(300,1))
  393. CP:egpBox(23,vec2(282,279),vec2(300,1))
  394. CP:egpBox(24,vec2(282,337),vec2(300,1))
  395. CP:egpBox(25,vec2(282,397),vec2(300,1))
  396. addCursor()
  397. }
  398.  
  399. if(clk("kstat")){
  400.  
  401. SS = 2
  402. CP:egpClear()
  403.  
  404. ##Baggrund
  405. CP:egpBox(1,vec2(256,256),vec2(512,512))
  406.  
  407. CP:egpBox(2,vec2(256,256),vec2(512,512))
  408. CP:egpMaterial(2,"console/background06")
  409. CP:egpAlpha(2,250)
  410. CP:egpColor(2,vec(74,119,143))
  411.  
  412. CP:egpBox(3,vec2(256,256),vec2(512,512))
  413. CP:egpMaterial(3,"gui/gradient_down")
  414. CP:egpColor(3,vec4(99,136,157,100))
  415.  
  416. ##Navn
  417. CP:egpText(4,"- Insomnia -",vec2(282,40))
  418. CP:egpAlign(4,1,1)
  419. CP:egpSize(4,50)
  420. CP:egpFont(4,"Courier New")
  421.  
  422. ##MENU LINJE
  423. CP:egpBox(5,vec2(26,256),vec2(50,512))
  424. CP:egpColor(5,vec(67,91,104))
  425.  
  426. CP:egpBox(6,vec2(52,256),vec2(1,512))
  427. CP:egpColor(6,vec(200,200,200))
  428.  
  429. ##TEGN
  430. CP:egpText(7,"M",vec2(25,25))
  431. CP:egpAlign(7,1,1)
  432. CP:egpSize(7,25)
  433. CP:egpFont(7,"Courier New")
  434.  
  435. ##FOR LOGO
  436. CP:egpBox(8,vec2(282,75),vec2(462,1))
  437. CP:egpColor(8,vec(200,200,200))
  438.  
  439. CP:egpBox(9,vec2(282,290),vec2(300,350))
  440. CP:egpColor(9,vec4(45,45,45,125))
  441.  
  442. ##MENU
  443. CP:egpBox(10,vec2(282,160),vec2(300,1))
  444. CP:egpColor(10,vec(74,119,143))
  445.  
  446. CP:egpText(11,"- STATISTIKKER -",vec2(282,140))
  447. CP:egpAlign(11,1,1)
  448. CP:egpSize(11,22)
  449. CP:egpFont(11,"Courier New")
  450.  
  451. ##LOGUD
  452. CP:egpBox(12,vec2(25,256),vec2(30,30))
  453. CP:egpMaterial(12,"gui/close_32")
  454.  
  455. ##STATS
  456. CP:egpText(13,"- PROFIT: "+Profit+",-",vec2(154,206))
  457. CP:egpAlign(13,0,1)
  458. CP:egpSize(13,18)
  459. CP:egpFont(13,"Courier New")
  460.  
  461. CP:egpText(14,"- OMS"+aeL()+"TNING: "+Omsat+",-",vec2(154,226))
  462. CP:egpAlign(14,0,1)
  463. CP:egpSize(14,18)
  464. CP:egpFont(14,"Courier New")
  465.  
  466. CP:egpText(15,"- INDTJENT: "+Tjent+",-",vec2(154,246))
  467. CP:egpAlign(15,0,1)
  468. CP:egpSize(15,18)
  469. CP:egpFont(15,"Courier New")
  470.  
  471. CP:egpText(16,"- V"+aaL()+"BEN SOLGT: "+Count+" STK.",vec2(154,266))
  472. CP:egpAlign(16,0,1)
  473. CP:egpSize(16,18)
  474. CP:egpFont(16,"Courier New")
  475.  
  476. CP:egpText(17,"- SENETE KUNDE: INGEN",vec2(154,286))
  477. CP:egpAlign(17,0,1)
  478. CP:egpSize(17,18)
  479. CP:egpFont(17,"Courier New")
  480.  
  481. if(Seneste != ""){
  482. CP:egpSetText(17,"- SENETE KUNDE: "+Seneste)
  483. }else{
  484. CP:egpSetText(17,"- SENETE KUNDE: INGEN")
  485. }
  486.  
  487. CP:egpText(18,"- "+aaL()+"BNINGSTID: "+OpeningTime+" MIN",vec2(154,306))
  488. CP:egpAlign(18,0,1)
  489. CP:egpSize(18,18)
  490. CP:egpFont(18,"Courier New")
  491. addCursor()
  492. }
  493. if(clk("tw")){
  494.  
  495. SS = 3
  496.  
  497. CP:egpClear()
  498.  
  499. ##Baggrund
  500. CP:egpBox(1,vec2(256,256),vec2(512,512))
  501.  
  502. CP:egpBox(2,vec2(256,256),vec2(512,512))
  503. CP:egpMaterial(2,"console/background06")
  504. CP:egpAlpha(2,250)
  505. CP:egpColor(2,vec(74,119,143))
  506.  
  507. CP:egpBox(3,vec2(256,256),vec2(512,512))
  508. CP:egpMaterial(3,"gui/gradient_down")
  509. CP:egpColor(3,vec4(99,136,157,100))
  510.  
  511. ##Navn
  512. CP:egpText(4,"- Insomnia -",vec2(282,40))
  513. CP:egpAlign(4,1,1)
  514. CP:egpSize(4,50)
  515. CP:egpFont(4,"Courier New")
  516.  
  517. ##MENU LINJE
  518. CP:egpBox(5,vec2(26,256),vec2(50,512))
  519. CP:egpColor(5,vec(67,91,104))
  520.  
  521. CP:egpBox(6,vec2(52,256),vec2(1,512))
  522. CP:egpColor(6,vec(200,200,200))
  523.  
  524. ##TEGN
  525. CP:egpText(7,"I",vec2(25,25))
  526. CP:egpAlign(7,1,1)
  527. CP:egpSize(7,25)
  528. CP:egpFont(7,"Courier New")
  529.  
  530. ##FOR LOGO
  531. CP:egpBox(8,vec2(282,75),vec2(462,1))
  532. CP:egpColor(8,vec(200,200,200))
  533.  
  534. CP:egpBox(9,vec2(282,290),vec2(300,350))
  535. CP:egpColor(9,vec4(45,45,45,125))
  536.  
  537. ##MENU
  538. CP:egpBox(10,vec2(282,160),vec2(300,1))
  539. CP:egpColor(10,vec(74,119,143))
  540.  
  541. CP:egpText(11,"- TJEK V"+aaL()+"BEN -",vec2(282,140))
  542. CP:egpAlign(11,1,1)
  543. CP:egpSize(11,22)
  544. CP:egpFont(11,"Courier New")
  545.  
  546. ##LOGUD
  547. CP:egpBox(12,vec2(25,256),vec2(30,30))
  548. CP:egpMaterial(12,"gui/close_32")
  549.  
  550. CP:egpText(23,"! I = Indtjeneste A = Antal !",vec2(282,177))
  551. CP:egpAlign(23,1,1)
  552. CP:egpSize(23,16)
  553. CP:egpFont(23,"Courier New")
  554.  
  555. ##TEXT'
  556. CP:egpText(25,"1. "+R1:wepName()+" | I = "+R1:wepPrice()+",- | A = "+R1:shipmentAmount(),vec2(282,211))
  557. CP:egpText(26,"2. "+R2:wepName()+" | I = "+R2:wepPrice()+",- | A = "+R2:shipmentAmount(),vec2(282,245))
  558. CP:egpText(27,"3. "+R3:wepName()+" | I = "+R3:wepPrice()+",- | A = "+R3:shipmentAmount(),vec2(282,279))
  559. CP:egpText(28,"4. "+R4:wepName()+" | I = "+R4:wepPrice()+",- | A = "+R4:shipmentAmount(),vec2(282,312))
  560. CP:egpText(29,"5. "+R5:wepName()+" | I = "+R5:wepPrice()+",- | A = "+R5:shipmentAmount(),vec2(282,347))
  561. CP:egpText(30,"6. "+R6:wepName()+" | I = "+R6:wepPrice()+",- | A = "+R6:shipmentAmount(),vec2(282,379))
  562. CP:egpText(31,"7. "+R7:wepName()+" | I = "+R7:wepPrice()+",- | A = "+R7:shipmentAmount(),vec2(282,414))
  563. CP:egpText(32,"8. "+R8:wepName()+" | I = "+R8:wepPrice()+",- | A = "+R8:shipmentAmount(),vec2(282,447))
  564. for(I=1,8){CP:egpAlign(24+I,1,1) CP:egpFont(24+I,"Courier New") CP:egpSize(24+I,16)}
  565. addCursor()
  566. }
  567.  
  568. if(clk("ins")){
  569.  
  570. SS = 4
  571.  
  572. CP:egpClear()
  573.  
  574. ##Baggrund
  575. CP:egpBox(1,vec2(256,256),vec2(512,512))
  576.  
  577. CP:egpBox(2,vec2(256,256),vec2(512,512))
  578. CP:egpMaterial(2,"console/background06")
  579. CP:egpAlpha(2,250)
  580. CP:egpColor(2,vec(74,119,143))
  581.  
  582. CP:egpBox(3,vec2(256,256),vec2(512,512))
  583. CP:egpMaterial(3,"gui/gradient_down")
  584. CP:egpColor(3,vec4(99,136,157,100))
  585.  
  586. ##Navn
  587. CP:egpText(4,"- Insomnia -",vec2(282,40))
  588. CP:egpAlign(4,1,1)
  589. CP:egpSize(4,50)
  590. CP:egpFont(4,"Courier New")
  591.  
  592. ##MENU LINJE
  593. CP:egpBox(5,vec2(26,256),vec2(50,512))
  594. CP:egpColor(5,vec(67,91,104))
  595.  
  596. CP:egpBox(6,vec2(52,256),vec2(1,512))
  597. CP:egpColor(6,vec(200,200,200))
  598.  
  599. ##TEGN
  600. CP:egpText(7,"I",vec2(25,25))
  601. CP:egpAlign(7,1,1)
  602. CP:egpSize(7,25)
  603. CP:egpFont(7,"Courier New")
  604.  
  605. ##FOR LOGO
  606. CP:egpBox(8,vec2(282,75),vec2(462,1))
  607. CP:egpColor(8,vec(200,200,200))
  608.  
  609. CP:egpBox(9,vec2(282,290),vec2(300,350))
  610. CP:egpColor(9,vec4(45,45,45,125))
  611.  
  612. ##MENU
  613. CP:egpBox(10,vec2(282,160),vec2(300,1))
  614. CP:egpColor(10,vec(74,119,143))
  615.  
  616. CP:egpText(11,"- INDSTILLINGER -",vec2(282,140))
  617. CP:egpAlign(11,1,1)
  618. CP:egpSize(11,22)
  619. CP:egpFont(11,"Courier New")
  620.  
  621. ##LOGUD
  622. CP:egpBox(12,vec2(25,256),vec2(30,30))
  623. CP:egpMaterial(12,"gui/close_32")
  624.  
  625. CP:egpBox(13,vec2(282,256),vec2(220,40))
  626. CP:egpColor(13,vec4(83, 92, 104,150))
  627.  
  628. # -
  629. CP:egpBox(14,vec2(152,256),vec2(40,40))
  630. CP:egpColor(14,vec4(96, 163, 188,75))
  631.  
  632. CP:egpText(15,"-",vec2(152,256))
  633. CP:egpAlign(15,1,1)
  634. CP:egpFont(15,"Courier New")
  635. CP:egpSize(15,24)
  636.  
  637. # +
  638. CP:egpBox(16,vec2(412,256),vec2(40,40))
  639. CP:egpColor(16,vec4(96, 163, 188,75))
  640.  
  641. CP:egpText(17,"+",vec2(412,256))
  642. CP:egpAlign(17,1,1)
  643. CP:egpFont(17,"Courier New")
  644. CP:egpSize(17,24)
  645.  
  646. CP:egpText(18,""+Profit+",-",vec2(282,256))
  647. CP:egpAlign(18,1,1)
  648. CP:egpFont(18,"Courier New")
  649. CP:egpSize(18,18)
  650.  
  651. CP:egpText(19,"PROFIT:",vec2(282,226))
  652. CP:egpAlign(19,1,1)
  653. CP:egpFont(19,"Courier New")
  654. CP:egpSize(19,14)
  655.  
  656. # - - - - - - SKIFTE - - - - - - #
  657. CP:egpBox(20,vec2(282,366),vec2(220,40))
  658. CP:egpColor(20,vec4(83, 92, 104,150))
  659.  
  660. # <
  661. CP:egpBox(21,vec2(152,366),vec2(40,40))
  662. CP:egpColor(21,vec4(96, 163, 188,75))
  663.  
  664. CP:egpText(22,"<",vec2(152,366))
  665. CP:egpAlign(22,1,1)
  666. CP:egpFont(22,"Courier New")
  667. CP:egpSize(22,24)
  668. # >
  669. CP:egpBox(23,vec2(412,366),vec2(40,40))
  670. CP:egpColor(23,vec4(96, 163, 188,75))
  671.  
  672. CP:egpText(24,">",vec2(412,366))
  673. CP:egpAlign(24,1,1)
  674. CP:egpFont(24,"Courier New")
  675. CP:egpSize(24,24)
  676.  
  677. CP:egpText(25,""+aaL()+"ben",vec2(282,366))
  678. CP:egpAlign(25,1,1)
  679. CP:egpFont(25,"Courier New")
  680. CP:egpSize(25,18)
  681.  
  682. CP:egpText(26,"STATUS:",vec2(282,336))
  683. CP:egpAlign(26,1,1)
  684. CP:egpFont(26,"Courier New")
  685. CP:egpSize(26,14)
  686. addCursor()
  687. }
  688.  
  689.  
  690. ## - - - Login - - - ##
  691. if(S==1)
  692. {
  693. if(ops()<100)
  694. {
  695. if(~User & User & Klar == 0)
  696. {
  697. Klar = 1
  698. timer("klar1",2000)
  699.  
  700. CurUser = User
  701. if(EGP:egpButton(1, User)){timer("stagesvel", 400) Velkommen=" " FinalVelkommen="Velkommen":explode("") CurUser=User timer("CurUserDistance",2500)}
  702. }
  703. }
  704. }
  705.  
  706.  
  707. if(clk("klar1"))
  708. {
  709. Klar = 0
  710. }
  711.  
  712. ## - - - Logud - - - #
  713. if(S==3 & CurUser==User)
  714. {
  715. if(ops()<100){
  716. if(~User & User){
  717. if(EGP:egpButton(6, User)){timer("stage1", 400)}
  718. }
  719. }
  720. }
  721.  
  722. ################################# - - - - - - - GUNSHOP - - - - - - - #################################
  723.  
  724. ## - - - WEAPON SYSTEM - - - ##
  725. if(ops()<100){
  726. if(S == 3 & CurUser == User)
  727. {
  728. if(EGP:egpButton(24,User)&Pris>0){moneyRequest(CurUser,Pris,"Insomnia Gunshop")}
  729. elseif(EGP:egpButton(14,User)&R1:isShipment()){
  730. if(C1==0){
  731. Pris = Pris+R1:wepPrice() C1 = 1 EGP:egpBox(46,vec2(102,176),vec2(1,35)) EGP:egpBox(47,vec2(411,176),vec2(1,35))
  732. }else{Pris = Pris-R1:wepPrice() C1 = 0 EGP:egpRemove(46) EGP:egpRemove(47)}
  733. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  734. }elseif(EGP:egpButton(15,User)&R2:isShipment()){
  735. if(C2==0){
  736. Pris = Pris+R2:wepPrice() C2 = 1 EGP:egpBox(48,vec2(102,214),vec2(1,35)) EGP:egpBox(49,vec2(411,214),vec2(1,35))
  737. }else{Pris = Pris-R2:wepPrice() C2 = 0 EGP:egpRemove(48) EGP:egpRemove(49)}
  738. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  739. }elseif(EGP:egpButton(16,User)&R3:isShipment()){
  740. if(C3==0){
  741. Pris = Pris+R3:wepPrice() C3 = 1 EGP:egpBox(50,vec2(102,252),vec2(1,35)) EGP:egpBox(51,vec2(411,252),vec2(1,35))
  742. }else{Pris = Pris-R3:wepPrice() C3 = 0 EGP:egpRemove(50) EGP:egpRemove(51)}
  743. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  744. }elseif(EGP:egpButton(17,User)&R4:isShipment()){
  745. if(C4==0){
  746. Pris = Pris+R4:wepPrice() C4 = 1 EGP:egpBox(52,vec2(102,290),vec2(1,35)) EGP:egpBox(53,vec2(411,290),vec2(1,35))
  747. }else{Pris = Pris-R4:wepPrice() C4 = 0 EGP:egpRemove(52) EGP:egpRemove(53)}
  748. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  749. }elseif(EGP:egpButton(18,User)&R5:isShipment()){
  750. if(C5==0){
  751. Pris = Pris+R5:wepPrice() C5 = 1 EGP:egpBox(54,vec2(102,328),vec2(1,35)) EGP:egpBox(55,vec2(411,328),vec2(1,35))
  752. }else{Pris = Pris-R5:wepPrice() C5 = 0 EGP:egpRemove(54) EGP:egpRemove(55)}
  753. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  754. }elseif(EGP:egpButton(19,User)&R6:isShipment()){
  755. if(C6==0){
  756. Pris = Pris+R6:wepPrice() C6 = 1 EGP:egpBox(56,vec2(102,366),vec2(1,35)) EGP:egpBox(57,vec2(411,366),vec2(1,35))
  757. }else{Pris = Pris-R6:wepPrice() C6 = 0 EGP:egpRemove(56) EGP:egpRemove(57)}
  758. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  759. }elseif(EGP:egpButton(20,User)&R7:isShipment()){
  760. if(C7==0){
  761. Pris = Pris+R7:wepPrice() C7 = 1 EGP:egpBox(58,vec2(102,404),vec2(1,35)) EGP:egpBox(59,vec2(411,404),vec2(1,35))
  762. }else{Pris = Pris-R7:wepPrice() C7 = 0 EGP:egpRemove(58) EGP:egpRemove(59)}
  763. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  764. }elseif(EGP:egpButton(21,User)&R8:isShipment()){
  765. if(C8==0){
  766. Pris = Pris+R8:wepPrice() C8 = 1 EGP:egpBox(60,vec2(102,442),vec2(1,35)) EGP:egpBox(61,vec2(411,442),vec2(1,35))
  767. }else{Pris = Pris-R8:wepPrice() C8 = 0 EGP:egpRemove(60) EGP:egpRemove(61)}
  768. EGP:egpSetText(26,"BESTIL: "+Pris+",-")
  769. }
  770. }
  771. }
  772.  
  773. ## - - - MONEYCLK - - - ##
  774. if(moneyClk("Insomnia Gunshop"))
  775. {
  776. timer("1pres",1250)
  777. Seneste = moneyClkPlayer():name()
  778. }
  779.  
  780. if(moneyNoClk())
  781. {
  782. timer("stage1",300)
  783. }
  784.  
  785. ##System P
  786. if(clk("1pres"))
  787. {
  788. # - - - Logud
  789. timer("stage1",300)
  790. timer("Y",1000)
  791. timer("cpup",3000)
  792.  
  793. # - - - KAERE KUNDE
  794. concmd("say /pm "+CurUser:steamID()+" ["+Butiknavn+" | "+returnTime()+"] Tak for din bestilling! Du vil modtage din bestilling inden l"+ae()+"nge Mvh "+Butiknavn+"")
  795. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+" | "+returnTime(),vec(225,225,225)," ] ",vec(200,200,200),moneyClkPlayer():name()+" har bestilt v"+aa()+"ben for: ",vec(45,182,75),+Pris,vec(200,200,200),",-")
  796. ## - - - PRESS PRESS - - - ##
  797. if(C1==1){U1 = 1 Count++ Tjent+=Profit Omsat+=R1:wepPrice()}
  798. if(C2==1){U2 = 1 Count++ Tjent+=Profit Omsat+=R2:wepPrice()}
  799. if(C3==1){U3 = 1 Count++ Tjent+=Profit Omsat+=R3:wepPrice()}
  800. if(C4==1){U4 = 1 Count++ Tjent+=Profit Omsat+=R4:wepPrice()}
  801. if(C5==1){U5 = 1 Count++ Tjent+=Profit Omsat+=R5:wepPrice()}
  802. if(C6==1){U6 = 1 Count++ Tjent+=Profit Omsat+=R6:wepPrice()}
  803. if(C7==1){U7 = 1 Count++ Tjent+=Profit Omsat+=R7:wepPrice()}
  804. if(C8==1){U8 = 1 Count++ Tjent+=Profit Omsat+=R8:wepPrice()}
  805. CurUser = noentity()
  806. if(SS == 2){timer("kstat",1250)}
  807. }
  808.  
  809. if(clk("Y")){U1 = 0 U2 = 0 U3 = 0 U4 = 0 U5 = 0 U6 = 0 U7 = 0 U8 = 0}
  810.  
  811. ## - - - Chat Commands P FL B - - - #
  812.  
  813. ## - - - Profit
  814. if(chatClk(owner()))
  815. {
  816. Said = owner():lastSaid():lower():explode(" ")
  817. Cmd = lastSaid():explode(" "):string(1)
  818. switch(Cmd)
  819. {
  820. case"!profit",
  821. if(lastSpoke() == owner()){
  822. Profit = Said[2, string]:toNumber()
  823. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+" | "+returnTime(),vec(225,225,225)," ]",vec(200,200,200)," Profit sat til: ",vec(45,182,75),+Said[2,string]:toNumber(),vec(200,200,200),",-")
  824. hideChat(1)
  825.  
  826. }
  827. }
  828. }
  829.  
  830. # - - - Force logout
  831. if(chatClk(owner()))
  832. {
  833. Said = owner():lastSaid():lower():explode(" ")
  834. Cmd = lastSaid():explode(" "):string(1)
  835. switch(Cmd)
  836. {
  837. case "!fl",
  838. printColor(vec(225,225,225),"[ ",vec(123,172,75),""+Butiknavn+" | "+returnTime(),vec(225,225,225)," ]",vec(200,200,200)," Logger ud af "+Butiknavn+"...")
  839. timer("stage1",500)
  840. hideChat(1)
  841. ,break
  842. }
  843. }
  844.  
  845. # - - - HELP
  846. if(chatClk(owner()))
  847. {
  848. Said = owner():lastSaid():lower():explode(" ")
  849. Cmd = lastSaid():explode(" "):string(1)
  850. switch(Cmd)
  851. {
  852. case "!help",
  853. printColor(vec(255,255,255),"---------------==============COMMANDS==============---------------")
  854. printColor(vec(225,225,225),"[ ",vec(123,172,75),"Profit",vec(225,225,225)," ]",vec(200,200,200)," For at indstille profit brug: ",vec(57,194,86),"!profit <penge>")
  855. printColor(vec(225,225,225),"[ ",vec(123,172,75),"Force logout",vec(225,225,225)," ]",vec(175,175,175)," For at force logout brug: ",vec(57,194,86),"!fl")
  856. printColor(vec(225,225,225),"[ ",vec(123,172,75),"Blacklist",vec(225,225,225)," ]",vec(200,200,200)," For at blacklist en person brug: ",vec(57,194,86),"!bl <Navn>")
  857. printColor(vec(225,225,225),"[ ",vec(123,172,75),"Unblacklist",vec(225,225,225)," ]",vec(175,175,175)," For at unblacklist en person brug: ",vec(57,194,86),"!removebl <Navn>")
  858. printColor(vec(255,255,255),"---------------==============COMMANDS==============---------------")
  859. hideChat(1)
  860. ,break
  861. }
  862. }
  863.  
  864.  
  865. ## - - - AFSTAND - - - ##
  866. if(ops()<150){
  867. if(clk("CurUserDistance")){
  868. if(S>1){
  869. if(CurUser:pos():distance(EGP:entity():pos())>125){timer("stage1",250) CurUser = noentity()}
  870. }
  871. timer("CurUserDistance",3500)
  872. }
  873. }
  874.  
  875. ## - - - VELKOMMEN DEJLIGE BRUGER - - - ##
  876. if(clk("Velkommen")&S==2)
  877. {
  878. if(Velkommen:length()<=FinalVelkommen:count())
  879. {
  880. Velkommen=Velkommen+FinalVelkommen[Velkommen:length(),string]
  881. EGP:egpSetText(4,Velkommen:sub(2))
  882. timer("Velkommen",150)
  883. }else{timer("Name",150) Name=" " FinalName=CurUser:name():explode("") S=2}
  884. }
  885.  
  886. if(clk("Name")&S==2)
  887. {
  888. if(Name:length()<=FinalName:count())
  889. {
  890. Name=Name+FinalName[Name:length(),string]
  891. EGP:egpSetText(5,Name:sub(2))
  892. timer("Name",150)
  893. }else{timer("stageshop",250)}
  894. }
  895.  
  896.  
  897. ## - - - KONTROL FUNC - - - ##
  898. if(ops()<200){
  899. if(~KU & KU:keyUse() & KU == owner()){
  900. if(SS == 1){
  901. if(CP:egpButton(14,KU)){timer("kstat",500) timer("updateTime",60000)} else{stoptimer("updateTime")}
  902. if(CP:egpButton(16,KU)){timer("tw",500)}
  903. if(CP:egpButton(18,KU)){timer("ins",500)}
  904. }
  905. if(SS == 2)
  906. {
  907. if(CP:egpButton(12,KU)){timer("kon1",500) timer("kon2",1000) timer("Tid",1500)}
  908. }
  909.  
  910. if(SS == 3)
  911. {
  912. if(CP:egpButton(12,KU)){timer("kon1",500) timer("kon2",1000) timer("Tid",1500)}
  913. }
  914.  
  915. if(SS == 4)
  916. {
  917. if(CP:egpButton(12,KU)){timer("kon1",500) timer("kon2",1000) timer("Tid",1500)}
  918. }
  919. }
  920.  
  921. if(~KU & KU & KU == owner()& SS == 4 &ops()<150)
  922. {
  923. if(CP:egpButton(14,KU)){Profit-=250 CP:egpSetText(18,""+Profit+",-")}
  924. if(CP:egpButton(16,KU)){Profit+=250 CP:egpSetText(18,""+Profit+",-")}
  925.  
  926.  
  927. if(CP:egpButton(23,KU)){
  928. if(M==0){
  929. M=1
  930. CP:egpSetText(25,"Opfyldning")
  931. timer("Opfyldning",1000)
  932. }
  933. elseif(M==1){
  934. M=2
  935. CP:egpSetText(25,"Lukket")
  936. timer("Lukket",1000)
  937. }
  938. elseif(M==2){
  939. M=0
  940. CP:egpSetText(25,aaL()+"ben")
  941. timer("stage1",1000)
  942. }
  943.  
  944. }
  945. if(CP:egpButton(21,KU)){
  946. if(M==2){
  947. M=0
  948. CP:egpSetText(25,aaL()+"ben")
  949. timer("stage1",1000)
  950. }
  951. elseif(M==1){
  952. M=2
  953. CP:egpSetText(25,"Opfyldning")
  954. timer("Opfyldning",1000)
  955. }
  956. elseif(M==0){
  957. M=1
  958. CP:egpSetText(25,"Lukket")
  959. timer("Lukket",1000)
  960. }
  961. }
  962. }
  963. }
  964.  
  965. if(clk("Opfyldning")){
  966.  
  967. S = 34
  968. EGP:egpClear()
  969.  
  970. ##Baggrund
  971. EGP:egpBox(1,vec2(256,256),vec2(512,512))
  972.  
  973. EGP:egpBox(2,vec2(256,256),vec2(512,512))
  974. EGP:egpMaterial(2,"console/background06")
  975. EGP:egpAlpha(2,250)
  976. EGP:egpColor(2,vec(74,119,143))
  977.  
  978. EGP:egpBox(3,vec2(256,256),vec2(512,512))
  979. EGP:egpMaterial(3,"gui/gradient_down")
  980. EGP:egpColor(3,vec4(99,136,157,100))
  981.  
  982. EGP:egpBox(4,vec2(256,256),vec2(512,60))
  983. EGP:egpColor(4,vec4(187,89,41,100))
  984.  
  985. EGP:egpText(5,"! VI ER IGANG MED AT OPFYLDE BUTIKKEN !",vec2(256,256))
  986. EGP:egpAlign(5,1,1)
  987. EGP:egpFont(5,"Courier New")
  988. EGP:egpSize(5,22)
  989.  
  990. }
  991.  
  992. if(clk("Lukket")){
  993.  
  994. S = 33
  995.  
  996. EGP:egpClear()
  997.  
  998. ##Baggrund
  999. EGP:egpBox(1,vec2(256,256),vec2(512,512))
  1000.  
  1001. EGP:egpBox(2,vec2(256,256),vec2(512,512))
  1002. EGP:egpMaterial(2,"console/background06")
  1003. EGP:egpAlpha(2,250)
  1004. EGP:egpColor(2,vec(74,119,143))
  1005.  
  1006. EGP:egpBox(3,vec2(256,256),vec2(512,512))
  1007. EGP:egpMaterial(3,"gui/gradient_down")
  1008. EGP:egpColor(3,vec4(99,136,157,100))
  1009.  
  1010. EGP:egpBox(4,vec2(256,256),vec2(512,60))
  1011. EGP:egpColor(4,vec4(172,22,22,100))
  1012.  
  1013. EGP:egpText(5,"! BUTIKKEN ER LUKKET P"+aaL()+" NUV"+aeL()+"RENDE TIDSPNUKT !",vec2(256,256))
  1014. EGP:egpAlign(5,1,1)
  1015. EGP:egpFont(5,"Courier New")
  1016. EGP:egpSize(5,22)
  1017. }
  1018.  
  1019.  
  1020.  
  1021.  
  1022. if(clk("cpup") & SS == 2)
  1023. {
  1024. CP:egpSetText(13,"- PROFIT: "+Profit+",-")
  1025. CP:egpSetText(14,"- OMS"+aeL()+"TNING: "+Omsat+",-")
  1026. CP:egpSetText(15,"- INDTJENT: "+Tjent+",-")
  1027. CP:egpSetText(16,"- V"+aaL()+"BEN SOLGT: "+Count+" STK.")
  1028. CP:egpSetText(17,"- SENETE KUNDE: "+Seneste)
  1029. }
  1030.  
  1031. if(SS == 1)
  1032. {
  1033. if(clk("Tid")){
  1034. CP:egpSetText(21,returnTime())
  1035. timer("Tid",6500)
  1036. }
  1037. }
  1038.  
  1039. if(clk("updateTime"))
  1040. {
  1041. OpeningTime++
  1042. timer("updateTime",60000)
  1043. if(SS == 2){CP:egpSetText(18,aaL()+"BNINGSTID: "+OpeningTime+" MIN")}
  1044. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement