Advertisement
SmartGenius

WarGame Batch v 2

Jul 21st, 2012
1,266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.83 KB | None | 0 0
  1. @echo off
  2. title - Batch WarGame v 2 -
  3. setlocal enabledelayedexpansion enableextensions
  4. :: WarGame Batch v2
  5. :: By SmartGenius & Germaniac
  6.  
  7. Call :Pre_Level "%~0"
  8. Call :Intro + 14 1
  9. Call :LoadKeyboard
  10. Call :NickName
  11. Call :Quotes
  12.  
  13. :Welcome
  14. set "pass="
  15. set /a "level=1,lives=3"
  16. If Not Defined Nick (Set "Nick=Guest_%Random:~-2%")
  17. echo.
  18. echo.
  19. echo. Welcome %Nick%
  20. echo. This is a WarGame in Batch and has
  21. echo. 10 levels to complete, good luck.
  22. echo.
  23. set /p <nul= Press any key to start WarGame...
  24. pause>nul
  25. Call :Get_Quote
  26.  
  27. :WarGame
  28. call :Check
  29. <nul more/c
  30. Echo.
  31. Echo. %Random_Quote%
  32. Echo.
  33. echo.Level %level%
  34. <nul set /p "=Lives: "
  35. for /l %%a in (1,1,%lives%) do <nul set /p "="
  36. echo.
  37. echo.
  38. set /p <nul=Password:!pass!
  39. call :Keyboard pass
  40. if %errorlevel% equ 8 if defined pass set "pass=!pass:~,-1!"
  41. if %errorlevel% neq 13 goto :WarGame
  42. if not defined pass goto :WarGame
  43. echo.
  44. set "return=Lost"
  45. call :level_%level% 2>nul
  46. call :%return%
  47. set "pass="
  48. pause>nul
  49. if %level% gtr 9 goto :Winner
  50. Call :Get_Quote
  51. goto :WarGame
  52.  
  53. :::::::::::::::::::::::::::::::::::::::::::::::::
  54.  
  55. :Check
  56. if %lives% leq 0 goto :GameOver
  57. if %level% leq 0 goto :GameOver
  58. if %level% gtr 9 goto :GameOver
  59. for /l %%a in (1,1,%level%) do if "%%a" neq "%level%" if not defined pass[%%a] goto :GameOver
  60. Goto :Eof
  61.  
  62. :Won
  63. call :Check
  64. echo.Correct.
  65. set "pass[%level%]=%pass%"
  66. set /a "level+=1,lives=%lives%"
  67. Goto :Eof
  68.  
  69. :Lost
  70. echo.Invalid.
  71. set /a "lives-=1"
  72. Goto :Eof
  73.  
  74. :Winner
  75. <nul more/c
  76. echo. Congratulations %Nick%
  77. echo. You have completed this WarGame.
  78. echo.
  79. set /p <nul= Press any key to exit...
  80. pause>nul
  81. For /l %%l in (1,1,9) do (Echo. Level %%l = !pass[%%l]!>>Wargame_%Nick%.txt)
  82. goto :Exit
  83.  
  84. :GameOver
  85. echo.Game over
  86. pause>nul
  87. goto :Exit
  88.  
  89. :::::::::::::::::::::::::::::::::::::::::::::::::
  90.  
  91. :Pre_Level
  92. Set "cmdcmdline="
  93. Set "cmdcndline=cmd /c ""%~1" ""
  94. For /f "tokens=3*" %%a in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v RegisteredOwner^|Find "REG_SZ"') do (
  95. If Not "SmartGenius"=="%%a%%b" (msg * SmartGenius must be the Registered Owner of this PC to Run this WARGAME&Exit /b 1))
  96. If "!cmdcmdline!"=="!cmdcndline!" (Goto :Eof)
  97. msg * This WARGAME not run from console
  98. Exit
  99.  
  100. :::::::::::::::::::::::::::::::::::::::::::::::::
  101.  
  102. :Level_1
  103. Call :Crypt.A Pass
  104. If "!Pass!"=="EXoZkbXmLXrjy7" (set "return=Won")
  105. Goto :Eof
  106. :::::::::::::::::::::::::::::::::::::::::::::::::
  107.  
  108. :Level_2
  109. Set /a "Is_Num=%pass%*1"
  110. If Not "%Is_Num%"=="%pass%" (Goto :Eof)
  111. Set /a "Var1=(%pass:~-1%*0x0B)+((%pass:~-4,1% %% %pass:~-1%)*0157)+((0+(~-9))*(02127*(0-(~0))))+((%pass:~0,1%|%pass:~-2,1%%pass:~-2,1%)+0x0A)"
  112. if "%pass%"=="!Var1!" (set "return=Won")
  113. Goto :Eof
  114.  
  115. :::::::::::::::::::::::::::::::::::::::::::::::::
  116.  
  117. :Level_3
  118. set "var=%pass%"
  119. set /a "n=(%var:~-2%^%var:~-4,2%)-2"
  120. for %%a in (g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do (
  121. Set /a n+=1
  122. call set var=%%var:%%a=!n!%%)
  123. for /f "tokens=1-2 delims=%var:~8,2%" %%a in ("%var%") do (
  124. set /a "x=(%%b-%%a)|0x%var:~8,2%"
  125. if "!x!"=="3010815" (set "return=Won"))
  126. Goto :Eof
  127.  
  128. :::::::::::::::::::::::::::::::::::::::::::::::::
  129.  
  130. :Level_4
  131. :encoder
  132. set "string=%pass%"
  133. set "output="
  134. set "values="
  135. set "value.old=9"
  136. set "chars=abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ "
  137. :encoder.b
  138. set "char=!string:~,1!"
  139. for /l %%a in (0 1 62) do if "!char!" equ "!chars:~%%a,1!" (
  140. set /a "position=%%a+1"
  141. if !position! gtr 62 set /a "position-=63"
  142. if !position! leq 9 set "position=0!position!"
  143. set "values=!position!!values!")
  144. set "string=!string:~1!"
  145. if defined string goto :encoder.b
  146. if not defined values Goto :Eof
  147. :encoder.c
  148. set "value=%values:~,1%%values:~-1%"
  149. if "%value:~,1%"=="0" set "value=%value:~1%"
  150. set /a "value.new=(value^value.old)%%63"
  151. set "output=%output%!chars:~%value.new%,1!"
  152. set /a "value.old=value.new+value"
  153. set "values=%values:~1,-1%"
  154. if defined values goto :encoder.c
  155. if "!output!"=="pb5VpEE8kASVXajQaabFdpDE" (set "return=Won")
  156. Goto :Eof
  157.  
  158. :::::::::::::::::::::::::::::::::::::::::::::::::
  159.  
  160. :Level_5
  161. set "count=0"
  162. set "numbers="
  163. set "letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  164. for /l %%a in (0 1 9) do for /l %%b in (0 1 9) do if "!pass:~%%a,1!" equ "%%b" (set "numbers=!numbers!%%a"
  165. set /a "count=~count+(12%%b<<3)")
  166. set /a "count=count^numbers"
  167. for /l %%a in (0 1 9) do set "pass=!pass:%%a=!"
  168. for /l %%a in (0 1 25) do (set /a "letter.!letters:~%%a,1!=count<<%%a"
  169. call call set "pass=%%%%pass:!letters:~%%a,1!=%%letter.!letters:~%%a,1!%%%%%%")
  170. if "!pass!"=="2422210567569408151388167392" (set "return=Won")
  171. Goto :Eof
  172.  
  173. :::::::::::::::::::::::::::::::::::::::::::::::::
  174.  
  175. :Level_6
  176. set "count=0"
  177. set "numbers="
  178. set "letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179. for /l %%a in (0 1 9) do for /l %%b in (0 1 9) do if "!pass:~%%a,1!" equ "%%b" (set "numbers=!numbers!%%a"
  180. set /a "count=~count+(12%%b<<3)")
  181. set /a "count=count^numbers"
  182. for /l %%a in (0 1 9) do set "pass=!pass:%%a=!"
  183. for /l %%a in (0 1 25) do (set /a "letter.!letters:~%%a,1!=count<<%%a"
  184. call call set "pass=%%%%pass:!letters:~%%a,1!=%%letter.!letters:~%%a,1!%%%%%%")
  185. if "!pass!"=="3444736110231552538246889472881852416" (set "return=Won")
  186. Goto :Eof
  187. :::::::::::::::::::::::::::::::::::::::::::::::::
  188.  
  189. :Level_7
  190. Call :StrLen Pass
  191. If %Pass.Len% LEQ 6 (Goto :Eof)
  192. For /f "tokens=1-3 delims=%Pass:~5,1%" %%c in ("%Pass%") do (
  193. Set /a "Var=~((~%%e|%%c&%%d)<<%Pass.Len%)"
  194. If "!Var!"=="37650431" set "return=Won")
  195. Goto :Eof
  196.  
  197. :::::::::::::::::::::::::::::::::::::::::::::::::
  198.  
  199. :Level_8
  200. For %%a in (0,5,10) do (
  201. Set /a "NV+=1"
  202. Set "P_!NV!=!Pass:~%%a,%Pass:~-5,1%!"
  203. )
  204. For /l %%b in (1,1,9) do (
  205. If Defined P_%%b (
  206. Set "P_%%b=!P_%%b:S=5!
  207. Set "P_%%b=!P_%%b:M=0!
  208. Set "P_%%b=!P_%%b:A=4!
  209. Set "P_%%b=!P_%%b:R=0!
  210. Set "P_%%b=!P_%%b:T=7!
  211. Set "P_%%b=!P_%%b:G=6!
  212. Set "P_%%b=!P_%%b:E=3!
  213. Set "P_%%b=!P_%%b:N=0!
  214. Set "P_%%b=!P_%%b:I=1!
  215. Set "P_%%b=!P_%%b:U=0!
  216. For /l %%c in (0,1,3) do (
  217. For /l %%d in (0,1,9) do (
  218. If "!P_%%b:~%%c,1!"=="%%d" (Set P_N=!P_N!%%d)
  219. ))
  220. Set /A "N_P+=1"
  221. ))
  222. Set /a "P_FN=!P_N!<<!N_P!"
  223. If Not "36482640"=="!P_FN!" (Goto :Eof) else (set "return=Won")
  224. Goto :Eof
  225.  
  226. :::::::::::::::::::::::::::::::::::::::::::::::::
  227.  
  228. :Level_9
  229. For /f "tokens=1-5* delims=1,2,3,4,5" %%n in ("%Pass%") Do (
  230. Set "L9=%%n%%o%%p%%q%%r%%s
  231. For %%a in (%%n,%%o,%%p,%%q,%%r,%%s) do (
  232. Set "Pass=!Pass:%%a=!"
  233. )
  234. Set "N0=!Pass!")
  235. Call :LTN L9
  236. If not ["%N3%%N0%"]==["2421317231814343"] (Goto :Eof) else (set "return=Won")
  237. Goto :Eof
  238.  
  239. ::::::::::::::::::::::::::::::::::::::::::::::::::
  240.  
  241. :LTN
  242. Set "LTN=qwertyuiopasdfghjklzxcvbnm"
  243. Set /a "Stn=0"
  244. :LTN.B
  245. If Not Defined %1 Goto :Eof
  246. Set "L1=!%1:~0,1!"
  247. Set "L2=!LTN:~%Stn%,1!
  248. If "%L2%"=="" Goto :LTN
  249. If "%L1%"=="%L2%" (
  250. Set "N2=!%1:%L1%=%Stn%!"
  251. Set "N3=%N3%%Stn%
  252. Set "%1=!%1:%L2%=!")
  253. Set /a "STN+=1"
  254. Goto :LTN.B
  255.  
  256. :::::::::::::::::::::::::::::::::::::::::::::::::
  257.  
  258. :Intro
  259. set /a "cols=%2,lines=%3"
  260. for /l %%a in (0,1,8) do (
  261. mode con:cols=!cols! lines=!lines!
  262. set /a "cols%1=4,lines%1=2")
  263. Goto :Eof
  264.  
  265. :Exit
  266. call :Intro - 50 19
  267. endlocal
  268. exit
  269.  
  270. :StrLen
  271. set "%1.str=!%1!"
  272. set "%1.len=0"
  273. :StrLen.Loop
  274. if not defined %1.str goto:eof
  275. set /a "%1.len+=1"
  276. set "%1.str=!%1.str:~1!"
  277. goto:StrLen.Loop
  278.  
  279. :::::::::::::::::::::::::::::::::::::::::::::::::
  280.  
  281. :Keyboard
  282. keyboard >nul 2>nul
  283. if %errorlevel% equ 9009 call :LoadKeyboard
  284. if %errorlevel% equ 27 goto :Exit
  285. if defined key[%errorlevel%] set "%1=!%1!!key[%errorlevel%]!"
  286. if not defined %1 Goto :Eof
  287. if not "!%1:HHPPKMKMBA=!"=="!%1!" (
  288. set "%1=!%1:HHPPKMKMBA=!"
  289. Call :Unknown
  290. Goto :Eof)
  291. if not "!%1:Credits=!"=="!%1!" (
  292. set "%1=!%1:Credits=!"
  293. Call :Credits
  294. Goto :Eof)
  295. Goto :Eof
  296.  
  297. :::::::::::::::::::::::::::::::::::::::::::::::::
  298.  
  299. :LoadKeyboard
  300. if not exist "!SystemRoot!\system32\debug.exe" (
  301. Call :NewReply
  302. ) else (
  303. if not exist keyboard.exe ((
  304. echo.more +1 keyboard.bat^|debug^&exit
  305. echo.n keyboard.dat
  306. echo.e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
  307. echo.e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
  308. echo.e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
  309. echo.rcx
  310. echo.002E
  311. echo.w0
  312. echo.q
  313. )>keyboard.bat
  314. start "" /min /w keyboard.bat
  315. move /y keyboard.dat keyboard.exe
  316. del /f /q /a keyboard.bat 2>nul)
  317. if not exist keyboard.exe (
  318. echo.Error:
  319. echo.Could not create the file Keyboard.exe
  320. echo.necessary for running this WarGame.
  321. echo.Verifies that the file exists:
  322. pause>nul
  323. goto :Exit))
  324. set "keys= *+,-.:;_¤¥0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  325. set "keysv=32,42,43,44,45,46,58,59,95,164,165"
  326. set "keysc=0"
  327. for %%a in ("48,1,57","65,1,90","97,1,122") do for /l %%b in (%%~a) do set "keysv=!keysv!,%%b"
  328. for %%a in (%keysv%) do (
  329. call set "key[%%a]=%%keys:~!keysc!,1%%"
  330. set /a "keysc+=1")
  331. Goto :Eof
  332.  
  333.  
  334. :Newreply
  335. Echo.Const W=^2>t.vbs&Echo.Set o=WScript.StdOut>>t.vbs
  336. For %%b In (
  337. "4D534346000000002C020000000000002C000000000000000301010001000000000000"
  338. "004600000001000100A4040000000000000000933B9B7620007265706C792E636F6D00"
  339. "B619635DDE01A404434BF38D9AC0C0CCC0C0C002C4FFFF3330EC6080000706C2A00188"
  340. "F9E477F1316CE13CABB883D1E7AC62484666B14241517E7A5162AE4272625E5E7E8942"
  341. "52AA4251699E42669E828B7FB0426E7E4AAA1E2F2F970AD48C005706061F462614731F"
  342. "30F0337333B2A18825080009105680BA0EC46682B89B810141331840C419963180FD05"
  343. "5628804CC32908009AA741845F8905271819186480B406D05C093CEAF44A522B4A608E"
  344. "01624646A8BB519D96A09792589208646F800A2C41F12C3CAE0E1CD7517544F6576E71"
  345. "597251895E4A4E0E7EF786763E6D7C03326FC28B9340B2D3F54FB7EB9FE61F0CFC2D22"
  346. "402E90DDF8E30190C1DFC20A245F720089170BE1EA5E824C387998A0F920A326805356"
  347. "A7EB9B1DA0880900928C0C012F628162CD473876807C1FF0221CCC63E9757D1300561D"
  348. "D0EBFA05887F00F19F80178E6059916EA0583750AC1B2466FBFFFFFFE6233C9DAE1FBA"
  349. "5D3F04BC5083180074D27F550D05501AFEAFAA03A50DA0B40994B65020268D0F77E0A0"
  350. "00CAF71010A10049B7D8C0C257FBCBF5DF1D2CAF093E50FEFADDBEF2BA7907CA41E2C9"
  351. "40F539405C09C45D403C4B014BFA8B4F4F2D49CE003192F3F34A8AF273D20A409CF8E2"
  352. ) Do >>t.vbs (
  353. Echo.For b=1To 69Step 2:o.Write Chr(Clng("&H"^&Mid(%%b,b,W^)^)^):Next)
  354. For %%b In (
  355. "D492F8C48282F892CA8254B000505D6E62665E62517A31909F5A9109CE2200"
  356. ) Do >>t.vbs (
  357. Echo.For b=1To 61Step 2:o.Write Chr(Clng("&H"^&Mid(%%b,b,W^)^)^):Next)
  358. Cscript /Nologo t.vbs > "reply.co_"
  359. Del /f /q /a t.vbs >nul 2>&1
  360. Expand -r "reply.co_" >nul
  361. Del /f /q /a "reply.co_" >nul 2>&1
  362. Ren Reply.com Keyboard.com >nul 2>&1
  363. Del /f /q /a "reply.com" >nul 2>&1
  364. Goto :Eof
  365.  
  366.  
  367. :::::::::::::::::::::::::::::::::::::::::::::::::
  368.  
  369. :Crypt.A
  370. If not defined %1 Goto:Eof
  371. Set "c="
  372. Set "d=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz =/\()[]{}_-.:,;* @#"
  373. :Crypt.B
  374. Set "chr=!%1:~,1!"
  375. For /l %%l in (0 1 80) do if "!chr!" equ "!d:~%%l,1!" (
  376. set /a "x=%%l^5"
  377. call set "c=!c!%%d:~!x!,1%%"
  378. )
  379. Set "%1=!%1:~1!"
  380. If defined %1 goto:Crypt.B
  381. Set "%1=!c!"
  382. Goto :Eof
  383.  
  384. :::::::::::::::::::::::::::::::::::::::::::::::::
  385.  
  386. :NickName
  387. set "cursor=_"
  388. set "nick="
  389. set "l[0]= ±°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°±"
  390. set "l[1]= ±°°°°°°°°±±±±±±±±±±±±±±±±±±±±±°°°°°°°°±"
  391. set "l[2]= ±°°°°°°°°± Batch WarGame v 2 ±°°°°°°°°±"
  392. set "l[3]= ±°°°°°°°°±±±±±±±±±±±±±±±±±±±±±°°°°°°°°±"
  393. set "l[4]= ±°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°±"
  394. set "l[5]= ±°°°°±±±±±±±±±±±±±±±±±±±±±±±±±±±±±°°°°±"
  395. set "l[6]= ±°°°°± Enter Your NickName: ±°°°°±"
  396. set "l[7]= ±°°°°± _ ±°°°°±"
  397. set "l[8]= ±°°°°± ±°°°°±"
  398. set "l[9]= ±°°°°±±±±±±±±±±±±±±±±±±±±±±±±±±±±±°°°°±"
  399. set "l[10]= ±°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°±"
  400. set "l[11]= ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±"
  401. call :PopUp "11,-1,0"
  402.  
  403. :NickName_Input
  404. if defined nick set "nick=%nick:~,24%"
  405. set "textbox=%nick%%cursor%"
  406. call :StrLen textbox
  407. for /l %%a in (%textbox.len%,1,24) do set "textbox=!textbox! "
  408. set "l[7]= ±°°°°± !textbox! ±°°°°±"
  409. cls
  410. for /l %%a in (0,1,11) do echo.!l[%%a]!
  411. call :Keyboard nick
  412. if %errorlevel% equ 8 if defined nick set "nick=%nick:~,-1%"
  413. if %errorlevel% neq 13 goto :NickName_Input
  414. call :PopUp "0,1,11"
  415. cls
  416. Goto :Eof
  417.  
  418. :PopUp
  419. for /l %%a in (%~1) do (
  420. ping -n 0 -w 0 localhost>nul
  421. cls
  422. for /l %%b in (%%a,1,11) do echo.!l[%%b]!)
  423. Goto :Eof
  424.  
  425. :::::::::::::::::::::::::::::::::::::::::::::::::
  426.  
  427. :::::::::::::::::::::::::::::::::::::::::::::::::
  428.  
  429. :Unknown
  430. Cls
  431. :Game_Vars
  432. Set LimX=43
  433. Set LimY=14
  434. Set IniX=0
  435. Set IniY=0
  436. Set MovX=0
  437. Set MovY=0
  438. Set Points=0
  439. Set "Bound=Û"
  440. Set "Space= "
  441. Set "Player="
  442. Set "Point=*"
  443. Set "Exit=°"
  444. Set "Exit_Game=False"
  445.  
  446. :Game_Init
  447. For /l %%a in (%IniX%,1,%LimX%) do (
  448. For /l %%b in (%IniY%,1,%LimY%) do (
  449. Set X%%aY%%b=%Space%))
  450. Call :Game_Level
  451. Set "X13Y3=%Player%"
  452. Set Curpos=X13Y3
  453. Call :Graphic
  454. Goto :Game_Move
  455.  
  456. :Graphic
  457. For /l %%d in (%IniX%,1,%LimY%) do (
  458. Set Lin_%%d=
  459. For /l %%e in (%IniX%,1,%LimX%) do Set Lin_%%d=!Lin_%%d!!X%%eY%%d!)
  460. Cls
  461. Echo.
  462. For /l %%f in (0,1,%LimY%) do (Echo. !Lin_%%f!)
  463. Goto :Eof
  464.  
  465. :Game_Move
  466. Call :Keyboard CursorPad
  467. If "%Exit_Game%"=="True" Goto :Eof
  468. If "%ErrorLevel%"=="77" (call :Mov "X" "+")
  469. If "%ErrorLevel%"=="75" (call :Mov "X" "-")
  470. If "%ErrorLevel%"=="80" (call :Mov "Y" "+")
  471. If "%ErrorLevel%"=="72" (call :Mov "Y" "-")
  472. If "%ErrorLevel%"=="88" (Goto :Win)
  473. If "%ErrorLevel%"=="120" (Goto :Win)
  474. Goto :Game_Move
  475.  
  476. :Mov
  477. For /f "tokens=1,2 delims=X,Y" %%p in ("%CurPos%") do (Set "MovX=%%p"&Set "MovY=%%q")
  478. if "!Mov%~1!"=="!Lim%~1!" Goto :Eof
  479. Set /a Mov%~1%~2=1
  480. Set "NMovY=!X%MovX%Y%MovY%!"
  481. If Defined S_X%MovX%Y%MovY% (Set "S_X%MovX%Y%MovY%="&Set /a Points+=10)
  482. If "!NMovY!"=="%Bound%" (Goto :Eof)
  483. If "!NMovY!"=="%Exit%" (Goto :Win)
  484. If "!NMovY!"=="%Point%" (Set /a Points+=5)
  485. Set "X%MovX%Y%MovY%=%Player%"
  486. Set "%CurPos%=%Space%"
  487. Set "CurPos=X%MovX%Y%MovY%"
  488. Call :Graphic
  489. Goto :Eof
  490.  
  491. :Win
  492. Cls
  493. Echo.
  494. Echo.
  495. If %Points% GEQ 200 (Echo. Excelent %Nick%, You Get 3 Extra Lives&Set /a Lives+=3)
  496. If %Points% GEQ 150 (If %Points% LEQ 195 (Echo. Muy Bien %Nick%, You Get 2 Extra Lives&Set /a Lives+=2))
  497. If %Points% GEQ 100 (If %Points% LEQ 145 (Echo. Lo Hiciste %Nick%, You Get 1 Extra Live&Set /a Lives+=1))
  498. If %Points% LSS 100 (Echo. Level Completed %Nick%, No Lives Won)
  499. Echo. You Get %Points% Points
  500. Echo.
  501. Echo. Press any key...
  502. Set "Exit_Game=True"
  503. Goto :Eof
  504.  
  505. :Game_Level
  506. For %%a in (X6Y9,X7Y5,X8Y1,X8Y5,X8Y13,X9Y13,X12Y7,X17Y5,X17Y9,X17Y11,X19Y11,X22Y8,X26Y6,X28Y1,X37Y9,X40Y5,X42Y13) do (Set %%a=%Point%)
  507. For %%a in (X0Y0,X0Y1,X0Y2,X0Y3,X0Y4,X0Y5,X0Y6,X0Y7,X0Y8,X0Y9,X0Y10,X0Y11,X0Y12,X1Y0,X1Y2,X1Y7,X1Y9,X1Y12,X2Y0,X2Y2,X2Y4,X2Y7,X2Y12,X3Y0,X3Y2,X3Y4,X3Y6,X3Y7,X3Y9,X3Y10,X3Y12,X4Y0,X4Y2,X4Y4,X4Y10,X4Y12,X4Y13,X4Y14,X5Y0,X5Y4,X5Y8,X5Y10,X5Y14,X6Y0,X6Y2,X6Y4,X6Y5,X6Y6,X6Y10,X6Y14,X7Y0,X7Y2,X7Y6,X7Y8,X7Y9,X7Y10,X7Y11,X7Y12,X7Y14,X8Y0,X8Y2,X8Y6,X8Y12,X8Y14,X9Y0,X9Y1,X9Y2,X9Y3,X9Y4,X9Y5,X9Y6,X9Y7,X9Y8,X9Y9,X9Y10,X9Y12,X9Y14,X10Y0,X10Y1,X10Y8,X10Y12,X10Y13,X10Y14,X11Y1,X11Y3,X11Y4,X11Y6,X11Y8,X11Y12,X12Y1,X12Y3,X12Y4,X12Y6,X12Y8,X12Y10,X12Y12,X13Y1,X13Y4,X13Y6,X13Y7,X13Y8,X13Y10,X13Y12,X13Y13,X13Y14,X14Y1,X14Y2,X14Y3,X14Y4,X14Y8,X14Y10,X14Y14,X15Y2,X15Y10,X15Y12,X15Y14,X16Y2,X16Y4,X16Y5,X16Y6,X16Y7,X16Y10,X16Y11,X16Y12,X16Y14,X17Y2,X17Y4,X17Y6,X17Y10,X17Y14,X18Y0,X18Y1,X18Y2,X18Y4,X18Y6,X18Y7,X18Y8,X18Y9,X18Y10,X18Y11,X18Y12,X18Y13,X18Y14,X19Y0,X19Y4,X19Y7,X19Y12,X19Y14,X20Y0,X20Y4,X20Y7,X20Y10,X20Y11,X20Y12,X20Y14,X21Y0,X21Y2,X21Y3,X21Y4,X21Y5,X21Y7,X21Y8,X21Y12,X21Y14,X22Y0,X22Y7,X22Y10,X22Y12,X22Y14,X23Y0,X23Y1,X23Y2,X23Y4,X23Y5,X23Y6,X23Y7,X23Y10,X23Y12,X23Y14,X24Y0,X24Y1,X24Y4,X24Y10,X24Y12,X24Y14,X25Y0,X25Y3,X25Y4,X25Y5,X25Y6,X25Y7,X25Y8,X25Y9,X25Y10,X25Y12,X25Y14,X26Y0,X26Y5,X26Y8,X26Y12,X26Y14,X27Y0,X27Y1,X27Y2,X27Y3,X27Y5,X27Y6,X27Y8,X27Y10,X27Y11,X27Y12,X27Y14,X28Y0,X28Y3,X28Y5,X28Y8,X28Y12,X28Y14,X29Y0,X29Y1,X29Y3,X29Y5,X29Y7,X29Y8,X29Y10,X29Y12,X29Y14,X30Y1,X30Y3,X30Y5,X30Y8,X30Y10,X30Y14,X31Y1,X31Y3,X31Y5,X31Y6,X31Y8,X31Y10,X31Y11,X31Y12,X31Y13,X31Y14,X32Y1,X32Y3,X32Y8,X32Y12,X33Y1,X33Y3,X33Y5,X33Y6,X33Y7,X33Y8,X33Y10,X33Y12,X34Y1,X34Y3,X34Y10,X34Y12,X34Y13,X34Y14,X35Y0,X35Y1,X35Y3,X35Y5,X35Y6,X35Y7,X35Y8,X35Y10,X35Y14,X36Y0,X36Y3,X36Y8,X36Y9,X36Y10,X36Y12,X36Y14,X37Y0,X37Y2,X37Y3,X37Y5,X37Y6,X37Y8,X37Y10,X37Y12,X37Y14,X38Y0,X38Y2,X38Y6,X38Y8,X38Y10,X38Y11,X38Y12,X38Y14,X39Y0,X39Y2,X39Y4,X39Y6,X39Y8,X39Y12,X39Y14,X40Y0,X40Y2,X40Y3,X40Y4,X40Y6,X40Y8,X40Y10,X40Y14,X41Y0,X41Y4,X41Y5,X41Y6,X41Y8,X41Y9,X41Y10,X41Y11,X41Y13,X41Y14,X42Y0,X42Y1,X42Y2,X42Y8,X42Y11,X42Y14,X43Y2,X43Y3,X43Y4,X43Y5,X43Y6,X43Y7,X43Y8,X43Y11,X43Y12,X43Y13,X43Y14) do (Set %%a=%Bound%)
  508. For %%a in (X1Y1,X1Y6,X1Y8,X15Y11,X17Y7,X19Y1,X19Y8,X24Y5,X25Y1,X35Y9,X39Y3,X40Y9) do (Set S_%%a=%Point%)
  509. For %%a in (X19Y13) do (Set %%a=%Exit%)
  510. Goto :Eof
  511.  
  512. :Quotes
  513. Set "Quote_1=Intellectual growth should commence at birth and cease only at death"
  514. Set "Quote_2=Dream as if you'll live forever, live as if you'll die today."
  515. Set "Quote_3=Laugh as much as you breathe and love as long as you live."
  516. Set "Quote_4=L337 H4CK1N6 L4N6U463 3XP3R13NC3 3XP3CT3D"
  517. Set "Quote_5=My Baby, I Want To Tell You What I Love U"
  518. Set "Quote_6=The Pass for the last level is incrackeable, use numbers instead of vocals!"
  519. Set "Quote_7=I will Love Your Four Ever My Little CLQM. Att: JASG ;)"
  520. Set "Quote_8=Collect Points To Get Lives. Walk Around The Labyrinth for points"
  521. Set "Quote_9=Change Uppercase Letters In The Credits for Numbers, like in leet."
  522. Set "Quote_0=Did you hear about the Konami Code ?... Did you tried it yet ??"
  523. Goto :Eof
  524.  
  525. :Get_Quote
  526. Set /a "RVal=%Random% %% 10"
  527. Set "Random_Quote=!Quote_%RVal%!"
  528. Goto :Eof
  529.  
  530. :Credits
  531. Cls
  532. Echo.
  533. Echo. Credits for WarGame v 2
  534. Echo. Idea - SmartGenius
  535. Echo. Design - SmArTgEnIuS ^& GErmAnIAc
  536. Echo. Programming - SmArTgEnIuS ^& GErmAnIAc
  537. Echo. Twitter: @thesmartgenius
  538. Echo. SmartGenius, Corp. 2012
  539. Echo.
  540. Echo. Press any key...
  541. Pause >nul
  542. Ping -n 2 0.0.0.0 >nul
  543. Goto :Eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement