Bradmasta

Updated code

Jan 16th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 245.63 KB | None | 0 0
  1. on *:text:!d *:#: {
  2. var %songnick $+(30, $nick)
  3. var %timerDD $+(dd)
  4. if ($timer(%timerDD) != $null) && ($nick != %player1) && ($2 != %opponent) {
  5. msg $chan A Duel is currently going on! Please wait $timer(%timerDD).secs seconds until you can start a match!
  6.  
  7.  
  8. }
  9. elseif ($timer(%timerDD) != $null) && ($nick != %opponent) && ($2 != %player1) {
  10. msg $chan A Duel is currently going on! Please wait $timer(%timerDD).secs seconds until you can start a match!
  11.  
  12.  
  13. }
  14. elseif ($timer(%songnick) != $null) {
  15. msg $chan You're currently in a duel or just ended one! please wait $timer(%songnick).secs until your match timer expires!
  16.  
  17.  
  18. }
  19.  
  20. elseif ($timer(%songnick) == $null) {
  21. SET %player1 $nick
  22. SET %opponent $2
  23. var %IDexist = $readini(%pointsfile, $findID(%opponent), name)
  24. var %IDexist2 = $readini(%pointsfile, $findIDID(%player1), name)
  25. var %IDexist3 = $readini(%dicerecord, $dicerecord(%player1), name)
  26. var %IDexist4 = $readini(%dicerecord, $dicerecord2(%opponent), name)
  27. var %songnick $+(30, $nick)
  28. var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
  29. var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
  30. var %pointstoplay $3
  31. var %bcoinsused $calc(%currentPoints - %pointstoplay)
  32. var %bcoinsused2 $calc(%currentPoints2 - %pointstoplay)
  33. var %r1 = $rand(2,12)
  34. if ($2 == $nick) {
  35. msg $chan You cannot duel yourself!
  36. unset %dd
  37. unset %pot
  38. unset %opponent
  39. unset %player1
  40. unset %pot2
  41. | halt
  42.  
  43. }
  44. elseif ($3- !isnum) {
  45. msg $chan Make sure you use a number!
  46. unset %dd
  47. unset %pot
  48. unset %opponent
  49. unset %player1
  50. unset %pot2
  51. | halt
  52. }
  53. elseif (%player1 != %IDexist2) {
  54. msg $chan You haven't started earning bcoins yet! Type in !join to start doing so! :D
  55. unset %dd
  56. unset %pot
  57. unset %opponent
  58. unset %player1
  59. unset %pot2
  60. | halt
  61.  
  62. }
  63. elseif ($2 != %IDexist) {
  64. msg $chan The opponent must exist in the bcoins list in order to be dueled!
  65. unset %dd
  66. unset %pot
  67. unset %opponent
  68. unset %player1
  69. unset %pot2
  70. | halt
  71.  
  72. }
  73. elseif (%pointstoplay > 10000) {
  74. msg $chan You must bet less than/equal to 10000 bcoins!
  75. unset %dd
  76. unset %pot
  77. unset %opponent
  78. unset %player1
  79. unset %pot2
  80. | halt
  81.  
  82. }
  83. elseif (%currentPoints < %pointstoplay) || (%currentPoints2 < %pointstoplay) {
  84. msg $chan you or your opponent do not have enough bcoins to dice duel!
  85. unset %dd
  86. unset %pot
  87. unset %opponent
  88. unset %player1
  89. unset %pot2
  90. | halt
  91.  
  92. }
  93. elseif (. isin $3) {
  94. msg $chan Decimals aren't allowed! Make sure your bcoin amount is a whole number!
  95. unset %dd
  96. unset %pot
  97. unset %opponent
  98. unset %player1
  99. unset %pot2
  100. | halt
  101.  
  102. }
  103. elseif ($3 <= 0) {
  104. msg $chan You can't bet less than 0!
  105. unset %dd
  106. unset %pot
  107. unset %opponent
  108. unset %player1
  109. unset %pot2
  110. | halt
  111.  
  112. }
  113. elseif ($2 == bradmasta_bot) {
  114. msg $chan Bradmasta_bot is too godly at dice dueling to be faced O_O
  115. unset %dd
  116. unset %pot
  117. unset %opponent
  118. unset %player1
  119. unset %pot2
  120. | halt
  121.  
  122. }
  123. elseif ($2 == bradmasta) {
  124. msg $chan Brad is too good to lose Kappa
  125. unset %dd
  126. unset %pot
  127. unset %opponent
  128. unset %player1
  129. unset %pot2
  130. | halt
  131.  
  132. }
  133.  
  134. elseif (%currentPoints >= %pointstoplay) && (%currentPoints2 >= %pointstoplay) && (%player1 != %IDexist3) && (%opponent != %IDexist4) {
  135. set %dd $nick $2 $3
  136. SET %pot $calc($3 * 2)
  137. SET %pot2 $3
  138. set %dice1 %r1
  139. writeini -n %dicerecord $calc(%diceID + 1) name $nick
  140. writeini -n %dicerecord $calc(%diceID + 1) wins 0
  141. writeini -n %dicerecord $calc(%diceID + 1) losses 0
  142. writeini -n %dicerecord $calc(%diceID + 1) ties 0
  143. writeini -n %dicerecord $calc(%diceID + 2) name $2
  144. writeini -n %dicerecord $calc(%diceID + 2) wins 0
  145. writeini -n %dicerecord $calc(%diceID + 2) losses 0
  146. writeini -n %dicerecord $calc(%diceID + 2) ties 0
  147. inc %diceID 2
  148. writeini -n %pointsfile $findIDID(%player1) points %bcoinsused
  149. writeini -n %pointsfile $findID(%opponent) points %bcoinsused2
  150. set %ddr1. $+ $nick %r1
  151. msg $chan Dice duel between $nick and $2 for %pot bcoins! ; $nick rolled a %r1 $+ , $2 Type !broll.
  152. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick The match timer has expired! You may now Duel again!
  153. .timerDD 1 90 EndDD
  154. }
  155. elseif (%currentPoints >= %pointstoplay) && (%currentPoints2 >= %pointstoplay) && (%player1 == %IDexist3) && (%opponent != %IDexist4) {
  156. set %dd $nick $2 $3
  157. SET %pot $calc($3 * 2)
  158. SET %pot2 $3
  159. set %dice1 %r1
  160. writeini -n %dicerecord $calc(%diceID + 1) name $2
  161. writeini -n %dicerecord $calc(%diceID + 1) wins 0
  162. writeini -n %dicerecord $calc(%diceID + 1) losses 0
  163. writeini -n %dicerecord $calc(%diceID + 1) ties 0
  164. inc %diceID 1
  165. writeini -n %pointsfile $findIDID(%player1) points %bcoinsused
  166. writeini -n %pointsfile $findID(%opponent) points %bcoinsused2
  167. set %ddr1. $+ $nick %r1
  168. msg $chan Dice duel between $nick and $2 for %pot bcoins! ; $nick rolled a %r1 $+ , $2 Type !broll.
  169. var %r1 = $($+(%,ddr.,$gettok(%dd,1,32)),2)
  170. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick The match timer has expired! You may now Duel again!
  171. .timerDD 1 90 EndDD
  172. }
  173. elseif (%currentPoints >= %pointstoplay) && (%currentPoints2 >= %pointstoplay) && (%player1 != %IDexist3) && (%opponent == %IDexist4) {
  174. set %dd $nick $2 $3
  175. SET %pot $calc($3 * 2)
  176. SET %pot2 $3
  177. set %dice1 %r1
  178. writeini -n %dicerecord $calc(%diceID + 1) name $nick
  179. writeini -n %dicerecord $calc(%diceID + 1) wins 0
  180. writeini -n %dicerecord $calc(%diceID + 1) losses 0
  181. writeini -n %dicerecord $calc(%diceID + 1) ties 0
  182. inc %diceID 1
  183. writeini -n %pointsfile $findIDID(%player1) points %bcoinsused
  184. writeini -n %pointsfile $findID(%opponent) points %bcoinsused2
  185. set %ddr1. $+ $nick %r1
  186. msg $chan Dice duel between $nick and $2 for %pot bcoins! ; $nick rolled a %r1 $+ , $2 Type !broll.
  187. var %r1 = $($+(%,ddr.,$gettok(%dd,1,32)),2)
  188. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick The match timer has expired! You may now Duel again!
  189. .timerDD 1 90 EndDD
  190. }
  191.  
  192. elseif (%currentPoints >= %pointstoplay) && (%currentPoints2 >= %pointstoplay) {
  193. set %dd $nick $2 $3
  194. SET %pot $calc($3 * 2)
  195. SET %pot2 $3
  196. set %dice1 %r1
  197. writeini -n %pointsfile $findIDID(%player1) points %bcoinsused
  198. writeini -n %pointsfile $findID(%opponent) points %bcoinsused2
  199. set %ddr1. $+ $nick %r1
  200. msg $chan Dice duel between $nick and $2 for %pot bcoins! ; $nick rolled a %r1 $+ , $2 Type !broll.
  201. var %r1 = $($+(%,ddr.,$gettok(%dd,1,32)),2)
  202. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick The match timer has expired! You may now Duel again!
  203. .timerDD 1 90 EndDD
  204. }
  205. else {
  206. msg $chan You need to specify the amount!
  207. }
  208. }
  209. }
  210. on *:text:!broll:#: {
  211. if (!%dd) { msg $chan  No duel in progress. | halt }
  212. if (!$istok(%dd,$nick,32)) { msg $chan You are not one of the duelists. | halt }
  213. var %d1 = $gettok(%dd,1,32), %d2 = $gettok(%dd,2,32)
  214. var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
  215. var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
  216. var %currentPoints3 = $readini(%pointsfile2, $findIDIDIDIDID(%player1), points)
  217. var %currentPoints4 = $readini(%pointsfile2, $findID2(%opponent), points)
  218. var %currentwinsp = $readini(%dicerecord, $dicerecord(%player1), wins)
  219. var %currentlossesp = $readini(%dicerecord, $dicerecord(%player1), losses)
  220. var %currenttiesp = $readini(%dicerecord, $dicerecord(%player1), ties)
  221. var %currentwinso = $readini(%dicerecord, $dicerecord2(%opponent), wins)
  222. var %currentlosseso = $readini(%dicerecord, $dicerecord2(%opponent), losses)
  223. var %currenttieso = $readini(%dicerecord, $dicerecord2(%opponent), ties)
  224. var %r2 = $rand(2,12)
  225. set %ddr2. $+ $nick %r2
  226. set %dice2 %r2
  227. msg $chan  $nick rolled a %r2 $+ .
  228. if (%dice1 && %dice2) {
  229. if (%dice1 > %dice2) {
  230. writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot)
  231. writeini -n %pointsfile2 $findIDIDIDIDID(%player1) points $calc(%currentPoints3 + %pot2)
  232. writeini -n %dicerecord $dicerecord(%player1) wins $calc(%currentwinsp + 1)
  233. writeini -n %dicerecord $dicerecord2(%opponent) losses $calc(%currentlosseso + 1)
  234. msg $chan  %d1 won the %pot bcoin pot with a %dice1 $+ - $+ %dice2 $+ .
  235.  
  236. }
  237. elseif (%dice1 < %dice2) {
  238. writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot)
  239. writeini -n %pointsfile2 $findID2(%opponent) points $calc(%currentPoints4 + %pot2)
  240. writeini -n %dicerecord $dicerecord2(%opponent) wins $calc(%currentwinso + 1)
  241. writeini -n %dicerecord $dicerecord(%player1) losses $calc(%currentlossesp + 1)
  242. msg $chan  %d2 won the %pot bcoin pot with a %dice1 $+ - $+ %dice2 $+ .
  243.  
  244. }
  245. elseif (%dice1 == %dice2) {
  246. writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot2)
  247. writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot2)
  248. writeini -n %dicerecord $dicerecord(%player1) ties $calc(%currenttiesp + 1)
  249. writeini -n %dicerecord $dicerecord2(%opponent) ties $calc(%currenttieso + 1)
  250. msg $chan  %d1 and %d2 tied with a %dice1 $+ - $+ %dice2 $+ .
  251. }
  252. unset %dd
  253. unset %ddr.*
  254. unset %pot
  255. unset %player1
  256. unset %opponent
  257. unset %pot2
  258. unset %dice1
  259. unset %dice2
  260. .timerDD off
  261. }
  262. }
  263. alias EndDD {
  264.  
  265. var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
  266. var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
  267. writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot2)
  268. writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot2)
  269. unset %dd
  270. unset %ddr.*
  271. unset %pot
  272. unset %opponent
  273. unset %player1
  274. unset %pot2
  275.  
  276. }
  277.  
  278. alias -l findIDID {
  279. var %searchName = %player1
  280. var %i = 1
  281.  
  282. while (%i <= %pointsID) {
  283. var %name = $readini(%pointsfile, %i, name)
  284. if (%name == %searchName) {
  285. return %i
  286. }
  287. inc %i
  288. }
  289.  
  290. return 0
  291. }
  292. alias -l findIDIDIDIDID {
  293. var %searchName = %player1
  294. var %i = 1
  295.  
  296. while (%i <= %pointsID2) {
  297. var %name = $readini(%pointsfile2, %i, name)
  298. if (%name == %searchName) {
  299. return %i
  300. }
  301. inc %i
  302. }
  303.  
  304. return 0
  305. }
  306. alias -l findID {
  307. var %searchName = %opponent
  308. var %i = 1
  309.  
  310. while (%i <= %pointsID) {
  311. var %name = $readini(%pointsfile, %i, name)
  312. if (%name == %searchName) {
  313. return %i
  314. }
  315. inc %i
  316. }
  317.  
  318. return 0
  319. }
  320. alias -l findID2 {
  321. var %searchName = %opponent
  322. var %i = 1
  323.  
  324. while (%i <= %pointsID2) {
  325. var %name = $readini(%pointsfile2, %i, name)
  326. if (%name == %searchName) {
  327. return %i
  328. }
  329. inc %i
  330. }
  331.  
  332. return 0
  333. }
  334. alias -l findID2 {
  335. var %searchName = %opponent
  336. var %i = 1
  337.  
  338. while (%i <= %pointsID2) {
  339. var %name = $readini(%pointsfile2, %i, name)
  340. if (%name == %searchName) {
  341. return %i
  342. }
  343. inc %i
  344. }
  345.  
  346. return 0
  347. }
  348.  
  349. alias -l dicerecord {
  350. var %searchName = %player1
  351. var %i = 1
  352.  
  353. while (%i <= %diceID) {
  354. var %name = $readini(%dicerecord, %i, name)
  355. if (%name == %searchName) {
  356. return %i
  357. }
  358. inc %i
  359. }
  360.  
  361. return 0
  362. }
  363. alias -l dicerecord2 {
  364. var %searchName = %opponent
  365. var %i = 1
  366.  
  367. while (%i <= %diceID) {
  368. var %name = $readini(%dicerecord, %i, name)
  369. if (%name == %searchName) {
  370. return %i
  371. }
  372. inc %i
  373. }
  374.  
  375. return 0
  376. }
  377.  
  378.  
  379. alias -l slotsrecord {
  380. var %searchName = $nick
  381. var %i = 1
  382.  
  383. while (%i <= %slotsID) {
  384. var %name = $readini(%slotsrecord, %i, name)
  385. if (%name == %searchName) {
  386. return %i
  387. }
  388. inc %i
  389. }
  390.  
  391. return 0
  392. }
  393.  
  394.  
  395. on 2:text:!sdt:#: {
  396. var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
  397. var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
  398. writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot2)
  399. writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot2)
  400. unset %dd
  401. unset %ddr.*
  402. unset %pot
  403. unset %opponent
  404. unset %player1
  405. unset %pot2
  406.  
  407. .timerDD off
  408. msg $chan The dice timer has been turned off!
  409.  
  410. }
  411. _____________________________________
  412.  
  413.  
  414. on *:TEXT:!everything:#: { msg $chan Click this link to see everything you'll need to know about the stream! :D http://pastebin.com/zeQx1kg8 }
  415. on *:text:!Matt:#: { msg $chan EXCUUUUUUSE ME! }
  416. on *:text:!noice:#: { msg $chan NOICE! Kreygasm PogChamp }
  417. on *:text:!newgame:#: { msg $chan Want to know any information regarding the new in channel game? Check out this link! http://pastebin.com/HF47GMh8 }
  418. on *:text:!discord:#: { msg $chan Want to have a chill place where you can talk to myself and others outside of twitch? Check out the streams Discord server :D https://discord.gg/qb4UQB9 }
  419. on *:text:!1000:#: { msg $chan Monday June 28, 2015 at 5:02am. Bradmasta reached 1,000 followers. DarkCoolBoy was the 1,000th. Ended stream with 817k on TTFAF }
  420. on *:text:!diced:#: { msg $chan YOU'VE BEEN DICED PogChamp }
  421. on *:text:THANK YOU:#: { msg $chan NO THANK YOU! }
  422. on *:text:!Syd:#: { msg $chan BabyRage NEVER LUCKY BabyRage }
  423. on *:text:!fail:#: { msg $chan RIP D: }
  424. on *:text:Thx:#: { msg $chan NO THANK YOU! }
  425. on *:text:Thanx:#: { msg $chan NO THANK YOU! }
  426. on *:text:thanks!:#: { msg $chan NO THANK YOU! }
  427. on *:text:ty:#: { msg $chan NO THANK YOU! }
  428. on *:text:THANKs:#: { msg $chan NO THANK YOU! }
  429. on *:text:!Kristen:#: { msg $chan Okok }
  430. on *:text:!hax:#: { msg $chan HAX0R }
  431. on *:text:!donated:#: { msg $chan https://pbs.twimg.com/media/CMG4m95WIAARDbV.jpg:large }
  432. on *:text:!kotty:#: { msg $chan CoolCat CoolCat CoolCat CoolCat CoolCat CoolCat }
  433. on *:text:!dj:#: { msg $chan BloodTrail 666 - the Time-out of the beast }
  434. on *:text:!w3kongs:#: { msg $chan ALL HAIL THE KONGS Kreygasm }
  435. on *:text:!braf:#: { msg $chan http://i155.photobucket.com/albums/s313/bradmaster0/v7sdo6_zpsc5gtklxv.jpg }
  436. on *:text:!red:#: { msg $chan R E D B O Y S PogChamp }
  437. on *:text:!BTTV:#: { msg $chan Emotes that have been created so far: "BmBraf" and "BmEggs" :) Give them a shot! }
  438. on 3:text:!2222giveaway:#: { msg $chan for details on how to enter the giveaway, please go here: http://pastebin.com/GHacKnJ7 :D }
  439. on *:text:!question:#: { msg $chan YES SIR?? }
  440. on *:text:!giveaway:#: { msg $chan No giveaway currently! }
  441.  
  442. on *:text:!ryan:#: {
  443. var %songID = $readini(%songfile, 100, name)
  444. var %Ident = $readini(%songfile, 100, Identifier)
  445. var %artistID = $readini(%songfile, 100, artist)
  446. var %songstring = %ident %songID %artistID
  447. var %songstring2 = %ident %songID
  448. var %label_check = No song currently on the queue!
  449. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  450. var %nickname $nick
  451. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  452. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  453. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  454. var %read_text3 $read(%file_search2,r,%songstring)
  455. var %songnick $+(9946, $nick)
  456.  
  457. if (%read_text3) {
  458. msg $chan Ryan's favorite song is already on the queue Kappa
  459. }
  460. elseif ($timer(.nosongs) != $null) {
  461.  
  462. msg $chan Songs cannot be requested at this time!
  463. }
  464. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  465. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  466.  
  467. }
  468. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  469. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add Ryan's Favorite song to the queue!
  470. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  471. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  472. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  473. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  474. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  475. inc %newsongsID 1
  476. inc %nicknameID 1
  477.  
  478. msg $chan Ryan's song has been added to the setlist! :)
  479. }
  480. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  481. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add Ryan's Favorite song to the queue!
  482. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  483. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  484. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  485. inc %newsongsID 1
  486. inc %nicknameID 1
  487.  
  488. msg $chan Ryan's song has been added to the setlist! :)
  489. }
  490. else {
  491. msg $chan you must wait $timer(%songnick).secs seconds before you add Ryan's favorite song to the list!
  492. }
  493. }
  494.  
  495. on *:text:!ultra:#: {
  496.  
  497. if ($nick == doopian) || ($nick == missesdoom) || ($nick == ferguson_115) || ($nick == xxkrypto) {
  498.  
  499. msg $chan $nick has been awared the Ultracoin ( SeemsGood ) for witnessing Brad achieving 900k on Revolution Deathsquad with his 162nd FC!
  500.  
  501. }
  502. elseif ($nick == kanoha92) {
  503.  
  504. msg $chan $nick has been awared the Ultracoin ( CoolCat ) for obtaining all 6 megacoins at least once! PogChamp
  505.  
  506. }
  507. else {
  508.  
  509. msg $chan You were not awarded an Ultracoin!
  510. }
  511.  
  512.  
  513.  
  514.  
  515. }
  516.  
  517.  
  518. on *:text:Can you play rev death?:#: {
  519. var %songID = $readini(%songfile, 122, name)
  520. var %Ident = $readini(%songfile, 122, Identifier)
  521. var %artistID = $readini(%songfile, 122, artist)
  522. var %label_check = No song currently on the queue!
  523. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  524. var %songstring = %ident %songID %artistID
  525. var %songstring2 = %ident %songID
  526. var %nickname $nick
  527. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  528. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  529. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  530. var %read_text = $read(%file_search,r,%regex_text)
  531. var %read_text3 $read(%file_search2,r,%songstring)
  532. var %songnick $+(16, $nick)
  533.  
  534. if (%read_text3) {
  535. msg $chan I WOULD LOVE TO ADD THIS SONG BUT IT'S ALREADY ON THE QUEUE! YOU HAVE A GOOD STREAM THE TWITCH WAY!
  536. }
  537. elseif ($timer(.nosongs) != $null) {
  538.  
  539. msg $chan Songs cannot be requested at this time!
  540. }
  541. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  542. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  543.  
  544. }
  545. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  546. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add rev death if you ask "can you play rev death?" (no quotes)! :)
  547. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  548. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  549. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  550. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  551. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  552. inc %newsongsID 1
  553. inc %nicknameID 1
  554.  
  555.  
  556. msg $chan ABSOLUTELY SIR! REV DEATH HAS BEEN ADDED TO THE LIST! HAVE A GOOD STREAM THE TWITCH WAY!
  557. }
  558. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  559. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add rev death if you ask "can you play rev death?" (no quotes)! :)
  560.  
  561. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  562. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  563. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  564. inc %newsongsID 1
  565. inc %nicknameID 1
  566.  
  567.  
  568. msg $chan ABSOLUTELY SIR! REV DEATH HAS BEEN ADDED TO THE LIST! HAVE A GOOD STREAM THE TWITCH WAY!
  569. }
  570. else {
  571. msg $chan you must wait $timer(%songnick).secs seconds before you add Matt's favorite song to the list!
  572. }
  573. }
  574.  
  575. on *:text:!salami:#: {
  576. var %regex_text = Queued Songs:
  577. var %songID = $readini(%songfile, 115115, name)
  578. var %Ident = $readini(%songfile, 115115, Identifier)
  579. var %artistID = $readini(%songfile, 115115, artist)
  580. var %songstring = %Ident %songID %artistID
  581. var %songstring2 = %Ident %songID
  582. var %nickname $nick
  583. var %label_check = No song currently on the queue!
  584. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  585. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  586. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  587. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  588. var %read_text = $read(%file_search,r,%regex_text)
  589. var %read_text3 $read(%file_search2,r,%songstring)
  590. var %songnick $+(11515, $nick)
  591. if (%read_text3) {
  592. msg $chan Matt's insanely hard request is already on the queue!
  593. }
  594. elseif ($timer(.nosongs) != $null) {
  595.  
  596. msg $chan Songs cannot be requested at this time!
  597. }
  598. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  599. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  600.  
  601. }
  602. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  603. TIMER [ $+ [ %songnick ] ] 1 84000 msg $chan $nick you may now add Matt's insanely hard request if you type in !salami :)
  604. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  605. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  606. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  607. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  608. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  609. inc %newsongsID 1
  610. inc %nicknameID 1
  611.  
  612.  
  613. msg $chan Matt's insanely hard request has been added to the list!
  614. }
  615. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  616. TIMER [ $+ [ %songnick ] ] 1 84000 msg $chan $nick you may now add Matt's insanely hard request if you type in !salami :)
  617.  
  618. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  619. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  620. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  621. inc %newsongsID 1
  622. inc %nicknameID 1
  623.  
  624.  
  625. msg $chan Matt's insanely hard request has been added to the list!
  626. }
  627.  
  628. else {
  629. msg $chan you must wait $timer(%songnick).secs seconds before you add Matt's insanely hard request to the list!
  630. }
  631. }
  632.  
  633.  
  634.  
  635.  
  636. on *:text:!brandon:#: {
  637. var %regex_text = Queued Songs:
  638. var %songID = $readini(%songfile, 39, name)
  639. var %Ident = $readini(%songfile, 39, Identifier)
  640. var %artistID = $readini(%songfile, 39, artist)
  641. var %songstring = %Ident %songID %artistID
  642. var %songstring2 = %Ident %songID
  643. var %nickname $nick
  644. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  645. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  646. var %label_check = No song currently on the queue!
  647. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  648. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  649. var %read_text = $read(%file_search,r,%regex_text)
  650. var %read_text3 $read(%file_search2,r,%songstring)
  651. var %songnick $+(25, $nick)
  652. if (%read_text3) {
  653. msg $chan B_rocks favorite song is already on the queue!
  654. }
  655. elseif ($timer(.nosongs) != $null) {
  656.  
  657. msg $chan Songs cannot be requested at this time!
  658. }
  659. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  660. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  661.  
  662. }
  663. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  664. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add B_rocks favorite song if you type in !brock :)
  665. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  666. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  667. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  668. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  669. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  670. inc %newsongsID 1
  671. inc %nicknameID 1
  672.  
  673.  
  674. msg $chan B_rocks favorite song has been added to the list!
  675. }
  676. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  677. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add B_rocks favorite song if you type in !brock :)
  678.  
  679. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  680. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  681. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  682. inc %newsongsID 1
  683. inc %nicknameID 1
  684.  
  685.  
  686. msg $chan B_rocks favorite song has been added to the list!
  687. }
  688.  
  689. else {
  690. msg $chan you must wait $timer(%songnick).secs seconds before you add B_rocks favorite song to the list!
  691. }
  692. }
  693. on *:text:!killer:#: {
  694. var %regex_text = Queued Songs:
  695. var %songID = $readini(%songfile, 644, name)
  696. var %Ident = $readini(%songfile, 644, Identifier)
  697. var %artistID = $readini(%songfile, 644, artist)
  698. var %songstring = %Ident %songID %artistID
  699. var %songstring2 = %Ident %songID
  700. var %nickname $nick
  701. var %label_check = No song currently on the queue!
  702. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  703. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  704. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  705. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  706. var %read_text = $read(%file_search,r,%regex_text)
  707. var %read_text3 $read(%file_search2,r,%songstring)
  708. var %songnick $+(334534, $nick)
  709. if (%read_text3) {
  710. msg $chan Killers favorite song is already on the queue!
  711. }
  712. elseif ($timer(.nosongs) != $null) {
  713.  
  714. msg $chan Songs cannot be requested at this time!
  715. }
  716. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  717. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  718.  
  719. }
  720. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  721. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add Killers favorite song if you type in !killer :)
  722. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  723. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  724. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  725. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  726. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  727. inc %newsongsID 1
  728. inc %nicknameID 1
  729.  
  730.  
  731. msg $chan Killers favorite song has been added to the list!
  732. }
  733. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  734. TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add Killers favorite song if you type in !killer :)
  735.  
  736. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  737. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  738. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  739. inc %newsongsID 1
  740. inc %nicknameID 1
  741.  
  742.  
  743. msg $chan Killers favorite song has been added to the list!
  744. }
  745.  
  746. else {
  747. msg $chan you must wait $timer(%songnick).secs seconds before you add Killer favorite song to the list!
  748. }
  749. }
  750.  
  751.  
  752. on *:text:!brad:#: {
  753. var %songID = $readini(%songfile, 9999, name)
  754. var %Ident = $readini(%songfile, 9999, Identifier)
  755. var %artistID = $readini(%songfile, 9999, artist)
  756. var %songstring = %Ident %songID %artistID
  757. var %songstring2 = %Ident %songID
  758. var %nickname $nick
  759. var %label_check = No song currently on the queue!
  760. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  761. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  762. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  763. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  764. var %read_text = $read(%file_search,r,%regex_text)
  765. var %read_text3 $read(%file_search2,r,%songstring)
  766. var %songnick $+(45, $nick)
  767. if (%read_text3) {
  768. msg $chan Brad's choice is already on the queue!
  769. }
  770. elseif ($timer(.nosongs) != $null) {
  771.  
  772. msg $chan Songs cannot be requested at this time!
  773. }
  774. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  775. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  776.  
  777. }
  778. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  779. TIMER [ $+ [ %songnick ] ] 1 1000 msg $chan $nick You may give Brad the option of choosing his own song again!
  780. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  781. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  782. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  783. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  784. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  785. inc %newsongsID 1
  786. inc %nicknameID 1
  787.  
  788.  
  789. msg $chan Brad now has the option of choosing his own song!
  790. }
  791. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  792. TIMER [ $+ [ %songnick ] ] 1 1000 msg $chan $nick You may give Brad the option of choosing his own song again!
  793.  
  794. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  795. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  796. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  797. inc %newsongsID 1
  798. inc %nicknameID 1
  799.  
  800.  
  801. msg $chan Brad now has the option of choosing his own song!
  802. }
  803.  
  804. else {
  805. msg $chan you must wait $timer(%songnick).secs seconds before you can give Brad the option of choosing his own song!
  806. }
  807. }
  808. on *:text:!ss:#: {
  809. var %songID = $readini(%songfile, 99999, name)
  810. var %Ident = $readini(%songfile, 99999, Identifier)
  811. var %artistID = $readini(%songfile, 99999, artist)
  812. var %songstring = %Ident %songID %artistID
  813. var %songstring2 = %Ident %songID
  814. var %nickname $nick
  815. var %label_check = No song currently on the queue!
  816. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  817. var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  818. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  819. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  820. var %read_text = $read(%file_search,r,%regex_text)
  821. var %read_text3 $read(%file_search2,r,%songstring)
  822. var %songnick $+(999, $nick)
  823. if (%read_text3) {
  824. msg $chan Sandstorm is already on the queue!
  825. }
  826. elseif ($timer(.nosongs) != $null) {
  827.  
  828. msg $chan Songs cannot be requested at this time!
  829. }
  830. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  831. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  832.  
  833. }
  834. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  835. TIMER [ $+ [ %songnick ] ] 1 84000 msg $chan $nick If you see this the bots been on for 24 hours Kappa
  836. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  837. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  838. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  839. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  840. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  841. inc %newsongsID 1
  842. inc %nicknameID 1
  843.  
  844. msg $chan Sandstorm has been added to the queue!
  845. }
  846. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) {
  847. TIMER [ $+ [ %songnick ] ] 1 84000 msg $chan $nick If you see this the bots been on for 24 hours Kappa
  848.  
  849.  
  850. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  851. writeini -n %file_search Songs $calc(%newsongsID + 1) %songstring2
  852. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  853. inc %newsongsID 1
  854. inc %nicknameID 1
  855.  
  856. msg $chan Sandstorm has been added to the queue!
  857. }
  858.  
  859. else {
  860. msg $chan Sandstorm can only be requested once per stream Kappa
  861. }
  862. }
  863.  
  864.  
  865. on *:text:!solo:#: { msg $chan Solo Insanity Incoming! PogChamp }
  866. on *:text:!sf:#: { msg $chan Solo FC HYPE! PogChamp }
  867. on *:text:!cmon:#: { msg $chan Really Brad? FailFish }
  868. on *:text:!fc:#: { msg $chan FC HYPE! PogChamp }
  869. on *:text:!1k:#: { msg $chan 1k Notestreak HYPE! PogChamp }
  870. on *:text:!2k:#: { msg $chan 2k Notestreak HYPE!! Kreygasm }
  871. on *:text:!3k:#: { msg $chan 3k Notestreak HYPE!!! PogChamp Kreygasm }
  872. on *:text:Kappa:#: { msg $chan Kappa Kappa Doopian is the king of Kappa counting! }
  873. on *:text:!twitter:#: { msg $chan My Twitter is here: https://twitter.com/Bradmasta make sure to follow so you can see when i'm streaming! :) }
  874. on *:text:!update:#: { msg $chan Here are the latest updates to the stream: http://pastebin.com/Mfc1ZLn3 :D }
  875.  
  876.  
  877. on 3:TEXT:!starttimers:#: {
  878.  
  879. startupdate
  880. msg $chan All timers have been started.
  881.  
  882.  
  883. }
  884.  
  885. alias -l startupdate {
  886. .timer.timerhelp1235 0 1200 msg $chan check out the latest updates to the stream here: http://pastebin.com/Mfc1ZLn3 :D
  887. }
  888. alias -l starteverything {
  889. .timer.timerhelp91919191919 0 1500 msg $chan Need to know something about the stream? Check this link!: http://pastebin.com/zeQx1kg8
  890. }
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897. on 3:text:!songsoff:#: {
  898.  
  899.  
  900. timer.nosongs 1 84000 msg $chan song timer has ended.
  901. msg $chan Songs can no longer be added for the time being.
  902. }
  903.  
  904. on 3:text:!songson:#: {
  905.  
  906. timer.nosongs off
  907. msg $chan Songs may now be added again!
  908. }
  909.  
  910.  
  911. on *:text:!random*:#: {
  912.  
  913.  
  914. var %random = $rand(1,1001)
  915. var %timeout = $rand(1,10)
  916. var %label_check = No song currently on the queue!
  917. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  918. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  919. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  920. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  921. var %songID = $readini(%songfile, %random, name)
  922. var %nickname $nick
  923. var %Ident = $readini(%songfile, %random, Identifier)
  924. var %artistID = $readini(%songfile, %random, artist)
  925. var %command = !random
  926. var %songstring = %ident %songID %artistID
  927. var %songstring2 = %ident %songID
  928. var %read_text $readini(%songfile, %random, name)
  929. var %read_text3 $read(%file_search2,r,%songstring)
  930. var %songnick $+(20, $nick)
  931. if ($timer(.nosongs) != $null) {
  932.  
  933. msg $chan Songs cannot be requested at this time!
  934. }
  935. elseif ($1 == %command) && (%read_text3) {
  936. msg $chan This song already exists on the queue!
  937. }
  938. elseif ($nick == bradmasta) && ($2 == timer) && ($timer(%songnick) == $null) {
  939.  
  940. msg $chan There is no timer to turn off!
  941. }
  942.  
  943. elseif ($nick == bradmasta) && ($2 == timer) && ($timer(%songnick) != $null) {
  944.  
  945.  
  946. TIMER [ $+ [ %songnick ] ] off
  947.  
  948. msg $chan timer has been turned off
  949.  
  950. }
  951. elseif ($nick isop #) && (%timeout == 5) {
  952.  
  953.  
  954. TIMER [ $+ [ %songnick ] ] 1 600 msg $chan $nick you can now add another song LUL
  955.  
  956. msg $chan since I can't timeout mods, you can't request a song for 10 minutes LUL EleGiggle LUL
  957.  
  958. }
  959. elseif (%timeout == 5) {
  960.  
  961. msg $chan /timeout $nick 600
  962.  
  963. }
  964. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  965. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  966.  
  967. }
  968. elseif (%read_text3 == $null) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  969.  
  970. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  971. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  972. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  973. writeini -n %file_search3 Songs $calc(%newsongsID + 1) %songstring2
  974. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  975. inc %newsongsID 1
  976. inc %nicknameID 1
  977. msg $chan $nick %songID has been added to the list! Thank you! :)
  978. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick you may now add another song! :)
  979.  
  980.  
  981.  
  982.  
  983.  
  984. }
  985. elseif ($1 == %command) && (%read_text) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) < 15) && ($timer(%songnick) == $null) {
  986.  
  987.  
  988. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  989. writeini -n %file_search3 Songs $calc(%newsongsID + 1) %songstring2
  990. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  991. inc %newsongsID 1
  992. inc %nicknameID 1
  993. msg $chan $nick %songID has been added to the list! Thank you! :)
  994. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick you may now add another song! :)
  995.  
  996. }
  997. elseif ($1 == %command) && (%read_text == $null) {
  998. msg $chan That doesn't exist on my list!
  999. }
  1000. elseif ($1 != %command) {
  1001. msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !as [x] where [x] is the number.
  1002. }
  1003. else {
  1004. msg $chan You must wait $timer(%songnick).secs seconds before you can add another song!
  1005. }
  1006. }
  1007.  
  1008.  
  1009. on *:text:!as*:#: {
  1010.  
  1011. var %label_check = No song currently on the queue!
  1012. var %label_line = $read(C:\Users\Brad\Desktop\Songlist\custom_label_file.txt, n, 1)
  1013. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  1014. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  1015. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  1016. var %songID = $readini(%songfile, $2, name)
  1017. var %nickname $nick
  1018. var %Ident = $readini(%songfile, $2, Identifier)
  1019. var %artistID = $readini(%songfile, $2, artist)
  1020. var %command = !as
  1021. var %songstring = %ident %songID %artistID
  1022. var %songstring2 = %ident %songID
  1023. var %read_text $readini(%songfile, $2, name)
  1024. var %read_text3 $read(%file_search2,r,%songstring)
  1025. var %songnick $+(20, $nick)
  1026. if ($timer(.nosongs) != $null) {
  1027.  
  1028. msg $chan Songs cannot be requested at this time!
  1029. }
  1030. elseif ($1 == %command) && (%read_text3) {
  1031. msg $chan This song already exists on the queue!
  1032. }
  1033. elseif ($nick == bradmasta) && ($2 == timer) && ($timer(%songnick) == $null) {
  1034.  
  1035. msg $chan There is no timer to turn off!
  1036. }
  1037.  
  1038. elseif ($nick == bradmasta) && ($2 == timer) && ($timer(%songnick) != $null) {
  1039.  
  1040. TIMER [ $+ [ %songnick ] ] off
  1041.  
  1042. msg $chan timer has been turned off
  1043.  
  1044. }
  1045. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  1046. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  1047.  
  1048. }
  1049. elseif (%read_text3 == $null) && (%read_text) && ($timer(%songnick) == $null) && (%label_check == %label_line) {
  1050.  
  1051. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  1052. write C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %songstring
  1053. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  1054. writeini -n %file_search3 Songs $calc(%newsongsID + 1) %songstring2
  1055. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  1056. inc %newsongsID 1
  1057. inc %nicknameID 1
  1058. msg $chan $nick %songID has been added to the list! Thank you! :)
  1059. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick you may now add another song! :)
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065. }
  1066. elseif ($1 == %command) && (%read_text) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) < 15) && ($timer(%songnick) == $null) {
  1067.  
  1068.  
  1069. write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
  1070. writeini -n %file_search3 Songs $calc(%newsongsID + 1) %songstring2
  1071. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  1072. inc %newsongsID 1
  1073. inc %nicknameID 1
  1074. msg $chan $nick %songID has been added to the list! Thank you! :)
  1075. TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick you may now add another song! :)
  1076.  
  1077. }
  1078. elseif ($1 == %command) && (%read_text == $null) {
  1079. msg $chan That doesn't exist on my list!
  1080. }
  1081. elseif ($1 != %command) {
  1082. msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !as [x] where [x] is the number.
  1083. }
  1084. else {
  1085. msg $chan You must wait $timer(%songnick).secs seconds before you can add another song!
  1086. }
  1087. }
  1088.  
  1089. on *:text:!qs:#: {
  1090.  
  1091.  
  1092. if ($lines(C:\Users\Brad\Desktop\Songlist\songs.txt) == 0) {
  1093. msg $chan There are no songs on the queue.
  1094.  
  1095. }
  1096. else {
  1097. window -h @. | var %i 1
  1098. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%i) {
  1099. var %n $v1
  1100. aline @. $gettok($remove(%n,[,]),2,46) $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%n)
  1101. inc %i
  1102. }
  1103. var %i = $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)
  1104. var %q 1
  1105. while %q <= %i {
  1106. var %list $addtok(%list,$line(@.,%q),44)
  1107. var %newini = C:\Users\Brad\Desktop\Songlist\Temp.ini
  1108. savebuf @. C:\Users\Brad\Desktop\Songlist\temp.txt
  1109. writeini -n %newini Top %q $+($chr(40),%q,$chr(41)) - $read(C:\Users\Brad\Desktop\Songlist\temp.txt,n,%q)
  1110. inc %q
  1111.  
  1112. }
  1113. .remove C:\Users\Brad\Desktop\Songlist\temp.txt
  1114. window -c @.
  1115. window -h @. | var %r 1
  1116. while $ini(C:\Users\Brad\Desktop\Songlist\Temp.ini,Top,%r) {
  1117. var %n $v1
  1118. aline @. $gettok($remove(%n,[,]),2,46) $readini(C:\Users\Brad\Desktop\Songlist\Temp.ini,Top,%r)
  1119. inc %r
  1120. }
  1121. var %k 1 | while %k <= 15 {
  1122. var %list2 $addtok(%list2,$line(@.,%k),44)
  1123. inc %k
  1124. }
  1125. window -c @.
  1126. msg $chan The queue contains: $replace(%list2,$chr(44),$+($chr(44),$chr(32)))
  1127. remini -n %newini Top
  1128. }
  1129.  
  1130. }
  1131.  
  1132.  
  1133. on *:text:!find*:#: {
  1134.  
  1135.  
  1136. var %file_search = C:\Users\Brad\Desktop\Songlist\index.txt
  1137. var %command = !find
  1138. var %read_text3 = $read(%file_search, nr, $2-)
  1139. if ($1 == %command) && (%read_text3) {
  1140. msg $chan The index for %read_text3 is $readn
  1141. }
  1142. elseif ($1 == %command) && (%read_text3 == $null) {
  1143. msg $chan Unfortunately that doesn't exist on my list :( Also, make sure you're search with all lowercase letters!
  1144. }
  1145. elseif ($1 != %command) {
  1146. msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !as [x] where [x] is the number.
  1147. }
  1148. else {
  1149. msg $chan test
  1150. }
  1151. }
  1152. on 3:text:!line*:#: {
  1153.  
  1154.  
  1155. var %file_search = C:\Users\Brad\Desktop\Songlist\Songs.txt
  1156. var %read_text2 = $read(%file_search)
  1157. var %command = !line
  1158. var %read_text = $read(%file_search, n, $2)
  1159.  
  1160. if ($2 > $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  1161.  
  1162. msg $chan This line isn't occupied right now!
  1163.  
  1164. }
  1165. elseif ($1 == %command) && (%read_text2) {
  1166. msg $chan Line $2 contains %read_text
  1167. }
  1168. elseif ($1 != %command) {
  1169. msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !find [x] where [x] is the line you're searching for.
  1170. }
  1171. else {
  1172. msg $chan test
  1173. }
  1174. }
  1175.  
  1176.  
  1177. on 2:text:!e*:#: {
  1178.  
  1179. var %songID $readini(%songfile, $3, name)
  1180. var %Ident $readini(%songfile, $3, Identifier)
  1181. var %artistID $readini(%songfile, $3, Artist)
  1182. var %songstring = %ident %songID %artistID
  1183. var %command = !e
  1184. var %spot = $calc($2 - 1)
  1185. var %file_search = $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,1)
  1186. var %file_search6 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  1187. var %file_search3 = $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,songs,$2)
  1188. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  1189. var %file_search10 = $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,%spot)
  1190. var %file_search5 = C:\Users\Brad\Desktop\Songlist\instantqueue2.txt
  1191. var %file_search13 = $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,$2)
  1192. var %file_search9 = $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,songs,$2)
  1193. var %file_search14 = $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,songs,2)
  1194. var %file_search15 = $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  1195. var %SongandIdent
  1196. %SongandIdent = %Ident %songID
  1197. var %read_text3 $read(%file_search5,r,%SongandIdent)
  1198. var %read_text $read(%file_search6,r,%SongandIdent)
  1199.  
  1200. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 0) {
  1201.  
  1202. msg $chan There are no songs on the list to change!
  1203.  
  1204.  
  1205. }
  1206. if ($1 == %command) && ($2 > 15) {
  1207. msg $chan There are only at most 15 songs to change! The format is "!c [x] [z]" Where [x] is the line being changed and [z] is the song you're changing to
  1208. }
  1209.  
  1210. if ($1 == %command) && (%songID == $null) {
  1211. msg $chan This song doesn't exist or the command was formatted wrong!
  1212. }
  1213.  
  1214. if ($1 == %command) && ($2 > $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  1215.  
  1216. msg $chan You can't change a song to a spot that currently isn't occupied!
  1217.  
  1218.  
  1219. } | halt
  1220.  
  1221. if ($1 == %command) && (%read_text) {
  1222.  
  1223. msg $chan you can't change a song to a song that is already on the list!
  1224.  
  1225. } | halt
  1226.  
  1227. if ($1 == %command) && (%read_text3) && ($2 <= 4) {
  1228.  
  1229. msg $chan You cant change an instant-queued song's spot on the instant-queue!
  1230.  
  1231. } | halt
  1232. if ($1 == %command) && ($2 >= 5) {
  1233. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID ! Thank you! :)
  1234. writeini -n %file_search4 Songs $2 %SongandIdent
  1235. write -dl $+ $2 %file_search6
  1236. write -il $+ $2 %file_search6 %songstring
  1237.  
  1238.  
  1239. } | halt
  1240.  
  1241. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) >= 1) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 1) && (%file_search14 == %file_search15) && ($2 == 1) {
  1242. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1243. writeini -n %file_search4 Songs 1 %SongandIdent
  1244. write -dl1 %file_search6
  1245. write -il1 %file_search6 %songstring
  1246.  
  1247.  
  1248. } | halt
  1249.  
  1250. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) >= 1) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 1) && ($2 == 1) {
  1251. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1252. writeini -n %file_search4 Songs 1 %SongandIdent
  1253. write -dl1 %file_search5
  1254. write -il1 %file_search5 %SongandIDent
  1255. write -dl1 %file_search6
  1256. write -il1 %file_search6 %songstring
  1257.  
  1258.  
  1259. } | halt
  1260.  
  1261. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 1) {
  1262. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID ! Thank you! :)
  1263. writeini -n %file_search4 Songs $2 %SongandIdent
  1264. write -dl $+ $2 %file_search6
  1265. write -il $+ $2 %file_search6 %songstring
  1266.  
  1267.  
  1268. } | halt
  1269. if ($1 == %command) && (%file_search10 != %file_search9) {
  1270.  
  1271.  
  1272.  
  1273. if ($2 == 2) {
  1274. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1275. writeini -n %file_search4 Songs 2 %SongandIdent
  1276.  
  1277. write -dl2 %file_search6
  1278. write -il2 %file_search6 %songstring
  1279.  
  1280. } | halt
  1281. elseif ($2 == 3) {
  1282.  
  1283. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1284. writeini -n %file_search4 Songs 3 %SongandIdent
  1285.  
  1286. write -dl3 %file_search6
  1287. write -il3 %file_search6 %songstring
  1288.  
  1289. } | halt
  1290. elseif ($2 == 4) {
  1291.  
  1292. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1293. writeini -n %file_search4 Songs 4 %SongandIdent
  1294.  
  1295. write -dl4 %file_search6
  1296. write -il4 %file_search6 %songstring
  1297.  
  1298. } | halt
  1299. }
  1300.  
  1301. if ($1 == %command) && (%file_search10 == %file_search9) {
  1302.  
  1303.  
  1304.  
  1305. if ($2 == 2) {
  1306. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1307. writeini -n %file_search4 Songs 2 %SongandIdent
  1308. write -dl1 %file_search5
  1309. write -il1 %file_search5 %SongandIDent
  1310. write -dl2 %file_search6
  1311. write -il2 %file_search6 %songstring
  1312.  
  1313. } | halt
  1314. elseif ($2 == 3) {
  1315.  
  1316. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1317. writeini -n %file_search4 Songs 3 %SongandIdent
  1318. write -dl2 %file_search5
  1319. write -il2 %file_search5 %SongandIDent
  1320. write -dl3 %file_search6
  1321. write -il3 %file_search6 %songstring
  1322.  
  1323. } | halt
  1324. elseif ($2 == 4) {
  1325.  
  1326. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1327. writeini -n %file_search4 Songs 4 %SongandIdent
  1328. write -dl3 %file_search5
  1329. write -il3 %file_search5 %SongandIDent
  1330. write -dl4 %file_search6
  1331. write -il4 %file_search6 %songstring
  1332.  
  1333. } | halt
  1334. }
  1335. if ($1 == %command) && (%file_search13 != %file_search9) {
  1336.  
  1337. if ($2 >= 4 ) {
  1338.  
  1339. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID ! Thank you! :)
  1340. writeini -n %file_search4 Songs $2 %SongandIdent
  1341. write -dl $+ $2 %file_search6
  1342. write -il $+ $2 %file_search6 %songstring
  1343.  
  1344.  
  1345. } | halt
  1346. elseif ($2 == 2) {
  1347.  
  1348. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1349. writeini -n %file_search4 Songs 2 %SongandIdent
  1350.  
  1351. write -dl2 %file_search6
  1352. write -il2 %file_search6 %songstring
  1353.  
  1354. } | halt
  1355. elseif ($2 == 3) {
  1356.  
  1357. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1358. writeini -n %file_search4 Songs 3 %SongandIdent
  1359. write -dl3 %file_search6
  1360. write -il3 %file_search6 %songstring
  1361.  
  1362. } | halt
  1363. }
  1364.  
  1365. if ($1 == %command) && (%file_search13 == %file_search9) {
  1366.  
  1367. if ($2 >= 4 ) {
  1368.  
  1369. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID ! Thank you! :)
  1370. writeini -n %file_search4 Songs $2 %SongandIdent
  1371. write -dl $+ $2 %file_search6
  1372. write -il $+ $2 %file_search6 %songstring
  1373.  
  1374.  
  1375. } | halt
  1376. elseif ($2 == 2) {
  1377.  
  1378. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1379. writeini -n %file_search4 Songs 2 %SongandIdent
  1380. write -dl2 %file_search5
  1381. write -il2 %file_search5 %SongandIDent
  1382. write -dl2 %file_search6
  1383. write -il2 %file_search6 %songstring
  1384.  
  1385. } | halt
  1386. elseif ($2 == 3) {
  1387.  
  1388. msg $chan $readini(%file_search4, Songs, $2) was changed to %songID :) Thank you!
  1389. writeini -n %file_search4 Songs 3 %SongandIdent
  1390. write -dl3 %file_search5
  1391. write -il3 %file_search5 %SongandIDent
  1392. write -dl3 %file_search6
  1393. write -il3 %file_search6 %songstring
  1394.  
  1395. } | halt
  1396. }
  1397. else {
  1398. msg $chan something broke!
  1399.  
  1400. }
  1401. }
  1402.  
  1403. on 3:text:!r*:#: {
  1404. var %song $2
  1405. %song = $readini(%songfile, $2, name)
  1406. var %songID = $readini(%songfile, $2, name)
  1407. var %Ident = $readini(%songfile, $2, Identifier)
  1408. var %file_search = C:\Users\Brad\Desktop\Songlist\Songs.txt
  1409. var %points = $readini(%pointsfile, $findIDID($1), name)
  1410. var %command = !r
  1411. var %artistID = $readini(%songfile, $2, artist)
  1412. var %songstring = %ident %songID %artistID
  1413. var %songstring2 = %songID
  1414. var %isqueue = $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,$2)
  1415. %symbols = ,
  1416. var %read_text $read(C:\Users\Brad\Desktop\Songlist\Songqueue.txt)
  1417. var %read_text2 $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,1)
  1418. var %read_text5 $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,2)
  1419. var %read_text3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  1420. var %read_text6 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  1421. var %read_text7 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  1422. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  1423. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  1424. var %file_search5 = C:\Users\Brad\Desktop\Songlist\RNI.txt
  1425. var %read_text4 $read(%file_Search,r,%songstring)
  1426. var %delete $remove(%read_text, %song, %ident, %symbols )
  1427.  
  1428. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) = 0) && ($lines(%instantqueue2) = 0) {
  1429. msg $chan There are no songs on the queue.
  1430. }
  1431. elseif ($2- !isnum) {
  1432. msg $chan Make sure to use only numbers, and make sure you format the command right! Remember, "!r [x]" where [x] is the song being removed.
  1433. }
  1434. elseif (. isin $2) {
  1435. msg $chan Don't use decimals!
  1436. }
  1437. elseif ($2 > 15) {
  1438. msg $chan There are only at most 15 songs on the queue! The number after "r" represents the place in the queue the song is. Example, the song being played currently is first, so to remove it, you would use "!r 1"
  1439. }
  1440. elseif ($2 > $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  1441. msg $chan You can't remove a line that doesn't exist!
  1442. }
  1443.  
  1444. elseif ($2 == 2) && (%read_text6) {
  1445. msg $chan Don't try to remove an instant requested song that hasn't been played yet!
  1446. }
  1447.  
  1448. elseif ($2 == 3) && (%read_text7) {
  1449. msg $chan Don't try to remove an instant requested song that hasn't been played yet!
  1450. }
  1451. elseif ($2 == 2) && (%read_text3) {
  1452. msg $chan Don't try to remove an instant requested song that hasn't been played yet!
  1453. }
  1454.  
  1455. elseif ($2 == 3) && (%read_text6) {
  1456. msg $chan Don't try to remove an instant requested song that hasn't been played yet!
  1457. }
  1458.  
  1459. elseif ($2 == 4) && (%read_text7) {
  1460. msg $chan Don't try to remove an instant requested song that hasn't been played yet!
  1461. }
  1462. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) > 1) && (%isqueue == %read_text3) {
  1463.  
  1464.  
  1465. var %fix 1
  1466. remini -n %file_search4 names $2
  1467. window -h @fixini
  1468. loadbuf -rt @fixini %file_Search4
  1469. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  1470. remini %file_search4 Names
  1471. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  1472. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  1473. writeini -n %file_search4 Names %fix $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  1474. inc %fix
  1475. }
  1476. window -c @fixini
  1477. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  1478.  
  1479. var %fixini 1
  1480. write -dl $+ $2 C:\Users\Brad\Desktop\Songlist\Songs.txt
  1481. write -dl 1 C:\Users\Brad\Desktop\Songlist\instantqueue2.txt
  1482. remini -n %file_search3 songs $2
  1483. window -h @fixini
  1484. loadbuf -rt @fixini %file_Search3
  1485. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  1486. remini %file_search3 Songs
  1487. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  1488. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  1489. writeini -n %file_search3 Songs %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  1490. inc %fixini
  1491. }
  1492. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  1493. write -il1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %read_text5
  1494. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  1495.  
  1496. dec %nicknameID 1
  1497. dec %newsongsID 1
  1498. msg $chan removing the song off the queue. The current song now is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 1)
  1499. }
  1500. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) > 1) && ($2 == 1) {
  1501.  
  1502.  
  1503. window -a @fixini
  1504. var %fixini 1
  1505. remini -n %file_search4 names $2
  1506. loadbuf -rt @fixini %file_Search4
  1507. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  1508. remini %file_search4 Names
  1509. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  1510. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  1511. writeini -n %file_search4 names %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fixini),2,61)
  1512. inc %fixini
  1513. }
  1514. window -c @fixini
  1515. dec %nicknameID 1
  1516. dec %newsongsID 1
  1517. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  1518.  
  1519. window -a @fixini
  1520. var %fixini 1
  1521. write -dl $+ $2 C:\Users\Brad\Desktop\Songlist\Songs.txt
  1522. remini -n %file_search3 songs $2
  1523. loadbuf -rt @fixini %file_Search3
  1524. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  1525. remini %file_search3 Songs
  1526. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  1527. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  1528. writeini -n %file_search3 Songs %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  1529. inc %fixini
  1530. }
  1531. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  1532. write -il1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt %read_text5
  1533. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  1534. window -c @fixini
  1535. msg $chan removing the song off the queue. The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 1)
  1536. }
  1537. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) > 1) {
  1538.  
  1539.  
  1540. window -a @fixini
  1541. var %fixini 1
  1542. remini -n %file_search4 names $2
  1543. loadbuf -rt @fixini %file_Search4
  1544. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  1545. remini %file_search4 Names
  1546. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  1547. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  1548. writeini -n %file_search4 names %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fixini),2,61)
  1549. inc %fixini
  1550. }
  1551. window -c @fixini
  1552. dec %nicknameID 1
  1553. dec %newsongsID 1
  1554. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  1555.  
  1556. window -a @fixini
  1557. var %fixini 1
  1558. write -dl $+ $2 C:\Users\Brad\Desktop\Songlist\Songs.txt
  1559. remini -n %file_search3 songs $2
  1560. loadbuf -rt @fixini %file_Search3
  1561. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  1562. remini %file_search3 Songs
  1563. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  1564. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  1565. writeini -n %file_search3 Songs %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  1566. inc %fixini
  1567. }
  1568. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  1569. window -c @fixini
  1570. msg $chan removing the song off the queue. The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 1)
  1571. }
  1572.  
  1573.  
  1574. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 1) {
  1575. write -dl1 C:\Users\Brad\Desktop\Songlist\Songs.txt
  1576. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  1577. write -il1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt No song currently on the queue!
  1578. remini %file_search4 names 1
  1579. remini %file_search3 Songs 1
  1580. dec %newsongsID 1
  1581. dec %nicknameID 1
  1582. msg $chan removing the top song off the queue. There are no more songs on the queue!
  1583.  
  1584. }
  1585.  
  1586. elseif ($1 != %command) {
  1587. msg $chan That isn't formatted correctly! Make sure to type in the command in the correct format of !r [x] where [x] is the number.
  1588. }
  1589. else {
  1590. msg $chan Something went wrong! Check the formatting and try again :)
  1591. }
  1592. }
  1593.  
  1594. on 2:text:!cl:#: {
  1595. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  1596. remini -n %file_search4 Names
  1597. %nicknameID = 0
  1598. write -c C:\Users\Brad\Desktop\Songlist\Songs.txt
  1599. write -dl1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt
  1600. write -il1 C:\Users\Brad\Desktop\Songlist\custom_label_file.txt No song currently on the queue!
  1601.  
  1602. msg $chan Clearing list..
  1603. }
  1604.  
  1605. on 2:text:!ctq:#: {
  1606. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  1607. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  1608. remini -n %file_search4 Names
  1609. %nicknameID = 0
  1610. remini -n %file_search3 Songs
  1611. msg $chan Clearing the queue...
  1612. %newsongsID = 0
  1613. %songsID = 1
  1614.  
  1615. }
  1616. on 2:text:!cis:#: {
  1617.  
  1618. msg $chan Clearing instant song queue..
  1619. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  1620. remini -n %file_search4 Names
  1621. %nicknameID = 0
  1622. write -c C:\Users\Brad\Desktop\Songlist\instantqueue2.txt
  1623.  
  1624. }
  1625.  
  1626.  
  1627. on *:text:!cs:#: {
  1628.  
  1629. if ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 0) {
  1630.  
  1631. msg $chan There are no songs currently on the queue.
  1632. }
  1633. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) = 1) {
  1634. msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,1) and was requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 1)
  1635. }
  1636. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) > 1) {
  1637. msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,1) requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,2) requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 2)
  1638. }
  1639. }
  1640.  
  1641. ______________________________________________________________________________________________________________
  1642. alias -l findIDID {
  1643. var %searchName = $1
  1644. var %i = 1
  1645.  
  1646. while (%i <= %pointsID) {
  1647. var %name = $readini(%pointsfile, %i, name)
  1648. if (%name == %searchName) {
  1649. return %i
  1650. }
  1651. inc %i
  1652. }
  1653.  
  1654. return 0
  1655. }
  1656. alias -l findrequestor {
  1657. var %searchName = $readini(%pointsfile, %pointsID, name)
  1658. var %i = 1
  1659.  
  1660. while (%i <= %pointsID2) {
  1661. var %name = $readini(%pointsfile2, %i, name)
  1662. if (%name == %searchName) {
  1663. return %i
  1664. }
  1665. inc %i
  1666. }
  1667.  
  1668. return 0
  1669. }
  1670. ____________________________________________________________________________
  1671.  
  1672. on *:text:!join:#: {
  1673. var %songnick $+(4, $nick)
  1674. IF ($timer(%songnick) == $null) {
  1675. addTimerPoints $nick
  1676. addTimerPoints2 $nick
  1677. write C:\Users\Brad\Desktop\Songlist\suggest.txt $nick
  1678. $+(timer4, $nick) 1 3600 msg $chan $nick you may now type in !join again to earn 5001 bcoins!
  1679. msg $chan Thank you typing in !join! You can type this in once per hour to earn 5001 bcoins! :) If you're new, you can now earn bcoins through the in channel games!
  1680. }
  1681. else {
  1682. msg $chan $nick you must wait $timer(%songnick).secs seconds before you can type in !join D:
  1683. }
  1684. }
  1685.  
  1686.  
  1687. alias -l addTimerPoints {
  1688. var %ID = $findID(%pointsfile, %pointsID, $1)
  1689. if (%ID == 0) {
  1690. $addUser($1)
  1691. %ID = $findID(%pointsfile, %pointsID, $1)
  1692. }
  1693. else {
  1694. var %currentPoints = $readini(%pointsfile, %ID, points)
  1695. writeini -n %pointsfile %ID points $calc(%currentPoints + 5001)
  1696. }
  1697. }
  1698. alias -l addTimerPoints2 {
  1699. var %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
  1700. if (%ID2 == 0) {
  1701. $addUser2($1)
  1702. %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
  1703. }
  1704. else {
  1705. var %currentPoints2 = $readini(%pointsfile2, %ID2, points)
  1706. writeini -n %pointsfile2 %ID2 points $calc(%currentPoints2 + 5001)
  1707. }
  1708. }
  1709.  
  1710. alias -l addUser {
  1711. writeini -n %pointsFile $calc(%pointsID + 1) name $1
  1712. writeini -n %pointsFile $calc(%pointsID + 1) points 5001
  1713. inc %pointsID
  1714. }
  1715. alias -l addUser2 {
  1716. writeini -n %pointsFile2 $calc(%pointsID2 + 1) name $1
  1717. writeini -n %pointsFile2 $calc(%pointsID2 + 1) points 5001
  1718. inc %pointsID2
  1719. }
  1720. alias -l addUser3 {
  1721. writeini -n %megacoins $findcoins name $1
  1722. writeini -n %megacoins $findcoins coin1
  1723. inc %megaID
  1724. }
  1725. alias -l addUser4 {
  1726. writeini -n %megacoins2 $findcoins name $1
  1727. writeini -n %megacoins2 $findcoins coin2
  1728. inc %megaID
  1729. }
  1730. alias -l addUser5 {
  1731. writeini -n %megacoins3 $findcoins name $1
  1732. writeini -n %megacoins3 $findcoins coin3
  1733. inc %megaID
  1734. }
  1735. alias -l addUser6 {
  1736. writeini -n %megacoins4 $findcoins name $1
  1737. writeini -n %megacoins4 $findcoins coin4
  1738. inc %megaID
  1739. }
  1740. alias -l addUser7 {
  1741. writeini -n %megacoins5 $findcoins name $1
  1742. writeini -n %megacoins5 $findcoins coin5
  1743. inc %megaID
  1744. }
  1745. alias -l addUser8 {
  1746. writeini -n %megacoins6 $findcoins name $1
  1747. writeini -n %megacoins6 $findcoins coin6
  1748. inc %megaID
  1749. }
  1750. on *:text:!bcoins*:#: {
  1751. var %findmename = $nick
  1752. SET %findmename2 $2
  1753. var %points = $readini(%pointsfile, $findIDID($nick), points)
  1754. var %points3 = $readini(%pointsfile, $findmename3($2), points)
  1755. var %points2 = $readini(%pointsfile2, $findIDIDIDIDID($nick), points)
  1756. var %points4 = $readini(%pointsfile2, $findmename4($2), points)
  1757. var %findme = $readini(%pointsfile, $findIDID(%findmename), name)
  1758. var %findme2 = $readini(%pointsfile, $findmename2(%findmename2), name)
  1759. var %currentPoints = $readini(%pointsfile, $findIDID(%name), points)
  1760. var %ID = $findIDIDID(%Hallofawesome, %HallofawesomeID, $1)
  1761.  
  1762. if ($2 == $null) {
  1763.  
  1764.  
  1765. if (%findme == $null) {
  1766.  
  1767. msg $chan $nick you haven't started earning bcoins yet! Type in "!join" to start doing so! :D
  1768.  
  1769. }
  1770. else {
  1771. if (($nick == anenthran) && (%points2 isnum 2000000-4000000)) || (($nick == just1thing) && (%points2 isnum 2000000-4000000)) || (($nick == kristen91885) && (%points2 isnum 2000000-4000000)) || (($nick == ryantwitchy) && (%points2 isnum 2000000-4000000)) || (($nick == kanoha92) && (%points2 isnum 2000000-4000000)) || (($nick == kraken_smakin) && (%points2 isnum 2000000-4000000)) || (($nick == classiccamgil) && (%points2 isnum 2000000-4000000)) || (($nick == remefx) && (%points2 isnum 2000000-4000000)) || (($nick == doopian) && (%points2 isnum 2000000-4000000)) || (($nick == thezombiehunter3165) && (%points2 isnum 2000000-4000000)) || (($nick == destinyspowerofstupidity) && (%points2 isnum 2000000-4000000)) {
  1772.  
  1773. msg $chan $nick has %points bcoins and has earned %points2 all time! $nick is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! :)
  1774. }
  1775. elseIF (%points2 >= 4000000) && (%ID == 0) {
  1776. $addHall($nick)
  1777. msg $chan $nick has %points bcoins and has earned %points2 all time! $nick has done it! $nick has been added to the Hall Of Awesome for achieving over 2,000,000 bcoins all time! :D
  1778. }
  1779. elseif (%points2 isnum 1-99999) {
  1780. msg $chan $nick has %points bcoins and has earned %points2 bcoins all time!
  1781. }
  1782. elseif (%points2 isnum 100000-249999) {
  1783. msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick enjoys Bradmasta's stream!
  1784. }
  1785. elseif (%points2 isnum 250000-499999) {
  1786. msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick has been with the channel for some time now!
  1787. }
  1788. elseif (%points2 isnum 500000-999999) {
  1789. msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick is a high roller! PogChamp
  1790. }
  1791. elseif (%points2 isnum 1000000-1999999) {
  1792. msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick has an impressive amount of bcoins!
  1793. }
  1794. elseif (%points2 isnum 2000000-3999999) {
  1795. msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick has a seriously gambling problem Kappa
  1796. }
  1797. elseif (%points2 isnum 4000000-9999999) {
  1798. msg $chan $nick has %points bcoins and has earned %points2 all time! $nick is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! :)
  1799. }
  1800. elseif (%points2 isnum 10000000-49999999) {
  1801. msg $chan $nick has %points bcoins and has earned %points2 all time! $nick is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! $nick as also reach deIlluminati status! O_O
  1802. }
  1803. elseif (%points <= 0) {
  1804. msg $chan $nick You have no bcoins! But has earned %points2 bcoins all time!
  1805. }
  1806. }
  1807. }
  1808. if ($2 != $null) {
  1809. if ($2 != %findme2) {
  1810.  
  1811. msg $chan $2 hasn't earned any bcoins yet!
  1812.  
  1813. }
  1814. else {
  1815. if (($2 == anenthran) && (%points4 isnum 2000000-4000000)) || (($2 == just1thing) && (%points4 isnum 2000000-4000000)) || (($2 == kristen91885) && (%points4 isnum 4000000-3500000)) || (($2 == ryantwitchy) && (%points4 isnum 2000000-4000000)) || (($2 == kanoha92) && (%points4 isnum 2000000-4000000)) || (($2 == kraken_smakin) && (%points4 isnum 2000000-4000000)) || (($2 == classiccamgil) && (%points4 isnum 2000000-4000000)) || (($2 == remefx) && (%points4 isnum 2000000-4000000)) || (($2 == doopian) && (%points4 isnum 2000000-4000000)) || (($2 == thezombiehunter3165) && (%points4 isnum 2000000-4000000)) || (($2 == destinyspowerofstupidity) && (%points4 isnum 2000000-4000000)) {
  1816.  
  1817. msg $chan $2 has %points3 bcoins and has earned %points4 all time! $2 is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! :)
  1818. unset %findmename2
  1819. }
  1820.  
  1821. elseif (%points4 isnum 1-99999) {
  1822. msg $chan $2 has %points3 bcoins and has earned %points4 bcoins all time!
  1823. unset %findmename2
  1824. }
  1825. elseif (%points4 isnum 100000-249999) {
  1826. msg $chan $2 has %points3 bcoins and has earned %points4 bcoins all time! $2 enjoys Bradmasta's stream!
  1827. unset %findmename2
  1828. }
  1829. elseif (%points4 isnum 250000-499999) {
  1830. msg $chan $2 has %points3 bcoins and has earned %points4 bcoins all time! $2 has been with the channel for some time now!
  1831. unset %findmename2
  1832. }
  1833. elseif (%points4 isnum 500000-999999) {
  1834. msg $chan $2 has %points3 bcoins and has earned %points4 bcoins all time! $2 is a high roller! PogChamp
  1835. unset %findmename2
  1836. }
  1837. elseif (%points4 isnum 1000000-1999999) {
  1838. msg $chan $2 has %points3 bcoins and has earned %points4 bcoins all time! $2 has an impressive amount of bcoins!
  1839. unset %findmename2
  1840. }
  1841. elseif (%points4 isnum 2000000-3999999) {
  1842. msg $chan $2 has %points3 bcoins and has earned %points4 bcoins all time! $2 has a serious gambling problem Kappa
  1843. unset %findmename2
  1844. }
  1845. elseif (%points4 isnum 4000000-9999999) {
  1846. msg $chan $2 has %points3 bcoins and has earned %points4 all time! $2 is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! :)
  1847. unset %findmename2
  1848. }
  1849. elseif (%points4 isnum 10000000-49999999) {
  1850. msg $chan $2 has %points3 bcoins and has earned %points4 all time! $2 is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! $nick as also reach deIlluminati status! O_O
  1851. unset %findmename2
  1852. }
  1853. elseif (%points3 <= 0) {
  1854. msg $chan $2 has no bcoins! But has earned %points4 bcoins all time!
  1855. unset %findmename2
  1856. }
  1857. }
  1858. }
  1859. }
  1860.  
  1861.  
  1862. alias -l addHall {
  1863. writeini -n %Hallofawesome $calc(%HallofawesomeID + 1) name $1
  1864. inc %HallofawesomeID
  1865. }
  1866.  
  1867. on *:text:!bn:#: {
  1868. var %currentPoints = $readini(%pointsfile2, $findIDIDIDIDID($nick), points)
  1869. var %pointsneeded = $calc(4000000 - %currentPoints)
  1870.  
  1871. if (($nick == anenthran) && (%points2 isnum 2000000-4000000)) || (($nick == just1thing) && (%points2 isnum 2000000-4000000)) || (($nick == kristen91885) && (%points2 isnum 2000000-4000000)) || (($nick == ryantwitchy) && (%points2 isnum 2000000-4000000)) || (($nick == kanoha92) && (%points2 isnum 2000000-4000000)) || (($nick == kraken_smakin) && (%points2 isnum 2000000-4000000)) || (($nick == classiccamgil) && (%points2 isnum 2000000-4000000)) || (($nick == remefx) && (%points2 isnum 2000000-4000000)) || (($nick == doopian) && (%points2 isnum 2000000-4000000)) || (($nick == thezombiehunter3165) && (%points2 isnum 2000000-4000000)) || (($nick == destinyspowerofstupidity) && (%points2 isnum 2000000-4000000)) {
  1872.  
  1873. msg $chan You're already in the Hall of Awesome!
  1874.  
  1875. }
  1876. elseif (%currentPoints isnum 1-3999999) {
  1877. msg $chan $nick You need %pointsneeded Bcoins to reach the Hall of Awesome!
  1878. }
  1879. elseif (%currentPoints >= 4000000) {
  1880. msg $chan $nick You have %currentpoints bcoins, which is enough to enter the Hall of Awesome! Simply type into chat !bcoins and you'll be added! :D
  1881. }
  1882. }
  1883.  
  1884.  
  1885.  
  1886.  
  1887. on *:text:!mega*:#: {
  1888.  
  1889. var %i 1
  1890. var %j 1
  1891. var %found 0
  1892. var %remainder 0
  1893. var %output = $2 has $+ $chr(32) $+ $chr(32)
  1894. var %output2 = $nick you have the Mega Coins: $+ $chr(32) $+ $chr(32)
  1895. var %ID = $findallmega(%allmega, %allmegaID, $nick)
  1896. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID($nick), points)
  1897. var %newPoints2 = $calc(%currentPoints2 + 1000000)
  1898. var %currentPoints = $readini(%pointsfile, $findIDID($nick), points)
  1899. var %newPoints = $calc(%currentPoints + 1000000)
  1900.  
  1901.  
  1902.  
  1903. if ($2 != $null) {
  1904.  
  1905. while (%i < 7) {
  1906. %j = 1
  1907. while ($readini(%megacoinstest, n, %i, %j) != $null) {
  1908.  
  1909. var %user $readini(%megacoinstest, n, %i, %j)
  1910.  
  1911. if (%user == $2) {
  1912.  
  1913. var %currentCoin
  1914. if (%i == 1) {
  1915. %currentCoin = %1 $+ $chr(32) $+ $chr(32)
  1916. }
  1917. elseif (%i == 2) {
  1918. %currentCoin = %2 $+ $chr(32) $+ $chr(32)
  1919. }
  1920. elseif (%i == 3) {
  1921. %currentCoin = %3 $+ $chr(32) $+ $chr(32)
  1922. }
  1923. elseif (%i == 4) {
  1924. %currentCoin = %4 $+ $chr(32) $+ $chr(32)
  1925. }
  1926. elseif (%i == 5) {
  1927. %currentCoin = %5 $+ $chr(32) $+ $chr(32)
  1928. }
  1929. else {
  1930. %currentCoin = %6 $+ $chr(32) $+ $chr(32)
  1931. }
  1932.  
  1933. inc %found
  1934. %output = %output $+ %currentCoin
  1935. }
  1936. inc %j
  1937.  
  1938. }
  1939.  
  1940. inc %i
  1941.  
  1942. }
  1943.  
  1944. %remainder = $calc(6 - %found)
  1945. if (%remainder == 6) {
  1946. msg $chan $2 has no megacoins $nick
  1947. }
  1948. elseif (%remainder >= 1) {
  1949. msg $chan %output $+ They need %remainder megacoins to get 1 million bcoins!
  1950. }
  1951. elseif (%remainder == 0) {
  1952.  
  1953. msg $chan %output $+ They have all 6 megacoins!
  1954.  
  1955. }
  1956. }
  1957. elseif ($2 == $null) {
  1958.  
  1959. while (%i < 7) {
  1960. %j = 1
  1961. while ($readini(%megacoinstest, n, %i, %j) != $null) {
  1962.  
  1963. var %user $readini(%megacoinstest, n, %i, %j)
  1964.  
  1965. if (%user == $nick) {
  1966.  
  1967. var %currentCoin
  1968. if (%i == 1) {
  1969. %currentCoin = %1 $+ $chr(32) $+ $chr(32)
  1970. }
  1971. elseif (%i == 2) {
  1972. %currentCoin = %2 $+ $chr(32) $+ $chr(32)
  1973. }
  1974. elseif (%i == 3) {
  1975. %currentCoin = %3 $+ $chr(32) $+ $chr(32)
  1976. }
  1977. elseif (%i == 4) {
  1978. %currentCoin = %4 $+ $chr(32) $+ $chr(32)
  1979. }
  1980. elseif (%i == 5) {
  1981. %currentCoin = %5 $+ $chr(32) $+ $chr(32)
  1982. }
  1983. else {
  1984. %currentCoin = %6 $+ $chr(32) $+ $chr(32)
  1985. }
  1986.  
  1987. inc %found
  1988. %output2 = %output2 $+ %currentCoin
  1989. }
  1990. inc %j
  1991.  
  1992. }
  1993.  
  1994. inc %i
  1995.  
  1996. }
  1997.  
  1998. %remainder = $calc(6 - %found)
  1999. if (%remainder == 6) {
  2000. msg $chan $nick You don't have any mega coins! Keep playing the slots to win 1! If you obtain all 6, you win 1,000,000 bcoins!
  2001. }
  2002. elseif (%remainder >= 1) {
  2003. msg $chan %output2 $+ ! You need %remainder megacoins to get 1 million bcoins!
  2004. }
  2005. elseif (%remainder == 0) && (%ID == 0) {
  2006. addmeganame
  2007.  
  2008. writeini -n %pointsfile $findIDID($nick) points %newpoints
  2009. writeini -n %pointsfile2 $findIDIDIDIDID($nick) points %newpoints2
  2010.  
  2011. msg $chan %output2 $+ megacoins! You have just won 1 million bcoins!
  2012. }
  2013. elseif (%remainder == 0) {
  2014. msg $chan %output2 $+ which is all 6 megacoins!
  2015. }
  2016.  
  2017. }
  2018. }
  2019.  
  2020. alias -l addmeganame {
  2021. var %ID = $findallmega(%allmega, %allmegaID, $nick)
  2022. if (%ID == 0) {
  2023. $addallmega($nick)
  2024. %ID = $findallmega(%allmega, %allmegaID, $nick)
  2025. }
  2026.  
  2027. }
  2028. alias -l addallmega {
  2029. writeini -n %allmega $calc(%allmegaID + 1) name $nick
  2030. inc %allmegaID
  2031. }
  2032. on *:text:!Hoa:#: {
  2033. msg $chan To see who's made it into the Hall of Awesome, simply scroll to the bottom of Brads twitch page, or go to this link: http://pastebin.com/kgWbmLRV :)
  2034. }
  2035. // Format: !addPoints [name] [points]
  2036. on 3:text:!ab*:#: {
  2037. var %name = $2
  2038. var %points = $3
  2039. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%name), points)
  2040. var %newPoints2 = $calc(%currentPoints2 + %points)
  2041. var %currentPoints = $readini(%pointsfile, $findIDID(%name), points)
  2042. var %newPoints = $calc(%currentPoints + %points)
  2043.  
  2044. writeini -n %pointsfile $findIDID(%name) points %newPoints
  2045. writeini -n %pointsfile2 $findIDIDIDIDID(%name) points %newPoints2
  2046.  
  2047. msg $chan %points bcoins were added to %name
  2048. }
  2049.  
  2050. on 3:text:!au*:#: {
  2051.  
  2052.  
  2053. writeini -n %pointsFile $calc(%pointsID + 1) name $2
  2054. writeini -n %pointsFile $calc(%pointsID + 1) points 2000
  2055.  
  2056.  
  2057. writeini -n %pointsFile2 $calc(%pointsID2 + 1) name $2
  2058. writeini -n %pointsFile2 $calc(%pointsID2 + 1) points 2000
  2059. inc %pointsID
  2060. inc %pointsID2
  2061.  
  2062.  
  2063. msg $chan $2 has been added to the bcoins list! :)
  2064. }
  2065.  
  2066. alias -l adduserspoints {
  2067. var %ID = $findID(%pointsfile, %pointsID, $2)
  2068. if (%ID == 0) {
  2069. $addUser($2)
  2070. %ID = $findID(%pointsfile, %pointsID, $2)
  2071. }
  2072. var %currentPoints = $readini(%pointsfile, %ID, points)
  2073. writeini -n %pointsfile %ID points $calc(%currentPoints + 5)
  2074. }
  2075. alias -l adduserspoints2 {
  2076. var %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
  2077. if (%ID2 == 0) {
  2078. $addUser2($2)
  2079. %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
  2080. }
  2081. var %currentPoints2 = $readini(%pointsfile2, %ID2, points)
  2082. writeini -n %pointsfile2 %ID2 points $calc(%currentPoints2 + 5)
  2083. }
  2084. on 3:text:!tb*:#: {
  2085. var %name = $2
  2086. var %points = $3
  2087.  
  2088. var %currentPoints = $readini(%pointsfile, $findIDID(%name), points)
  2089. var %newPoints = $calc(%currentPoints - %points)
  2090.  
  2091. writeini -n %pointsfile $findIDID(%name) points %newPoints
  2092.  
  2093. msg $chan %points bcoins were taken from %name
  2094. }
  2095. on *:text:!is*:#: {
  2096.  
  2097. var %hoa = $nick
  2098. var %findsubname = $nick
  2099. var %currentPoints = $readini(%pointsfile, $findIDID($nick), points)
  2100. var %newPoints = $calc(%currentPoints - 15000)
  2101. var %newPoints2 = $calc(%currentPoints - 7500)
  2102. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
  2103. var %songID $readini(%songfile, $2, name)
  2104. var %command = !is
  2105. var %ident $readini(%songfile, $2, Identifier)
  2106. var %artistID $readini(%songfile, $2, artist)
  2107. var %songstring = %ident %songID %artistID
  2108. var %songstring2 = %ident %songID
  2109. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  2110. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  2111. var %file_verify = $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,1)
  2112. var %file_verify2 = $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2113. var %read_text $read(%file_search2,r,%songstring)
  2114. var %IDexist = $readini(%Hallofawesome, $findIDIDID($nick), name)
  2115. var %read_text3 $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,w,%songstring)
  2116. var %read_text4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,w,%songstring2)
  2117. var %pointsneeded $calc(15000 - %currentPoints)
  2118. var %pointsneeded2 $calc(7500 - %currentPoints)
  2119. var %songnick $+(6, $nick)
  2120. var %read_text2 $readini(%songfile, $2, name)
  2121. var %subcheck $readini(%subfile, $findsub($nick), songsleft)
  2122. var %songsleftcheck $calc(%subcheck - 1)
  2123. if ($timer(.nosongs) != $null) {
  2124.  
  2125. msg $chan Songs cannot be requested at this time!
  2126. }
  2127. elseif ($nick == bradmasta) && ($2 == timer) && ($timer(%songnick) == $null) {
  2128.  
  2129. msg $chan There is no timer to turn off!
  2130.  
  2131. }
  2132. elseif ($nick == bradmasta) && ($2 == timer) && ($timer(%songnick) != $null) {
  2133.  
  2134. TIMER [ $+ [ %songnick ] ] off
  2135. msg $chan timer has been turned off!
  2136. }
  2137.  
  2138. elseif ($1 == %command) && (%read_text2 == $null) {
  2139. msg $chan That song doesn't exist! | haltblack anti venom
  2140. }
  2141. elseif ($1 == %command) && (%read_text4 != $null) {
  2142. msg $chan %songID is already on the instant song queue!
  2143. }
  2144.  
  2145. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) >= 3) {
  2146. msg $chan There can only be 3 songs added to the instant queue at one time! Please wait for this list to lower! Thank you :) | halt
  2147. }
  2148. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
  2149. msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  2150.  
  2151.  
  2152. }
  2153. elseif ($1 == %command) && (%songstring2 == %file_verify) {
  2154.  
  2155. msg $chan That song is already on the top of the list!
  2156.  
  2157. }
  2158.  
  2159. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 0) {
  2160.  
  2161. msg $chan There is nothing on the list so there is no need to instant request a song or use your bcoins for it! Save them for the slots :D
  2162.  
  2163. }
  2164. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && (%read_text3 != $null) && (%subcheck >= 1) {
  2165.  
  2166.  
  2167. var %i 1
  2168. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2169. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2170. inc %i
  2171. }
  2172. var %q 1
  2173. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2174. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2175. remini -n %file_search3 Songs %q
  2176. remini -n %file_search4 Names %q
  2177. }
  2178. inc %q
  2179. }
  2180. window -a @fixini
  2181. var %fix 1
  2182. loadbuf -rt @fixini %file_Search4
  2183. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2184. remini %file_search4 Names
  2185. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2186. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2187. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2188. writeini -n %file_search4 Names 2 %hoa
  2189. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2190. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2191. inc %fix
  2192. }
  2193. window -c @fixini
  2194. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2195.  
  2196.  
  2197. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2198. window -a @fixini
  2199. loadbuf -rt @fixini %file_Search3
  2200. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2201. remini %file_search3 Songs
  2202. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2203. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2204. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2205. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2206. var %fixini 1
  2207. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2208. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2209. inc %fixini
  2210. }
  2211. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2212. window -c @fixini
  2213.  
  2214.  
  2215.  
  2216. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2217.  
  2218. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2219. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2220.  
  2221. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2222.  
  2223.  
  2224. }
  2225. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && (%read_text3 == $null) && (%subcheck >= 1) {
  2226.  
  2227.  
  2228.  
  2229. window -a @fixini
  2230. var %fix 1
  2231. loadbuf -rt @fixini %file_Search4
  2232. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2233. remini %file_search4 Names
  2234. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2235. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2236. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2237. writeini -n %file_search4 Names 2 %hoa
  2238. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2239. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2240. inc %fix
  2241. }
  2242. inc %nicknameID 1
  2243. window -c @fixini
  2244. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2245.  
  2246.  
  2247. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2248. window -a @fixini
  2249. loadbuf -rt @fixini %file_Search3
  2250. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2251. remini %file_search3 Songs
  2252. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2253. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2254. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2255. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2256. var %fixini 1
  2257. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2258. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2259. inc %fixini
  2260. }
  2261. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2262. window -c @fixini
  2263. inc %newsongsID 1
  2264.  
  2265.  
  2266. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2267.  
  2268. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2269. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2270.  
  2271. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2272.  
  2273.  
  2274. }
  2275. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%file_verify == %file_verify2) && (%read_text3 != $null) && (%subcheck >= 1) {
  2276.  
  2277. var %i 1
  2278. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2279. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2280. inc %i
  2281. }
  2282. var %q 1
  2283. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2284. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2285. remini -n %file_search3 Songs %q
  2286. remini -n %file_search4 Names %q
  2287. }
  2288. inc %q
  2289. }
  2290. window -a @fixini
  2291. var %fix 1
  2292. loadbuf -rt @fixini %file_Search4
  2293. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2294. remini %file_search4 Names
  2295. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2296. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2297. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2298. writeini -n %file_search4 Names 2 %hoa
  2299. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2300. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2301. inc %fix
  2302. }
  2303. window -c @fixini
  2304. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2305.  
  2306.  
  2307. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2308. window -a @fixini
  2309. loadbuf -rt @fixini %file_Search3
  2310. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2311. remini %file_search3 Songs
  2312. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2313. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2314. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2315. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  2316. var %fixini 1
  2317. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2318. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2319. inc %fixini
  2320. }
  2321. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2322. window -c @fixini
  2323.  
  2324.  
  2325.  
  2326. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2327.  
  2328. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2329. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2330.  
  2331. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2332.  
  2333.  
  2334.  
  2335. }
  2336. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%file_verify == %file_verify2) && (%read_text3 == $null) && (%subcheck >= 1) {
  2337.  
  2338.  
  2339.  
  2340. window -a @fixini
  2341. var %fix 1
  2342. loadbuf -rt @fixini %file_Search4
  2343. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2344. remini %file_search4 Names
  2345. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2346. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2347. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2348. writeini -n %file_search4 Names 2 %hoa
  2349. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2350. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2351. inc %fix
  2352. }
  2353. window -c @fixini
  2354. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2355. inc %nicknameID 1
  2356.  
  2357.  
  2358. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2359. window -a @fixini
  2360. loadbuf -rt @fixini %file_Search3
  2361. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2362. remini %file_search3 Songs
  2363. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2364. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2365. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2366. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  2367. var %fixini 1
  2368. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2369. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2370. inc %fixini
  2371. }
  2372. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2373. window -c @fixini
  2374. inc %newsongsID 1
  2375.  
  2376.  
  2377.  
  2378. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2379.  
  2380. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2381. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2382.  
  2383. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2384.  
  2385.  
  2386.  
  2387. }
  2388. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%read_text3 != $null) && (%subcheck >= 1) {
  2389.  
  2390. var %i 1
  2391. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2392. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2393. inc %i
  2394. }
  2395. var %q 1
  2396. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2397. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2398. remini -n %file_search3 Songs %q
  2399. remini -n %file_search4 Names %q
  2400. }
  2401. inc %q
  2402. }
  2403. window -a @fixini
  2404. var %fix 1
  2405. loadbuf -rt @fixini %file_Search4
  2406. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2407. remini %file_search4 Names
  2408. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2409. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2410. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  2411. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2412. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2413. writeini -n %file_search4 Names 3 %hoa
  2414. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2415. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2416. inc %fix
  2417. }
  2418. window -c @fixini
  2419. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2420.  
  2421.  
  2422. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2423. window -a @fixini
  2424. loadbuf -rt @fixini %file_Search3
  2425. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2426. remini %file_search3 Songs
  2427. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2428. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2429. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  2430. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2431. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2432. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  2433. var %fixini 1
  2434. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2435. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2436. inc %fixini
  2437. }
  2438. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2439. window -c @fixini
  2440.  
  2441.  
  2442.  
  2443. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2444.  
  2445. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2446. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2447.  
  2448. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2449.  
  2450.  
  2451.  
  2452. }
  2453. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%read_text3 == $null) && (%subcheck >= 1) {
  2454.  
  2455.  
  2456. window -a @fixini
  2457. var %fix 1
  2458. loadbuf -rt @fixini %file_Search4
  2459. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2460. remini %file_search4 Names
  2461. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2462. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2463. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  2464. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2465. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2466. writeini -n %file_search4 Names 3 %hoa
  2467. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2468. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2469. inc %fix
  2470. }
  2471. inc %nicknameID 1
  2472. window -c @fixini
  2473. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2474.  
  2475.  
  2476. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2477. window -a @fixini
  2478. loadbuf -rt @fixini %file_Search3
  2479. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2480. remini %file_search3 Songs
  2481. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2482. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2483. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  2484. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2485. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2486. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  2487. var %fixini 1
  2488. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2489. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2490. inc %fixini
  2491. }
  2492. inc %newsongsID 1
  2493. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2494. window -c @fixini
  2495.  
  2496.  
  2497.  
  2498. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2499.  
  2500. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2501. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2502.  
  2503. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2504.  
  2505.  
  2506. }
  2507. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%file_verify == %file_verify2) && (%read_text3 != $null) && (%subcheck >= 1) {
  2508.  
  2509. var %i 1
  2510. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2511. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2512. inc %i
  2513. }
  2514. var %q 1
  2515. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2516. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2517. remini -n %file_search3 Songs %q
  2518. remini -n %file_search4 Names %q
  2519. }
  2520. inc %q
  2521. }
  2522. window -a @fixini
  2523. var %fix 1
  2524. loadbuf -rt @fixini %file_Search4
  2525. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2526. remini %file_search4 Names
  2527. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2528. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2529. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  2530. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2531. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2532. writeini -n %file_search4 Names 3 %hoa
  2533. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2534. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2535. inc %fix
  2536. }
  2537. window -c @fixini
  2538. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2539.  
  2540.  
  2541. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2542. window -a @fixini
  2543. loadbuf -rt @fixini %file_Search3
  2544. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2545. remini %file_search3 Songs
  2546. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2547. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2548. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  2549. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2550. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2551. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  2552. var %fixini 1
  2553. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2554. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2555. inc %fixini
  2556. }
  2557. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2558. window -c @fixini
  2559.  
  2560.  
  2561.  
  2562. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2563.  
  2564. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2565. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2566.  
  2567. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2568.  
  2569.  
  2570.  
  2571. }
  2572. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%file_verify == %file_verify2) && (%read_text3 == $null) && (%subcheck >= 1) {
  2573.  
  2574.  
  2575. window -a @fixini
  2576. var %fix 1
  2577. loadbuf -rt @fixini %file_Search4
  2578. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2579. remini %file_search4 Names
  2580. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2581. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2582. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  2583. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2584. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2585. writeini -n %file_search4 Names 3 %hoa
  2586. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2587. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2588. inc %fix
  2589. }
  2590. window -c @fixini
  2591. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2592. inc %nicknameID 1
  2593.  
  2594.  
  2595. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2596. window -a @fixini
  2597. loadbuf -rt @fixini %file_Search3
  2598. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2599. remini %file_search3 Songs
  2600. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2601. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2602. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  2603. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2604. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2605. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  2606. var %fixini 1
  2607. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2608. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2609. inc %fixini
  2610. }
  2611. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2612. window -c @fixini
  2613. inc %newsongsID 1
  2614.  
  2615.  
  2616.  
  2617. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2618.  
  2619. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2620. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2621.  
  2622. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2623.  
  2624.  
  2625. }
  2626. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%read_text3 != $null) && (%subcheck >= 1) {
  2627.  
  2628. var %i 1
  2629. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2630. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2631. inc %i
  2632. }
  2633. var %q 1
  2634. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2635. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2636. remini -n %file_search3 Songs %q
  2637. remini -n %file_search4 Names %q
  2638. }
  2639. inc %q
  2640. }
  2641. window -a @fixini
  2642. var %fix 1
  2643. loadbuf -rt @fixini %file_Search4
  2644. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2645. remini %file_search4 Names
  2646. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2647. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2648. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  2649. writeini -n %file_search4 Names 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,3),2,61)
  2650. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2651. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2652. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2653. writeini -n %file_search4 Names 4 %hoa
  2654. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2655. writeini -n %file_search4 names $calc(%fix + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2656. inc %fix
  2657. }
  2658. window -c @fixini
  2659. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2660.  
  2661.  
  2662. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2663. window -a @fixini
  2664. loadbuf -rt @fixini %file_Search3
  2665. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2666. remini %file_search3 Songs
  2667. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2668. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2669. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  2670. writeini -n %file_search3 Songs 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,3),2,61)
  2671. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2672. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2673. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2674. writeini -n %file_search3 Songs 4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  2675. var %fixini 1
  2676. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2677. writeini -n %file_search3 Songs $calc(%fixini + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2678. inc %fixini
  2679. }
  2680. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2681. window -c @fixini
  2682.  
  2683.  
  2684.  
  2685. write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2686.  
  2687. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2688. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2689.  
  2690. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2691.  
  2692.  
  2693. }
  2694. elseif ($1 == %command) && ($timer(%songnick) == $null) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%read_text3 == $null) && (%subcheck >= 1) {
  2695.  
  2696.  
  2697. window -a @fixini
  2698. var %fix 1
  2699. loadbuf -rt @fixini %file_Search4
  2700. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2701. remini %file_search4 Names
  2702. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2703. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2704. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  2705. writeini -n %file_search4 Names 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,3),2,61)
  2706. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2707. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2708. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2709. writeini -n %file_search4 Names 4 %hoa
  2710. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2711. writeini -n %file_search4 names $calc(%fix + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2712. inc %fix
  2713. }
  2714. window -c @fixini
  2715. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2716. inc %nicknameID 1
  2717.  
  2718.  
  2719. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2720. window -a @fixini
  2721. loadbuf -rt @fixini %file_Search3
  2722. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2723. remini %file_search3 Songs
  2724. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2725. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2726. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  2727. writeini -n %file_search3 Songs 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,3),2,61)
  2728. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2729. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2730. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2731. writeini -n %file_search3 Songs 4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  2732. var %fixini 1
  2733. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2734. writeini -n %file_search3 Songs $calc(%fixini + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2735. inc %fixini
  2736. }
  2737. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2738. window -c @fixini
  2739. inc %newsongsID 1
  2740.  
  2741.  
  2742.  
  2743. write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2744.  
  2745. writeini -n %subfile $findsub($nick) songsleft %songsleftcheck
  2746. msg $chan $nick %songID has been added to the instant queue! You have %songsleftcheck free instant requests left!
  2747.  
  2748. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list! Remember you have %songsleftcheck free instant requests remaining!
  2749.  
  2750.  
  2751. }
  2752.  
  2753. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && (%read_text3 != $null) && ($nick == %IDexist) {
  2754.  
  2755. var %i 1
  2756. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2757. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2758. inc %i
  2759. }
  2760. var %q 1
  2761. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2762. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2763. remini -n %file_search3 Songs %q
  2764. remini -n %file_search4 Names %q
  2765. }
  2766. inc %q
  2767. }
  2768. window -a @fixini
  2769. var %fix 1
  2770. loadbuf -rt @fixini %file_Search4
  2771. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2772. remini %file_search4 Names
  2773. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2774. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2775. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2776. writeini -n %file_search4 Names 2 %hoa
  2777. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2778. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2779. inc %fix
  2780. }
  2781. window -c @fixini
  2782. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2783.  
  2784.  
  2785. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2786. window -a @fixini
  2787. loadbuf -rt @fixini %file_Search3
  2788. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2789. remini %file_search3 Songs
  2790. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2791. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2792. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2793. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2794. var %fixini 1
  2795. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2796. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2797. inc %fixini
  2798. }
  2799. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2800. window -c @fixini
  2801.  
  2802. writeini -n %pointsfile $findIDID($nick) points %newPoints2
  2803. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2804.  
  2805.  
  2806. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  2807.  
  2808. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  2809. }
  2810. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && (%read_text3 == $null) && ($nick == %IDexist) {
  2811.  
  2812. window -a @fixini
  2813. var %fix 1
  2814. loadbuf -rt @fixini %file_Search4
  2815. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2816. remini %file_search4 Names
  2817. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2818. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2819. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2820. writeini -n %file_search4 Names 2 %hoa
  2821. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2822. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2823. inc %fix
  2824. }
  2825. inc %nicknameID 1
  2826. window -c @fixini
  2827. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2828.  
  2829.  
  2830. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2831. window -a @fixini
  2832. loadbuf -rt @fixini %file_Search3
  2833. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2834. remini %file_search3 Songs
  2835. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2836. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2837. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2838. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2839. var %fixini 1
  2840. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2841. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2842. inc %fixini
  2843. }
  2844. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2845. window -c @fixini
  2846. inc %newsongsID 1
  2847.  
  2848. writeini -n %pointsfile $findIDID($nick) points %newPoints2
  2849. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2850.  
  2851.  
  2852. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  2853.  
  2854. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  2855. }
  2856. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && (%read_text3 != $null) {
  2857.  
  2858. var %i 1
  2859. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2860. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2861. inc %i
  2862. }
  2863. var %q 1
  2864. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2865. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2866. remini -n %file_search3 Songs %q
  2867. remini -n %file_search4 Names %q
  2868. }
  2869. inc %q
  2870. }
  2871. window -a @fixini
  2872. var %fix 1
  2873. loadbuf -rt @fixini %file_Search4
  2874. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2875. remini %file_search4 Names
  2876. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2877. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2878. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2879. writeini -n %file_search4 Names 2 %hoa
  2880. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2881. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2882. inc %fix
  2883. }
  2884. window -c @fixini
  2885. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2886.  
  2887.  
  2888. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2889. window -a @fixini
  2890. loadbuf -rt @fixini %file_Search3
  2891. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2892. remini %file_search3 Songs
  2893. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2894. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2895. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2896. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2897. var %fixini 1
  2898. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2899. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2900. inc %fixini
  2901. }
  2902. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2903. window -c @fixini
  2904.  
  2905. writeini -n %pointsfile $findIDID($nick) points %newPoints
  2906. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2907.  
  2908. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  2909.  
  2910. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  2911. }
  2912. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 0) && (%read_text3 == $null) {
  2913.  
  2914.  
  2915. window -a @fixini
  2916. var %fix 1
  2917. loadbuf -rt @fixini %file_Search4
  2918. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2919. remini %file_search4 Names
  2920. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2921. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2922. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2923. writeini -n %file_search4 Names 2 %hoa
  2924. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2925. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2926. inc %fix
  2927. }
  2928. inc %nicknameID 1
  2929. window -c @fixini
  2930. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2931.  
  2932.  
  2933. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2934. window -a @fixini
  2935. loadbuf -rt @fixini %file_Search3
  2936. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2937. remini %file_search3 Songs
  2938. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2939. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2940. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2941. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,1)
  2942. var %fixini 1
  2943. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  2944. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  2945. inc %fixini
  2946. }
  2947. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  2948. window -c @fixini
  2949. inc %newsongsID 1
  2950.  
  2951. writeini -n %pointsfile $findIDID($nick) points %newPoints
  2952. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  2953.  
  2954.  
  2955. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  2956.  
  2957. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  2958.  
  2959. }
  2960. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%file_verify == %file_verify2) && (%read_text3 != $null) && ($nick == %IDexist) {
  2961.  
  2962. var %i 1
  2963. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  2964. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  2965. inc %i
  2966. }
  2967. var %q 1
  2968. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  2969. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  2970. remini -n %file_search3 Songs %q
  2971. remini -n %file_search4 Names %q
  2972. }
  2973. inc %q
  2974. }
  2975. window -a @fixini
  2976. var %fix 1
  2977. loadbuf -rt @fixini %file_Search4
  2978. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  2979. remini %file_search4 Names
  2980. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2981. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  2982. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  2983. writeini -n %file_search4 Names 2 %hoa
  2984. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  2985. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  2986. inc %fix
  2987. }
  2988. window -c @fixini
  2989. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  2990.  
  2991.  
  2992. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  2993. window -a @fixini
  2994. loadbuf -rt @fixini %file_Search3
  2995. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  2996. remini %file_search3 Songs
  2997. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  2998. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  2999. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3000. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3001. var %fixini 1
  3002. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3003. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3004. inc %fixini
  3005. }
  3006. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3007. window -c @fixini
  3008.  
  3009.  
  3010.  
  3011. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3012. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3013.  
  3014. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3015.  
  3016. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3017.  
  3018. }
  3019. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%file_verify == %file_verify2) && (%read_text3 == $null) && ($nick == %IDexist) {
  3020.  
  3021. window -a @fixini
  3022. var %fix 1
  3023. loadbuf -rt @fixini %file_Search4
  3024. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3025. remini %file_search4 Names
  3026. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3027. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3028. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3029. writeini -n %file_search4 Names 2 %hoa
  3030. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3031. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3032. inc %fix
  3033. }
  3034. window -c @fixini
  3035. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3036. inc %nicknameID 1
  3037.  
  3038.  
  3039. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3040. window -a @fixini
  3041. loadbuf -rt @fixini %file_Search3
  3042. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3043. remini %file_search3 Songs
  3044. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3045. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3046. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3047. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3048. var %fixini 1
  3049. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3050. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3051. inc %fixini
  3052. }
  3053. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3054. window -c @fixini
  3055. inc %newsongsID 1
  3056.  
  3057.  
  3058. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3059. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3060.  
  3061. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3062.  
  3063. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3064.  
  3065. }
  3066.  
  3067. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%read_text3 != $null) && ($nick == %IDexist) {
  3068.  
  3069. var %i 1
  3070. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3071. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3072. inc %i
  3073. }
  3074. var %q 1
  3075. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3076. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3077. remini -n %file_search3 Songs %q
  3078. remini -n %file_search4 Names %q
  3079. }
  3080. inc %q
  3081. }
  3082. window -a @fixini
  3083. var %fix 1
  3084. loadbuf -rt @fixini %file_Search4
  3085. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3086. remini %file_search4 Names
  3087. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3088. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3089. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3090. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3091. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3092. writeini -n %file_search4 Names 3 %hoa
  3093. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3094. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3095. inc %fix
  3096. }
  3097. window -c @fixini
  3098. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3099.  
  3100.  
  3101. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3102. window -a @fixini
  3103. loadbuf -rt @fixini %file_Search3
  3104. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3105. remini %file_search3 Songs
  3106. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3107. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3108. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3109. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3110. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3111. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3112. var %fixini 1
  3113. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3114. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3115. inc %fixini
  3116. }
  3117. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3118. window -c @fixini
  3119.  
  3120.  
  3121.  
  3122. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3123. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3124.  
  3125. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3126.  
  3127. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3128. }
  3129. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%read_text3 == $null) && ($nick == %IDexist) {
  3130.  
  3131. window -a @fixini
  3132. var %fix 1
  3133. loadbuf -rt @fixini %file_Search4
  3134. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3135. remini %file_search4 Names
  3136. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3137. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3138. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3139. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3140. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3141. writeini -n %file_search4 Names 3 %hoa
  3142. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3143. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3144. inc %fix
  3145. }
  3146. inc %nicknameID 1
  3147. window -c @fixini
  3148. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3149.  
  3150.  
  3151. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3152. window -a @fixini
  3153. loadbuf -rt @fixini %file_Search3
  3154. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3155. remini %file_search3 Songs
  3156. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3157. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3158. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3159. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3160. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3161. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3162. var %fixini 1
  3163. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3164. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3165. inc %fixini
  3166. }
  3167. inc %newsongsID 1
  3168. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3169. window -c @fixini
  3170.  
  3171.  
  3172.  
  3173. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3174. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3175.  
  3176. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3177.  
  3178. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3179. }
  3180. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%file_verify == %file_verify2) && (%read_text3 != $null) {
  3181.  
  3182. var %i 1
  3183. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3184. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3185. inc %i
  3186. }
  3187. var %q 1
  3188. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3189. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3190. remini -n %file_search3 Songs %q
  3191. remini -n %file_search4 Names %q
  3192. }
  3193. inc %q
  3194. }
  3195. window -a @fixini
  3196. var %fix 1
  3197. loadbuf -rt @fixini %file_Search4
  3198. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3199. remini %file_search4 Names
  3200. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3201. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3202. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3203. writeini -n %file_search4 Names 2 %hoa
  3204. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3205. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3206. inc %fix
  3207. }
  3208. window -c @fixini
  3209. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3210.  
  3211.  
  3212. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3213. window -a @fixini
  3214. loadbuf -rt @fixini %file_Search3
  3215. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3216. remini %file_search3 Songs
  3217. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3218. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3219. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3220. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3221. var %fixini 1
  3222. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3223. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3224. inc %fixini
  3225. }
  3226. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3227. window -c @fixini
  3228.  
  3229.  
  3230.  
  3231. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3232. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3233. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3234.  
  3235. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3236.  
  3237. }
  3238. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%file_verify == %file_verify2) && (%read_text3 == $null) {
  3239.  
  3240. window -a @fixini
  3241. var %fix 1
  3242. loadbuf -rt @fixini %file_Search4
  3243. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3244. remini %file_search4 Names
  3245. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3246. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3247. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3248. writeini -n %file_search4 Names 2 %hoa
  3249. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3250. writeini -n %file_search4 names $calc(%fix + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3251. inc %fix
  3252. }
  3253. window -c @fixini
  3254. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3255. inc %nicknameID 1
  3256.  
  3257.  
  3258. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3259. window -a @fixini
  3260. loadbuf -rt @fixini %file_Search3
  3261. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3262. remini %file_search3 Songs
  3263. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3264. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3265. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3266. writeini -n %file_search3 Songs 2 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3267. var %fixini 1
  3268. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3269. writeini -n %file_search3 Songs $calc(%fixini + 2) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3270. inc %fixini
  3271. }
  3272. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3273. window -c @fixini
  3274. inc %newsongsID 1
  3275.  
  3276.  
  3277. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3278. write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3279. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3280.  
  3281. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3282.  
  3283.  
  3284. }
  3285. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%read_text3 != $null) {
  3286.  
  3287. var %i 1
  3288. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3289. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3290. inc %i
  3291. }
  3292. var %q 1
  3293. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3294. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3295. remini -n %file_search3 Songs %q
  3296. remini -n %file_search4 Names %q
  3297. }
  3298. inc %q
  3299. }
  3300. window -a @fixini
  3301. var %fix 1
  3302. loadbuf -rt @fixini %file_Search4
  3303. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3304. remini %file_search4 Names
  3305. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3306. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3307. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3308. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3309. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3310. writeini -n %file_search4 Names 3 %hoa
  3311. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3312. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3313. inc %fix
  3314. }
  3315. window -c @fixini
  3316. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3317.  
  3318.  
  3319. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3320. window -a @fixini
  3321. loadbuf -rt @fixini %file_Search3
  3322. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3323. remini %file_search3 Songs
  3324. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3325. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3326. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3327. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3328. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3329. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3330. var %fixini 1
  3331. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3332. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3333. inc %fixini
  3334. }
  3335. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3336. window -c @fixini
  3337.  
  3338.  
  3339.  
  3340. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3341. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3342.  
  3343. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3344.  
  3345. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3346. }
  3347. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 1) && (%read_text3 == $null) {
  3348.  
  3349. window -a @fixini
  3350. var %fix 1
  3351. loadbuf -rt @fixini %file_Search4
  3352. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3353. remini %file_search4 Names
  3354. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3355. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3356. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3357. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3358. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3359. writeini -n %file_search4 Names 3 %hoa
  3360. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3361. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3362. inc %fix
  3363. }
  3364. inc %nicknameID 1
  3365. window -c @fixini
  3366. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3367.  
  3368.  
  3369. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3370. window -a @fixini
  3371. loadbuf -rt @fixini %file_Search3
  3372. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3373. remini %file_search3 Songs
  3374. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3375. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3376. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3377. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3378. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3379. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,2)
  3380. var %fixini 1
  3381. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3382. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3383. inc %fixini
  3384. }
  3385. inc %newsongsID 1
  3386. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3387. window -c @fixini
  3388.  
  3389.  
  3390. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3391. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3392.  
  3393.  
  3394. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3395.  
  3396. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3397. }
  3398. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%file_verify == %file_verify2) && (%read_text3 != $null) && ($nick == %IDexist) {
  3399.  
  3400. var %i 1
  3401. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3402. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3403. inc %i
  3404. }
  3405. var %q 1
  3406. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3407. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3408. remini -n %file_search3 Songs %q
  3409. remini -n %file_search4 Names %q
  3410. }
  3411. inc %q
  3412. }
  3413. window -a @fixini
  3414. var %fix 1
  3415. loadbuf -rt @fixini %file_Search4
  3416. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3417. remini %file_search4 Names
  3418. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3419. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3420. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3421. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3422. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3423. writeini -n %file_search4 Names 3 %hoa
  3424. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3425. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3426. inc %fix
  3427. }
  3428. window -c @fixini
  3429. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3430.  
  3431.  
  3432. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3433. window -a @fixini
  3434. loadbuf -rt @fixini %file_Search3
  3435. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3436. remini %file_search3 Songs
  3437. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3438. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3439. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3440. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3441. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3442. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3443. var %fixini 1
  3444. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3445. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3446. inc %fixini
  3447. }
  3448. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3449. window -c @fixini
  3450.  
  3451.  
  3452.  
  3453. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3454. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3455. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3456.  
  3457. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3458.  
  3459. }
  3460. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%file_verify == %file_verify2) && (%read_text3 == $null) && ($nick == %IDexist) {
  3461.  
  3462. window -a @fixini
  3463. var %fix 1
  3464. loadbuf -rt @fixini %file_Search4
  3465. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3466. remini %file_search4 Names
  3467. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3468. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3469. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3470. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3471. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3472. writeini -n %file_search4 Names 3 %hoa
  3473. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3474. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3475. inc %fix
  3476. }
  3477. window -c @fixini
  3478. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3479. inc %nicknameID 1
  3480.  
  3481.  
  3482. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3483. window -a @fixini
  3484. loadbuf -rt @fixini %file_Search3
  3485. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3486. remini %file_search3 Songs
  3487. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3488. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3489. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3490. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3491. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3492. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3493. var %fixini 1
  3494. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3495. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3496. inc %fixini
  3497. }
  3498. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3499. window -c @fixini
  3500. inc %newsongsID 1
  3501.  
  3502.  
  3503. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3504. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3505. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3506.  
  3507. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3508.  
  3509.  
  3510. }
  3511. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%read_text3 != $null) && ($nick == %IDexist) {
  3512.  
  3513. var %i 1
  3514. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3515. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3516. inc %i
  3517. }
  3518. var %q 1
  3519. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3520. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3521. remini -n %file_search3 Songs %q
  3522. remini -n %file_search4 Names %q
  3523. }
  3524. inc %q
  3525. }
  3526. window -a @fixini
  3527. var %fix 1
  3528. loadbuf -rt @fixini %file_Search4
  3529. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3530. remini %file_search4 Names
  3531. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3532. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3533. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3534. writeini -n %file_search4 Names 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,3),2,61)
  3535. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3536. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3537. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3538. writeini -n %file_search4 Names 4 %hoa
  3539. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3540. writeini -n %file_search4 names $calc(%fix + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3541. inc %fix
  3542. }
  3543. window -c @fixini
  3544. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3545.  
  3546.  
  3547. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3548. window -a @fixini
  3549. loadbuf -rt @fixini %file_Search3
  3550. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3551. remini %file_search3 Songs
  3552. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3553. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3554. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3555. writeini -n %file_search3 Songs 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,3),2,61)
  3556. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3557. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3558. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3559. writeini -n %file_search3 Songs 4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3560. var %fixini 1
  3561. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3562. writeini -n %file_search3 Songs $calc(%fixini + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3563. inc %fixini
  3564. }
  3565. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3566. window -c @fixini
  3567.  
  3568.  
  3569. writeini -n %pointsfile $findIDID($nick) points %newPoints2
  3570. write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3571.  
  3572.  
  3573. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3574.  
  3575. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3576. }
  3577. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 7500) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%read_text3 == $null) && ($nick == %IDexist) {
  3578.  
  3579.  
  3580. window -a @fixini
  3581. var %fix 1
  3582. loadbuf -rt @fixini %file_Search4
  3583. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3584. remini %file_search4 Names
  3585. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3586. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3587. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3588. writeini -n %file_search4 Names 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,3),2,61)
  3589. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3590. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3591. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3592. writeini -n %file_search4 Names 4 %hoa
  3593. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3594. writeini -n %file_search4 names $calc(%fix + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3595. inc %fix
  3596. }
  3597. window -c @fixini
  3598. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3599. inc %nicknameID 1
  3600.  
  3601.  
  3602. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3603. window -a @fixini
  3604. loadbuf -rt @fixini %file_Search3
  3605. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3606. remini %file_search3 Songs
  3607. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3608. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3609. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3610. writeini -n %file_search3 Songs 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,3),2,61)
  3611. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3612. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3613. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3614. writeini -n %file_search3 Songs 4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3615. var %fixini 1
  3616. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3617. writeini -n %file_search3 Songs $calc(%fixini + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3618. inc %fixini
  3619. }
  3620. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3621. window -c @fixini
  3622. inc %newsongsID 1
  3623.  
  3624.  
  3625. writeini -n %pointsfile $findIDID($nick) points %newPoints2
  3626. write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3627.  
  3628.  
  3629. msg $chan $nick %songID has been added to the instant queue! Also, due to you being a member of the Hall Of Awesome, you only have to wait an hour instead of two, and this will only cost you 7,500 bcoins :)
  3630.  
  3631. TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 7,500 bcoins! :)
  3632. }
  3633. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%file_verify == %file_verify2) && (%read_text3 != $null) {
  3634.  
  3635. var %i 1
  3636. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3637. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3638. inc %i
  3639. }
  3640. var %q 1
  3641. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3642. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3643. remini -n %file_search3 Songs %q
  3644. remini -n %file_search4 Names %q
  3645. }
  3646. inc %q
  3647. }
  3648. window -a @fixini
  3649. var %fix 1
  3650. loadbuf -rt @fixini %file_Search4
  3651. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3652. remini %file_search4 Names
  3653. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3654. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3655. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3656. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3657. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3658. writeini -n %file_search4 Names 3 %hoa
  3659. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3660. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3661. inc %fix
  3662. }
  3663. window -c @fixini
  3664. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3665.  
  3666.  
  3667. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3668. window -a @fixini
  3669. loadbuf -rt @fixini %file_Search3
  3670. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3671. remini %file_search3 Songs
  3672. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3673. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3674. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3675. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3676. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3677. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3678. var %fixini 1
  3679. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3680. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3681. inc %fixini
  3682. }
  3683. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3684. window -c @fixini
  3685.  
  3686.  
  3687.  
  3688. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3689. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3690.  
  3691. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3692.  
  3693. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3694.  
  3695. }
  3696. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%file_verify == %file_verify2) && (%read_text3 == $null) {
  3697.  
  3698. window -a @fixini
  3699. var %fix 1
  3700. loadbuf -rt @fixini %file_Search4
  3701. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3702. remini %file_search4 Names
  3703. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3704. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3705. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3706. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3707. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3708. writeini -n %file_search4 Names 3 %hoa
  3709. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3710. writeini -n %file_search4 names $calc(%fix + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3711. inc %fix
  3712. }
  3713. window -c @fixini
  3714. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3715. inc %nicknameID 1
  3716.  
  3717.  
  3718. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3719. window -a @fixini
  3720. loadbuf -rt @fixini %file_Search3
  3721. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3722. remini %file_search3 Songs
  3723. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3724. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3725. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3726. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3727. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3728. writeini -n %file_search3 Songs 3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3729. var %fixini 1
  3730. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3731. writeini -n %file_search3 Songs $calc(%fixini + 3) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3732. inc %fixini
  3733. }
  3734. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3735. window -c @fixini
  3736. inc %newsongsID 1
  3737.  
  3738.  
  3739. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3740. write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3741.  
  3742. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3743.  
  3744. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3745. }
  3746. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%read_text3 != $null) {
  3747.  
  3748. var %i 1
  3749. while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  3750. if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
  3751. inc %i
  3752. }
  3753. var %q 1
  3754. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%q) {
  3755. if ($readini(%file_search3,Songs,%q) == %songstring2) {
  3756. remini -n %file_search3 Songs %q
  3757. remini -n %file_search4 Names %q
  3758. }
  3759. inc %q
  3760. }
  3761. window -a @fixini
  3762. var %fix 1
  3763. loadbuf -rt @fixini %file_Search4
  3764. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3765. remini %file_search4 Names
  3766. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3767. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3768. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3769. writeini -n %file_search4 Names 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,3),2,61)
  3770. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3771. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3772. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3773. writeini -n %file_search4 Names 4 %hoa
  3774. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3775. writeini -n %file_search4 names $calc(%fix + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3776. inc %fix
  3777. }
  3778. window -c @fixini
  3779. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3780.  
  3781.  
  3782. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3783. window -a @fixini
  3784. loadbuf -rt @fixini %file_Search3
  3785. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3786. remini %file_search3 Songs
  3787. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3788. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3789. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3790. writeini -n %file_search3 Songs 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,3),2,61)
  3791. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3792. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3793. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3794. writeini -n %file_search3 Songs 4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3795. var %fixini 1
  3796. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3797. writeini -n %file_search3 Songs $calc(%fixini + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3798. inc %fixini
  3799. }
  3800. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3801. window -c @fixini
  3802.  
  3803.  
  3804. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3805. write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3806.  
  3807. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3808.  
  3809. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3810. }
  3811. elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt) == 2) && (%read_text3 == $null) {
  3812.  
  3813.  
  3814. window -a @fixini
  3815. var %fix 1
  3816. loadbuf -rt @fixini %file_Search4
  3817. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  3818. remini %file_search4 Names
  3819. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3820. writeini -n %file_search4 Names 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,1),2,61)
  3821. writeini -n %file_search4 Names 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,2),2,61)
  3822. writeini -n %file_search4 Names 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,3),2,61)
  3823. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3824. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3825. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  3826. writeini -n %file_search4 Names 4 %hoa
  3827. while (%fix <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  3828. writeini -n %file_search4 names $calc(%fix + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fix),2,61)
  3829. inc %fix
  3830. }
  3831. window -c @fixini
  3832. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  3833. inc %nicknameID 1
  3834.  
  3835.  
  3836. write C:\Users\Brad\Desktop\Songlist\instantqueue2.txt %text %ident %songID
  3837. window -a @fixini
  3838. loadbuf -rt @fixini %file_Search3
  3839. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  3840. remini %file_search3 Songs
  3841. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3842. writeini -n %file_search3 Songs 1 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,1),2,61)
  3843. writeini -n %file_search3 Songs 2 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,2),2,61)
  3844. writeini -n %file_search3 Songs 3 $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,3),2,61)
  3845. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3846. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3847. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  3848. writeini -n %file_search3 Songs 4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue2.txt,n,3)
  3849. var %fixini 1
  3850. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  3851. writeini -n %file_search3 Songs $calc(%fixini + 4) $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  3852. inc %fixini
  3853. }
  3854. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  3855. window -c @fixini
  3856. inc %newsongsID 1
  3857.  
  3858.  
  3859. writeini -n %pointsfile $findIDID($nick) points %newPoints
  3860. write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
  3861.  
  3862.  
  3863. msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
  3864.  
  3865. TIMER [ $+ [ %songnick ] ] 1 7200 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
  3866. }
  3867. elseif ($1 == %command) && (%currentpoints < 7500) && ($nick == %IDexist) {
  3868. msg $chan You don't have enough bcoins to add a song to the instant songlist! Since you're a member of the Hall of Awesome, you only need to have 7,500 bcoins. You currently need %pointsneeded2 bcoins.
  3869. }
  3870. elseif ($1 == %command) && (%currentpoints < 15000) {
  3871. msg $chan You don't have enough bcoins to add a song to the instant songlist! You currently need %pointsneeded bcoins.
  3872. }
  3873. elseif ($1 != %command) {
  3874. msg $chan That isn't formatted correctly! Make sure to format the command as !is [x] where [x] is the number of the song you want played.
  3875. }
  3876. else {
  3877. msg $chan you must wait $timer(%songnick).secs seconds before adding another song to the top of the list!
  3878. }
  3879. }
  3880.  
  3881.  
  3882. // ------------------------------------------------------------------------------------------------------------------------
  3883. alias -l findID {
  3884. var %file = $1
  3885. var %ID = $2
  3886. var %user = $3
  3887. var %i = 1
  3888. while (%i <= %ID) {
  3889. if ($readini(%file, %i, name) == %user) {
  3890. return %i
  3891. }
  3892. inc %i
  3893. }
  3894. return 0
  3895. }
  3896.  
  3897.  
  3898. alias -l findIDID {
  3899. var %searchName = $1
  3900. var %i = 1
  3901.  
  3902. while (%i <= %pointsID) {
  3903. var %name = $readini(%pointsfile, %i, name)
  3904. if (%name == %searchName) {
  3905. return %i
  3906. }
  3907. inc %i
  3908. }
  3909.  
  3910. return 0
  3911. }
  3912. alias -l findmename3 {
  3913. var %searchName = %findmename2
  3914. var %i = 1
  3915.  
  3916. while (%i <= %pointsID) {
  3917. var %name = $readini(%pointsfile, %i, name)
  3918. if (%name == %searchName) {
  3919. return %i
  3920. }
  3921. inc %i
  3922. }
  3923.  
  3924. return 0
  3925. }
  3926. alias -l findmename4 {
  3927. var %searchName = %findmename2
  3928. var %i = 1
  3929.  
  3930. while (%i <= %pointsID2) {
  3931. var %name = $readini(%pointsfile2, %i, name)
  3932. if (%name == %searchName) {
  3933. return %i
  3934. }
  3935. inc %i
  3936. }
  3937.  
  3938. return 0
  3939. }
  3940. alias -l findIDIDID {
  3941. var %searchName = $nick
  3942. var %i = 1
  3943.  
  3944. while (%i <= %HallofawesomeID) {
  3945. var %name = $readini(%Hallofawesome, %i, name)
  3946. if (%name == %searchName) {
  3947. return %i
  3948. }
  3949. inc %i
  3950. }
  3951.  
  3952. return 0
  3953. }
  3954. alias -l findIDIDIDID {
  3955. var %file = $1
  3956. var %ID = $2
  3957. var %user = $3
  3958. var %i = 1
  3959. while (%i <= %ID) {
  3960. if ($readini(%file, %i, name) == %user) {
  3961. return %i
  3962. }
  3963. inc %i
  3964. }
  3965. return 0
  3966. }
  3967. alias -l findIDIDIDIDID {
  3968. var %searchName = $1
  3969. var %i = 1
  3970.  
  3971. while (%i <= %pointsID2) {
  3972. var %name = $readini(%pointsfile2, %i, name)
  3973. if (%name == %searchName) {
  3974. return %i
  3975. }
  3976. inc %i
  3977. }
  3978.  
  3979. return 0
  3980. }
  3981. alias -l findcoins {
  3982. var %searchName = $nick
  3983. var %i = 1
  3984.  
  3985. while (%i <= %megaID) {
  3986. var %name = $readini(%megacoins, %i, name)
  3987. if (%name == %searchName) {
  3988. return %i
  3989. }
  3990. inc %i
  3991. }
  3992.  
  3993. return 0
  3994. }
  3995. alias -l findcoins {
  3996. var %searchName = $nick
  3997. var %i = 1
  3998.  
  3999. while (%i <= %megaID) {
  4000. var %name = $readini(%megacoins, %i, name)
  4001. if (%name == %searchName) {
  4002. return %i
  4003. }
  4004. inc %i
  4005. }
  4006.  
  4007. return 0
  4008. }
  4009. alias -l findcoins2 {
  4010. var %searchName = $nick
  4011. var %i = 1
  4012.  
  4013. while (%i <= %megaID2) {
  4014. var %name = $readini(%megacoins2, %i, name)
  4015. if (%name == %searchName) {
  4016. return %i
  4017. }
  4018. inc %i
  4019. }
  4020.  
  4021. return 0
  4022. }
  4023. alias -l findcoins3 {
  4024. var %searchName = $nick
  4025. var %i = 1
  4026.  
  4027. while (%i <= %megaID3) {
  4028. var %name = $readini(%megacoins3, %i, name)
  4029. if (%name == %searchName) {
  4030. return %i
  4031. }
  4032. inc %i
  4033. }
  4034.  
  4035. return 0
  4036. }
  4037. alias -l findcoins4 {
  4038. var %searchName = $nick
  4039. var %i = 1
  4040.  
  4041. while (%i <= %megaID4) {
  4042. var %name = $readini(%megacoins4, %i, name)
  4043. if (%name == %searchName) {
  4044. return %i
  4045. }
  4046. inc %i
  4047. }
  4048.  
  4049. return 0
  4050. }
  4051. alias -l findcoins5 {
  4052. var %searchName = $nick
  4053. var %i = 1
  4054.  
  4055. while (%i <= %megaID5) {
  4056. var %name = $readini(%megacoins5, %i, name)
  4057. if (%name == %searchName) {
  4058. return %i
  4059. }
  4060. inc %i
  4061. }
  4062.  
  4063. return 0
  4064. }
  4065. alias -l findcoins6 {
  4066. var %searchName = $nick
  4067. var %i = 1
  4068.  
  4069. while (%i <= %megaID6) {
  4070. var %name = $readini(%megacoins6, %i, name)
  4071. if (%name == %searchName) {
  4072. return %i
  4073. }
  4074. inc %i
  4075. }
  4076.  
  4077. return 0
  4078. }
  4079. alias -l findallmega {
  4080. var %searchName = $nick
  4081. var %i = 1
  4082.  
  4083. while (%i <= %allmegaID) {
  4084. var %name = $readini(%allmega, %i, name)
  4085. if (%name == %searchName) {
  4086. return %i
  4087. }
  4088. inc %i
  4089. }
  4090.  
  4091. return 0
  4092. }
  4093. alias -l findmename2 {
  4094. var %searchName = %findmename2
  4095. var %i = 1
  4096.  
  4097. while (%i <= %pointsID) {
  4098. var %name = $readini(%pointsfile, %i, name)
  4099. if (%name == %searchName) {
  4100. return %i
  4101. }
  4102. inc %i
  4103. }
  4104.  
  4105. return 0
  4106. }
  4107. alias -l findsub {
  4108. var %searchName = $nick
  4109. var %i = 1
  4110.  
  4111. while (%i <= %subID) {
  4112. var %name = $readini(%subfile, %i, name)
  4113. if (%name == %searchName) {
  4114. return %i
  4115. }
  4116. inc %i
  4117. }
  4118.  
  4119. return 0
  4120. }
  4121. ______________________________________________________________
  4122. on *:LOAD:{
  4123. SET %Winners 0
  4124. SET %Sjackpot 200
  4125. SET %Mjackpot 400
  4126. SET %Ljackpot 600
  4127. SET %MjAckpot 800
  4128. SET %Ujackpot 1000
  4129. SET %jackpot 10000
  4130. SET %symbol.0  4Head 
  4131. SET %symbol.1  EleGiggle 
  4132. SET %symbol.2  PogChamp 
  4133. SET %symbol.3  OSsloth 
  4134. SET %symbol.4  deIlluminati 
  4135. SET %symbol.5  Kappa 
  4136. SET %symbol.8  Apple 
  4137. }
  4138.  
  4139. ON *:UNLOAD:{
  4140. UNSET %jackpot
  4141. UNSET %symbol.*
  4142. }
  4143.  
  4144. on *:TEXT:!slots:#: {
  4145. var %slotsnick $nick
  4146. var %points = $readini(%pointsfile, $findIDID(%slotsnick), points)
  4147. var %ID = $readini(%pointsfile2, $findIDID(%slotsnick), name)
  4148. var %IDexist = $readini(%slotsrecord, $slotsrecord(%slotsnick), name)
  4149.  
  4150. IF (%ID == $null) {
  4151. msg $chan $nick You haven't started earning bcoins in this channel yet! Type in !join to start earning them! :)
  4152.  
  4153. }
  4154. ELSEIF (%points >= 100) && ($nick != %IDexist) {
  4155. writeini -n %slotsrecord $calc(%slotsID + 1) name $nick
  4156. writeini -n %slotsrecord $calc(%slotsID + 1) wins 0
  4157. writeini -n %slotsrecord $calc(%slotsID + 1) bcoinswon 0
  4158. inc %slotsID
  4159.  
  4160. slotsetup
  4161. }
  4162. ELSEIF (%points >= 100) && ($nick == %IDexist) {
  4163.  
  4164. slotsetup
  4165. }
  4166. ELSE {
  4167. msg $chan You don't have enough bcoins to play!
  4168. }
  4169. }
  4170. alias slotsetup {
  4171. SET %chanslot $chan
  4172. SET %nickslot $nick
  4173. var %songnick $+(15436, $nick)
  4174. IF ($timer(%songnick) == $null) {
  4175. TIMER [ $+ [ %songnick ] ] 1 180 msg $chan $nick you may use the slots again!
  4176. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4177. INC %Sjackpot 200
  4178. INC %Mjackpot 200
  4179. INC %Ljackpot 200
  4180. INC %Xjackpot 200
  4181. INC %Ujackpot 200
  4182. INC %Tjackpot 200
  4183. INC %jackpot 700
  4184. var %pointstoplay = 100
  4185. var %bcoinsused = $calc(%currentPoints - %pointstoplay)
  4186.  
  4187. writeini -n %pointsfile $findIDID(%nickslot) points %bcoinsused
  4188.  
  4189. playslot
  4190. }
  4191. ELSE {
  4192. msg $chan %nickslot You have to wait $timer(%songnick).secs seconds before playing again.
  4193.  
  4194. }
  4195. }
  4196.  
  4197. alias playslot {
  4198. SET %col.0 %symbol. [ $+ [ $rand(0,5) ] ]
  4199. SET %col.1 %symbol. [ $+ [ $rand(0,5) ] ]
  4200. SET %col.2 %symbol. [ $+ [ $rand(0,5) ] ]
  4201. SET %col.3 %symbol. [ $+ [ $rand(5,9) ] ]
  4202. var %ID = $findcoins(%megacoinstest, %megaID, $1)
  4203. var %ID2 = $findcoins2(%megacoinstest, %megaID2, $1)
  4204. var %ID3 = $findcoins3(%megacoinstest, %megaID3, $1)
  4205. var %ID4 = $findcoins4(%megacoinstest, %megaID4, $1)
  4206. var %ID5 = $findcoins5(%megacoinstest, %megaID5, $1)
  4207. var %ID6 = $findcoins6(%megacoinstest, %megaID6, $1)
  4208. if ((%col.0 != %symbol.0) && (%col.1 == %symbol.0) && (%col.2 == %symbol.0)) || ((%col.0 != %symbol.1) && (%col.1 == %symbol.1) && (%col.2 == %symbol.1)) || ((%col.0 != %symbol.2) && (%col.1 == %symbol.2) && (%col.2 == %symbol.2)) || ((%col.0 != %symbol.3) && (%col.1 == %symbol.3) && (%col.2 == %symbol.3)) || ((%col.0 != %symbol.4) && (%col.1 == %symbol.4) && (%col.2 == %symbol.4)) || ((%col.0 != %symbol.5) && (%col.1 == %symbol.5) && (%col.2 == %symbol.5)) || ((%col.0 == %symbol.0) && (%col.1 == %symbol.0) && (%col.2 != %symbol.0)) || ((%col.0 == %symbol.1) && (%col.1 == %symbol.1) && (%col.2 != %symbol.1)) || ((%col.0 == %symbol.2) && (%col.1 == %symbol.2) && (%col.2 != %symbol.2)) || ((%col.0 == %symbol.3) && (%col.1 == %symbol.3) && (%col.2 != %symbol.3)) || ((%col.0 == %symbol.4) && (%col.1 == %symbol.4) && (%col.2 != %symbol.4)) || ((%col.0 == %symbol.5) && (%col.1 == %symbol.5) && (%col.2 != %symbol.5)) || ((%col.0 == %symbol.0) && (%col.1 != %symbol.0) && (%col.2 == %symbol.0)) || ((%col.0 == %symbol.1) && (%col.1 != %symbol.1) && (%col.2 == %symbol.1)) || ((%col.0 == %symbol.2) && (%col.1 != %symbol.2) && (%col.2 == %symbol.2)) || ((%col.0 == %symbol.3) && (%col.1 != %symbol.3) && (%col.2 == %symbol.3)) || ((%col.0 == %symbol.4) && (%col.1 != %symbol.4) && (%col.2 == %symbol.4)) || ((%col.0 == %symbol.5) && (%col.1 != %symbol.5) && (%col.2 == %symbol.5)) {
  4209. SET %winlineslot %nickslot just won 2000 bcoins!
  4210. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4211. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4212. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4213. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4214. var %jackpotwon = $calc(%currentPoints + 500)
  4215. var %jackpotwon2 = $calc(%currentPoints2 + 500)
  4216. var %jackpotstats = $calc(%bcoinswon + 500)
  4217. var %currentWins2 = $calc(%currentWins + 1)
  4218.  
  4219. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4220. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4221. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4222. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4223. }
  4224. ElseiF (%col.0 == %symbol.0) && (%col.1 == %symbol.0) && (%col.2 == %symbol.0) && (%col.3 == %symbol.8) && (%ID == 0) {
  4225. SET %winlineslot %nickslot just won %Sjackpot bcoins and the mega coin ( 4Head ) ! Check your mega coins by typing in !mega :D
  4226. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4227. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4228. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4229. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4230. var %jackpotwon = $calc(%currentPoints + %Sjackpot)
  4231. var %jackpotwon2 = $calc(%currentPoints2 + %Sjackpot)
  4232. var %jackpotstats = $calc(%bcoinswon + %Sjackpot)
  4233. var %currentWins2 = $calc(%currentWins + 1)
  4234. $addmega($nick)
  4235. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4236. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4237. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4238. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4239. SET %Sjackpot 200
  4240. }
  4241. elseif (%col.0 == %symbol.0) && (%col.1 == %symbol.0) && (%col.2 == %symbol.0) {
  4242. SET %winlineslot %nickslot just won %Sjackpot bcoins!
  4243. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4244. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4245. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4246. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4247. var %jackpotwon = $calc(%currentPoints + %Sjackpot)
  4248. var %jackpotwon2 = $calc(%currentPoints2 + %Sjackpot)
  4249. var %jackpotstats = $calc(%bcoinswon + %Sjackpot)
  4250. var %currentWins2 = $calc(%currentWins + 1)
  4251.  
  4252. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4253. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4254. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4255. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4256. SET %Sjackpot 200
  4257. }
  4258. elseIF (%col.0 == %symbol.1) && (%col.1 == %symbol.1) && (%col.2 == %symbol.1) && (%col.3 == %symbol.8) && (%ID2 == 0) {
  4259. SET %winlineslot %nickslot just won %Mjackpot bcoins and the mega coin ( EleGiggle ) ! Check your mega coins by typing in !mega :D
  4260. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4261. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4262. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4263. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4264. var %jackpotwon = $calc(%currentPoints + %Mjackpot)
  4265. var %jackpotwon2 = $calc(%currentPoints2 + %Mjackpot)
  4266. var %jackpotstats = $calc(%bcoinswon + %Mjackpot)
  4267. var %currentWins2 = $calc(%currentWins + 1)
  4268. $addmega2($nick)
  4269. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4270. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4271. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4272. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4273. SET %Mjackpot 400
  4274. }
  4275. elseIF (%col.0 == %symbol.1) && (%col.1 == %symbol.1) && (%col.2 == %symbol.1) {
  4276. SET %winlineslot %nickslot just won %Mjackpot bcoins!
  4277. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4278. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4279. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4280. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4281. var %jackpotwon = $calc(%currentPoints + %Mjackpot)
  4282. var %jackpotwon2 = $calc(%currentPoints2 + %Mjackpot)
  4283. var %jackpotstats = $calc(%bcoinswon + %Mjackpot)
  4284. var %currentWins2 = $calc(%currentWins + 1)
  4285.  
  4286. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4287. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4288. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4289. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4290. SET %Mjackpot 400
  4291. }
  4292. elseIF (%col.0 == %symbol.2) && (%col.1 == %symbol.2) && (%col.2 == %symbol.2) && (%col.3 == %symbol.8) && (%ID3 == 0) {
  4293. SET %winlineslot %nickslot just won %Ljackpot bcoins and the mega coin ( PogChamp ) ! Check your mega coins by typing in !mega :D
  4294. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4295. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4296. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4297. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4298. var %jackpotwon = $calc(%currentPoints + %Ljackpot)
  4299. var %jackpotwon2 = $calc(%currentPoints2 + %Ljackpot)
  4300. var %jackpotstats = $calc(%bcoinswon + %Ljackpot)
  4301. var %currentWins2 = $calc(%currentWins + 1)
  4302. $addmega3($nick)
  4303. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4304. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4305. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4306. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4307. SET %Ljackpot 600
  4308. }
  4309. elseIF (%col.0 == %symbol.2) && (%col.1 == %symbol.2) && (%col.2 == %symbol.2) {
  4310. SET %winlineslot %nickslot just won %Ljackpot bcoins!
  4311. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4312. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4313. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4314. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4315. var %jackpotwon = $calc(%currentPoints + %Ljackpot)
  4316. var %jackpotwon2 = $calc(%currentPoints2 + %Ljackpot)
  4317. var %jackpotstats = $calc(%bcoinswon + %Ljackpot)
  4318. var %currentWins2 = $calc(%currentWins + 1)
  4319.  
  4320. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4321. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4322. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4323. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4324.  
  4325. SET %Ljackpot 600
  4326. }
  4327. elseIF (%col.0 == %symbol.3) && (%col.1 == %symbol.3) && (%col.2 == %symbol.3) && (%col.3 == %symbol.8) && (%ID4 == 0) {
  4328. SET %winlineslot %nickslot just won %Xjackpot bcoins and the mega coin ( OSsloth ) ! Check your mega coins by typing in !mega :D
  4329. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4330. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4331. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4332. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4333. var %jackpotwon = $calc(%currentPoints + %Xjackpot)
  4334. var %jackpotwon2 = $calc(%currentPoints2 + %Xjackpot)
  4335. var %jackpotstats = $calc(%bcoinswon + %Xjackpot)
  4336. var %currentWins2 = $calc(%currentWins + 1)
  4337. $addmega4($nick)
  4338. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4339. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4340. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4341. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4342. SET %Xjackpot 800
  4343. }
  4344. elseIF (%col.0 == %symbol.3) && (%col.1 == %symbol.3) && (%col.2 == %symbol.3) {
  4345. SET %winlineslot %nickslot just won %Xjackpot bcoins!
  4346. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4347. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4348. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4349. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4350. var %jackpotwon = $calc(%currentPoints + %Xjackpot)
  4351. var %jackpotwon2 = $calc(%currentPoints2 + %Xjackpot)
  4352. var %jackpotstats = $calc(%bcoinswon + %Xjackpot)
  4353. var %currentWins2 = $calc(%currentWins + 1)
  4354.  
  4355. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4356. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4357. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4358. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4359.  
  4360. SET %Xjackpot 800
  4361. }
  4362. elseIF (%col.0 == %symbol.4) && (%col.1 == %symbol.4) && (%col.2 == %symbol.4) && (%col.3 == %symbol.8) && (%ID5 == 0) {
  4363. SET %winlineslot HOLY! %nickslot just won %jackpot bcoins!! PogChamp %nickslot has also earned the ( deIlluminati ) mega coin! Check your mega coins by typing in !mega :D!
  4364. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4365. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4366. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4367. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4368. var %jackpotwon = $calc(%currentPoints + %jackpot)
  4369. var %jackpotwon2 = $calc(%currentPoints2 + %jackpot)
  4370. var %jackpotstats = $calc(%bcoinswon + %jackpot)
  4371. var %currentWins2 = $calc(%currentWins + 1)
  4372. $addmega5($nick)
  4373. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4374. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4375. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4376. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4377. SET %jackpot 15000
  4378. }
  4379. elseIF (%col.0 == %symbol.4) && (%col.1 == %symbol.4) && (%col.2 == %symbol.4) {
  4380. SET %winlineslot %nickslot just won %Tjackpot bcoins!
  4381. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4382. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4383. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4384. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4385. var %jackpotwon = $calc(%currentPoints + %Tjackpot)
  4386. var %jackpotwon2 = $calc(%currentPoints2 + %Tjackpot)
  4387. var %jackpotstats = $calc(%bcoinswon + %Tjackpot)
  4388. var %currentWins2 = $calc(%currentWins + 1)
  4389.  
  4390. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4391. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4392. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4393. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4394.  
  4395. SET %Tjackpot 1200
  4396. }
  4397. elseIF (%col.0 == %symbol.5) && (%col.1 == %symbol.5) && (%col.2 == %symbol.5) && (%col.3 == %symbol.8) && (%ID6 == 0) {
  4398. SET %winlineslot %nickslot just won %Ujackpot bcoins and the mega coin ( Kappa ) ! Check your mega coins by typing in !mega :D
  4399. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4400. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4401. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4402. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4403. var %jackpotwon = $calc(%currentPoints + %Ujackpot)
  4404. var %jackpotwon2 = $calc(%currentPoints2 + %Ujackpot)
  4405. var %jackpotstats = $calc(%bcoinswon + %Ujackpot)
  4406. var %currentWins2 = $calc(%currentWins + 1)
  4407. $addmega6($nick)
  4408. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4409. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4410. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4411. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4412.  
  4413. SET %Ujackpot 1000
  4414. }
  4415. elseIF (%col.0 == %symbol.5) && (%col.1 == %symbol.5) && (%col.2 == %symbol.5) {
  4416. SET %winlineslot %nickslot just won %Ujackpot bcoins!
  4417. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
  4418. var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
  4419. var %currentWins = $readini(%slotsrecord, $slotsrecord(%nickslot), wins)
  4420. var %bcoinswon = $readini(%slotsrecord, $slotsrecord(%nickslot), bcoinswon)
  4421. var %jackpotwon = $calc(%currentPoints + %Ujackpot)
  4422. var %jackpotwon2 = $calc(%currentPoints2 + %Ujackpot)
  4423. var %jackpotstats = $calc(%bcoinswon + %Ujackpot)
  4424. var %currentWins2 = $calc(%currentWins + 1)
  4425.  
  4426. writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
  4427. writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
  4428. writeini -n %slotsrecord $slotsrecord(%nickslot) wins %currentWins2
  4429. writeini -n %slotsrecord $slotsrecord(%nickslot) bcoinswon %jackpotstats
  4430.  
  4431. SET %Ujackpot 1000
  4432. }
  4433.  
  4434.  
  4435. MSG %chanslot 100 bcoins have been inserted into the machine! Good luck! ::: %col.0 %col.1 %col.2 ::: $iif(%winlineslot == $null, Unlucky %nickslot BibleThump ,%nickslot won!! Kreygasm)
  4436.  
  4437. IF (%winlineslot != $null) MSG $chan %winlineslot
  4438. UNSET %winlineslot
  4439. }
  4440. alias -l addmega {
  4441. writeini -n %megacoinstest $calc(2 - 1) $calc(%megaID + 1) $1
  4442. inc %megaID
  4443. }
  4444. alias -l addmega2 {
  4445. writeini -n %megacoinstest $calc(3 - 1) $calc(%megaID2 + 1) $1
  4446. inc %megaID2
  4447. }
  4448. alias -l addmega3 {
  4449. writeini -n %megacoinstest $calc(4 - 1) $calc(%megaID3 + 1) $1
  4450. inc %megaID3
  4451. }
  4452. alias -l addmega4 {
  4453. writeini -n %megacoinstest $calc(5 - 1) $calc(%megaID4 + 1) $1
  4454. inc %megaID4
  4455. }
  4456. alias -l addmega5 {
  4457. writeini -n %megacoinstest $calc(6 - 1) $calc(%megaID5 + 1) $1
  4458. inc %megaID5
  4459. }
  4460. alias -l addmega6 {
  4461. writeini -n %megacoinstest $calc(7 - 1) $calc(%megaID6 + 1) $1
  4462. inc %megaID6
  4463. }
  4464. on *:text:!items:#: {
  4465. msg $chan The items and their values: 4Head = 200, Shazam = 400, PogChamp = 600, GasJoker = 800, Kappa = 1000, deIlluminati = 1200, and SEVEN + Secret = jackpot (NOTE: jackpots for each will increase if no one wins!)
  4466. }
  4467. on *:text:!jackpot:#: {
  4468. msg $chan Current secret jackpot is %jackpot , 3 4Head is %Sjackpot , 3 EleGiggle is %Mjackpot , 3 PogChamp is %Ljackpot , 3 OSsloth is %Xjackpot , 3 Kappa is %Ujackpot , and 3 deIlluminati is %Tjackpot
  4469. }
  4470.  
  4471. alias -l findID {
  4472. var %file = $1
  4473. var %ID = $2
  4474. var %user = $3
  4475. var %i = 1
  4476. while (%i <= %ID) {
  4477. if ($readini(%file, %i, name) == %user) {
  4478. return %i
  4479. }
  4480. inc %i
  4481. }
  4482. return 0
  4483. }
  4484. alias -l findIDID {
  4485. var %searchName = $1
  4486. var %i = 1
  4487.  
  4488. while (%i <= %pointsID) {
  4489. var %name = $readini(%pointsfile, %i, name)
  4490. if (%name == %searchName) {
  4491. return %i
  4492. }
  4493. inc %i
  4494. }
  4495.  
  4496. return 0
  4497. }
  4498. ; {}
  4499. alias -l findIDIDIDIDID {
  4500. var %searchName = $nick
  4501. var %i = 1
  4502.  
  4503. while (%i <= %pointsID2) {
  4504. var %name = $readini(%pointsfile2, %i, name)
  4505. if (%name == %searchName) {
  4506. return %i
  4507. }
  4508. inc %i
  4509. }
  4510.  
  4511. return 0
  4512. }
  4513. alias -l findcoins {
  4514. var %searchName = $nick
  4515. var %i = 1
  4516.  
  4517. while (%i <= %megaID) {
  4518. var %name = $readini(%megacoinstest, $calc(2 - 1), %i)
  4519. if (%name == %searchName) {
  4520. return %i
  4521. }
  4522. inc %i
  4523. }
  4524.  
  4525. return 0
  4526. }
  4527. alias -l findcoins2 {
  4528. var %searchName = $nick
  4529. var %i = 1
  4530.  
  4531. while (%i <= %megaID2) {
  4532. var %name = $readini(%megacoinstest, $calc(3 - 1), %i)
  4533. if (%name == %searchName) {
  4534. return %i
  4535. }
  4536. inc %i
  4537. }
  4538.  
  4539. return 0
  4540. }
  4541. alias -l findcoins3 {
  4542. var %searchName = $nick
  4543. var %i = 1
  4544.  
  4545. while (%i <= %megaID3) {
  4546. var %name = $readini(%megacoinstest, $calc(4 - 1), %i)
  4547. if (%name == %searchName) {
  4548. return %i
  4549. }
  4550. inc %i
  4551. }
  4552.  
  4553. return 0
  4554. }
  4555. alias -l findcoins4 {
  4556. var %searchName = $nick
  4557. var %i = 1
  4558.  
  4559. while (%i <= %megaID4) {
  4560. var %name = $readini(%megacoinstest, $calc(5 - 1), %i)
  4561. if (%name == %searchName) {
  4562. return %i
  4563. }
  4564. inc %i
  4565. }
  4566.  
  4567. return 0
  4568. }
  4569. alias -l findcoins5 {
  4570. var %searchName = $nick
  4571. var %i = 1
  4572.  
  4573. while (%i <= %megaID5) {
  4574. var %name = $readini(%megacoinstest, $calc(6 - 1), %i)
  4575. if (%name == %searchName) {
  4576. return %i
  4577. }
  4578. inc %i
  4579. }
  4580.  
  4581. return 0
  4582. }
  4583. alias -l findcoins6 {
  4584. var %searchName = $nick
  4585. var %i = 1
  4586.  
  4587. while (%i <= %megaID6) {
  4588. var %name = $readini(%megacoinstest, $calc(7 - 1), %i)
  4589. if (%name == %searchName) {
  4590. return %i
  4591. }
  4592. inc %i
  4593. }
  4594.  
  4595. return 0
  4596. }
  4597. alias -l slotsrecord {
  4598. var %searchName = $nick
  4599. var %i = 1
  4600. while (%i <= %slotsID) {
  4601. var %name = $readini(%slotsrecord, %i, name)
  4602. if (%name == %searchName) {
  4603. return %i
  4604. }
  4605. inc %i
  4606. }
  4607. return 0
  4608. }
  4609. ______________________________________
  4610. on *:Text:!suggest*:#: {
  4611. var %IDexist = $readini(%suggest, $findsuggest($nick), name)
  4612. var %command = !suggest
  4613. if ($1 != %command) {
  4614. msg $chan That isn't formatted correctly! Make sure to format the command as !bug [x] where [x] is the issue/bug you spot with the bot.
  4615. }
  4616. elseif ($nick != %IDexist) {
  4617. filter -ff C:\Users\Brad\Desktop\Songlist\suggest.txt NULL $nick
  4618. msg $chan You are not allowed to make suggestions yet! You still need to type in !join (which you can do once per hour) $calc(60 - $filtered) times before you can make a suggestion!
  4619. }
  4620. else {
  4621. write C:\Users\Brad\Desktop\Songlist\suggestions.txt $nick %text - $2-
  4622. msg $chan Your suggestion has been noted! Thank you :)
  4623. }
  4624.  
  4625. }
  4626.  
  4627.  
  4628. alias -l findsuggest {
  4629. var %searchName = $nick
  4630. var %i = 1
  4631.  
  4632. while (%i <= %suggestID) {
  4633. var %name = $readini(%suggest, %i, name)
  4634. if (%name == %searchName) {
  4635. return %i
  4636. }
  4637. inc %i
  4638. }
  4639.  
  4640. return 0
  4641. }
  4642. ________________________________________________
  4643. on *:TEXT:!top10:#: {
  4644. run_top10 #
  4645. }
  4646. alias run_top10 {
  4647. window -h @. | var %i 1
  4648. while $ini(C:\Users\Brad\Desktop\Songlist\points2.ini,%i) {
  4649. var %n $v1
  4650. aline @. $gettok($remove(%n,[,]),2,46) $readini(C:\Users\Brad\Desktop\Songlist\points2.ini,%n,points) $readini(C:\Users\Brad\Desktop\Songlist\points2.ini,%n,name)
  4651. inc %i
  4652. }
  4653. filter -cetuww 1 32 @. @.
  4654. var %i 1
  4655. var %q 1
  4656. while %i <= 10 {
  4657. var %list $addtok(%list,$line(@.,%i),44)
  4658. var %newini = C:\Users\Brad\Desktop\Songlist\Temp.ini
  4659. inc %i
  4660. savebuf @. C:\Users\Brad\Desktop\Songlist\temp.txt
  4661. writeini -n %newini Top %q $+($chr(40),%q,$chr(41)) - $read(C:\Users\Brad\Desktop\Songlist\temp.txt,n,%q)
  4662. inc %q
  4663.  
  4664. }
  4665. .remove C:\Users\Brad\Desktop\Songlist\temp.txt
  4666. window -c @.
  4667. window -h @. | var %r 1
  4668. while $ini(C:\Users\Brad\Desktop\Songlist\Temp.ini,Top,%r) {
  4669. var %n $v1
  4670. aline @. $gettok($remove(%n,[,]),2,46) $readini(C:\Users\Brad\Desktop\Songlist\Temp.ini,Top,%r)
  4671. inc %r
  4672. }
  4673. var %k 1 | while %k <= 10 {
  4674. var %list2 $addtok(%list2,$line(@.,%k),44)
  4675. inc %k
  4676. }
  4677. window -c @.
  4678. msg $chan Top 10 bcoins earners are: $replace(%list2,$chr(44),$+($chr(44),$chr(32)))
  4679. remini -n %newini Top
  4680. }
  4681. ________________________________________________________________
  4682. on 3:text:!ticket*:#: {
  4683. var %raffle $+(99, $nick)
  4684. var %suggest $+(109, $nick)
  4685. var %currentPoints = $readini(%pointsfile, $findIDIDID($nick), points)
  4686. var %findname = $readini(%pointsfile, $findIDIDID($nick), name)
  4687. var %file_search C:\Users\Brad\Desktop\Songlist\Raffle.txt
  4688. var %raffleentry = $nick
  4689. var %Read_text (%file_search,r,%raffleentry)
  4690. var %bcoinsused2 = $calc($2 * 5000)
  4691. var %bcoinsused = $calc(%currentpoints - ($2 * 5000))
  4692. var %ticketsentered = $2
  4693. var %bcoinsneeded = $calc(%bcoinsused2 - %currentpoints)
  4694. filter -ff C:\Users\Brad\Desktop\Songlist\raffle.txt NULL $nick
  4695. if ($2 isnum) {
  4696. if (. isin $2) {
  4697.  
  4698. msg $chan No decimals allowed!
  4699. }
  4700. elseif (%findname == $null) {
  4701. msg $chan $nick you have not earned any bcoins to enter the raffle! Type !join to gain 5,001 bcoins, and type "!ticket 1" to get an entry in! :)
  4702.  
  4703. }
  4704. elseif ($2 == $null) {
  4705.  
  4706. msg $chan specify the amount of tickets you'd like to enter! make sure to format is as !ticket [x] where [x] is the amount of tickets you want entered! 5,000 bcoins is equal to 1 ticket :)
  4707. }
  4708. elseif (%currentPoints < %bcoinsused2) {
  4709.  
  4710. msg $chan You do not have enough bcoins for that many tickets! You need %bcoinsneeded more bcoins for that many tickets!
  4711.  
  4712.  
  4713. }
  4714. elseif ($2 > 200) {
  4715. msg $chan you can only enter at most 200 tickets!
  4716. }
  4717. elseif ($filtered <= 200) && ($2 > $calc(200 - $filtered)) {
  4718. msg $chan you can only have 200 ticket entries total!
  4719. }
  4720. elseif ($filtered > 200) {
  4721. msg $chan You can only have 200 tickets entered!
  4722. }
  4723. elseif (%currentpoints >= 5000) && ($timer(%raffle) == $null) {
  4724. var %i = 5000
  4725. while (%i <= %bcoinsused2) {
  4726. write C:\Users\Brad\Desktop\Songlist\Raffle.txt %raffleentry
  4727. inc %i 5000
  4728. }
  4729. writeini -n %pointsfile $findIDIDID($nick) points %bcoinsused
  4730. msg $chan $nick %bcoinsused2 bcoins have been deducted and %ticketsentered tickets have been added!
  4731. TIMER [ $+ [ %raffle ] ] 1 3600 msg $chan $nick You may now add another entry!
  4732.  
  4733.  
  4734. }
  4735. else {
  4736. msg $chan Please wait $timer(%raffle).secs seconds before adding another entry :)
  4737. }
  4738. }
  4739. else {
  4740. msg $chan STOP BREAKING MY BOT
  4741. }
  4742. }
  4743.  
  4744.  
  4745.  
  4746.  
  4747. On *:TEXT:!mytickets:#: {
  4748.  
  4749. filter -ff C:\Users\Brad\Desktop\Songlist\Raffle.txt NULL $nick
  4750. msg $chan $nick has $filtered ticket(s)!
  4751. }
  4752.  
  4753. on 3:text:!draw:#: {
  4754. var %winner = $read(C:\Users\Brad\Desktop\Songlist\raffle.txt,n)
  4755. msg $chan The winner of this drawing is %winner PogChamp ! Congratulations %winner :D
  4756. write C:\Users\Brad\Desktop\Songlist\winner.txt %winner
  4757.  
  4758.  
  4759. }
  4760.  
  4761. on 2:text:!clrf:#: {
  4762. write -c C:\Users\Brad\Desktop\Songlist\Raffle.txt
  4763. msg $chan clearing raffle entries..
  4764. }
  4765.  
  4766.  
  4767.  
  4768. on *:text:!join:#: {
  4769. var %songnick $+(4, $nick)
  4770. IF ($timer(%songnick) == $null) {
  4771.  
  4772.  
  4773. write C:\Users\Brad\Desktop\Songlist\suggest.txt $nick
  4774. }
  4775. }
  4776.  
  4777. On *:TEXT:!myjoins:#: {
  4778. var %IDexist = $readini(%suggest, $findsuggest($nick), name)
  4779. filter -ff C:\Users\Brad\Desktop\Songlist\suggest.txt NULL $nick
  4780.  
  4781. if ($filtered <= 59) {
  4782. msg $chan $nick has typed !join $filtered time(s)! They are $calc(60 - $filtered) away from making suggestions in Bradmasta's Channel!
  4783. }
  4784. elseif ($filtered >= 60) && ($nick != %IDexist) {
  4785. writeini -n %suggest $calc(%suggestID + 1) name $nick
  4786. msg $chan $nick has typed !join at least 60 times! Since $nick has done so at least 60 times, they are now able to make suggestions for Bradmasta's channel!
  4787. inc %suggestID 1
  4788. }
  4789. elseif ($filtered >= 60) {
  4790. msg $chan $nick has typed in !join $filtered times and can make suggestions in Bradmasta's Channel!
  4791. }
  4792.  
  4793.  
  4794. }
  4795. // ------------------------------------------------------------------------------------------------
  4796. alias -l findIDIDID {
  4797. var %searchName = $1
  4798. var %i = 1
  4799.  
  4800. while (%i <= %pointsID) {
  4801. var %name = $readini(%pointsfile, %i, name)
  4802. if (%name == %searchName) {
  4803. return %i
  4804. }
  4805. inc %i
  4806. }
  4807.  
  4808. return 0
  4809. }
  4810. alias -l findsuggest {
  4811. var %searchName = $nick
  4812. var %i = 1
  4813.  
  4814. while (%i <= %suggestID) {
  4815. var %name = $readini(%suggest, %i, name)
  4816. if (%name == %searchName) {
  4817. return %i
  4818. }
  4819. inc %i
  4820. }
  4821.  
  4822. return 0
  4823. }
  4824. ________________________________________________________________________________
  4825. on *:LOAD:{
  4826. SET %symbol.10  NinjaTroll 
  4827. SET %symbol.11  MrDestructoid 
  4828. SET %symbol.12  BabyRage 
  4829. SET %symbol.13  OSsloth 
  4830. SET %symbol.14  KappaRoss 
  4831. SET %symbol.15  KappaPride 
  4832. SET %symbol.16  PraiseIt 
  4833. SET %symbol.8  Apple 
  4834. }
  4835.  
  4836. on *:text:!thc:#: {
  4837.  
  4838. var %flowersnick $nick
  4839. var %points = $readini(%pointsfile, $findIDID(%flowersnick), points)
  4840. var %ID = $readini(%pointsfile2, $findIDID(%flowersnick), name)
  4841.  
  4842. IF (%ID == $null) {
  4843. msg $chan $nick Twitch Hot Cold is getting removed soon. Be on the lookout for a really cool game :)
  4844.  
  4845. }
  4846. ELSEIF (%points >= 5000) {
  4847.  
  4848. msg $chan Twitch Hot Cold is getting removed soon. Be on the lookout for a really cool game :)
  4849. }
  4850. ELSE {
  4851. msg $chan You don't have enough bcoins to play! You need $calc(20000 - %points) more bcoins to play!
  4852. }
  4853. }
  4854.  
  4855. alias -l flowersetup {
  4856. SET %flowerslot $nick
  4857. SET %chanslots $chan
  4858. var %flowernick $+(12345, $nick)
  4859. IF ($timer(%flowernick) == $null) {
  4860. TIMER [ $+ [ %flowernick ] ] 1 86400 msg $chan %flowerslot You may now play Twitch Hot Cold again! :)
  4861. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4862. var %pointstoplay = 5000
  4863. var %bcoinsused = $calc(%currentPoints - %pointstoplay)
  4864.  
  4865. writeini -n %pointsfile $findIDID(%flowerslot) points %bcoinsused
  4866.  
  4867. playpoker
  4868. }
  4869. ELSE {
  4870. msg $chan $nick You can only play Twitch Hot Cold once per stream.
  4871.  
  4872. }
  4873. }
  4874. alias -l playpoker {
  4875. SET %col.8 %symbol. [ $+ [ $rand(10,16) ] ]
  4876. SET %col.9 %symbol. [ $+ [ $rand(0,16) ] ]
  4877. SET %col.10 %symbol. [ $+ [ $rand(7,11) ] ]
  4878. var %ID = $findcoins(%megacoinstest, %megaID, $1)
  4879. var %ID2 = $findcoins2(%megacoinstest, %megaID2, $1)
  4880. var %ID3 = $findcoins3(%megacoinstest, %megaID3, $1)
  4881. var %ID4 = $findcoins4(%megacoinstest, %megaID4, $1)
  4882. var %ID5 = $findcoins5(%megacoinstest, %megaID5, $1)
  4883. var %ID6 = $findcoins6(%megacoinstest, %megaID6, $1)
  4884.  
  4885.  
  4886. if (%col.8 == %symbol.10) || (%col.8 == %symbol.11) || (%col.8 == %symbol.12) {
  4887. msg $chan %col.8 was chosen, %flowerslot unlucky BibleThump D:
  4888. }
  4889. elseif (%col.8 == %symbol.13) {
  4890. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4891. var %jackpotwon = $calc(%currentPoints + 5000)
  4892.  
  4893.  
  4894. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4895. msg $chan %symbol.13 has been chosen! %flowerslot gets their money back Kappa
  4896.  
  4897. }
  4898. elseif (%col.8 == %symbol.14) {
  4899. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4900. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4901. var %jackpotwon = $calc(%currentPoints + 10000)
  4902. var %jackpotwon2 = $calc(%currentPoints2 + 10000)
  4903.  
  4904. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4905. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4906. msg $chan %symbol.14 has been chosen! %flowerslot wins 10,000 bcoins! PogChamp
  4907.  
  4908. }
  4909. elseif (%col.8 == %symbol.15) {
  4910. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4911. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4912. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4913. var %jackpotwon = $calc(%currentPoints + 20000)
  4914. var %jackpotwon2 = $calc(%currentPoints2 + 20000)
  4915.  
  4916. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4917. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4918. msg $chan %symbol.15 has been chosen! %flowerslot wins 20,000 bcoins!! PogChamp Kreygasm
  4919.  
  4920. }
  4921. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%col.10 == %symbol.10) {
  4922. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4923. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4924. var %jackpotwon = $calc(%currentPoints + 1000000)
  4925. var %jackpotwon2 = $calc(%currentPoints2 + 1000000)
  4926.  
  4927. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4928. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4929. msg $chan %symbol.16 has been chosen! %flowerslot also wins the secret jackpot of 1,000,000 bcoins!
  4930. }
  4931. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%ID == 0) {
  4932. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4933. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4934. var %jackpotwon = $calc(%currentPoints + 30000)
  4935. var %jackpotwon2 = $calc(%currentPoints2 + 30000)
  4936. $addmega($nick)
  4937. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4938. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4939. msg $chan %symbol.16 has been chosen! %flowerslot wins 30,000 bcoins and the Megacoin ( 4Head ) ! PogChamp :D
  4940. }
  4941. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%ID2 == 0) {
  4942. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4943. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4944. var %jackpotwon = $calc(%currentPoints + 30000)
  4945. var %jackpotwon2 = $calc(%currentPoints2 + 30000)
  4946. $addmega2($nick)
  4947. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4948. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4949. msg $chan %symbol.16 has been chosen! %flowerslot wins 30,000 bcoins and the Megacoin ( ShibeZ ) ! PogChamp :D
  4950.  
  4951. }
  4952. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%ID3 == 0) {
  4953. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4954. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4955. var %jackpotwon = $calc(%currentPoints + 30000)
  4956. var %jackpotwon2 = $calc(%currentPoints2 + 30000)
  4957. $addmega3($nick)
  4958. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4959. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4960. msg $chan %symbol.16 has been chosen! %flowerslot wins 30,000 bcoins and the Megacoin ( PogChamp ) ! PogChamp :D
  4961. }
  4962. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%ID4 == 0) {
  4963. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4964. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4965. var %jackpotwon = $calc(%currentPoints + 30000)
  4966. var %jackpotwon2 = $calc(%currentPoints2 + 30000)
  4967. $addmega4($nick)
  4968. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4969. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4970. msg $chan %symbol.16 has been chosen! %flowerslot wins 30,000 bcoins and the Megacoin ( OSsloth ) ! PogChamp :D
  4971. }
  4972. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%ID5 == 0) {
  4973. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4974. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4975. var %jackpotwon = $calc(%currentPoints + 30000)
  4976. var %jackpotwon2 = $calc(%currentPoints2 + 30000)
  4977. $addmega5($nick)
  4978. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4979. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4980. msg $chan %symbol.16 has been chosen! %flowerslot wins 30,000 bcoins and the Megacoin ( deIlluminati ) ! PogChamp :D
  4981. }
  4982. elseif (%col.8 == %symbol.16) && (%col.9 == %symbol.8) && (%ID6 == 0) {
  4983. var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%flowerslot), points)
  4984. var %currentPoints = $readini(%pointsfile, $findIDID(%flowerslot), points)
  4985. var %jackpotwon = $calc(%currentPoints + 30000)
  4986. var %jackpotwon2 = $calc(%currentPoints2 + 30000)
  4987. $addmega6($nick)
  4988. writeini -n %pointsfile $findIDID(%flowerslot) points %jackpotwon
  4989. writeini -n %pointsfile2 $findIDIDIDIDID(%flowerslot) points %jackpotwon2
  4990. msg $chan %symbol.16 has been chosen! %flowerslot wins 30,000 bcoins and the Megacoin ( Kappa ) ! PogChamp :D
  4991. }
  4992.  
  4993.  
  4994. }
  4995.  
  4996.  
  4997.  
  4998. ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  4999.  
  5000.  
  5001.  
  5002. on 3:text:!quest:#: {
  5003. SET %questpot 0
  5004. if ($timer(.questtimer) == $null) {
  5005. msg $chan $nick has started a Quest! Gather your gear, prepare your team, and join in! Type in "!qj [x]" with [x] being how much you'd like to contribute toward the quest. The more people joining, the more likely everyone will get some good loot! (see full rules here: )
  5006. timer.questtimer 1 3600 msg $chan Another quest may be started! Type in !quest to do so!
  5007. startquest
  5008. }
  5009. else {
  5010.  
  5011. msg $chan A quest has already been started!
  5012. }
  5013. }
  5014.  
  5015. on 3:text:!qj*:#: {
  5016. var %questnick $nick
  5017. var %points = $readini(%pointsfile, $findIDID(%questnick), points)
  5018. var %pointstoplay = $2
  5019. var %ID = $readini(%pointsfile2, $findIDID(%questnick), name)
  5020. var %peoplein = $lines(C:\Users\Brad\Desktop\Songlist\Quest.txt)
  5021. var %file_search = C:\Users\Brad\Desktop\Songlist\Quest.txt
  5022. var %found = $read(%file_search,r,%questnick)
  5023. var %bcoinsused = $calc(%points - %pointstoplay)
  5024.  
  5025.  
  5026. if (%ID == $null) {
  5027.  
  5028. msg $chan you can't join this quest because you haven't earned any bcoins! Please type !join, then you may join the quest by typing in !qj [x] where [x] is the bcoins you are contributing.
  5029.  
  5030. }
  5031. elseif (%found != $null) {
  5032.  
  5033. msg $chan you're already in the quest!
  5034.  
  5035. }
  5036. elseif ($2- !isnum) {
  5037.  
  5038. msg $chan Please use a number!
  5039.  
  5040. }
  5041. elseif (. isin $2) {
  5042.  
  5043. msg $chan No decimals!
  5044.  
  5045. }
  5046.  
  5047. elseif ($2 <= 0) {
  5048.  
  5049. msg $chan please type in an amount that's more than 0!
  5050.  
  5051. }
  5052. elseif ($2 >= 1001) {
  5053.  
  5054. msg $chan A max of 1000 bcoins can be contributed per quest!
  5055.  
  5056. }
  5057. elseif (%ID != $null) && (%points < 1) {
  5058.  
  5059. msg $chan You don't have enough bcoins to join the quest! You need at least 1!
  5060.  
  5061. }
  5062.  
  5063. elseif (%ID != $null) && (%points >= 1) && ($lines(C:\Users\Brad\Desktop\Songlist\Quest.txt) == 0) {
  5064.  
  5065. writeini -n %pointsfile $findIDID(%questnick) points %bcoinsused
  5066. write C:\Users\Brad\Desktop\Songlist\Quest.txt $nick
  5067. inc %questpot $2
  5068.  
  5069. msg $chan $nick has joined the quest! There is 1 person participating in the quest! Good luck!
  5070.  
  5071. }
  5072. elseif (%ID != $null) && (%points >= 1) && ($lines(C:\Users\Brad\Desktop\Songlist\Quest.txt) >= 1) {
  5073.  
  5074. write C:\Users\Brad\Desktop\Songlist\Quest.txt $nick
  5075. writeini -n %pointsfile $findIDID(%questnick) points %bcoinsused
  5076. inc %questpot $2
  5077.  
  5078. msg $chan $nick has joined the quest! There are $calc(%peoplein + 1) people participating in the quest! Good luck!
  5079.  
  5080. }
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087. }
  5088.  
  5089. on 3:text:!qc:#: {
  5090.  
  5091. if ($timer(.questtimer) != $null) {
  5092.  
  5093. msg $chan There has been %questpot bcoin(s) contributed to the current quest!
  5094.  
  5095. }
  5096. else {
  5097.  
  5098. msg $chan There is currently no quest active at the moment!
  5099.  
  5100. }
  5101. }
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107. alias -l startquest {
  5108.  
  5109. timer.currentquestline 1 1 msg $chan Your quest is over! Here are the results:
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116. }
  5117.  
  5118.  
  5119. ___________________________________________________________________________________________________________________________________________
  5120.  
  5121. alias -l addmega {
  5122. writeini -n %megacoinstest $calc(2 - 1) $calc(%megaID + 1) $1
  5123. inc %megaID
  5124. }
  5125. alias -l addmega2 {
  5126. writeini -n %megacoinstest $calc(3 - 1) $calc(%megaID2 + 1) $1
  5127. inc %megaID2
  5128. }
  5129. alias -l addmega3 {
  5130. writeini -n %megacoinstest $calc(4 - 1) $calc(%megaID3 + 1) $1
  5131. inc %megaID3
  5132. }
  5133. alias -l addmega4 {
  5134. writeini -n %megacoinstest $calc(5 - 1) $calc(%megaID4 + 1) $1
  5135. inc %megaID4
  5136. }
  5137. alias -l addmega5 {
  5138. writeini -n %megacoinstest $calc(6 - 1) $calc(%megaID5 + 1) $1
  5139. inc %megaID5
  5140. }
  5141. alias -l addmega6 {
  5142. writeini -n %megacoinstest $calc(7 - 1) $calc(%megaID6 + 1) $1
  5143. inc %megaID6
  5144. }
  5145.  
  5146. alias -l findID {
  5147. var %file = $1
  5148. var %ID = $2
  5149. var %user = $3
  5150. var %i = 1
  5151. while (%i <= %ID) {
  5152. if ($readini(%file, %i, name) == %user) {
  5153. return %i
  5154. }
  5155. inc %i
  5156. }
  5157. return 0
  5158. }
  5159. alias -l findIDID {
  5160. var %searchName = $1
  5161. var %i = 1
  5162.  
  5163. while (%i <= %pointsID) {
  5164. var %name = $readini(%pointsfile, %i, name)
  5165. if (%name == %searchName) {
  5166. return %i
  5167. }
  5168. inc %i
  5169. }
  5170.  
  5171. return 0
  5172. }
  5173.  
  5174. alias -l findIDIDIDIDID {
  5175. var %searchName = $nick
  5176. var %i = 1
  5177.  
  5178. while (%i <= %pointsID2) {
  5179. var %name = $readini(%pointsfile2, %i, name)
  5180. if (%name == %searchName) {
  5181. return %i
  5182. }
  5183. inc %i
  5184. }
  5185.  
  5186. return 0
  5187. }
  5188. alias -l findcoins {
  5189. var %searchName = $nick
  5190. var %i = 1
  5191.  
  5192. while (%i <= %megaID) {
  5193. var %name = $readini(%megacoinstest, $calc(2 - 1), %i)
  5194. if (%name == %searchName) {
  5195. return %i
  5196. }
  5197. inc %i
  5198. }
  5199.  
  5200. return 0
  5201. }
  5202. alias -l findcoins2 {
  5203. var %searchName = $nick
  5204. var %i = 1
  5205.  
  5206. while (%i <= %megaID2) {
  5207. var %name = $readini(%megacoinstest, $calc(3 - 1), %i)
  5208. if (%name == %searchName) {
  5209. return %i
  5210. }
  5211. inc %i
  5212. }
  5213.  
  5214. return 0
  5215. }
  5216. alias -l findcoins3 {
  5217. var %searchName = $nick
  5218. var %i = 1
  5219.  
  5220. while (%i <= %megaID3) {
  5221. var %name = $readini(%megacoinstest, $calc(4 - 1), %i)
  5222. if (%name == %searchName) {
  5223. return %i
  5224. }
  5225. inc %i
  5226. }
  5227.  
  5228. return 0
  5229. }
  5230. alias -l findcoins4 {
  5231. var %searchName = $nick
  5232. var %i = 1
  5233.  
  5234. while (%i <= %megaID4) {
  5235. var %name = $readini(%megacoinstest, $calc(5 - 1), %i)
  5236. if (%name == %searchName) {
  5237. return %i
  5238. }
  5239. inc %i
  5240. }
  5241.  
  5242. return 0
  5243. }
  5244. alias -l findcoins5 {
  5245. var %searchName = $nick
  5246. var %i = 1
  5247.  
  5248. while (%i <= %megaID5) {
  5249. var %name = $readini(%megacoinstest, $calc(6 - 1), %i)
  5250. if (%name == %searchName) {
  5251. return %i
  5252. }
  5253. inc %i
  5254. }
  5255.  
  5256. return 0
  5257. }
  5258. alias -l findcoins6 {
  5259. var %searchName = $nick
  5260. var %i = 1
  5261.  
  5262. while (%i <= %megaID6) {
  5263. var %name = $readini(%megacoinstest, $calc(7 - 1), %i)
  5264. if (%name == %searchName) {
  5265. return %i
  5266. }
  5267. inc %i
  5268. }
  5269.  
  5270. return 0
  5271. }
  5272. ____________________________________________________________________
  5273. on *:text:!stats:#: {
  5274.  
  5275. var %nickname $nick
  5276. var %file_search = C:\Users\Brad\Desktop\Songlist\Dice_record.ini
  5277. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Slots_record.ini
  5278. var %dicefound = $readini(%dicerecord, $dicerecord(%nickname), name)
  5279. var %dicewins = $readini(%dicerecord, $dicerecord(%nickname), wins)
  5280. var %dicelosses = $readini(%dicerecord, $dicerecord(%nickname), losses)
  5281. var %diceties = $readini(%dicerecord, $dicerecord(%nickname), ties)
  5282. var %slotsfound = $readini(%slotsrecord, $slotsrecord(%nickname), name)
  5283. var %slotswins = $readini(%slotsrecord, $slotsrecord(%nickname), wins)
  5284. var %slotsbcoins = $readini(%slotsrecord, $slotsrecord(%nickname), bcoinswon)
  5285.  
  5286. if (%dicefound == $null) && (%slotsfound != $null) {
  5287.  
  5288. msg $chan $nick has won the slots %slotswins times and won a total of %slotsbcoins bcoins! (Stats accurate as of October 17th, 2016)
  5289.  
  5290. }
  5291. elseif (%dicefound != $null) && (%slotsfound == $null) {
  5292.  
  5293. msg $chan %dicefound has a record of %dicewins - %dicelosses - %diceties in dice dueling! (Stats accurate as of October 17th, 2016)
  5294.  
  5295. }
  5296. elseif (%dicefound != $null) && (%slotsfound != $null) {
  5297.  
  5298. msg $chan %dicefound has a record of %dicewins - %dicelosses - %diceties in dice dueling and has won the slots %slotswins times and won a total of %slotsbcoins bcoins! (Stats accurate as of October 17th, 2016)
  5299.  
  5300. }
  5301. else {
  5302.  
  5303. msg $chan You haven't played the slots or competed in a dice duel yet!
  5304.  
  5305. }
  5306.  
  5307. }
  5308. alias -l dicerecord {
  5309. var %searchName = $nick
  5310. var %i = 1
  5311. while (%i <= %diceID) {
  5312. var %name = $readini(%dicerecord, %i, name)
  5313. if (%name == %searchName) {
  5314. return %i
  5315. }
  5316. inc %i
  5317. }
  5318. return 0
  5319. }
  5320.  
  5321.  
  5322. alias -l slotsrecord {
  5323. var %searchName = $nick
  5324. var %i = 1
  5325. while (%i <= %slotsID) {
  5326. var %name = $readini(%slotsrecord, %i, name)
  5327. if (%name == %searchName) {
  5328. return %i
  5329. }
  5330. inc %i
  5331. }
  5332. return 0
  5333. }
  5334. ________________________________________________________________________
  5335.  
  5336. on 3:text:!startcheck:#: {
  5337. window -h @.
  5338. set %checknum 1
  5339. timerverify
  5340.  
  5341. msg $chan check started.
  5342. }
  5343.  
  5344. on 3:text:!stopcheck:#: {
  5345.  
  5346. timer.check off
  5347. timer.verifycheck off
  5348. msg $chan timer stopped.
  5349. }
  5350.  
  5351.  
  5352. alias -l timerverify {
  5353.  
  5354. timer.verifycheck 0 1 verify
  5355.  
  5356.  
  5357.  
  5358.  
  5359. }
  5360.  
  5361. alias -l verify {
  5362.  
  5363. var %verifyname = $read(%V1, n, 1)
  5364. var %follower = $read(%V2, n, 1)
  5365. var %findmename = $read(%V1, n, 1)
  5366. var %findme = $readini(%tokensfile, $findtokens(%findmename), name)
  5367. var %currenttokens = $readini(%tokensfile, $findtokens(%findmename), tokens)
  5368.  
  5369. if (%checknum == 1) {
  5370. set %checknum 0
  5371. write -il1 C:\Users\Brad\Desktop\Songlist\writeto.txt %checknum
  5372. echo -@. no change
  5373. }
  5374. elseif (%checknum == 0) {
  5375.  
  5376. if (%verifyname != %follower) {
  5377.  
  5378. if (%findme == $null) {
  5379. writeini -n %tokensfile $calc(%tokensID + 1) name %verifyname
  5380. writeini -n %pointsFile $calc(%tokensID + 1) tokens 1
  5381. inc %tokensID
  5382. write -d11 C:\Users\Brad\Desktop\Songlist\V2.txt
  5383. write -il1 C:\Users\Brad\Desktop\Songlist\V2.txt %verifyname
  5384. set %checknum 1
  5385. echo -a change
  5386.  
  5387. }
  5388. else {
  5389.  
  5390. writeini -n %tokensfile $calc(%tokensID + 1) name %verifyname
  5391. writeini -n %pointsFile $calc(%tokensID + 1) tokens $calc(%currenttokens + 1)
  5392. write -d11 C:\Users\Brad\Desktop\Songlist\V2.txt
  5393. write -il1 C:\Users\Brad\Desktop\Songlist\V2.txt %verifyname
  5394. set %checknum 1
  5395. echo -a change
  5396. }
  5397.  
  5398. }
  5399. else {
  5400. set %checknum 1
  5401. echo -@. no change
  5402. }
  5403. }
  5404. }
  5405.  
  5406. on 3:text:!22222songsoff:#: {
  5407.  
  5408.  
  5409. timer.nosongs 1 84000 msg $chan song timer has ended.
  5410. msg $chan Songs can no longer be added for the time being.
  5411. }
  5412.  
  5413. on 3:text:!22222222songson:#: {
  5414.  
  5415. timer.nosongs off
  5416. msg $chan Songs may now be added again!
  5417. }
  5418.  
  5419. on 3:text:!222222request*:#: {
  5420.  
  5421.  
  5422. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  5423. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  5424. // var %currentTokens = Whatever file location and name you go with
  5425. var %newTokens = $calc(%currentTokens - 1)
  5426. var %nickname $nick
  5427. var %command = !request
  5428. var %songnick $+(20, $nick)
  5429. if ($timer(.nosongs) != $null) {
  5430.  
  5431. msg $chan Songs cannot be requested at this time!
  5432. }
  5433. elseif ($nick == ukogmonkey) && ($2 == timer) && ($timer(%songnick) == $null) {
  5434.  
  5435. msg $chan There is no timer to turn off!
  5436. }
  5437.  
  5438. elseif ($nick == ukogmonkey) && ($2 == timer) && ($timer(%songnick) != $null) {
  5439.  
  5440. TIMER [ $+ [ %songnick ] ] off
  5441.  
  5442. msg $chan timer has been turned off
  5443.  
  5444. }
  5445. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) < 10) && ($timer(%songnick) == $null) {
  5446.  
  5447.  
  5448. write C:\Users\Brad\Desktop\Songlist\Songs.txt $2
  5449. writeini -n %file_search3 Songs $calc(%newsongsID + 1) $2
  5450. writeini -n %file_search4 Names $calc(%nicknameID + 1) %nickname
  5451.  
  5452. writeini -n %tokensfile $findtokens($nick) tokens %newTokens
  5453. inc %newsongsID 1
  5454. inc %nicknameID 1
  5455. msg $chan $nick $2 has been added to the list! Thank you! :) You now have %tokens Token(s) left!
  5456. TIMER [ $+ [ %songnick ] ] 1 600 msg $chan $nick you may now add another song! :)
  5457.  
  5458. }
  5459. elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 10) {
  5460. msg $chan Only 10 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
  5461.  
  5462. }
  5463. elseif ($1 != %command) {
  5464. msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !request [x] where [x] is the song you want!
  5465. }
  5466. else {
  5467. msg $chan You must wait $timer(%songnick).secs seconds before you can add another song!
  5468. }
  5469. }
  5470.  
  5471. on 3:text:!222222222remove*:#: {
  5472. var %file_search3 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  5473. var %file_search4 = C:\Users\Brad\Desktop\Songlist\Requestorname.ini
  5474. var %command = !remove
  5475.  
  5476.  
  5477.  
  5478.  
  5479. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) = 0) {
  5480. msg $chan There are no songs on the queue.
  5481.  
  5482.  
  5483. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) > 1) {
  5484.  
  5485.  
  5486. window -a @fixini
  5487. var %fixini 1
  5488. remini -n %file_search4 names $2
  5489. loadbuf -rt @fixini %file_Search4
  5490. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fix.txt
  5491. remini %file_search4 Names
  5492. write -dl1 C:\Users\Brad\Desktop\Songlist\fix.txt
  5493. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fix.txt)) {
  5494. writeini -n %file_search4 names %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fix.txt,n,%fixini),2,61)
  5495. inc %fixini
  5496. }
  5497. window -c @fixini
  5498. dec %nicknameID 1
  5499. dec %newsongsID 1
  5500. .remove C:\Users\Brad\Desktop\Songlist\fix.txt
  5501.  
  5502. window -a @fixini
  5503. var %fixini 1
  5504. write -dl $+ $2 C:\Users\Brad\Desktop\Songlist\Songs.txt
  5505. remini -n %file_search3 songs $2
  5506. loadbuf -rt @fixini %file_Search3
  5507. savebuf @fixini C:\Users\Brad\Desktop\Songlist\fixini.txt
  5508. remini %file_search3 Songs
  5509. write -dl1 C:\Users\Brad\Desktop\Songlist\fixini.txt
  5510. while (%fixini <= $lines(C:\Users\Brad\Desktop\Songlist\fixini.txt)) {
  5511. writeini -n %file_search3 Songs %fixini $gettok($read(C:\Users\Brad\Desktop\Songlist\fixini.txt,n,%fixini),2,61)
  5512. inc %fixini
  5513. }
  5514. .remove C:\Users\Brad\Desktop\Songlist\fixini.txt
  5515. window -c @fixini
  5516. msg $chan removing the song off the queue. The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) requested by $readini(C:\Users\Brad\Desktop\Songlist\Requestorname.ini, Names, 1)
  5517. }
  5518.  
  5519.  
  5520. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 1) {
  5521. write -dl1 C:\Users\Brad\Desktop\Songlist\Songs.txt
  5522. remini %file_search4 names 1
  5523. remini %file_search3 Songs 1
  5524. dec %newsongsID 1
  5525. dec %nicknameID 1
  5526. msg $chan removing the top song off the queue. There are no more songs on the queue!
  5527.  
  5528. }
  5529.  
  5530. elseif ($1 != %command) {
  5531. msg $chan That isn't formatted correctly! Make sure to type in the command in the correct format of !remove [x] where [x] is the number.
  5532. }
  5533. else {
  5534. msg $chan Something went wrong! Check the formatting and try again :)
  5535. }
  5536. }
  5537. }
  5538.  
  5539.  
  5540. on 3:text:!2222tokens:#: {
  5541.  
  5542. var %currenttokens = $readini(%tokensfile, $findtokens(%findmename), tokens)
  5543.  
  5544. if (%currenttokens > 1) {
  5545. msg $chan $nick you currently have 0 tokens!
  5546.  
  5547. }
  5548.  
  5549. else {
  5550.  
  5551. msg $chan $nick has %currenttokens token(s)!
  5552.  
  5553. }
  5554.  
  5555. }
  5556. on 3:text:!givetokens*:#: {
  5557. var %name = $2
  5558. var %tokens = $3
  5559. var %findme = $readini(%tokensfile, $findtokens(%findmename), name)
  5560. var %currentTokens = $readini(%pointsfile, $findtokens(%name), tokens)
  5561. var %newTokens = $calc(%currentTokens + %tokens)
  5562.  
  5563. if (%findme == $null) {
  5564.  
  5565.  
  5566.  
  5567. writeini -n %tokensfile $calc(%tokensID + 1) name $2
  5568. writeini -n %pointsFile $calc(%tokensID + 1) tokens 1
  5569. inc %tokensID
  5570. msg $chan %tokens token(s) have been given to %name
  5571.  
  5572. }
  5573. else {
  5574.  
  5575. writeini -n %tokensfile $findtokens(%name) tokens %newTokens
  5576.  
  5577. msg $chan %tokens token(s) have been given to %name
  5578. }
  5579. }
  5580.  
  5581.  
  5582. on 3:text:!222222queue:#: {
  5583.  
  5584.  
  5585. if ($lines(C:\Users\Brad\Desktop\Songlist\songs.txt) == 0) {
  5586. msg $chan There are no songs on the queue.
  5587.  
  5588. }
  5589. else {
  5590. window -h @. | var %i 1
  5591. while $ini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%i) {
  5592. var %n $v1
  5593. aline @. $gettok($remove(%n,[,]),2,46) $readini(C:\Users\Brad\Desktop\Songlist\Songqueue.ini,Songs,%i)
  5594. inc %i
  5595. }
  5596. var %i 1 | while %i <= 10 {
  5597. var %list $addtok(%list,$line(@.,%i),44)
  5598. inc %i
  5599. }
  5600. msg $chan The queue contains the following requests: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
  5601. window -c @.
  5602. }
  5603. }
  5604.  
  5605. on 3:text:!22222222change*:#: {
  5606.  
  5607. var %command = !change
  5608. var %file_search = C:\Users\Brad\Desktop\Songlist\Songs.txt
  5609. var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songqueue.ini
  5610.  
  5611.  
  5612.  
  5613. if ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 0) {
  5614.  
  5615. msg $chan There are no songs on the list to change!
  5616.  
  5617.  
  5618. }
  5619. elseif ($1 == %command) && ($2 > 10) {
  5620. msg $chan There are only at most 10 songs to change! The format is "!change [x] [z]" Where [x] is the line being changed and [z] is the song you're changing to
  5621. }
  5622.  
  5623.  
  5624. elseif ($1 == %command) && ($2 > $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  5625.  
  5626. msg $chan You can't change a song to a spot that currently isn't occupied!
  5627.  
  5628.  
  5629. }
  5630.  
  5631.  
  5632. elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 1) {
  5633. msg $chan $readini(%file_search2, Songs, $2) was changed to $3 ! Thank you! :)
  5634. writeini -n %file_search4 Songs $2 $3
  5635. write -dl $+ $2 %file_search
  5636. write -il $+ $2 %file_search $3
  5637.  
  5638.  
  5639. }
  5640. }
  5641.  
  5642. on 3:text:!line*:#: {
  5643.  
  5644.  
  5645. var %file_search = C:\Users\Brad\Desktop\Songlist\Songs.txt
  5646. var %read_text2 = $read(%file_search)
  5647. var %command = !line
  5648. var %read_text = $read(%file_search, n, $2)
  5649.  
  5650. if ($2 > $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
  5651.  
  5652. msg $chan This line isn't occupied right now!
  5653.  
  5654. }
  5655. elseif ($1 == %command) && (%read_text2) {
  5656. msg $chan Line $2 contains %read_text
  5657. }
  5658. elseif ($1 != %command) {
  5659. msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !find [x] where [x] is the line you're searching for.
  5660. }
  5661. else {
  5662. msg $chan test
  5663. }
  5664. }
  5665.  
  5666.  
  5667.  
  5668. _________________________________________________________________________________________________________________________________________
  5669.  
  5670.  
  5671.  
  5672.  
  5673.  
  5674.  
  5675. alias -l findtokens {
  5676. var %searchName = $readini(%tokensfile, %tokensID, name)
  5677. var %i = 1
  5678.  
  5679. while (%i <= %tokensID) {
  5680. var %name = $readini(%tokensfile, %i, name)
  5681. if (%name == %searchName) {
  5682. return %i
  5683. }
  5684. inc %i
  5685. }
  5686.  
  5687. return 0
  5688. }
  5689. ______________________________________________________________________________________________________________________________
  5690. alias JSONVersion {
  5691. if ($isid) {
  5692. return $iif($1 != short,JSONForMirc v,v) $+ 0.2.4
  5693. }
  5694. }
  5695. alias JSONError {
  5696. if ($isid) {
  5697. return %JSONError
  5698. }
  5699. }
  5700. alias -l COMOpenTry {
  5701. if (!$len($com($1))) {
  5702. if ($len($~adiircexe) && $appbits == 64) {
  5703. .comopen $1 ScriptControl
  5704. }
  5705. else {
  5706. .comopen $1 MSScriptControl.ScriptControl
  5707. }
  5708. if ($com($1) && !$comerr) {
  5709. return $true
  5710. }
  5711. }
  5712. }
  5713. alias JSONOpen {
  5714. if ($isid) return
  5715. unset %JSONError
  5716. debugger -i 0 Calling /JSONOpen $1-
  5717. var %switches = -, %error, %com, %file
  5718. if (-* iswm $1) {
  5719. %switches = $1
  5720. tokenize 32 $2-
  5721. }
  5722. if ($regex(%switches, ([^dbfuw\-]))) {
  5723. %error = Invalid switches specified: $regml(1)
  5724. }
  5725. elseif ($regex(%switches, ([dbfuw]).*?\1)) {
  5726. %error = Duplicate switch specified: $regml(1)
  5727. }
  5728. elseif ($regex(%switches, /([bfu])/g) > 1) {
  5729. %error = Conflicting switches: $regml(1) $+ , $regml(2)
  5730. }
  5731. elseif (u !isin %switches && w isin %switches) {
  5732. %error = -w switch can only be used with -u
  5733. }
  5734. elseif ($0 < 2) {
  5735. %error = Missing Parameters
  5736. }
  5737. elseif (!$regex($1, /^[a-z][a-z\d_.-]+$/i)) {
  5738. %error = Invalid handler name: Must start with a letter and contain only letters numbers _ . and -
  5739. }
  5740. elseif ($com(JSONHandler:: $+ $1)) {
  5741. %error = Name in use
  5742. }
  5743. elseif (b isin %switches && $0 != 2) {
  5744. %error = Invalid parameter: Binary variable names cannot contain spaces
  5745. }
  5746. elseif (b isin %switches && &* !iswm $2) {
  5747. %error = Invalid parameters: Binary variable names start with &
  5748. }
  5749. elseif (b isin %switches && !$bvar($2, 0)) {
  5750. %error = Invalid parameters: Binary variable is empty
  5751. }
  5752. elseif (f isin %switches && !$isfile($2-)) {
  5753. %error = Invalid parameters: File doesn't exist
  5754. }
  5755. elseif (f isin %switches && !$file($2-).size) {
  5756. %error = Invalid parameters: File is empty
  5757. }
  5758. elseif (u isin %switches && $0 != 2) {
  5759. %error = Invalid parameters: URLs cannot contain spaces
  5760. }
  5761. else {
  5762. if (!$COMOpenTry(JSONHandler:: $+ $1)) {
  5763. %error = Unable to create an instance of MSScriptControl.ScriptControl
  5764. }
  5765. else {
  5766. %com = JSONHandler:: $+ $1
  5767. if (!$com(%com, language, 4, bstr, jscript) || $comerr) {
  5768. %error = Unable to set ScriptControl's language to Javascript
  5769. }
  5770. elseif (!$com(%com, timeout, 4, bstr, 60000) || $comerr) {
  5771. %error = Unable to set ScriptControl's timeout to 60seconds
  5772. }
  5773. elseif (!$com(%com, ExecuteStatement, 1, bstr, $JScript) || $comerr) {
  5774. %error = Unable to add required javascript to the ScriptControl instance
  5775. }
  5776. elseif (u isincs %switches) {
  5777. if (1 OK != $jstry(%com, $jscript(urlInit), $escape($2-).quote)) {
  5778. %error = $gettok($v2, 2-, 32)
  5779. }
  5780. elseif (w !isincs %switches && 0 ?* iswm $jsTry(%com, $jscript(urlParse), status="error").withError) {
  5781. %error = $gettok($v2, 2-, 32)
  5782. }
  5783. }
  5784. elseif (f isincs %switches) {
  5785. if (1 OK != $jstry(%com, $jscript(fileParse), $escape($longfn($2-)).quote)) {
  5786. %error = $gettok($v2, 2-, 32)
  5787. }
  5788. }
  5789. elseif (b isincs %switches) {
  5790. %file = $tempfile
  5791. bwrite $qt(%file) -1 -1 $2
  5792. debugger %com Wrote $2 to $qt(%file)
  5793. if (0 ?* iswm $jstry(%com, $jscript(fileParse), $escape(%file).quote)) {
  5794. %error = $gettok($v2, 2-, 32)
  5795. }
  5796. }
  5797. else {
  5798. %file = $tempfile
  5799. write -n $qt(%file) $2-
  5800. debugger %com Wrote $2- to $qt(%file)
  5801. if (0 ?* iswm $jstry(%com, $jscript(fileParse), $escape(%file).quote)) {
  5802. %error = $gettok($v2, 2-, 32)
  5803. }
  5804. }
  5805. if (!%error) {
  5806. if (d isin %switches) {
  5807. $+(.timer, %com) -o 1 0 JSONClose $1
  5808. }
  5809. Debugger -s %com Successfully created
  5810. }
  5811. }
  5812. }
  5813. :error
  5814. %error = $iif($error, $error, %error)
  5815. reseterror
  5816. if (%file && $isfile(%file)) {
  5817. .remove $qt(%file)
  5818. debugger %com Removed $qt(%file)
  5819. }
  5820. if (%error) {
  5821. if (%com && $com(%com)) {
  5822. .comclose %com
  5823. }
  5824. set -eu0 %JSONError %error
  5825. Debugger -e 0 /JSONOpen %switches $1- --RAISED-- %error
  5826. }
  5827. }
  5828. alias JSONUrlMethod {
  5829. if ($isid) return
  5830. unset %JSONError
  5831. debugger -i 0 Calling /JSONUrlMethod $1-
  5832. var %error, %com
  5833. if ($0 < 2) {
  5834. %error = Missing parameters
  5835. }
  5836. elseif ($0 > 2) {
  5837. %error = Too many parameters specified
  5838. }
  5839. elseif (!$regex($1, /^[a-z][a-z\d_.\-]+$/i)) {
  5840. %error = Invalid handler name: Must start with a letter and contain only letters numbers _ . and -
  5841. }
  5842. elseif (!$com(JSONHandler:: $+ $1)) {
  5843. %error = Invalid handler name: JSON handler does not exist
  5844. }
  5845. elseif (!$regex($2, /^(?:GET|POST|PUT|DEL)$/i)) {
  5846. %error = Invalid request method: Must be GET, POST, PUT, or DEL
  5847. }
  5848. else {
  5849. var %com = JSONHandler:: $+ $1
  5850. if (1 OK != $jsTry(%com, $JScript(UrlMethod), status="error", $qt($upper($2))).withError) {
  5851. %error = $gettok($v2, 2-, 32)
  5852. }
  5853. else {
  5854. Debugger -s $+(%com,>JSONUrlMethod) Method set to $upper($2)
  5855. }
  5856. }
  5857. :error
  5858. %error = $iif($error, $v1, %error)
  5859. reseterror
  5860. if (%error) {
  5861. set -eu0 %JSONError %error
  5862. if (%com) {
  5863. set -eu0 % [ $+ [ %com ] $+ ] ::Error %error
  5864. }
  5865. Debugger -e $iif(%com, $v1, 0) /JSONUrlMethod %switches $1- --RAISED-- %error
  5866. }
  5867. }
  5868. alias JSONUrlHeader {
  5869. if ($isid) return
  5870. unset %JSONError
  5871. debugger -i 0 Calling /JSONUrlHeader $1-
  5872. var %error, %com
  5873. if ($0 < 3) {
  5874. %error = Missing parameters
  5875. }
  5876. elseif (!$regex($1, /^[a-z][a-z\d_.\-]+$/i)) {
  5877. %error = Invalid handler name: Must start with a letter and contain only letters numbers _ . and -
  5878. }
  5879. elseif (!$com(JSONHandler:: $+ $1)) {
  5880. %error = Invalid handler name: JSON handler does not exist
  5881. }
  5882. elseif (!$regex($2, /^[a-z_-]+:?$/i)) {
  5883. %error = Invalid header name: Header names can only contain letters, _ and -
  5884. }
  5885. else {
  5886. %com = JSONHandler:: $+ $1
  5887. if (1 OK !== $jsTry(%com, $JScript(UrlHeader), status="error", $escape($regsubex($2, :+$, )).quote, $escape($3-).quote).withError) {
  5888. %error = $gettok($v2, 2-, 32)
  5889. }
  5890. else {
  5891. Debugger -s $+(%com,>JSONUrlHeader) Header $+(',$2,') set to $3-
  5892. }
  5893. }
  5894. :error
  5895. %error = $iif($error, $v1, %error)
  5896. reseterror
  5897. if (%error) {
  5898. set -eu0 %JSONError %error
  5899. if (%com) set -eu0 % [ $+ [ %com ] $+ ] ::Error %error
  5900. Debugger -e $iif(%com, $v1, 0) /JSONUrlMethod %switches $1- --RAISED-- %error
  5901. }
  5902. }
  5903. alias JSONUrlOption {
  5904. if ($isid) return
  5905. unset %JSONError
  5906. Debugger -i 0 /JSONUrlOption is depreciated and will be removed. Please use /JSONUrlMethod and /JSONUrlHeader
  5907. if ($2 == method) {
  5908. JSONUrlMethod $1 $3-
  5909. }
  5910. else {
  5911. JSONUrlHeader $1-
  5912. }
  5913. }
  5914. alias JSONUrlGet {
  5915. if ($isid) return
  5916. unset %JSONError
  5917. Debugger -i 0 Calling /JSONUrlGet $1-
  5918. var %switches = -, %error, %com, %file
  5919. if (-* iswm $1) {
  5920. %switches = $1
  5921. tokenize 32 $2-
  5922. }
  5923. if (!$0 || (%switches != - && $0 < 2)) {
  5924. %error = Missing parameters
  5925. }
  5926. elseif (!$regex(%switches, ^-[bf]?$)) {
  5927. %error = Invalid switch(es) specified
  5928. }
  5929. elseif (!$regex($1, /^[a-z][a-z\d_.\-]+$/i)) {
  5930. %error = Invalid handler name: Must start with a letter and contain only letters numbers _ . and -
  5931. }
  5932. elseif (!$com(JSONHandler:: $+ $1)) {
  5933. %error = Specified handler does not exist
  5934. }
  5935. elseif (b isincs %switches && &* !iswm $2) {
  5936. %error = Invalid bvar name: bvars start with &
  5937. }
  5938. elseif (b isincs %switches && $0 > 2) {
  5939. %error = Invalid bvar name: Contains spaces: $2-
  5940. }
  5941. elseif (f isincs %switches && !$isfile($2-)) {
  5942. %error = Specified file does not exist: $longfn($2-)
  5943. }
  5944. else {
  5945. %com = JSONHandler:: $+ $1
  5946. if ($0 > 1) {
  5947. if (f isincs %switches) {
  5948. if (0 ?* iswm $jsTry(%com, $JScript(UrlData), status="error", $escape($longfn($2-)).quote).withError) {
  5949. %error = $gettok($v2, 2-, 32)
  5950. }
  5951. else {
  5952. Debugger -s $+(%com,>JSONUrlGet) Stored $longfn($2-) as data to send with HTTP Request
  5953. }
  5954. }
  5955. else {
  5956. %file = $tempfile
  5957. if (b isincs %switches) {
  5958. bwrite $qt(%file) -1 -1 $2
  5959. }
  5960. else {
  5961. write -n $qt(%file) $2-
  5962. }
  5963. Debugger -s $+(%com,>JSONUrlGet) Wrote specified data to %file
  5964. if (0 ?* iswm $jsTry(%com, $JScript(UrlData), status="error", $escape(%file).quote).withError) {
  5965. %error = $gettok($v2, 2-, 32)
  5966. }
  5967. else {
  5968. Debugger -s $+(%Com,>JSONUrlGet) Stored $2- as data to send with HTTP Request
  5969. }
  5970. .remove $qt(%file)
  5971. }
  5972. }
  5973. if (!%error) {
  5974. if (0 ?* iswm $jsTry(%com, $JScript(URLParse), status="error").withError) {
  5975. %error = $gettok($v2, 2-, 32)
  5976. }
  5977. else {
  5978. Debugger -s $+(%com,>JSONUrlGet) Request finished
  5979. }
  5980. }
  5981. }
  5982. :error
  5983. %error = $iif($error, $v1, %error)
  5984. reseterror
  5985. if (%error) {
  5986. set -eu0 %JSONError %error
  5987. if (%com) set -eu0 % [ $+ [ %com ] $+ ] ::Error %error
  5988. Debugger -e $iif(%com, $v1, 0) /JSONUrlGet %switches $1- --RAISED-- %error
  5989. }
  5990. }
  5991. alias JSONGet {
  5992. if ($isid) return
  5993. unset %JSONError
  5994. debugger -i 0 /JSONGet is depreciated and will be removed. Please use /JSONUrlGet
  5995. JSONUrlGet $1-
  5996. }
  5997. alias JSONClose {
  5998. if ($isid) return
  5999. unset %JSONError
  6000. Debugger -i 0 /JSONClose $1-
  6001. var %switches = -, %error, %com, %x
  6002. if (-* iswm $1) {
  6003. %switches = $1
  6004. tokenize 32 $2-
  6005. }
  6006. if ($0 < 1) {
  6007. %error = Missing parameters
  6008. }
  6009. elseif ($0 > 1) {
  6010. %error = Too many parameters specified.
  6011. }
  6012. elseif (%switches !== - && %switches != -w) {
  6013. %error = Unknown switches specified
  6014. }
  6015. elseif (%switches == -) {
  6016. %com = JSONHandler:: $+ $1
  6017. if ($com(%com)) { .comclose %com }
  6018. if ($timer(%com)) { $+(.timer,%com) off }
  6019. unset % [ $+ [ %com ] $+ ] ::Error
  6020. Debugger -i %com Closed
  6021. }
  6022. else {
  6023. %com = JSONHandler:: $+ $1
  6024. %x = 1
  6025. while (%x <= $com(0)) {
  6026. if (%com iswm $com(%x)) {
  6027. .comclose $v1
  6028. $+(.timer,$v1) off
  6029. unset % [ $+ [ $v1 ] $+ ] ::*
  6030. Debugger -i %com Closed
  6031. }
  6032. else {
  6033. inc %x
  6034. }
  6035. }
  6036. }
  6037. :error
  6038. %error = $iif($error, $v1, %error)
  6039. reseterror
  6040. if (%error) {
  6041. set -eu0 %JSONError %error
  6042. }
  6043. }
  6044. alias JSONList {
  6045. if ($isid) return
  6046. Debugger -i 0 Calling /JSONList $1-
  6047. var %x = 1, %i = 0
  6048. while ($com(%x)) {
  6049. if (JSONHandler::* iswm $v1) {
  6050. inc %i
  6051. echo $color(info) -a * # $+ %i : $regsubex($v2, /^JSONHandler::/, )
  6052. }
  6053. inc %x
  6054. }
  6055. if (!%i) {
  6056. echo $color(info) -a * No active JSON handlers
  6057. }
  6058. }
  6059. alias JSON {
  6060. if (!$isid) {
  6061. return
  6062. }
  6063. var %x, %calling, %i = 0, %com, %get = json, %ref = $false, %error, %file
  6064. if ($JSONDebug) {
  6065. %x = 0
  6066. while (%x < $0) {
  6067. inc %x
  6068. %calling = %calling $+ $iif(%calling,$chr(44)) $($ $+ %x,2)
  6069. }
  6070. debugger -i 0 Calling $!JSON( $+ %calling $+ $chr(41) $+ $iif($prop,. $+ $prop)
  6071. }
  6072. if (!$0) {
  6073. return
  6074. }
  6075. if ($regex($1, ^\d+$)) {
  6076. %x = 1
  6077. while ($com(%x)) {
  6078. if (JSONHandler::* iswm $v1) {
  6079. inc %i
  6080. if (%i == $1) {
  6081. %com = $com(%x)
  6082. break
  6083. }
  6084. }
  6085. inc %x
  6086. }
  6087. if ($0 == 1 && $1 == 0) {
  6088. return %i
  6089. }
  6090. }
  6091. elseif ($regex($1, /^[a-z][a-z\d_.-]+$/i)) {
  6092. %com = JSONHandler:: $+ $1
  6093. }
  6094. elseif ($regex($1, /^(JSONHandler::[a-z][a-z\d_.-]+)::(.+)$/i)) {
  6095. %com = $regml(1)
  6096. %get = json $+ $regml(2)
  6097. %ref = $true
  6098. }
  6099. if (!%com) {
  6100. %error = Invalid name specified
  6101. }
  6102. elseif (!$com(%com)) {
  6103. %error = Handler doesn't exist
  6104. }
  6105. elseif (!$regex($prop, /^(?:Status|IsRef|IsChild|Error|Data|UrlStatus|UrlStatusText|UrlHeader|Fuzzy|FuzzyPath|Type|Length|ToBvar|IsParent)?$/i)) {
  6106. %error = Unknown prop specified
  6107. }
  6108. elseif ($0 == 1) {
  6109. if ($prop == isRef) {
  6110. return %ref
  6111. }
  6112. elseif ($prop == isChild) {
  6113. Debugger -i 0 $!JSON().isChild is depreciated use $!JSON().isRef
  6114. return %ref
  6115. }
  6116. elseif ($prop == status) {
  6117. if ($com(%com, eval, 1, bstr, status) && !$comerr) {
  6118. return $com(%com).result
  6119. }
  6120. else {
  6121. %error = Unable to determine status
  6122. }
  6123. }
  6124. elseif ($prop == error) {
  6125. if ($eval($+(%,%com,::Error),2)) {
  6126. return $v1
  6127. }
  6128. elseif ($com(%com, eval, 1, bstr, error) && !$comerr) {
  6129. return $com(%com).result
  6130. }
  6131. else {
  6132. %error = Unable to determine if there is an error
  6133. }
  6134. }
  6135. elseif ($prop == UrlStatus || $prop == UrlStatusText) {
  6136. if (0 ?* iswm $jsTry(%com, $JScript($prop))) {
  6137. %error = $gettok($v2, 2-, 32)
  6138. }
  6139. else {
  6140. return $v2
  6141. }
  6142. }
  6143. elseif (!$prop) {
  6144. return $regsubex(%com,/^JSONHandler::/,)
  6145. }
  6146. }
  6147. elseif (!$regex($prop, /^(?:fuzzy|fuzzyPath|data|type|length|toBvar|isParent)?$/i)) {
  6148. %error = $+(',$prop,') cannot be used when referencing items
  6149. }
  6150. elseif ($prop == toBvar && $chr(38) !== $left($2, 1) ) {
  6151. %error = Invalid bvar specified: bvar names must start with &
  6152. }
  6153. elseif ($prop == UrlHeader) {
  6154. if ($0 != 2) {
  6155. %error = Missing or excessive header parameter specified
  6156. }
  6157. elseif (0 ?* iswm $jsTry(%com, $JScript(UrlHeader), $escape($2).quote)) {
  6158. %error = $gettok($v2, 2-, 32)
  6159. }
  6160. else {
  6161. return $gettok($v2, 2-, 32)
  6162. }
  6163. }
  6164. elseif (fuzzy* iswm $prop) {
  6165. if ($0 < 2) {
  6166. %error = Missing parameters
  6167. }
  6168. else {
  6169. var %x = 2, %path, %res
  6170. while (%x <= $0) {
  6171. %path = %path $+ $escape($($ $+ %x, 2)).quote $+ $chr(44)
  6172. inc %x
  6173. }
  6174. %res = $jsTry(%com, $JScript(fuzzy), %get, $left(%path, -1))
  6175. if (0 ? iswm %res) {
  6176. %error = $gettok(%res, 2-, 32)
  6177. }
  6178. elseif ($prop == fuzzy) {
  6179. %get = %get $+ $gettok(%res, 2-, 32)
  6180. }
  6181. else {
  6182. return $regsubex(%get, ^json, ) $+ $gettok(%res, 2-, 32)
  6183. }
  6184. }
  6185. }
  6186. if (!%error) {
  6187. if (fuzzy* !iswm $prop) {
  6188. %x = $iif($prop == toBvar, 3, 2)
  6189. while (%x <= $0) {
  6190. %i = $($ $+ %x, 2)
  6191. if ($len(%i)) {
  6192. %get = $+(%get, [", $escape(%i), "])
  6193. inc %x
  6194. }
  6195. else {
  6196. %error = Empty index|item passed.
  6197. break
  6198. }
  6199. }
  6200. }
  6201. if (!%error) {
  6202. if ($prop == type) {
  6203. if (0 ?* iswm $jsTry(%com, $JScript(typeof), %get)) {
  6204. %error = $gettok($v2, 2-, 32)
  6205. }
  6206. else {
  6207. return $gettok($v2, 2-, 32)
  6208. }
  6209. }
  6210. elseif ($prop == length) {
  6211. if (0 ?* iswm $jsTry(%com, $JScript(length), %get)) {
  6212. %error = $gettok($v2, 2-, 32)
  6213. }
  6214. else {
  6215. return $gettok($v2, 2-, 32)
  6216. }
  6217. }
  6218. elseif ($prop == isParent) {
  6219. if (0 ?* iswm $jsTry(%com, $JScript(isparent), %get)) {
  6220. %error = $gettok($v2, 2-, 32)
  6221. }
  6222. else {
  6223. return $iif($gettok($v2, 2-, 32), $true, $false)
  6224. }
  6225. }
  6226. elseif ($prop == toBvar) {
  6227. %file = $tempfile
  6228. if (0 ?* iswm $jsTry(%com, $JScript(tofile), $escape(%file).quote, %get)) {
  6229. %error = $gettok($v2, 2-, 32)
  6230. }
  6231. else {
  6232. bread $qt(%file) 0 $file(%file) $2
  6233. }
  6234. if ($isfile(%file)) { .remove $qt(%file) }
  6235. }
  6236. elseif (0 ?* iswm $jsTry(%com, $JScript(get), %get)) {
  6237. %error = $gettok($v2, 2-, 32)
  6238. if (%error == Object or Array referenced) {
  6239. %error = $null
  6240. Debugger -s $+(%com,>$JSON) Result is an Object or Array; returning reference
  6241. return %com $+ :: $+ $regsubex(%get, /^json/, )
  6242. }
  6243. }
  6244. else {
  6245. var %res = $gettok($v2, 2-, 32)
  6246. Debugger -s $+(%com,>$JSON) %get references %res
  6247. return %res
  6248. }
  6249. }
  6250. }
  6251. :error
  6252. %error = $iif($error, $v1, %error)
  6253. if (%error) {
  6254. set -eu0 %JSONError
  6255. if (%com && $com(%com)) {
  6256. set -eu0 $+(%,%com,::Error) %error
  6257. }
  6258. var %r
  6259. %x = 0
  6260. while (%x < $0) {
  6261. inc %x
  6262. %r = $addtok(%r, $chr(32) $+ $ [ $+ [ %x ] ] , 44)
  6263. }
  6264. debugger -e $iif(%com && $com(%com),%com,0) $!JSON( $+ %r $+ ) $+ $+ $iif($prop,. $+ $prop) --RAISED-- %error
  6265. }
  6266. }
  6267. alias JSONDebug {
  6268. if ($isid) {
  6269. return $iif($group(#JSONForMircDebug) == on, $true, $false)
  6270. }
  6271. elseif ($0) {
  6272. tokenize 32 $iif($group(#JSONForMircDebug) == on, off, on)
  6273. }
  6274. if ($regex($1-,/^(?:on|enable)$/i)) {
  6275. .enable #JSONForMircDebug
  6276. debugger -i Debugger Now Enabled
  6277. }
  6278. elseif ($regex($1-, /^(?:off|disable)$/i)) {
  6279. .disable #JSONForMircDebug
  6280. if ($window(@JSONForMircDebug)) {
  6281. close -@ @JSONForMircDebug
  6282. }
  6283. }
  6284. }
  6285. #JSONForMircDebug off
  6286. alias -l Debugger {
  6287. if ($isid) return
  6288. if (!$window(@JSONForMircDebug)) {
  6289. window -zk0 @JSONForMircDebug
  6290. }
  6291. var %switches = -, %c
  6292. if (-* iswm $1) {
  6293. %switches = $1
  6294. tokenize 32 $2-
  6295. }
  6296. if (e isincs %switches) {
  6297. %c = 04
  6298. }
  6299. elseif (s isincs %switches) {
  6300. %c = 12
  6301. }
  6302. else {
  6303. %c = 03
  6304. }
  6305. var %n = $iif($1, $1, JSONForMirc)
  6306. %n = $regsubex(%n, /^JSONHandler::, )
  6307. aline -p @JSONForMircDebug $+($chr(3),%c,[,%n,],$chr(15)) $2-
  6308. }
  6309. #JSONForMircDebug end
  6310. alias -l Debugger return
  6311. menu @JSONForMircDebug {
  6312. .Clear: clear -@ @JsonForMircDebug
  6313. .Disable and Close: JSONDebug off
  6314. }
  6315. alias -l tempfile {
  6316. var %n = 1
  6317. while ($isfile($scriptdirJSONTmpFile $+ %n $+ .json)) {
  6318. inc %n
  6319. }
  6320. return $scriptdirJSONTmpFile $+ %n $+ .json
  6321. }
  6322. alias -l escape {
  6323. var %esc = $replace($1-,\,\\,",\")
  6324. return $iif($prop == quote, $qt(%esc), %esc)
  6325. }
  6326. alias -l JScript {
  6327. if (!$isid) return
  6328. if (!$0) return (function(){status="init";json=null;url={m:"GET",u:null,h:[],d:null};response=null;var r,x=['MSXML2.SERVERXMLHTTP.6.0','MSXML2.SERVERXMLHTTP.3.0','MSXML2.SERVERXMLHTTP','MSXML2.XMLHTTP.6.0','MSXML2.XMLHTTP.3.0','Microsoft.XMLHTTP'],i;while(x.length){try{r=new ActiveXObject(x.shift());break}catch(e){}}xhr=r?function(){r.open(url.m,url.u,false);for(i=0;i<url.h.length;i+=1)r.setRequestHeader(url.h[i][0],url.h[i][1]);r.send(url.d);return(response=r).responseText}:function(){throw new Error("HTTP Request object not found")};read=function(f){var a=new ActiveXObject("ADODB.stream"),d;a.CharSet="utf-8";a.Open();a.LoadFromFile(f);if(a.EOF){a.close();throw new Error("No content in file")}d=a.ReadText();a.Close();return d;};write=function(f,d){var a=new ActiveXObject("ADODB.stream");a.CharSet="utf-8";a.Open();a.WriteText(d);a.SaveToFile(f,2);a.Close()};parse=function(t){if(/^[\],:{}\s]*$/.test((t=(String(t)).replace(/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,function(a){return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)})).replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){try{return eval('('+t+')');}catch(e){throw new SyntaxError('Unable to Parse: Invalid JSON');}}throw new SyntaxError('Unable to Parse: Invalid JSON')};fuzzy=function(){var a=Array.prototype.slice.call(arguments),b=a.shift(),c="",d=Object.prototype.toString.call(b),e,f,g,h,i;for(e=0;e<a.length;e+=1){f=a[e];if(b.hasOwnProperty(f)){if(typeof b[f]==="function")throw new TypeError("Reference points to a function");b=b[f];c+="[\""+f+"\"]"}else if(d==="[object Object]"){if(typeof f==="number")f=f.toString(10);f=f.toLowerCase();g=-1;i=!1;for(h in b){if(b.hasOwnProperty(h)&&typeof b[h]!=="function"){g+=1;if(h.toLowerCase()===f){b=b[h];c+="[\""+h+"\"]";i=!0;break}else if(g.toString(10)===f){b=b[h];c+="[\""+h+"\"]";i=!0;break}}}if(!i)throw new Error("No matching reference found");}else{throw new Error("Reference does not exist")}d=Object.prototype.toString.call(b)}return c}}());
  6329. if ($1 == FileParse) return if(status!=="init")throw new Error("Parse Not Pending");json=parse(read(@1@));status="done";
  6330. if ($1 == UrlInit) return if(status!=="init")throw new Error("JSON handler not ready");url.u=@1@;status="url";
  6331. if ($1 == UrlMethod) return if(status!=="url")throw new Error("URL Request Not Pending");url.m=@1@;
  6332. if ($1 == UrlHeader) return if(status!=="url")throw new Error("URL Request Not Pending");url.h.push([@1@,@2@]);
  6333. if ($1 == UrlData) return if(status!=="url")throw new Error("URL Request Not Pending");url.d=read(@1@);
  6334. if ($1 == UrlParse) return if(status!=="url")throw new Error("URL Request Not Pending");json=parse(xhr());status="done";
  6335. if ($1 == UrlStatus) return if(status!=="done")throw new Error("Data not parsed");if(!response)throw new Error("URL request not made");return response.status;
  6336. if ($1 == UrlStatusText) return if(status!=="done")throw new Error("Data not parsed");if(!response)throw new Error("URL request not made");return response.statusText;
  6337. if ($1 == UrlHeader) return if(status!=="done")throw new Error("Data not parsed");if(!response)throw new Error("URL Request not made");return response.getResponseHeader(@1@);
  6338. if ($1 == fuzzy) return if(status!=="done")throw new Error("Data not parsed");return "1 "+fuzzy(@1@,@2@);
  6339. if ($1 == typeof) return if(status!=="done")throw new Error("Data not parsed");var i=@1@;if(i===undefined)throw new TypeError("Reference doesn't exist");if(i===null)return"1 null";var s=Object.prototype.toString.call(i);if(s==="[object Array]")return"1 array";if(s==="[object Object]")return"1 object";return "1 "+typeof(i);
  6340. if ($1 == length) return if(status!=="done")throw new Error("Data not parsed");var i=@1@;if(i===undefined)throw new TypeError("Reference doesn't exist");if(/^\[object (?:String|Array)\]$/.test(Object.prototype.toString.call(i)))return"1 "+i.length.toString(10);throw new Error("Reference is not a string or array");
  6341. if ($1 == isparent) return if(status!=="done")throw new Error("Data not parsed");var i=@1@;if(i===undefined)throw new TypeError("Reference doesn't exist");if(/^\[object (?:Object|Array)\]$/.test(Object.prototype.toString.call(i)))return"1 1";return"1 0";
  6342. if ($1 == tofile) return if(status!=="done")throw new Error("Data not parsed");var i=@2@;if(i===undefined)throw new TypeError("Reference doesn't exist");if(typeof i!=="string")throw new TypeError("Reference must be a string");write(@1@,i);
  6343. if ($1 == get) return if(status!=="done")throw new Error("Data not parsed");var i=@1@;if(i===undefined)throw new TypeError("Reference doesn't exist");if(i===null)return"1";if(/^\[object (?:Array|Object)\]$/.test(Object.prototype.toString.call(i)))throw new TypeError("Object or Array referenced");if(i.length>4000)throw new Error("Data would exceed mIRC's line length limit");if(typeof i == "boolean")return i?"1 1":"1 0";if(typeof i == "number")return "1 "+i.toString(10);return "1 "+i;
  6344. }
  6345. alias -l jsTry {
  6346. if ($isid) {
  6347. if ($0 < 2 || $prop == withError && $0 < 3) {
  6348. return 0 Missing parameters
  6349. }
  6350. elseif (!$com($1)) {
  6351. return 0 No such com
  6352. }
  6353. else {
  6354. var %code = $2, %error, %n = 2, %o, %js
  6355. if ($prop == withError) {
  6356. %error = $3
  6357. %n = 3
  6358. }
  6359. %o = %n
  6360. while (%n < $0) {
  6361. inc %n
  6362. set -l $+(%, arg, $calc(%n - %o)) $eval($+($, %n), 2)
  6363. }
  6364. %code = $regsubex($regsubex(%code, /@(\d+)@/g, $var($+(%, arg, \t ),1).value), [\s;]+$, )
  6365. %error = $regsubex($regsubex(%error, /@(\d+)@/g, $var($+(%, arg, \t ),1).value), [\s;]+$, )
  6366. if ($len(%code)) {
  6367. %code = %code $+ $chr(59)
  6368. }
  6369. if ($len(%error)) {
  6370. %error = %error $+ $chr(59)
  6371. }
  6372. %js = (function(){error=null;try{ $+ %code $+ return"1 OK"}catch(e){ $+ %error $+ error=e.message;return"0 "+error}}());
  6373. debugger $1>$jsTry Executing: %js
  6374. if (!$com($1, eval, 1, bstr, %js) || $comerr) {
  6375. return 0 Unable to execute specified javascript
  6376. }
  6377. return $com($1).result
  6378. }
  6379. }
  6380. }
Add Comment
Please, Sign In to add comment