Advertisement
Guest User

Rpg

a guest
Apr 13th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.06 KB | None | 0 0
  1. @echo off
  2. mode con cols=160 lines=62
  3. setlocal enabledelayedexpansion
  4. color 0f
  5. title FinalRealm by Brian
  6.  
  7.  
  8. :entergame
  9. cls
  10. echo What would you like to do?
  11. echo.
  12. echo 1) Login
  13. echo 2) Create Account
  14. echo.
  15. echo.
  16. echo Current Version: v1.7_08
  17. echo.
  18. set /p login=
  19. if %login% GEQ 3 goto entergame
  20. if %login% EQU 1 goto login
  21. if %login% EQU 2 goto createuser
  22.  
  23. :createuser
  24. echo.
  25. echo What would you like your Username to be?
  26. set /p username1=
  27. set v1f=0
  28.  
  29.  
  30. :checkforspaces
  31. set x=!v1f!
  32. set Letter%v1f%=!username1:~%x%,1!
  33. if "!Letter%v1f%!" EQU " " (
  34. echo.
  35. echo.
  36. echo Sorry you cant use spaces in your Username.
  37. pause>nul
  38. goto entergame
  39. )
  40. if NOT "!Letter%v1f%!" EQU "" (
  41. set /a v1f=%v1f%+1
  42. goto checkforspaces
  43. )
  44. echo.
  45. echo What would you like your Password to be?
  46. set /p password1=
  47. goto DATA_VALUES
  48.  
  49.  
  50. :login
  51. cls
  52. set /p name1=Username:
  53. if not exist "%name1%.bat" (
  54. echo That is not a valid Username.
  55. pause>nul
  56. goto entergame
  57. )
  58. set /p pass1=Password:
  59. call %name1%.bat
  60. if not %password1% EQU %pass1% (
  61. echo That is not a valid Password.
  62. pause>nul
  63. goto entergame
  64. )
  65. goto MENU
  66.  
  67.  
  68. :DATA_VALUES
  69. set acc1g=0
  70. set acc1m=Open
  71. set acc2g=0
  72. set acc2m=Open
  73. set acc3g=0
  74. set acc3m=Open
  75. set acc4g=0
  76. set acc4m=Open
  77. set acc5g=0
  78. set acc5m=Open
  79. set cost=--
  80. set cost1=--
  81. set gcho=--
  82. set echo=--
  83. set e2cho=--
  84. set e1=--
  85. set dmgnpc=0
  86. set ls1=0
  87. set killcount=0
  88. set ls2=0
  89. set la1=0
  90. set la2=0
  91. set hp=100
  92. set orighp=100
  93. set armtype=No
  94. set swordtype=Your
  95. set skind=hand
  96. set buyword1=hi
  97. set buyword2=hi
  98. set curlvl=1
  99. set aan=a
  100. set bankgold=0
  101. set destination=SAVE_GAME_FILES
  102. set destination2=SAVE_GAME_FILES
  103. set swordchoice=hi
  104. set swordchoice2=hi
  105. set swordchoice3=hi
  106. set swordexist=hi
  107. set sprice=0
  108. set armchoice=hi
  109. set armchoice2=Armor
  110. set aprice=0
  111. set playerxp=0
  112. set xpuntil=500
  113. set origxp=500
  114. set money=100
  115. set key=0
  116. set damage=0
  117. set dr=0
  118. set gmail=0
  119. set hbone=0
  120. set dhide=0
  121. set rtab=0
  122. set food=0
  123. set rfood=0
  124. set bait=0
  125. set ea=None
  126. set potion=0
  127. set ingot=0
  128. set seed=0
  129. set bow=0
  130. set fur=0
  131. set gem=0
  132. set log=0
  133. set ore=0
  134. set morb=0
  135. set arm1=0
  136. set arm2=0
  137. set arm3=0
  138. set arm4=0
  139. set arm5=0
  140. set arm6=0
  141. set arm7=0
  142. set arm8=0
  143. set arm9=0
  144. set arm10=0
  145. set arm11=0
  146. set arm12=0
  147. set ma1=0
  148. set ma2=0
  149. set ma3=0
  150. set ma4=0
  151. set ma5=0
  152. set ma6=0
  153. set ma7=0
  154. set ma8=0
  155. set ma9=0
  156. set ma10=0
  157. set ms1=0
  158. set ms2=0
  159. set ms3=0
  160. set ms4=0
  161. set ms5=0
  162. set ms6=0
  163. set ms7=0
  164. set ms8=0
  165. set ms9=0
  166. set ms10=0
  167. set sword1=0
  168. set sword2=0
  169. set sword3=0
  170. set sword4=0
  171. set sword5=0
  172. set sword6=0
  173. set sword7=0
  174. set sword8=0
  175. set sword9=0
  176. set sword10=0
  177. set sword11=0
  178. set sword12=0
  179. set axxx=0
  180. set pgmail=300
  181. set phbone=550
  182. set pdhide=750
  183. set prtab=250
  184. set ppotion=200
  185. set pfood=100
  186. set pingot=473
  187. set pseed=150
  188. set prfood=100
  189. set pbait=2
  190. set pfur=200
  191. set pore=500
  192. set plog=275
  193. set pgem=1000
  194. set pbow=713
  195. set pmorb=15000
  196. set Woodcuttinglvl=1
  197. set Woodcuttingxpremain=100
  198. set Woodcuttingxpgain=38
  199. set Woodcuttingcurxp=0
  200. set Woodcuttingxpleft=100
  201. set Cooklvl=1
  202. set Cookxpremain=100
  203. set Cookxpgain=41
  204. set Cookcurxp=0
  205. set Cookxpleft=100
  206. set Fishinglvl=1
  207. set Fishingxpremain=100
  208. set Fishingxpgain=30
  209. set Fishingcurxp=0
  210. set Fishingxpleft=100
  211. set Mininglvl=1
  212. set Miningxpremain=100
  213. set Miningxpgain=35
  214. set Miningcurxp=0
  215. set Miningxpleft=100
  216. set Smithinglvl=1
  217. set Smithingxpremain=100
  218. set Smithingxpgain=33
  219. set Smithingcurxp=0
  220. set Smithingxpleft=100
  221. set Thievinglvl=1
  222. set Thievingxpremain=100
  223. set Thievingxpgain=36
  224. set Thievingcurxp=0
  225. set Thievingxpleft=100
  226. set ttllvl=13
  227. goto SAVE_GAME_FILES
  228.  
  229.  
  230.  
  231.  
  232.  
  233. :MENU
  234. color 0f
  235. set /a ttllvl=%Woodcuttinglvl%+%Cooklvl%+%Fishinglvl%+%Thievinglvl%+%Mininglvl%+%Smithinglvl%
  236. cls
  237. title FinalRealm - Varrock
  238. mode con cols=160 lines=62
  239. cls
  240. echo.
  241. echo.
  242. echo �����������������������������ͻ
  243. echo � What would you like to do? �
  244. echo.�����������������������������͹
  245. echo � 1) Wander Gielinor �
  246. echo.� �
  247. echo � 2) Weapon Shop �
  248. echo.� �
  249. echo � 3) Armor Shop �
  250. echo.� �
  251. echo � 4) Legend's Store �
  252. echo.� �
  253. echo � 5) Trading Post �
  254. echo.� �
  255. echo � 6) Max's Shop �
  256. echo.� �
  257. echo � 7) Smuggler �
  258. echo.� �
  259. echo � 8) The Stronghold �
  260. echo.� �
  261. echo � 9) Skill Plot �
  262. echo.� �
  263. echo � 10) RealmBank �
  264. echo.� �
  265. echo � 11) Quest Hall �
  266. echo.� �
  267. echo � 97) Your Inventory �
  268. echo �����������������������������ͼ
  269. echo.
  270. echo.
  271. echo.
  272. echo.
  273. echo.
  274. echo.
  275. echo.
  276. echo.
  277. echo.
  278. echo.
  279. echo.
  280. echo.
  281. echo.
  282. echo.
  283. echo.
  284. echo.
  285. echo.
  286. echo.
  287. echo.
  288. echo.
  289. echo.
  290. echo.
  291. echo.
  292. echo.
  293. echo.
  294. echo ���������������������������������������ͻ
  295. echo Currently logged in as %username1%.
  296. echo.���������������������������������������͹
  297. echo � 98) Settings �
  298. echo � 99) Log out �
  299. echo ���������������������������������������ͼ
  300. echo.
  301. set /p x1=
  302. if %x1% EQU 1 goto picknpc
  303. if %x1% EQU 2 goto weaponstore
  304. if %x1% EQU 3 goto Armorstore
  305. if %x1% EQU 4 goto legendsstore
  306. if %x1% EQU 5 goto gstore
  307. if %x1% EQU 6 goto maxshopclosed
  308. if %x1% EQU 7 goto smuggler
  309. if %x1% EQU 8 goto STR_WARN
  310. if %x1% EQU 9 goto skillplot
  311. if %x1% EQU 10 goto BANK
  312. if %x1% EQU 11 goto QUEST_MASTER
  313. if %x1% EQU 97 goto checkitems
  314. if %x1% EQU 98 goto settings
  315. if %x1% EQU 99 goto entergame
  316. goto MENU
  317.  
  318.  
  319.  
  320.  
  321. :QUEST_MASTER
  322. cls
  323. echo.
  324. echo Welcome to the Quest Hall^^!
  325. echo.
  326. echo Active Quests:
  327. echo - Reach level 5
  328. echo - Reach level 10
  329. echo - Reach level 15
  330. echo - Reach level 20
  331. echo - Reach level 25
  332. echo - Reach level 30
  333. echo - Reach level 37
  334. echo - Kill 10 Monsters
  335. echo - Kill 50 Monsters
  336. echo - Kill 100 Monsters
  337. echo - Kill 250 Monsters
  338. echo - Kill 500 Monsters
  339. echo - Kill 1000 Monsters
  340. echo.
  341. echo Inactive Quests:
  342. echo Complete Quests:
  343. pause>nul
  344. goto MENU
  345.  
  346.  
  347.  
  348.  
  349. :BANK
  350. title RealmBank
  351. set destination1=BANK
  352. cls
  353. echo.
  354. echo Welcome to RealmBank^^! Here are your accounts which you can store up to 1,000,000,000 (1B) gold into each.
  355. echo.
  356. echo �������������������������������
  357. echo You have %money% gold.
  358. echo.�������������������������������
  359. echo Account 1: %acc1m%
  360. echo - Gold: %acc1g%
  361. echo.
  362. echo Account 2: %acc2m%
  363. echo - Gold: %acc2g%
  364. echo.
  365. echo Account 3: %acc3m%
  366. echo - Gold: %acc3g%
  367. echo.
  368. echo Account 4: %acc4m%
  369. echo - Gold: %acc4g%
  370. echo.
  371. echo Account 5: %acc5m%
  372. echo - Gold: %acc5g%
  373. echo �������������������������������
  374. echo.
  375. echo Type "exit" to exit.
  376. echo.
  377. set /p a5=Acess account number:
  378. if %a5% EQU 1 (
  379. set bankgold=acc1g
  380. set bankfull=acc1m )
  381. if %a5% EQU 2 (
  382. set bankgold=acc2g
  383. set bankfull=acc2m )
  384. if %a5% EQU 3 (
  385. set bankgold=acc3g
  386. set bankfull=acc3m )
  387. if %a5% EQU 4 (
  388. set bankgold=acc4g
  389. set bankfull=acc4m )
  390. if %a5% EQU 5 (
  391. set bankgold=acc5g
  392. set bankfull=acc5m )
  393. if %a5% EQU exit goto SAVE_GAME_FILES
  394. goto depositwithdraw
  395.  
  396. :depositwithdraw
  397. echo.
  398. set /p a8=Deposit or withdraw [d/w]:
  399. if %a8% EQU d goto depositgoldintobank
  400. if %a8% EQU w goto withdrawgoldfrombank
  401.  
  402. :depositgoldintobank
  403. echo.
  404. set /p a6=Amount of gold you would like to deposit ( "all" / [amount] ):
  405. if %a6% LEQ 0 goto BANK
  406. if %a6% EQU all (
  407. set /a %bankgold%=!%bankgold%!+%money%
  408. if !%bankgold%! GEQ 1000000000 (
  409. set /a money=!%bankgold%!-1000000000+%money%
  410. set /a %bankgold%=1000000000
  411. set %bankfull%=Closed )
  412. set /a money=0
  413. goto BANK )
  414. if %a6% GTR %money% goto notenoughmoney
  415. set /a %bankgold%=!%bankgold%!+%a6%
  416. if !%bankgold%! GEQ 1000000000 (
  417. set /a money=!%bankgold%!-1000000000+%money%
  418. set /a %bankgold%=1000000000
  419. set %bankfull%=Closed
  420. goto BANK )
  421. set /a money=%money%-%a6%
  422. goto BANK
  423.  
  424. :withdrawgoldfrombank
  425. echo.
  426. set /p a7=Amount of gold you would like to withdraw ( "all" / [amount] ):
  427. if %a7% LEQ 0 goto BANK
  428. if %a7% EQU all (
  429. set /a money=%money%+!%bankgold%!
  430. set /a %bankgold%=0
  431. set %bankfull%=Open
  432. goto BANK )
  433. if %a7% GTR !%bankgold%! goto notenoughmoney
  434. set /a %bankgold%=!%bankgold%!-%a7%
  435. set /a money=%money%+%a7%
  436. if !%bankgold%! LSS 1000000000 set %bankfull% EQU Open
  437. goto BANK
  438.  
  439.  
  440.  
  441.  
  442. :STR_WARN
  443. color 0c
  444. cls
  445. echo.
  446. echo WARNING:
  447. echo.
  448. echo THE STRONGHOLD IS VERY DANGEROUS. YOU WILL LOSE ALL YOUR ITEMS IF YOU ARE NOT PROPERLY PREPARED.
  449. echo YOU WILL NOT BE ABLE TO FLEE OR ACESS YOUR INVENTORY DURING BATTLE, SO BE PREPARED WITH GOOD DEFENSES.
  450. echo.
  451. echo ARE YOU SURE YOU WISH TO CONTINUE?
  452. echo.
  453. echo.
  454. echo 1) Yeah, after all, I am an adventurer.
  455. echo 2) Maybe I should come back later...
  456. echo.
  457. set /p str1=
  458. if %str1% EQU 1 goto STR_KC
  459. if %str1% EQU 2 goto SAVE_GAME_FILES
  460.  
  461. :STR_KC
  462. color 0f
  463. set /a npc=%random% %% 3+1
  464. if %npc% EQU 1 goto goblinstr
  465. if %npc% EQU 2 goto giantstr
  466. if %npc% EQU 3 goto ratstr
  467.  
  468. :goblinstr
  469. set npctype=Mage
  470. set /a level=110
  471. set /a health=750
  472. set /a xp=1000
  473. goto FS1_STR
  474.  
  475. :ratstr
  476. set npctype=Ranger
  477. set /a level=111
  478. set /a health=750
  479. set /a xp=1000
  480. goto FS1_STR
  481.  
  482. :giantstr
  483. set npctype=Warrior
  484. set /a level=108
  485. set /a health=750
  486. set /a xp=1000
  487. goto FS1_STR
  488.  
  489.  
  490. :FS1_STR
  491. if %killcount% EQU 10 goto BOSS_FIGHT
  492. mode con cols=160 lines=62
  493. title FinalRealm - Stronghold
  494. cls
  495. echo.
  496. echo You continue into the stronghold...
  497. echo.
  498. ping localhost -n 2 >nul
  499. echo You encounter a level %level% %npctype%.
  500. echo.
  501. ping localhost -n 2 >nul
  502. goto ATK_STR
  503.  
  504.  
  505. :ATK_STR
  506. if %swordtype% EQU Your set /a damage=%random%*50/32767+1
  507. if %swordtype% EQU Wooden set /a damage=%random%*100/32767+1
  508. if %swordtype% EQU Stone set /a damage=%random%*125/32767+1
  509. if %swordtype% EQU Bronze set /a damage=%random%*150/32767+1
  510. if %swordtype% EQU Iron set /a damage=%random%*175/32767+1
  511. if %swordtype% EQU Steel set /a damage=%random%*200/32767+1
  512. if %swordtype% EQU Gold set /a damage=%random%*225/32767+1
  513. if %swordtype% EQU Crystal set /a damage=%random%*250/32767+1
  514. if %swordtype% EQU Sacred set /a damage=%random%*275/32767+1
  515. if %swordtype% EQU Runic set /a damage=%random%*300/32767+1
  516. if %swordtype% EQU Infernal set /a damage=%random%*300/32767+1
  517. if %swordtype% EQU Omega set /a damage=%random%*300/32767+1
  518. if %swordtype% EQU Chaotic set /a damage=%random%*300/32767+1
  519. if %swordtype% EQU Mythical set /a damage=%random%*450/32767+1
  520. if %swordtype% EQU Alydril set /a damage=%random%*600/32767+1
  521. if %damage% GTR %health% set /a damage=%health%
  522. cls
  523. echo.
  524. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ***** Kill Count: %killcount% ****
  525. echo.
  526. echo.
  527. echo You attack.
  528. echo.
  529. ping localhost -n 2 >nul
  530. set /a atkxp=((%damage%/4)*3)
  531. set /a playerxp=%playerxp%+%atkxp%
  532. set /a xpuntil=%xpuntil%-%atkxp%
  533. set /a health=%health% - %damage%
  534. echo You deal %damage% damage to the %npctype%.
  535. echo.
  536. echo It now has %health% health left.
  537. echo.
  538. echo You gain %atkxp% EXP.
  539. ping localhost -n 2 >nul
  540. if %health% LEQ 0 goto CHECKFORLVL_STR
  541. if %xpuntil% LEQ 0 set destination=FS3_STR
  542. if %xpuntil% LEQ 0 goto levelup
  543. goto FS3_STR
  544.  
  545.  
  546. :FS3_STR
  547. if %npctype% EQU Mage set /a dmgnpc=%random%*200/32767+1
  548. if %npctype% EQU Ranger set /a dmgnpc=%random%*200/32767+1
  549. if %npctype% EQU Warrior set /a dmgnpc=%random%*200/32767+1
  550. if %armtype% EQU Cloth set /a dr=%random%*10/32767+1
  551. if %armtype% EQU Chain set /a dr=%random%*20/32767+1
  552. if %armtype% EQU Bronze set /a dr=%random%*40/32767+1
  553. if %armtype% EQU Iron set /a dr=%random%*65/32767+1
  554. if %armtype% EQU Steel set /a dr=%random%*100/32767+1
  555. if %armtype% EQU Gold set /a dr=%random%*120/32767+1
  556. if %armtype% EQU Crystal set /a dr=%random%*145/32767+1
  557. if %armtype% EQU Sacred set /a dr=%random%*175/32767+1
  558. if %armtype% EQU Runic set /a dr=%random%*200/32767+1
  559. if %armtype% EQU Infernal set /a dr=%random%*215/32767+1
  560. if %armtype% EQU Omega set /a dr=%random%*230/32767+1
  561. if %armtype% EQU Chaotic set /a dr=%random%*250/32767+1
  562. if %armtype% EQU Mythical set /a dr=%random%*275/32767+1
  563. if %armtype% EQU Alydril set /a dr=%random%*300/32767+1
  564. if %armtype% EQU Cloth set /a dmgnpc=%dmgnpc%-%dr%
  565. if %armtype% EQU Chain set /a dmgnpc=%dmgnpc%-%dr%
  566. if %armtype% EQU Bronze set /a dmgnpc=%dmgnpc%-%dr%
  567. if %armtype% EQU Iron set /a dmgnpc=%dmgnpc%-%dr%
  568. if %armtype% EQU Steel set /a dmgnpc=%dmgnpc%-%dr%
  569. if %armtype% EQU Gold set /a dmgnpc=%dmgnpc%-%dr%
  570. if %armtype% EQU Crystal set /a dmgnpc=%dmgnpc%-%dr%
  571. if %armtype% EQU Sacred set /a dmgnpc=%dmgnpc%-%dr%
  572. if %armtype% EQU Runic set /a dmgnpc=%dmgnpc%-%dr%
  573. if %armtype% EQU Infernal set /a dmgnpc=%dmgnpc%-%dr%
  574. if %armtype% EQU Omega set /a dmgnpc=%dmgnpc%-%dr%
  575. if %armtype% EQU Chaotic set /a dmgnpc=%dmgnpc%-%dr%
  576. if %armtype% EQU Mythical set /a dmgnpc=%dmgnpc%-%dr%
  577. if %armtype% EQU Alydril set /a dmgnpc=%dmgnpc%-%dr%
  578. if %dmgnpc% LEQ 0 set /a dmgnpc=0
  579. mode con cols=160 lines=62
  580. title FinalRealm - Stronghold
  581. cls
  582. echo.
  583. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ***** Kill Count: %killcount% ****
  584. echo.
  585. echo.
  586. echo The %npctype% attacks.
  587. echo.
  588. ping localhost -n 2 >nul
  589. echo The %npctype% deals %dmgnpc% damage to you.
  590. set /a hp=%hp% - %dmgnpc%
  591. if %hp% LEQ 0 goto die
  592. echo.
  593. echo You now have %hp% health left.
  594. ping localhost -n 2 >nul
  595. goto ATK_STR
  596.  
  597.  
  598. :CHECKFORLVL_STR
  599. if %xpuntil% LEQ 0 set destination=FS3_STR
  600. if %xpuntil% LEQ 0 goto levelup
  601.  
  602. :WIN_STR
  603. set /a goldgain=%random%*1000/32767+1
  604. set /a goldgain=%goldgain%+1000
  605. set /a money=%money%+%goldgain%
  606. cls
  607. echo.
  608. echo You won the battle against the %npctype%.
  609. echo.
  610. echo You gain %goldgain% gold.
  611. echo.
  612. pause>nul
  613. set /a killcount=%killcount%+1
  614. if %killcount% EQU 2 set /a hp=%orighp%
  615. if %killcount% EQU 4 set /a hp=%orighp%
  616. if %killcount% EQU 6 set /a hp=%orighp%
  617. if %killcount% EQU 8 set /a hp=%orighp%
  618. if %killcount% EQU 10 set /a hp=%orighp%
  619. goto STR_KC
  620.  
  621.  
  622.  
  623. :BOSS_FIGHT
  624. set /a hp=%orighp%
  625. set npctype=Lacoyx
  626. set /a level=741
  627. set /a health=2780
  628. set /a xp=5000
  629. goto FS1_STR_B
  630.  
  631. :FS1_STR_B
  632. mode con cols=160 lines=62
  633. title FinalRealm - Stronghold
  634. cls
  635. echo.
  636. echo You enter Lacoyx's throne room...
  637. echo.
  638. ping localhost -n 2 >nul
  639. cls
  640. echo.
  641. echo ��������������������������������������������������������
  642. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ****
  643. echo ��������������������������������������������������������
  644. echo.
  645. echo.
  646. echo You encounter %npctype%, a level %level% War Commander.
  647. echo.
  648. ping localhost -n 2 >nul
  649. goto ATK_STR_3
  650.  
  651.  
  652. :ATK_STR_3
  653. if %swordtype% EQU Your set /a damage=%random%*50/32767+1
  654. if %swordtype% EQU Wooden set /a damage=%random%*100/32767+1
  655. if %swordtype% EQU Stone set /a damage=%random%*125/32767+1
  656. if %swordtype% EQU Bronze set /a damage=%random%*150/32767+1
  657. if %swordtype% EQU Iron set /a damage=%random%*175/32767+1
  658. if %swordtype% EQU Steel set /a damage=%random%*200/32767+1
  659. if %swordtype% EQU Gold set /a damage=%random%*225/32767+1
  660. if %swordtype% EQU Crystal set /a damage=%random%*250/32767+1
  661. if %swordtype% EQU Sacred set /a damage=%random%*275/32767+1
  662. if %swordtype% EQU Runic set /a damage=%random%*300/32767+1
  663. if %swordtype% EQU Infernal set /a damage=%random%*300/32767+1
  664. if %swordtype% EQU Omega set /a damage=%random%*300/32767+1
  665. if %swordtype% EQU Chaotic set /a damage=%random%*300/32767+1
  666. if %swordtype% EQU Mythical set /a damage=%random%*450/32767+1
  667. if %swordtype% EQU Alydril set /a damage=%random%*600/32767+1
  668. if %damage% GTR %health% set /a damage=%health%
  669. cls
  670. echo.
  671. echo ��������������������������������������������������������
  672. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ****
  673. echo ��������������������������������������������������������
  674. echo.
  675. echo.
  676. echo You attack.
  677. echo.
  678. ping localhost -n 2 >nul
  679. set /a atkxp=((%damage%/4)*3)
  680. set /a playerxp=%playerxp%+%atkxp%
  681. set /a xpuntil=%xpuntil%-%atkxp%
  682. set /a health=%health% - %damage%
  683. echo You deal %damage% damage to the %npctype%.
  684. echo.
  685. echo It now has %health% health left.
  686. echo.
  687. echo You gain %atkxp% EXP.
  688. ping localhost -n 2 >nul
  689. if %curlvl% GEQ 37 set /a xpuntil=1
  690. if %playerxp% GEQ 1000000 set /a playerxp=1000000
  691. if %health% LEQ 0 goto CHECKFORLVL_STR_B
  692. if %xpuntil% LEQ 0 set destination=FS_STR_3
  693. if %xpuntil% LEQ 0 goto levelup
  694. goto FS_STR_3
  695.  
  696.  
  697. :FS_STR_3
  698. if %npctype% EQU Lacoyx set /a dmgnpc=%random%*600/32767+1
  699. if %armtype% EQU Cloth set /a dr=%random%*10/32767+1
  700. if %armtype% EQU Chain set /a dr=%random%*20/32767+1
  701. if %armtype% EQU Bronze set /a dr=%random%*40/32767+1
  702. if %armtype% EQU Iron set /a dr=%random%*65/32767+1
  703. if %armtype% EQU Steel set /a dr=%random%*100/32767+1
  704. if %armtype% EQU Gold set /a dr=%random%*120/32767+1
  705. if %armtype% EQU Crystal set /a dr=%random%*145/32767+1
  706. if %armtype% EQU Sacred set /a dr=%random%*175/32767+1
  707. if %armtype% EQU Runic set /a dr=%random%*200/32767+1
  708. if %armtype% EQU Infernal set /a dr=%random%*215/32767+1
  709. if %armtype% EQU Omega set /a dr=%random%*230/32767+1
  710. if %armtype% EQU Chaotic set /a dr=%random%*250/32767+1
  711. if %armtype% EQU Mythical set /a dr=%random%*275/32767+1
  712. if %armtype% EQU Alydril set /a dr=%random%*300/32767+1
  713. if %armtype% EQU Cloth set /a dmgnpc=%dmgnpc%-%dr%
  714. if %armtype% EQU Chain set /a dmgnpc=%dmgnpc%-%dr%
  715. if %armtype% EQU Bronze set /a dmgnpc=%dmgnpc%-%dr%
  716. if %armtype% EQU Iron set /a dmgnpc=%dmgnpc%-%dr%
  717. if %armtype% EQU Steel set /a dmgnpc=%dmgnpc%-%dr%
  718. if %armtype% EQU Gold set /a dmgnpc=%dmgnpc%-%dr%
  719. if %armtype% EQU Crystal set /a dmgnpc=%dmgnpc%-%dr%
  720. if %armtype% EQU Sacred set /a dmgnpc=%dmgnpc%-%dr%
  721. if %armtype% EQU Runic set /a dmgnpc=%dmgnpc%-%dr%
  722. if %armtype% EQU Infernal set /a dmgnpc=%dmgnpc%-%dr%
  723. if %armtype% EQU Omega set /a dmgnpc=%dmgnpc%-%dr%
  724. if %armtype% EQU Chaotic set /a dmgnpc=%dmgnpc%-%dr%
  725. if %armtype% EQU Mythical set /a dmgnpc=%dmgnpc%-%dr%
  726. if %armtype% EQU Alydril set /a dmgnpc=%dmgnpc%-%dr%
  727. if %dmgnpc% LEQ 0 set /a dmgnpc=0
  728. mode con cols=160 lines=62
  729. title FinalRealm - Stronghold
  730. cls
  731. echo.
  732. echo ��������������������������������������������������������
  733. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ****
  734. echo ��������������������������������������������������������
  735. echo.
  736. echo.
  737. echo %npctype% attacks.
  738. echo.
  739. ping localhost -n 2 >nul
  740. echo %npctype% deals %dmgnpc% damage to you.
  741. set /a hp=%hp% - %dmgnpc%
  742. if %hp% LEQ 0 goto die
  743. echo.
  744. echo You now have %hp% health left.
  745. ping localhost -n 2 >nul
  746. goto ATK_STR_3
  747.  
  748.  
  749. :CHECKFORLVL_STR_B
  750. if %xpuntil% LEQ 0 set destination=FS_STR_3
  751. if %xpuntil% LEQ 0 goto levelup
  752.  
  753.  
  754. :WIN_STR_B
  755. cls
  756. echo.
  757. echo You won the battle against %npctype%.
  758. echo.
  759. echo You recieved an Omega Maul.
  760. echo You recieved Runic Armor.
  761. echo You have gained %xp% Experience.
  762. set /a sword11=%sword11%+1
  763. set /a arm9=%arm9%+1
  764. set /a killcount=0
  765. set /a playerxp=%playerxp%+%xp%
  766. set /a xpuntil=%xpuntil%-%xp%
  767. echo.
  768. pause>nul
  769. set /a hp=%orighp%
  770. if %xpuntil% LEQ 0 set destination=SAVE_GAME_FILES
  771. if %xpuntil% LEQ 0 goto levelup
  772. goto SAVE_GAME_FILES
  773.  
  774.  
  775.  
  776. :smuggler
  777. title FinalRealm - Smuggler
  778. cls
  779. echo.
  780. echo Smuggler:
  781. echo.
  782. echo Hello %username1%, what can I do for you?
  783. echo.
  784. ping localhost -n 2 >nul
  785. echo 1) Who are you?
  786. echo 2) What do you have for trade?
  787. echo 3) Walk away
  788. echo.
  789. set /p s1=
  790. if %s1% EQU 1 goto whoissmuggler
  791. if %s1% EQU 2 goto tradesmuggler
  792. if %s1% EQU 3 goto SAVE_GAME_FILES
  793.  
  794. :whoissmuggler
  795. cls
  796. echo.
  797. echo %username1%:
  798. echo.
  799. echo Who are you?
  800. echo.
  801. ping localhost -n 2 >nul
  802. echo.
  803. echo Smuggler:
  804. echo.
  805. echo I am the Smuggler. I will buy your swords and armor off of you for a small amount.
  806. echo.
  807. pause>nul
  808. goto smuggler
  809.  
  810. :tradesmuggler
  811. cls
  812. set /a numArmor=%arm1%+%arm2%+%arm3%+%arm4%+%arm5%+%arm6%+%arm7%+%arm8%+%arm9%+%arm10%+%arm11%+%arm12%
  813. set /a numswords=%sword1%+%sword2%+%sword3%+%sword4%+%sword5%+%sword6%+%sword7%+%sword8%+%sword9%+%sword10%+%sword11%+%sword12%
  814. echo.
  815. echo You currently have %numswords% swords.
  816. echo You currently have a %swordtype% %skind% equipped.
  817. echo You currently have %numArmor% pieces of Armor.
  818. echo You currently have %armtype% Armor equipped.
  819. echo.
  820. echo Select an item to sell, or type "back" to go back.
  821. echo.
  822. echo Weapons:
  823. echo s1) Wooden Sword: %sword1%
  824. echo s2) Stone Sword: %sword2%
  825. echo s3) Bronze Sword: %sword3%
  826. echo s4) Iron Sword: %sword4%
  827. echo s5) Steel Sword: %sword5%
  828. echo s6) Gold Sword: %sword6%
  829. echo s7) Crystal Sword: %sword7%
  830. echo s8) Sacred Blade: %sword8%
  831. echo s9) Runic Sword: %sword9%
  832. echo s10) Infernal Rapier: %sword10%
  833. echo s11) Omega Maul: %sword11%
  834. echo s12) Chaotic Spear: %sword12%
  835. echo s13) Mythical Godsword: %ls1%
  836. echo s14) Alydril Godsword: %ls2%
  837. echo.
  838. echo.
  839. echo Armor:
  840. echo a1) Cloth Armor: %arm1%
  841. echo a2) Chain Armor: %arm2%
  842. echo a3) Bronze Armor: %arm3%
  843. echo a4) Iron Armor: %arm4%
  844. echo a5) Steel Armor: %arm5%
  845. echo a6) Gold Armor: %arm6%
  846. echo a7) Crystal Armor: %arm7%
  847. echo a8) Sacred Armor: %arm8%
  848. echo a9) Runic Armor: %arm9%
  849. echo a10) Infernal Armor: %arm10%
  850. echo a11) Omega Armor: %arm11%
  851. echo a12) Chaotic Armor: %arm12%
  852. echo a13) Mythical Amour: %la1%
  853. echo a14) Alydril Armor: %la2%
  854. echo.
  855. set /p s2=
  856. if %s2% EQU s1 set swordchoice=Wooden
  857. if %s2% EQU s1 set swordchoice2=Sword
  858. if %s2% EQU s2 set swordchoice=Stone
  859. if %s2% EQU s2 set swordchoice2=Sword
  860. if %s2% EQU s3 set swordchoice=Bronze
  861. if %s2% EQU s3 set swordchoice2=Sword
  862. if %s2% EQU s4 set swordchoice=Iron
  863. if %s2% EQU s4 set swordchoice2=Sword
  864. if %s2% EQU s5 set swordchoice=Steel
  865. if %s2% EQU s5 set swordchoice2=Sword
  866. if %s2% EQU s6 set swordchoice=Gold
  867. if %s2% EQU s6 set swordchoice2=Sword
  868. if %s2% EQU s7 set swordchoice=Crystal
  869. if %s2% EQU s7 set swordchoice2=Sword
  870. if %s2% EQU s8 set swordchoice=Sacred
  871. if %s2% EQU s8 set swordchoice2=Blade
  872. if %s2% EQU s9 set swordchoice=Runic
  873. if %s2% EQU s9 set swordchoice2=Sword
  874. if %s2% EQU s10 set swordchoice=Infernal
  875. if %s2% EQU s10 set swordchoice2=Rapier
  876. if %s2% EQU s11 set swordchoice=Omega
  877. if %s2% EQU s11 set swordchoice2=Maul
  878. if %s2% EQU s12 set swordchoice=Chaotic
  879. if %s2% EQU s12 set swordchoice2=Spear
  880. if %s2% EQU s13 set swordchoice=Mythical
  881. if %s2% EQU s13 set swordchoice2=Godsword
  882. if %s2% EQU s14 set swordchoice=Alydril
  883. if %s2% EQU s14 set swordchoice2=Godsword
  884. if %s2% EQU s1 set swordexist=%sword1%
  885. if %s2% EQU s2 set swordexist=%sword2%
  886. if %s2% EQU s3 set swordexist=%sword3%
  887. if %s2% EQU s4 set swordexist=%sword4%
  888. if %s2% EQU s5 set swordexist=%sword5%
  889. if %s2% EQU s6 set swordexist=%sword6%
  890. if %s2% EQU s7 set swordexist=%sword7%
  891. if %s2% EQU s8 set swordexist=%sword8%
  892. if %s2% EQU s9 set swordexist=%sword9%
  893. if %s2% EQU s10 set swordexist=%sword10%
  894. if %s2% EQU s11 set swordexist=%sword11%
  895. if %s2% EQU s12 set swordexist=%sword12%
  896. if %s2% EQU s13 set swordexist=%ls1%
  897. if %s2% EQU s14 set swordexist=%ls2%
  898. if %s2% EQU s1 set swordexist2=sword1
  899. if %s2% EQU s2 set swordexist2=sword2
  900. if %s2% EQU s3 set swordexist2=sword3
  901. if %s2% EQU s4 set swordexist2=sword4
  902. if %s2% EQU s5 set swordexist2=sword5
  903. if %s2% EQU s6 set swordexist2=sword6
  904. if %s2% EQU s7 set swordexist2=sword7
  905. if %s2% EQU s8 set swordexist2=sword8
  906. if %s2% EQU s9 set swordexist2=sword9
  907. if %s2% EQU s10 set swordexist2=sword10
  908. if %s2% EQU s11 set swordexist2=sword11
  909. if %s2% EQU s12 set swordexist2=sword12
  910. if %s2% EQU s13 set swordexist2=ls1
  911. if %s2% EQU s14 set swordexist2=ls2
  912. if %s2% EQU back goto declinesmug
  913. if %swordchoice% EQU Wooden set /a sprice=50
  914. if %swordchoice% EQU Stone set /a sprice=125
  915. if %swordchoice% EQU Bronze set /a sprice=250
  916. if %swordchoice% EQU Iron set /a sprice=500
  917. if %swordchoice% EQU Steel set /a sprice=1250
  918. if %swordchoice% EQU Gold set /a sprice=2500
  919. if %swordchoice% EQU Crystal set /a sprice=5000
  920. if %swordchoice% EQU Sacred set /a sprice=12500
  921. if %swordchoice% EQU Runic set /a sprice=25000
  922. if %swordchoice% EQU Infernal set /a sprice=25000
  923. if %swordchoice% EQU Omega set /a sprice=25000
  924. if %swordchoice% EQU Chaotic set /a sprice=25000
  925. if %swordchoice% EQU Mythical set /a sprice=750000
  926. if %swordchoice% EQU Alydril set /a sprice=1500000
  927. if %s2% EQU a1 set swordchoice=Cloth
  928. if %s2% EQU a1 set swordchoice2=Armor
  929. if %s2% EQU a2 set swordchoice=Chain
  930. if %s2% EQU a2 set swordchoice2=Armor
  931. if %s2% EQU a3 set swordchoice=Bronze
  932. if %s2% EQU a3 set swordchoice2=Armor
  933. if %s2% EQU a4 set swordchoice=Iron
  934. if %s2% EQU a4 set swordchoice2=Armor
  935. if %s2% EQU a5 set swordchoice=Steel
  936. if %s2% EQU a5 set swordchoice2=Armor
  937. if %s2% EQU a6 set swordchoice=Gold
  938. if %s2% EQU a6 set swordchoice2=Armor
  939. if %s2% EQU a7 set swordchoice=Crystal
  940. if %s2% EQU a7 set swordchoice2=Armor
  941. if %s2% EQU a8 set swordchoice=Sacred
  942. if %s2% EQU a8 set swordchoice2=Armor
  943. if %s2% EQU a9 set swordchoice=Runic
  944. if %s2% EQU a9 set swordchoice2=Armor
  945. if %s2% EQU a10 set swordchoice=Infernal
  946. if %s2% EQU a10 set swordchoice2=Armor
  947. if %s2% EQU a11 set swordchoice=Omega
  948. if %s2% EQU a11 set swordchoice2=Armor
  949. if %s2% EQU a12 set swordchoice=Chaotic
  950. if %s2% EQU a12 set swordchoice2=Armor
  951. if %s2% EQU a13 set swordchoice=Mythical
  952. if %s2% EQU a13 set swordchoice2=Armor
  953. if %s2% EQU a14 set swordchoice=Alydril
  954. if %s2% EQU a14 set swordchoice2=Armor
  955. if %s2% EQU a1 set swordexist=%arm1%
  956. if %s2% EQU a2 set swordexist=%arm2%
  957. if %s2% EQU a3 set swordexist=%arm3%
  958. if %s2% EQU a4 set swordexist=%arm4%
  959. if %s2% EQU a5 set swordexist=%arm5%
  960. if %s2% EQU a6 set swordexist=%arm6%
  961. if %s2% EQU a7 set swordexist=%arm7%
  962. if %s2% EQU a8 set swordexist=%arm8%
  963. if %s2% EQU a9 set swordexist=%arm9%
  964. if %s2% EQU a10 set swordexist=%arm10%
  965. if %s2% EQU a11 set swordexist=%arm11%
  966. if %s2% EQU a12 set swordexist=%arm12%
  967. if %s2% EQU a13 set swordexist=%la1%
  968. if %s2% EQU a14 set swordexist=%la2%
  969. if %s2% EQU a1 set swordexist2=arm1
  970. if %s2% EQU a2 set swordexist2=arm2
  971. if %s2% EQU a3 set swordexist2=arm3
  972. if %s2% EQU a4 set swordexist2=arm4
  973. if %s2% EQU a5 set swordexist2=arm5
  974. if %s2% EQU a6 set swordexist2=arm6
  975. if %s2% EQU a7 set swordexist2=arm7
  976. if %s2% EQU a8 set swordexist2=arm8
  977. if %s2% EQU a9 set swordexist2=arm9
  978. if %s2% EQU a10 set swordexist2=arm10
  979. if %s2% EQU a11 set swordexist2=arm11
  980. if %s2% EQU a12 set swordexist2=arm12
  981. if %s2% EQU a13 set swordexist2=la1
  982. if %s2% EQU a14 set swordexist2=la2
  983. if %swordchoice2% EQU Armor goto sellarmtosmug
  984. goto selltosmug
  985.  
  986. :sellarmtosmug
  987. if %swordchoice% EQU Cloth set /a sprice=75
  988. if %swordchoice% EQU Chain set /a sprice=150
  989. if %swordchoice% EQU Bronze set /a sprice=400
  990. if %swordchoice% EQU Iron set /a sprice=750
  991. if %swordchoice% EQU Steel set /a sprice=1500
  992. if %swordchoice% EQU Gold set /a sprice=2500
  993. if %swordchoice% EQU Crystal set /a sprice=5000
  994. if %swordchoice% EQU Sacred set /a sprice=7500
  995. if %swordchoice% EQU Runic set /a sprice=12500
  996. if %swordchoice% EQU Infernal set /a sprice=20000
  997. if %swordchoice% EQU Omega set /a sprice=40000
  998. if %swordchoice% EQU Chaotic set /a sprice=50000
  999. if %swordchoice% EQU Mythical set /a sprice=1000000
  1000. if %swordchoice% EQU Alydril set /a sprice=1750000
  1001. goto selltosmug
  1002.  
  1003. :selltosmug
  1004. if %swordexist% EQU 0 goto donthaveitem
  1005. cls
  1006. echo.
  1007. echo Smuggler:
  1008. echo.
  1009. echo Ah, the %swordchoice% %swordchoice2%. Thats a nice piece of metal. Tell ya what.
  1010. echo I'll buy it off of you for %sprice% gold. Deal?
  1011. echo.
  1012. ping localhost -n 2 >nul
  1013. echo 1) Deal.
  1014. echo 2) No thanks.
  1015. set /p s3=
  1016. if %s3% EQU 1 goto accepttradesmug
  1017. if %s3% EQU 2 goto declinesmug
  1018.  
  1019. :accepttradesmug
  1020. set /a %swordexist2%=%swordexist%-1
  1021. set /a money=%money%+%sprice%
  1022. cls
  1023. echo.
  1024. echo.
  1025. echo You sell the %swordchoice% %swordchoice2% for %sprice% gold.
  1026. echo.
  1027. pause>nul
  1028. cls
  1029. echo.
  1030. echo Smuggler:
  1031. echo.
  1032. echo It's a please doin' business with ya.
  1033. echo.
  1034. pause>nul
  1035. goto smuggler
  1036.  
  1037. :declinesmug
  1038. cls
  1039. echo.
  1040. echo Smuggler:
  1041. echo.
  1042. echo Maybe next time, eh?
  1043. echo.
  1044. pause>nul
  1045. goto smuggler
  1046.  
  1047. :donthaveitem
  1048. echo.
  1049. echo.
  1050. echo You don't have that item.
  1051. echo.
  1052. pause>nul
  1053. goto tradesmuggler
  1054.  
  1055.  
  1056. :picknpc
  1057. set /a npc=%random% %% 13+1
  1058. if %npc% EQU 1 set npctype=Goblin
  1059. if %npc% EQU 2 set npctype=Giant
  1060. if %npc% EQU 3 set npctype=Dragon
  1061. if %npc% EQU 4 set npctype=Mage
  1062. if %npc% EQU 5 set npctype=Sorcerer
  1063. if %npc% EQU 6 set npctype=Human
  1064. if %npc% EQU 7 set npctype=Farmer
  1065. if %npc% EQU 8 set npctype=Bear
  1066. if %npc% EQU 9 set npctype=Rockbeast
  1067. if %npc% EQU 10 set npctype=Ent
  1068. if %npc% EQU 11 set npctype=Theif
  1069. if %npc% EQU 12 set npctype=Elemental
  1070. if %npc% EQU 13 set npctype=Rat
  1071.  
  1072. :BATTLE_VARIABLES
  1073. set health=0
  1074. if %curlvl% LEQ 5 (
  1075. set /a health=%random% %% 100 + 75
  1076. set /a level=%random% %% 4 + 1
  1077. goto F_START )
  1078. if %curlvl% LEQ 10 (
  1079. set /a health=%random% %% 100 + 200
  1080. set /a level=%random% %% 5 + 5
  1081. goto F_START )
  1082. if %curlvl% LEQ 15 (
  1083. set /a health=%random% %% 100 + 350
  1084. set /a level=%random% %% 5 + 10
  1085. goto F_START )
  1086. if %curlvl% LEQ 20 (
  1087. set /a health=%random% %% 100 + 500
  1088. set /a level=%random% %% 5 + 15
  1089. goto F_START )
  1090. if %curlvl% LEQ 25 (
  1091. set /a health=%random% %% 100 + 625
  1092. set /a level=%random% %% 7 + 20
  1093. goto F_START )
  1094. if %curlvl% LEQ 30 (
  1095. set /a health=%random% %% 100 + 750
  1096. set /a level=%random% %% 10 + 25
  1097. goto F_START )
  1098. if %curlvl% LEQ 37 (
  1099. set /a health=%random% %% 100 + 900
  1100. set /a level=%random% %% 15 + 30
  1101. goto F_START )
  1102.  
  1103.  
  1104. :F_START
  1105. mode con cols=160 lines=62
  1106. title FinalRealm - Fighting
  1107. cls
  1108. echo.
  1109. echo You are wandering Gielinor...
  1110. echo.
  1111. ping localhost -n 2 >nul
  1112. echo You encounter a level %level% %npctype%.
  1113. ping localhost -n 2 >nul
  1114. goto fs1
  1115.  
  1116.  
  1117. :fs1
  1118. cls
  1119. echo.
  1120. echo ��������������������������������������������������������
  1121. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ****
  1122. echo ��������������������������������������������������������
  1123. echo.
  1124. echo.
  1125. echo What would you like to do?
  1126. echo.
  1127. echo 1) Attack^^!
  1128. echo 2) Inventory
  1129. echo 3) Flee^^!
  1130. echo.
  1131. set /p atkcho=
  1132. if %atkcho% EQU 1 goto atk
  1133. if %atkcho% EQU 2 goto fightinginventory
  1134. if %atkcho% EQU 3 goto flee
  1135.  
  1136.  
  1137. :atk
  1138. if %swordtype% EQU Your set /a damage=%random%*50/32767+1
  1139. if %swordtype% EQU Wooden set /a damage=%random%*100/32767+1
  1140. if %swordtype% EQU Stone set /a damage=%random%*125/32767+1
  1141. if %swordtype% EQU Bronze set /a damage=%random%*150/32767+1
  1142. if %swordtype% EQU Iron set /a damage=%random%*175/32767+1
  1143. if %swordtype% EQU Steel set /a damage=%random%*200/32767+1
  1144. if %swordtype% EQU Gold set /a damage=%random%*225/32767+1
  1145. if %swordtype% EQU Crystal set /a damage=%random%*250/32767+1
  1146. if %swordtype% EQU Sacred set /a damage=%random%*275/32767+1
  1147. if %swordtype% EQU Runic set /a damage=%random%*300/32767+1
  1148. if %swordtype% EQU Infernal set /a damage=%random%*300/32767+1
  1149. if %swordtype% EQU Omega set /a damage=%random%*300/32767+1
  1150. if %swordtype% EQU Chaotic set /a damage=%random%*300/32767+1
  1151. if %swordtype% EQU Mythical set /a damage=%random%*450/32767+1
  1152. if %swordtype% EQU Alydril set /a damage=%random%*600/32767+1
  1153. if %damage% GTR %health% set /a damage=%health%
  1154. cls
  1155. echo.
  1156. echo ��������������������������������������������������������
  1157. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ****
  1158. echo ��������������������������������������������������������
  1159. echo.
  1160. echo.
  1161. echo You attack^^!
  1162. echo.
  1163. ping localhost -n 2 >nul
  1164. set /a atkxp=((%damage%/4)*3)
  1165. set /a playerxp=%playerxp%+%atkxp%
  1166. set /a xpuntil=%xpuntil%-%atkxp%
  1167. set /a health=%health% - %damage%
  1168. echo You deal %damage% damage to the %npctype%^^!
  1169. echo.
  1170. echo It now has %health% health left.
  1171. echo.
  1172. echo You gain %atkxp% EXP.
  1173. pause>nul
  1174. if %curlvl% GEQ 37 set /a xpuntil=1
  1175. if %playerxp% GEQ 1000000 set /a playerxp=1000000
  1176. if %health% LEQ 0 goto checkiflvlup
  1177. if %xpuntil% LEQ 0 set destination=fs3
  1178. if %xpuntil% LEQ 0 goto levelup
  1179. goto fs3
  1180.  
  1181.  
  1182. :fs3
  1183. if %npctype% EQU Rat set /a dmgnpc=%random%*53/32767+1
  1184. if %npctype% EQU Goblin set /a dmgnpc=%random%*30/32767+1
  1185. if %npctype% EQU Giant set /a dmgnpc=%random%*60/32767+1
  1186. if %npctype% EQU Dragon set /a dmgnpc=%random%*90/32767+1
  1187. if %npctype% EQU Mage set /a dmgnpc=%random%*120/32767+1
  1188. if %npctype% EQU Sorcerer set /a dmgnpc=%random%*150/32767+1
  1189. if %npctype% EQU Human set /a dmgnpc=%random%*50/32767+1
  1190. if %npctype% EQU Farmer set /a dmgnpc=%random%*85/32767+1
  1191. if %npctype% EQU Bear set /a dmgnpc=%random%*183/32767+1
  1192. if %npctype% EQU Rocktor set /a dmgnpc=%random%*240/32767+1
  1193. if %npctype% EQU Ent set /a dmgnpc=%random%*300/32767+1
  1194. if %npctype% EQU Theif set /a dmgnpc=%random%*330/32767+1
  1195. if %npctype% EQU Elemental set /a dmgnpc=%random%*360/32767+1
  1196. if %armtype% EQU Cloth set /a dr=%random%*10/32767+1
  1197. if %armtype% EQU Chain set /a dr=%random%*20/32767+1
  1198. if %armtype% EQU Bronze set /a dr=%random%*40/32767+1
  1199. if %armtype% EQU Iron set /a dr=%random%*65/32767+1
  1200. if %armtype% EQU Steel set /a dr=%random%*100/32767+1
  1201. if %armtype% EQU Gold set /a dr=%random%*120/32767+1
  1202. if %armtype% EQU Crystal set /a dr=%random%*145/32767+1
  1203. if %armtype% EQU Sacred set /a dr=%random%*175/32767+1
  1204. if %armtype% EQU Runic set /a dr=%random%*200/32767+1
  1205. if %armtype% EQU Infernal set /a dr=%random%*215/32767+1
  1206. if %armtype% EQU Omega set /a dr=%random%*230/32767+1
  1207. if %armtype% EQU Chaotic set /a dr=%random%*250/32767+1
  1208. if %armtype% EQU Mythical set /a dr=%random%*275/32767+1
  1209. if %armtype% EQU Alydril set /a dr=%random%*300/32767+1
  1210. if %armtype% EQU Cloth set /a dmgnpc=%dmgnpc%-%dr%
  1211. if %armtype% EQU Chain set /a dmgnpc=%dmgnpc%-%dr%
  1212. if %armtype% EQU Bronze set /a dmgnpc=%dmgnpc%-%dr%
  1213. if %armtype% EQU Iron set /a dmgnpc=%dmgnpc%-%dr%
  1214. if %armtype% EQU Steel set /a dmgnpc=%dmgnpc%-%dr%
  1215. if %armtype% EQU Gold set /a dmgnpc=%dmgnpc%-%dr%
  1216. if %armtype% EQU Crystal set /a dmgnpc=%dmgnpc%-%dr%
  1217. if %armtype% EQU Sacred set /a dmgnpc=%dmgnpc%-%dr%
  1218. if %armtype% EQU Runic set /a dmgnpc=%dmgnpc%-%dr%
  1219. if %armtype% EQU Infernal set /a dmgnpc=%dmgnpc%-%dr%
  1220. if %armtype% EQU Omega set /a dmgnpc=%dmgnpc%-%dr%
  1221. if %armtype% EQU Chaotic set /a dmgnpc=%dmgnpc%-%dr%
  1222. if %armtype% EQU Mythical set /a dmgnpc=%dmgnpc%-%dr%
  1223. if %armtype% EQU Alydril set /a dmgnpc=%dmgnpc%-%dr%
  1224. if %dmgnpc% LEQ 0 set /a dmgnpc=0
  1225. mode con cols=160 lines=62
  1226. title FinalRealm - Fighting
  1227. cls
  1228. echo.
  1229. echo ��������������������������������������������������������
  1230. echo **** Your Health: %hp% ***** %npctype%'s Health: %health% ****
  1231. echo ��������������������������������������������������������
  1232. echo.
  1233. echo.
  1234. echo The %npctype% attacks.
  1235. echo.
  1236. ping localhost -n 2 >nul
  1237. echo The %npctype% deals %dmgnpc% damage to you.
  1238. set /a hp=%hp% - %dmgnpc%
  1239. if %hp% LEQ 0 goto die
  1240. echo.
  1241. echo You now have %hp% health left.
  1242. pause>nul
  1243. goto fs1
  1244.  
  1245.  
  1246. :checkiflvlup
  1247. if %xpuntil% LEQ 0 set destination=dropitem
  1248. if %xpuntil% LEQ 0 goto levelup
  1249.  
  1250.  
  1251.  
  1252. :dropitem
  1253. if %npctype% EQU Goblin goto goblindrop
  1254. if %npctype% EQU Giant goto giantdrop
  1255. if %npctype% EQU Dragon goto dragondrop
  1256. if %npctype% EQU Mage goto magedrop
  1257. if %npctype% EQU Sorcerer goto sorcererdrop
  1258. if %npctype% EQU Human goto humandrop
  1259. if %npctype% EQU Farmer goto farmerdrop
  1260. if %npctype% EQU Bear goto beardrop
  1261. if %npctype% EQU Rockbeast goto rockbeastdrop
  1262. if %npctype% EQU Ent goto entdrop
  1263. if %npctype% EQU Theif goto theifdrop
  1264. if %npctype% EQU Elemental goto elementaldrop
  1265. if %npctype% EQU Rat goto beardrop
  1266.  
  1267.  
  1268. :goblindrop
  1269. set word=a
  1270. set /a gmail=%gmail%+1
  1271. set drop=Goblin Mail
  1272. goto win
  1273.  
  1274. :giantdrop
  1275. set word=3
  1276. set /a hbone=%hbone%+3
  1277. set drop=Huge Bones
  1278. goto win
  1279.  
  1280. :dragondrop
  1281. set word=3
  1282. set /a dhide=%dhide%+3
  1283. set drop=Dragon Hides
  1284. goto win
  1285.  
  1286. :magedrop
  1287. set word=2
  1288. set /a rtab=%rtab%+2
  1289. set drop=Runic Tablets
  1290. goto win
  1291.  
  1292. :sorcererdrop
  1293. set word=2
  1294. set /a potion=%potion%+2
  1295. set drop=Potions
  1296. goto win
  1297.  
  1298. :humandrop
  1299. set word=2
  1300. set /a food=%food%+2
  1301. set drop=Food
  1302. goto win
  1303.  
  1304. :farmerdrop
  1305. set word=4
  1306. set /a seed=%seed%+4
  1307. set drop=Seeds
  1308. goto win
  1309.  
  1310. :beardrop
  1311. set word=5
  1312. set /a fur=%fur%+5
  1313. set drop=Fur
  1314. goto win
  1315.  
  1316. :rockbeastdrop
  1317. set word=6
  1318. set /a ore=%ore%+6
  1319. set drop=Ore
  1320. goto win
  1321.  
  1322. :entdrop
  1323. set word=10
  1324. set /a log=%log%+10
  1325. set drop=Logs
  1326. goto win
  1327.  
  1328. :theifdrop
  1329. set word=5
  1330. set /a gem=%gem%+5
  1331. set drop=Gemstones
  1332. goto win
  1333.  
  1334. :elementaldrop
  1335. set word=5
  1336. set /a morb=%morb%+5
  1337. set drop=Magic Orbs
  1338. goto win
  1339.  
  1340.  
  1341. :levelup
  1342. set /a curlvl=%curlvl%+1
  1343. set /a origxp=%origxp%+500
  1344. set /a xpuntil=%xpuntil%+%origxp%
  1345. set /a orighp=%orighp%+25
  1346. set /a hp=%orighp%
  1347. echo.
  1348. echo.
  1349. echo You have leveled up. You are now level %curlvl%.
  1350. echo You now have %hp% health.
  1351. echo.
  1352. pause>nul
  1353. goto %destination%
  1354.  
  1355.  
  1356. :win
  1357. cls
  1358. echo.
  1359. echo You won the battle against the %npctype%.
  1360. echo.
  1361. echo You recieved %word% %drop%.
  1362. echo.
  1363. pause>nul
  1364. set /a hp=%orighp%
  1365. goto SAVE_GAME_FILES
  1366.  
  1367. :die
  1368. cls
  1369. echo.
  1370. echo You died.
  1371. echo.
  1372. pause>nul
  1373. set /a killcount=0
  1374. set /a hp=%orighp%
  1375. goto SAVE_GAME_FILES
  1376.  
  1377. :flee
  1378. cls
  1379. echo.
  1380. echo You flee from the battle.
  1381. echo.
  1382. pause>nul
  1383. goto SAVE_GAME_FILES
  1384.  
  1385.  
  1386. :fightinginventory
  1387. title FinalRealm - Inventory
  1388. mode con cols=160 lines=62
  1389. set destination2=fightinginventory
  1390. cls
  1391. if %hp% GTR 1000 set /a hp=1000
  1392. if %curlvl% GTR 37 set /a curlvl=37
  1393. if %curlvl% GEQ 37 set xpuntil=None^^!
  1394. if %money% GTR 5000000 set /a money=5000000
  1395. if %playerxp% GTR 1000000 set /a playerxp=1000000
  1396. echo FinalRealm - Inventory
  1397. echo.
  1398. echo ������������������������������������������������ͻ
  1399. echo � Health: %hp% �
  1400. echo � Level: %curlvl% �
  1401. echo � Gold: %money% �
  1402. echo � EXP: %playerxp% �
  1403. echo � EXP until next level: %xpuntil% �
  1404. echo � Total level: %ttllvl% �
  1405. echo � Weapon: %swordtype% %skind% �
  1406. echo � Armor: %armtype% Armor �
  1407. echo ������������������������������������������������͹
  1408. echo � Items: �
  1409. echo � Bait: %bait% � Gemstones: %gem%
  1410. echo � Seeds: %seed% � Magic Orbs: %morb%
  1411. echo � Furs: %fur% � Raw Food: %rfood%
  1412. echo � Ore: %ore% � Huge Bones: %hbone%
  1413. echo � Logs: %log% � Dragon Hides: %dhide%
  1414. echo � Food: %food% � Runic Tablets: %rtab%
  1415. echo � Ingots: %ingot% � Goblin Mails: %gmail%
  1416. echo � Potions: %potion% � Bows: %bow%
  1417. echo ������������������������������������������������͹
  1418. echo � Weapons: � Armor:
  1419. echo � Wooden Sword: %sword1% � Cloth Armor: %arm1%
  1420. echo � Stone Sword: %sword2% � Chain Armor: %arm2%
  1421. echo � Bronze Sword: %sword3% � Bronze Armor: %arm3%
  1422. echo � Iron Sword: %sword4% � Iron Armor: %arm4%
  1423. echo � Steel Sword: %sword5% � Steel Armor: %arm5%
  1424. echo � Gold Sword: %sword6% � Gold Armor: %arm6%
  1425. echo � Crystal Sword: %sword7% � Crystal Armor: %arm7%
  1426. echo � Sacred Blade: %sword8% � Sacred Armor: %arm8%
  1427. echo � Runic Sword: %sword9% � Runic Armor: %arm9%
  1428. echo � Infernal Rapier: %sword10% � Infernal Armor: %arm10%
  1429. echo � Omega Maul: %sword11% � Omega Armor: %arm11%
  1430. echo � Chaotic Spear: %sword12% � Chaotic Armor: %arm12%
  1431. echo � Mythical Godsword: %ls1% � Mythical Armor: %la1%
  1432. echo � Alydril Godsword: %ls2% � Alydril Armor: %la2%
  1433. echo ������������������������������������������������ͼ
  1434. echo.
  1435. echo What would you like to do?
  1436. echo.
  1437. echo 1) Return to battle
  1438. echo 2) Drink Potion
  1439. echo 3) Eat Food
  1440. echo 4) Change Weapon
  1441. echo 5) Change Armor
  1442. echo.
  1443. set /p invencho=
  1444. if %invencho% EQU 4 set destination=weaponselect
  1445. if %invencho% EQU 5 set destination=Armorselect
  1446. if %invencho% EQU 1 goto fs1
  1447. if %invencho% EQU 2 goto drinkpotion
  1448. if %invencho% EQU 3 goto eatfood
  1449. if %invencho% EQU 4 goto weaponselect
  1450. if %invencho% EQU 5 goto Armorselect
  1451.  
  1452.  
  1453. :drinkpotion
  1454. if %potion% LEQ 0 goto nopotion
  1455. set /a potion=%potion% - 1
  1456. cls
  1457. echo.
  1458. echo You drink a potion.
  1459. ping localhost -n 2 >nul
  1460. set /a hpheal=%random%*100/32767+1
  1461. set /a hp=%hp%+%hpheal%
  1462. if %hp% GTR %orighp% set /a hp=%orighp%
  1463. echo.
  1464. echo You have been healed %hpheal% health.
  1465. echo You now have %hp% health.
  1466. echo.
  1467. pause>nul
  1468. goto fs3
  1469.  
  1470. :nopotion
  1471. echo You don't have any potions.
  1472. echo.
  1473. pause>nul
  1474. goto fightinginventory
  1475.  
  1476.  
  1477. :eatfood
  1478. if %food% LEQ 0 goto nofood
  1479. set /a food=%food%-1
  1480. cls
  1481. echo.
  1482. echo You eat some food.
  1483. ping localhost -n 2 >nul
  1484. set /a hpheal=%random%*50/32767+1
  1485. set /a hp=%hp%+%hpheal%
  1486. if %hp% GTR %orighp% set /a hp=%orighp%
  1487. echo.
  1488. echo You have been healed %hpheal% health.
  1489. echo You now have %hp% health.
  1490. echo.
  1491. pause>nul
  1492. goto fs3
  1493.  
  1494. :nofood
  1495. echo You don't have any food.
  1496. echo.
  1497. pause>nul
  1498. goto fightinginventory
  1499.  
  1500.  
  1501.  
  1502. :weaponselect
  1503. title FinalRealm - Weapon Select
  1504. set destination=weaponselect
  1505. set /a numswords=%sword1%+%sword2%+%sword3%+%sword4%+%sword5%+%sword6%+%sword7%+%sword8%+%sword9%+%sword10%+%sword11%+%sword12%
  1506. cls
  1507. echo.
  1508. echo You currently have %numswords% swords.
  1509. echo You currently have a %swordtype% %skind% equipped.
  1510. echo.
  1511. echo Select a sword to equip, or return to battle.
  1512. echo.
  1513. echo 1) Wooden Sword: %sword1%
  1514. echo 2) Stone Sword: %sword2%
  1515. echo 3) Bronze Sword: %sword3%
  1516. echo 4) Iron Sword: %sword4%
  1517. echo 5) Steel Sword: %sword5%
  1518. echo 6) Gold Sword: %sword6%
  1519. echo 7) Crystal Sword: %sword7%
  1520. echo 8) Sacred Blade: %sword8%
  1521. echo 9) Runic Sword: %sword9%
  1522. echo 10) Infernal Rapier: %sword10%
  1523. echo 11) Omega Maul: %sword11%
  1524. echo 12) Chaotic Spear: %sword12%
  1525. echo 13) Mythical Godsword: %ls1%
  1526. echo 14) Alydril Godsword: %ls2%
  1527. echo.
  1528. echo 15) Back
  1529. echo.
  1530. set /p wepsel=
  1531. if %wepsel% EQU 1 goto equips1
  1532. if %wepsel% EQU 2 goto equips2
  1533. if %wepsel% EQU 3 goto equips3
  1534. if %wepsel% EQU 4 goto equips4
  1535. if %wepsel% EQU 5 goto equips5
  1536. if %wepsel% EQU 6 goto equips6
  1537. if %wepsel% EQU 7 goto equips7
  1538. if %wepsel% EQU 8 goto equips8
  1539. if %wepsel% EQU 9 goto equips9
  1540. if %wepsel% EQU 10 goto equips10
  1541. if %wepsel% EQU 11 goto equips11
  1542. if %wepsel% EQU 12 goto equips12
  1543. if %wepsel% EQU 13 goto equips13
  1544. if %wepsel% EQU 14 goto equips14
  1545. if %wepsel% EQU 15 goto %destination2%
  1546.  
  1547.  
  1548. :equips1
  1549. if %sword1% EQU 0 goto nosword
  1550. if %swordtype% EQU Wooden goto alreadyequip
  1551. set swordtype=Wooden
  1552. set skind=Sword
  1553. set aan=a
  1554. goto confirmequip
  1555.  
  1556. :equips2
  1557. if %sword2% EQU 0 goto nosword
  1558. if %swordtype% EQU Stone goto alreadyequip
  1559. set swordtype=Stone
  1560. set skind=Sword
  1561. set aan=a
  1562. goto confirmequip
  1563.  
  1564. :equips3
  1565. if %sword3% EQU 0 goto nosword
  1566. if %swordtype% EQU Bronze goto alreadyequip
  1567. set swordtype=Bronze
  1568. set skind=Sword
  1569. set aan=a
  1570. goto confirmequip
  1571.  
  1572. :equips4
  1573. if %sword4% EQU 0 goto nosword
  1574. if %swordtype% EQU Iron goto alreadyequip
  1575. set swordtype=Iron
  1576. set skind=Sword
  1577. set aan=a
  1578. goto confirmequip
  1579.  
  1580. :equips5
  1581. if %sword5% EQU 0 goto nosword
  1582. if %swordtype% EQU Steel goto alreadyequip
  1583. set swordtype=Steel
  1584. set skind=Sword
  1585. set aan=a
  1586. goto confirmequip
  1587.  
  1588. :equips6
  1589. if %sword6% EQU 0 goto nosword
  1590. if %swordtype% EQU Gold goto alreadyequip
  1591. set swordtype=Gold
  1592. set skind=Sword
  1593. set aan=a
  1594. goto confirmequip
  1595.  
  1596. :equips7
  1597. if %sword7% EQU 0 goto nosword
  1598. if %swordtype% EQU Crystal goto alreadyequip
  1599. set swordtype=Crystal
  1600. set skind=Sword
  1601. set aan=a
  1602. goto confirmequip
  1603.  
  1604. :equips8
  1605. if %sword8% EQU 0 goto nosword
  1606. if %swordtype% EQU Sacred goto alreadyequip
  1607. set swordtype=Sacred
  1608. set skind=Blade
  1609. set aan=a
  1610. goto confirmequip
  1611.  
  1612. :equips9
  1613. if %sword9% EQU 0 goto nosword
  1614. if %swordtype% EQU Runic goto alreadyequip
  1615. set swordtype=Runic
  1616. set skind=Sword
  1617. set aan=a
  1618. goto confirmequip
  1619.  
  1620. :equips10
  1621. if %sword10% EQU 0 goto nosword
  1622. if %swordtype% EQU Infernal goto alreadyequip
  1623. set swordtype=Infernal
  1624. set skind=Rapier
  1625. set aan=an
  1626. goto confirmequip
  1627.  
  1628. :equips11
  1629. if %sword11% EQU 0 goto nosword
  1630. if %swordtype% EQU Omega goto alreadyequip
  1631. set swordtype=Omega
  1632. set skind=Maul
  1633. set aan=an
  1634. goto confirmequip
  1635.  
  1636. :equips12
  1637. if %sword12% EQU 0 goto nosword
  1638. if %swordtype% EQU Chaotic goto alreadyequip
  1639. set swordtype=Chaotic
  1640. set skind=Spear
  1641. goto confirmequip
  1642.  
  1643. :equips13
  1644. if %ls1% EQU 0 goto nosword
  1645. if %swordtype% EQU Mythical goto alreadyequip
  1646. set swordtype=Mythical
  1647. set skind=Godsword
  1648. set aan=an
  1649. goto confirmequip
  1650.  
  1651. :equips14
  1652. if %ls2% EQU 0 goto nosword
  1653. if %swordtype% EQU Alydril goto alreadyequip
  1654. set swordtype=Alydril
  1655. set skind=Godsword
  1656. set aan=an
  1657. goto confirmequip
  1658.  
  1659. :confirmequip
  1660. echo You have equipped %aan% %swordtype% %skind%.
  1661. echo.
  1662. pause>nul
  1663. goto %destination%
  1664.  
  1665. :nosword
  1666. echo You don't have that weapon.
  1667. echo.
  1668. pause>nul
  1669. goto %destination%
  1670.  
  1671.  
  1672. :alreadyequip
  1673. echo You already have that weapon equipped.
  1674. echo.
  1675. pause>nul
  1676. goto %destination%
  1677.  
  1678.  
  1679. :Armorselect
  1680. title FinalRealm - Armor Select
  1681. set destination=Armorselect
  1682. set /a numArmor=%arm1%+%arm2%+%arm3%+%arm4%+%arm5%+%arm6%+%arm7%+%arm8%+%arm9%+%arm10%+%arm11%+%arm12%
  1683. cls
  1684. echo.
  1685. echo You currently have %numArmor% pieces of Armor.
  1686. echo You currently have %armtype% Armor equipped.
  1687. echo.
  1688. echo Select an Armor set to wear, or return to battle.
  1689. echo.
  1690. echo 1) Cloth Armor: %arm1%
  1691. echo 2) Chain Armor: %arm2%
  1692. echo 3) Bronze Armor: %arm3%
  1693. echo 4) Iron Armor: %arm4%
  1694. echo 5) Steel Armor: %arm5%
  1695. echo 6) Gold Armor: %arm6%
  1696. echo 7) Crystal Armor: %arm7%
  1697. echo 8) Sacred Armor: %arm8%
  1698. echo 9) Runic Armor: %arm9%
  1699. echo 10) Infernal Armor: %arm10%
  1700. echo 11) Omega Armor: %arm11%
  1701. echo 12) Chaotic Armor: %arm12%
  1702. echo 13) Mythical Amour: %la1%
  1703. echo 14) Alydril Armor: %la2%
  1704. echo.
  1705. echo 15) Back
  1706. echo.
  1707. set /p armsel=
  1708. if %armsel% EQU 1 goto equipa1
  1709. if %armsel% EQU 2 goto equipa2
  1710. if %armsel% EQU 3 goto equipa3
  1711. if %armsel% EQU 4 goto equipa4
  1712. if %armsel% EQU 5 goto equipa5
  1713. if %armsel% EQU 6 goto equipa6
  1714. if %armsel% EQU 7 goto equipa7
  1715. if %armsel% EQU 8 goto equipa8
  1716. if %armsel% EQU 9 goto equipa9
  1717. if %armsel% EQU 10 goto equipa10
  1718. if %armsel% EQU 11 goto equipa11
  1719. if %armsel% EQU 12 goto equipa12
  1720. if %armsel% EQU 13 goto equipa13
  1721. if %armsel% EQU 14 goto equipa14
  1722. if %armsel% EQU 15 goto %destination2%
  1723.  
  1724.  
  1725. :equipa1
  1726. if %arm1% EQU 0 goto noarm
  1727. if %armtype% EQU Cloth goto alreadyequiparm
  1728. set armtype=Cloth
  1729. goto confirmequiparm
  1730.  
  1731. :equipa2
  1732. if %arm2% EQU 0 goto noarm
  1733. if %armtype% EQU Chain goto alreadyequiparm
  1734. set armtype=Chain
  1735. goto confirmequiparm
  1736.  
  1737. :equipa3
  1738. if %arm3% EQU 0 goto noarm
  1739. if %armtype% EQU Bronze goto alreadyequiparm
  1740. set armtype=Bronze
  1741. goto confirmequiparm
  1742.  
  1743. :equipa4
  1744. if %arm4% EQU 0 goto noarm
  1745. if %armtype% EQU Iron goto alreadyequiparm
  1746. set armtype=Iron
  1747. goto confirmequiparm
  1748.  
  1749. :equipa5
  1750. if %arm5% EQU 0 goto noarm
  1751. if %armtype% EQU Steel goto alreadyequiparm
  1752. set armtype=Steel
  1753. goto confirmequiparm
  1754.  
  1755. :equipa6
  1756. if %arm6% EQU 0 goto noarm
  1757. if %armtype% EQU Gold goto alreadyequiparm
  1758. set armtype=Gold
  1759. goto confirmequiparm
  1760.  
  1761. :equipa7
  1762. if %arm7% EQU 0 goto noarm
  1763. if %armtype% EQU Crystal goto alreadyequiparm
  1764. set armtype=Crystal
  1765. goto confirmequiparm
  1766.  
  1767. :equipa8
  1768. if %arm8% EQU 0 goto noarm
  1769. if %armtype% EQU Sacred goto alreadyequiparm
  1770. set armtype=Sacred
  1771. goto confirmequiparm
  1772.  
  1773. :equipa9
  1774. if %arm9% EQU 0 goto noarm
  1775. if %armtype% EQU Runic goto alreadyequiparm
  1776. set armtype=Runic
  1777. goto confirmequiparm
  1778.  
  1779. :equipa10
  1780. if %arm10% EQU 0 goto noarm
  1781. if %armtype% EQU Infernal goto alreadyequiparm
  1782. set armtype=Infernal
  1783. goto confirmequiparm
  1784.  
  1785. :equipa11
  1786. if %arm11% EQU 0 goto noarm
  1787. if %armtype% EQU Omega goto alreadyequiparm
  1788. set armtype=Omega
  1789. goto confirmequiparm
  1790.  
  1791. :equipa12
  1792. if %arm12% EQU 0 goto noarm
  1793. if %armtype% EQU Chaotic goto alreadyequiparm
  1794. set armtype=Chaotic
  1795. goto confirmequiparm
  1796.  
  1797. :equipa13
  1798. if %la1% EQU 0 goto noarm
  1799. if %armtype% EQU Mythical goto alreadyequiparm
  1800. set armtype=Mythical
  1801. goto confirmequiparm
  1802.  
  1803. :equipa14
  1804. if %la2% EQU 0 goto noarm
  1805. if %armtype% EQU Alydril goto alreadyequiparm
  1806. set armtype=Alydril
  1807. goto confirmequiparm
  1808.  
  1809. :confirmequiparm
  1810. echo You have equipped %armtype% Armor.
  1811. echo.
  1812. pause>nul
  1813. goto %destination%
  1814.  
  1815. :noarm
  1816. echo You don't have that Armor.
  1817. echo.
  1818. pause>nul
  1819. goto Armorselect
  1820.  
  1821.  
  1822. :alreadyequiparm
  1823. echo You already have that Armor equipped.
  1824. echo.
  1825. pause>nul
  1826. goto Armorselect
  1827.  
  1828.  
  1829.  
  1830.  
  1831. :weaponstore
  1832. set destination1=weaponstore
  1833. title FinalRealm - Weapon Shop
  1834. mode con cols=160 lines=62
  1835. cls
  1836. echo FinalRealm Weapon Shop
  1837. echo.
  1838. echo You currently have %money% Gold.
  1839. echo.
  1840. echo.
  1841. echo 1) Wooden Sword: Costs 100 gold.
  1842. echo. Owned: %sword1%
  1843. echo.
  1844. echo 2) Stone Sword: Costs 250 gold.
  1845. echo. Owned: %sword2%
  1846. echo.
  1847. echo 3) Bronze Sword: Costs 500 gold.
  1848. echo. Owned: %sword3%
  1849. echo.
  1850. echo 4) Iron Sword: Costs 1,000 gold.
  1851. echo. Owned: %sword4%
  1852. echo.
  1853. echo 5) Steel Sword: Costs 2,500 gold.
  1854. echo. Owned: %sword5%
  1855. echo.
  1856. echo 6) Gold Sword: Costs 5,000 gold.
  1857. echo. Owned: %sword6%
  1858. echo.
  1859. echo 7) Crystal Sword: Costs 10,000 gold.
  1860. echo. Owned: %sword7%
  1861. echo.
  1862. echo 8) Sacred Blade: Costs 25,000 gold.
  1863. echo. Owned: %sword8%
  1864. echo.
  1865. echo 9) Next Page
  1866. echo.
  1867. echo Type "exit" to exit the store.
  1868. echo.
  1869. echo.
  1870. echo Page 1
  1871. set /p w1=
  1872. if %w1% EQU 1 (
  1873. set /a sprice=100
  1874. set swordchoice=Wooden
  1875. set swordchoice2=Sword
  1876. set /a att=100
  1877. set swordexist=sword1
  1878. set swordexist2=%sword1%
  1879. set levelneeded=1 )
  1880. if %w1% EQU 2 (
  1881. set /a sprice=125
  1882. set swordchoice=Stone
  1883. set swordchoice2=Sword
  1884. set /a att=100
  1885. set swordexist=sword2
  1886. set swordexist2=%sword2%
  1887. set levelneeded=1 )
  1888. if %w1% EQU 3 (
  1889. set /a sprice=500
  1890. set swordchoice=Bronze
  1891. set swordchoice2=Sword
  1892. set /a att=150
  1893. set swordexist=sword3
  1894. set swordexist2=%sword3%
  1895. set levelneeded=5 )
  1896. if %w1% EQU 4 (
  1897. set /a sprice=1000
  1898. set swordchoice=Iron
  1899. set swordchoice2=Sword
  1900. set /a att=175
  1901. set swordexist=sword4
  1902. set swordexist2=%sword4%
  1903. set levelneeded=5 )
  1904. if %w1% EQU 5 (
  1905. set /a sprice=2500
  1906. set swordchoice=Steel
  1907. set swordchoice2=Sword
  1908. set /a att=200
  1909. set swordexist=sword5
  1910. set swordexist2=%sword5%
  1911. set levelneeded=10 )
  1912. if %w1% EQU 6 (
  1913. set /a sprice=5000
  1914. set swordchoice=Gold
  1915. set swordchoice2=Sword
  1916. set /a att=225
  1917. set swordexist=sword5
  1918. set swordexist2=%sword6%
  1919. set levelneeded=10 )
  1920. if %w1% EQU 7 (
  1921. set /a sprice=10000
  1922. set swordchoice=Crystal
  1923. set swordchoice2=Sword
  1924. set /a att=250
  1925. set swordexist=sword7
  1926. set swordexist2=%sword7%
  1927. set levelneeded=15 )
  1928. if %w1% EQU 8 (
  1929. set /a sprice=25000
  1930. set swordchoice=Sacred
  1931. set swordchoice2=Blade
  1932. set /a att=275
  1933. set swordexist=sword8
  1934. set swordexist2=%sword8%
  1935. set levelneeded=15 )
  1936. if %w1% EQU 9 goto weaponstorep2
  1937. if %w1% EQU exit goto SAVE_GAME_FILES
  1938. goto buynow
  1939.  
  1940.  
  1941. :weaponstorep2
  1942. set destination1=weaponstorep2
  1943. title FinalRealm - Weapon Shop
  1944. mode con cols=160 lines=62
  1945. cls
  1946. echo FinalRealm Weapon Shop
  1947. echo.
  1948. echo You currently have %money% Gold.
  1949. echo.
  1950. echo.
  1951. echo 1) Runic Sword: Costs 50,000 gold.
  1952. echo. Owned: %sword9%
  1953. echo.
  1954. echo 2) Infernal Rapier: Costs 50,000 gold.
  1955. echo. Owned: %sword10%
  1956. echo.
  1957. echo 3) Omega Maul: Costs 50,000 gold.
  1958. echo. Owned: %sword11%
  1959. echo.
  1960. echo 4) Chaotic Spear: Costs 50,000 gold.
  1961. echo. Owned: %sword12%
  1962. echo.
  1963. echo 5) Previous Page
  1964. echo.
  1965. echo Type "exit" to the exit the store.
  1966. echo.
  1967. echo.
  1968. echo Page 2
  1969. set /p w1=
  1970. if %w1% EQU 1 (
  1971. set /a sprice=50000
  1972. set swordchoice=Runic
  1973. set swordchoice2=Sword
  1974. set /a att=300
  1975. set swordexist=sword9
  1976. set swordexist2=%sword9%
  1977. set levelneeded=20 )
  1978. if %w1% EQU 2 (
  1979. set /a sprice=50000
  1980. set swordchoice=Infernal
  1981. set swordchoice2=Rapier
  1982. set /a att=300
  1983. set swordexist=sword10
  1984. set swordexist2=%sword10%
  1985. set levelneeded=20 )
  1986. if %w1% EQU 3 (
  1987. set /a sprice=50000
  1988. set swordchoice=Omega
  1989. set swordchoice2=Maul
  1990. set /a att=300
  1991. set swordexist=sword11
  1992. set swordexist2=%sword11%
  1993. set levelneeded=20 )
  1994. if %w1% EQU 4 (
  1995. set /a sprice=50000
  1996. set swordchoice=Chaotic
  1997. set swordchoice2=Spear
  1998. set /a att=300
  1999. set swordexist=sword12
  2000. set swordexist2=%sword12%
  2001. set levelneeded=20 )
  2002. if %w1% EQU 5 goto weaponstore
  2003. if %w1% EQU exit goto SAVE_GAME_FILES
  2004. goto buynow
  2005.  
  2006.  
  2007.  
  2008.  
  2009. :Armorstore
  2010. set destination1=armorstore
  2011. title FinalRealm - Armor Shop
  2012. mode con cols=160 lines=62
  2013. cls
  2014. echo FinalRealm - Armor Shop
  2015. echo.
  2016. echo You currently have %money% Gold.
  2017. echo.
  2018. echo.
  2019. echo 1) Cloth Armor: Costs 150 gold.
  2020. echo. Owned: %arm1%
  2021. echo.
  2022. echo 2) Chain Armor: Costs 300 gold.
  2023. echo. Owned: %arm2%
  2024. echo.
  2025. echo 3) Bronze Armor: Costs 750 gold.
  2026. echo. Owned: %arm3%
  2027. echo.
  2028. echo 4) Iron Armor: Costs 1,500 gold.
  2029. echo. Owned: %arm4%
  2030. echo.
  2031. echo 5) Steel Armor: Costs 3,000 gold.
  2032. echo. Owned: %arm5%
  2033. echo.
  2034. echo 6) Gold Armor: Costs 5,000 gold.
  2035. echo. Owned: %arm6%
  2036. echo.
  2037. echo 7) Crystal Armor: Costs 10,000 gold.
  2038. echo. Owned: %arm7%
  2039. echo.
  2040. echo 8) Sacred Armor: Costs 15,000 gold.
  2041. echo. Owned: %arm8%
  2042. echo.
  2043. echo 9) Next Page
  2044. echo.
  2045. echo Type "exit" to exit the store.
  2046. echo.
  2047. echo.
  2048. echo Page 1
  2049. set /p w1=
  2050. if %w1% EQU 1 (
  2051. set /a sprice=150
  2052. set swordchoice=Cloth
  2053. set swordchoice2=Armor
  2054. set /a att=10
  2055. set swordexist=arm1
  2056. set swordexist2=%arm1% )
  2057. if %w1% EQU 2 (
  2058. set /a sprice=300
  2059. set swordchoice=Chain
  2060. set swordchoice2=Armor
  2061. set /a att=20
  2062. set swordexist=arm2
  2063. set swordexist2=%arm2% )
  2064. if %w1% EQU 3 (
  2065. set /a sprice=750
  2066. set swordchoice=Bronze
  2067. set swordchoice2=Armor
  2068. set /a att=40
  2069. set swordexist=arm3
  2070. set swordexist2=%arm3% )
  2071. if %w1% EQU 4 (
  2072. set /a sprice=1500
  2073. set swordchoice=Iron
  2074. set swordchoice2=Armor
  2075. set /a att=65
  2076. set swordexist=arm4
  2077. set swordexist2=%arm4% )
  2078. if %w1% EQU 5 (
  2079. set /a sprice=3000
  2080. set swordchoice=Steel
  2081. set swordchoice2=Armor
  2082. set /a att=100
  2083. set swordexist=arm5
  2084. set swordexist2=%arm5% )
  2085. if %w1% EQU 6 (
  2086. set /a sprice=5000
  2087. set swordchoice=Gold
  2088. set swordchoice2=Armor
  2089. set /a att=120
  2090. set swordexist=arm5
  2091. set swordexist2=%arm6% )
  2092. if %w1% EQU 7 (
  2093. set /a sprice=10000
  2094. set swordchoice=Crystal
  2095. set swordchoice2=Armor
  2096. set /a att=145
  2097. set swordexist=arm7
  2098. set swordexist2=%arm7% )
  2099. if %w1% EQU 8 (
  2100. set /a sprice=15000
  2101. set swordchoice=Sacred
  2102. set swordchoice2=Blade
  2103. set /a att=175
  2104. set swordexist=arm8
  2105. set swordexist2=%arm8% )
  2106. if %w1% EQU 9 goto Armorstorep2
  2107. if %w1% EQU exit goto SAVE_GAME_FILES
  2108. goto buynow
  2109.  
  2110.  
  2111. :Armorstorep2
  2112. set destination1=armorstorep2
  2113. title FinalRealm - Armor Shop
  2114. mode con cols=160 lines=62
  2115. cls
  2116. echo FinalRealm Armor Shop
  2117. echo.
  2118. echo You currently have %money% Gold.
  2119. echo.
  2120. echo.
  2121. echo 1) Runic Armor: Costs 25,000 gold.
  2122. echo. Owned: %arm9%
  2123. echo.
  2124. echo 2) Infernal Armor: Costs 40,000 gold.
  2125. echo. Owned: %arm10%
  2126. echo.
  2127. echo 3) Omega Armor: Costs 75,000 gold.
  2128. echo. Owned: %arm11%
  2129. echo.
  2130. echo 4) Chaotic Armor: Costs 100,000 gold.
  2131. echo. Owned: %arm12%
  2132. echo.
  2133. echo 5) Previous Page
  2134. echo.
  2135. echo Type "exit" to the exit the store.
  2136. echo.
  2137. echo.
  2138. echo Page 2
  2139. set /p w1=
  2140. if %w1% EQU 1 (
  2141. set /a sprice=25000
  2142. set swordchoice=Runic
  2143. set swordchoice2=Armor
  2144. set /a att=200
  2145. set swordexist=arm9
  2146. set swordexist2=%arm9% )
  2147. if %w1% EQU 2 (
  2148. set /a sprice=40000
  2149. set swordchoice=Infernal
  2150. set swordchoice2=Armor
  2151. set /a att=215
  2152. set swordexist=arm10
  2153. set swordexist2=%arm10% )
  2154. if %w1% EQU 3 (
  2155. set /a sprice=75000
  2156. set swordchoice=Omega
  2157. set swordchoice2=Armor
  2158. set /a att=235
  2159. set swordexist=arm11
  2160. set swordexist2=%arm11% )
  2161. if %w1% EQU 4 (
  2162. set /a sprice=100000
  2163. set swordchoice=Chaotic
  2164. set swordchoice2=Armor
  2165. set /a att=250
  2166. set swordexist=arm12
  2167. set swordexist2=%arm12% )
  2168. if %w1% EQU 5 goto Armorstore
  2169. if %w1% EQU exit goto SAVE_GAME_FILES
  2170. goto buynow
  2171.  
  2172.  
  2173.  
  2174.  
  2175. :legendsstore
  2176. set destination1=legendsstore
  2177. title FinalRealm - Legend's Store
  2178. mode con cols=160 lines=62
  2179. cls
  2180. echo FinalRealm Legend's Store
  2181. echo.
  2182. echo ���������������������������������ͻ
  2183. echo � You currently have %money% gold. �
  2184. echo ���������������������������������ͼ
  2185. echo.
  2186. echo.
  2187. echo ����������������������������������������������ͻ
  2188. echo � 1) Mythical Godsword: Costs 50 Magic Orbs. �
  2189. echo.� Owned: %ls1% �
  2190. echo.� �
  2191. echo � 2) Alydril Godsword: Costs 100 Magic Orbs. �
  2192. echo.� Owned: %ls2% �
  2193. echo.� �
  2194. echo � 3) Mythical Armor: Costs 65 Magic Orbs. �
  2195. echo.� Owned: %la1% �
  2196. echo.� �
  2197. echo � 4) Alydril Armor: Costs 120 Magic Orbs. �
  2198. echo.� Owned: %la2% �
  2199. echo ����������������������������������������������ͼ
  2200. echo.
  2201. echo.
  2202. echo Type "exit" to the exit the store.
  2203. echo.
  2204. set /p w1=
  2205. if %w1% EQU 1 (
  2206. set /a sprice=50
  2207. set swordchoice=Mythical
  2208. set swordchoice2=Godsword
  2209. set /a att=450
  2210. set swordexist=ls1
  2211. set swordexist2=%ls1% )
  2212. if %w1% EQU 2 (
  2213. set /a sprice=100
  2214. set swordchoice=Alydril
  2215. set swordchoice2=Godsword
  2216. set /a att=600
  2217. set swordexist=ls2
  2218. set swordexist2=%ls2% )
  2219. if %w1% EQU 3 (
  2220. set /a sprice=65
  2221. set swordchoice=Mythical
  2222. set swordchoice2=Armor
  2223. set /a att=275
  2224. set swordexist=la1
  2225. set swordexist2=%la1% )
  2226. if %w1% EQU 4 (
  2227. set /a sprice=120
  2228. set swordchoice=Alydril
  2229. set swordchoice2=Armor
  2230. set /a att=300
  2231. set swordexist=la2
  2232. set swordexist2=%la2% )
  2233. if %w1% EQU exit goto SAVE_GAME_FILES
  2234. goto buylegends
  2235.  
  2236. :buylegends
  2237. if %morb% LSS %sprice% goto nomoney
  2238. if %swordexist2% GEQ 1 goto alreadyown
  2239. set /a morb=%morb%-%sprice%
  2240. set /a %swordexist%=%swordexist2%+1
  2241. echo.
  2242. echo.
  2243. echo %swordchoice% %swordchoice2% purchased. You have a damage bonus of up to %att% with this item.
  2244. pause>nul
  2245. goto %destination1%
  2246.  
  2247.  
  2248.  
  2249.  
  2250. :maxshopclosed
  2251. if %ttllvl% GEQ 1300 goto maxshopopen
  2252. echo.
  2253. echo.
  2254. echo Max's shop is closed at the moment.
  2255. echo.
  2256. pause>nul
  2257. goto SAVE_GAME_FILES
  2258.  
  2259. :maxshopopen
  2260. set /a ms1=0
  2261. title FinalRealm - Max's Shop
  2262. cls
  2263. echo.
  2264. echo.
  2265. echo What would you like to do?
  2266. echo.
  2267. echo 1) Buy Weapons
  2268. echo 2) Buy Armor
  2269. echo 3) Leave
  2270. echo.
  2271. set /p m1=
  2272. if %m1% EQU 1 goto buymaxwep
  2273. if %m1% EQU 2 goto buymaxarm
  2274. if %m1% EQU 3 goto SAVE_GAME_FILES
  2275.  
  2276. :buymaxwep
  2277. set destination1=buymaxwep
  2278. cls
  2279. echo.
  2280. echo Gold: %money%
  2281. echo sians baxe: %ms1%
  2282. echo swordexist: %swordexist%
  2283. echo.
  2284. echo Weapons:
  2285. echo.
  2286. echo 1) Elysian Blade 1
  2287. echo 2) Arcane Blade 1724521345
  2288. echo 3) Spectral Blade 769123123
  2289. echo.
  2290. echo Type "exit" to exit.
  2291. set /p w1=
  2292. if %w1% EQU 1 (
  2293. set /a sprice=3000000
  2294. set swordchoice=Elysian
  2295. set swordchoice2=Blade
  2296. set /a att=750
  2297. set swordexist=%ms1% )
  2298. if %w1% EQU 2 (
  2299. set /a sprice=400000
  2300. set swordchoice=Spectral
  2301. set swordchoice2=Blade
  2302. set /a att=850
  2303. set swordchoice3=%ms2% )
  2304. if %w1% EQU 3 (
  2305. set /a sprice=5000000
  2306. set swordchoice=Arcane
  2307. set swordchoice2=Blade
  2308. set /a att=1000
  2309. set swordchoice3=%ms3% )
  2310. goto buynow
  2311.  
  2312. :buynow
  2313. if %curlvl% LSS %levelneeded% goto NOTHIGHENOUGHLEVELTOBUY
  2314. if %money% LSS %sprice% goto nomoney
  2315. if %swordexist2% GEQ 1 goto alreadyown
  2316. set /a money=%money%-%sprice%
  2317. set /a %swordexist%=%swordexist2%+1
  2318. echo.
  2319. echo.
  2320. echo %swordchoice% %swordchoice2% purchased. You have a damage bonus of up to %att% with this item.
  2321. pause>nul
  2322. goto %destination1%
  2323.  
  2324. :nomoney
  2325. echo.
  2326. echo.
  2327. echo You don't have enough money.
  2328. echo.
  2329. pause>nul
  2330. goto %destination1%
  2331.  
  2332. :alreadyown
  2333. echo.
  2334. echo.
  2335. echo You already own this item.
  2336. echo.
  2337. pause>nul
  2338. goto %destination1%
  2339.  
  2340. :NOTHIGHENOUGHLEVELTOBUY
  2341. echo.
  2342. echo.
  2343. echo You are not a high enough level to buy this item. You need to be at least level %levelneeded%.
  2344. echo.
  2345. pause>nul
  2346. goto %destination1%
  2347.  
  2348.  
  2349.  
  2350. :gstore
  2351. set destination1=gstore
  2352. cls
  2353. title FinalRealm - General Store
  2354. echo.
  2355. echo Gold: %money%
  2356. echo.
  2357. echo Your Items: Prices:
  2358. echo.
  2359. echo 1) Goblin Mails: %gmail% %pgmail%
  2360. echo 2) Huge Bones: %hbone% %phbone%
  2361. echo 3) Dragon Hides: %dhide% %pdhide%
  2362. echo 4) Runic Tablets: %rtab% %prtab%
  2363. echo 5) Potions: %potion% %ppotion%
  2364. echo 6) Food: %food% %pfood%
  2365. echo 7) Seeds: %seed% %pseed%
  2366. echo 8) Fur: %fur% %pfur%
  2367. echo 9) Ore: %ore% %pore%
  2368. echo 10) Logs: %log% %plog%
  2369. echo 11) Gemstones: %gem% %pgem%
  2370. echo 12) Magic Orbs: %morb% %pmorb%
  2371. echo 13) Raw Food: %rfood% %prfood%
  2372. echo 14) Bait: %bait% %pbait%
  2373. echo 15) Ingots: %ingot% %pingot%
  2374. echo 16) Bows: %bow% %pbow%
  2375. echo.
  2376. echo.
  2377. set /p g1=Enter the number of the item you would like to buy or sell, or type "exit" to exit:
  2378. if %g1% EQU 1 set gcho=gmail
  2379. if %g1% EQU 2 set gcho=hbone
  2380. if %g1% EQU 3 set gcho=dhide
  2381. if %g1% EQU 4 set gcho=rtab
  2382. if %g1% EQU 5 set gcho=potion
  2383. if %g1% EQU 6 set gcho=food
  2384. if %g1% EQU 7 set gcho=seed
  2385. if %g1% EQU 8 set gcho=fur
  2386. if %g1% EQU 9 set gcho=ore
  2387. if %g1% EQU 10 set gcho=log
  2388. if %g1% EQU 11 set gcho=gem
  2389. if %g1% EQU 12 set gcho=morb
  2390. if %g1% EQU 13 set gcho=rfood
  2391. if %g1% EQU 14 set gcho=bait
  2392. if %g1% EQU 15 set gcho=ingot
  2393. if %g1% EQU 16 set gcho=bow
  2394. if %g1% EQU exit goto SAVE_GAME_FILES
  2395. goto buysell
  2396.  
  2397. :buysell
  2398. echo.
  2399. set /p g2=Would you like to buy or sell that item, or go back?
  2400. if %g2% EQU buy goto buyitem
  2401. if %g2% EQU sell goto sellitem
  2402. if %g2% EQU back goto gstore
  2403.  
  2404. :buyitem
  2405. echo.
  2406. set /p g3=Enter the amount you would like to purchase:
  2407. if %g3% LSS 0 goto gstore
  2408. set /a cost=%g3%*!p%gcho%!
  2409. if %cost% GTR %money% goto notenoughmoney
  2410. set /a money=%money%-%cost%
  2411. set /a %gcho%=!%gcho%!+%g3%
  2412. echo.
  2413. echo Bought %g3% of that item for %cost%.
  2414. echo.
  2415. pause>nul
  2416. goto gstore
  2417.  
  2418. :sellitem
  2419. echo.
  2420. set /p g4=Enter the amount of that item you would like to sell, or type "all" to sell all:
  2421. if %g4% EQU all goto sellallitem
  2422. if %g4% LSS 0 goto gstore
  2423. if %g4% GTR !%gcho%! goto sellallitem
  2424. set /a price=%g4%*!p%gcho%!
  2425. set /a money=%money%+%price%
  2426. set /a %gcho%=!%gcho%!-%g4%
  2427. echo.
  2428. echo Sold %g4% of that item for %price%.
  2429. echo.
  2430. pause>nul
  2431. goto gstore
  2432.  
  2433. :sellallitem
  2434. set /a price=!%gcho%!*!p%gcho%!
  2435. set /a money=%money%+%price%
  2436. echo.
  2437. echo Sold !%gcho%! of that item for %price%.
  2438. set /a %gcho%=0
  2439. echo.
  2440. pause>nul
  2441. goto gstore
  2442.  
  2443. :notenoughmoney
  2444. echo.
  2445. echo You do not have enough money.
  2446. echo.
  2447. pause>nul
  2448. goto %destination1%
  2449.  
  2450.  
  2451. :checkitems
  2452. if %hp% GTR 1000 set /a hp=1000
  2453. if %curlvl% GTR 37 set /a curlvl=37
  2454. if %curlvl% GEQ 37 set xpuntil=None^^!
  2455. if %money% GTR 5000000 set /a money=5000000
  2456. if %playerxp% GTR 1000000 set /a playerxp=1000000
  2457. title FinalRealm - Inventory
  2458. mode con cols=160 lines=62
  2459. set destination2=checkitems
  2460. cls
  2461. echo FinalRealm - Inventory
  2462. echo.
  2463. echo ������������������������������������������������ͻ
  2464. echo � Health: %hp% �
  2465. echo � Level: %curlvl% �
  2466. echo � Gold: %money% �
  2467. echo � EXP: %playerxp% �
  2468. echo � EXP until next level: %xpuntil% �
  2469. echo � Total level: %ttllvl% �
  2470. echo � Weapon: %swordtype% %skind% �
  2471. echo � Armor: %armtype% Armor �
  2472. echo ������������������������������������������������͹
  2473. echo � Items: �
  2474. echo � Bait: %bait% � Gemstones: %gem%
  2475. echo � Seeds: %seed% � Magic Orbs: %morb%
  2476. echo � Furs: %fur% � Raw Food: %rfood%
  2477. echo � Ore: %ore% � Huge Bones: %hbone%
  2478. echo � Logs: %log% � Dragon Hides: %dhide%
  2479. echo � Food: %food% � Runic Tablets: %rtab%
  2480. echo � Ingots: %ingot% � Goblin Mails: %gmail%
  2481. echo � Potions: %potion% � Bows: %bow%
  2482. echo ������������������������������������������������͹
  2483. echo � Weapons: � Armor:
  2484. echo � Wooden Sword: %sword1% � Cloth Armor: %arm1%
  2485. echo � Stone Sword: %sword2% � Chain Armor: %arm2%
  2486. echo � Bronze Sword: %sword3% � Bronze Armor: %arm3%
  2487. echo � Iron Sword: %sword4% � Iron Armor: %arm4%
  2488. echo � Steel Sword: %sword5% � Steel Armor: %arm5%
  2489. echo � Gold Sword: %sword6% � Gold Armor: %arm6%
  2490. echo � Crystal Sword: %sword7% � Crystal Armor: %arm7%
  2491. echo � Sacred Blade: %sword8% � Sacred Armor: %arm8%
  2492. echo � Runic Sword: %sword9% � Runic Armor: %arm9%
  2493. echo � Infernal Rapier: %sword10% � Infernal Armor: %arm10%
  2494. echo � Omega Maul: %sword11% � Omega Armor: %arm11%
  2495. echo � Chaotic Spear: %sword12% � Chaotic Armor: %arm12%
  2496. echo � Mythical Godsword: %ls1% � Mythical Armor: %la1%
  2497. echo � Alydril Godsword: %ls2% � Alydril Armor: %la2%
  2498. echo ������������������������������������������������ͼ
  2499. echo.
  2500. echo What would you like to do?
  2501. echo.
  2502. echo 1) Back
  2503. echo 2) Heal
  2504. echo 3) Change Weapon
  2505. echo 4) Change Armor
  2506. echo 5) View Levels
  2507. echo.
  2508. set /p invencho1=
  2509. if %invencho1% EQU 1 goto SAVE_GAME_FILES
  2510. if %invencho1% EQU 2 goto heal
  2511. if %invencho1% EQU 3 goto weaponselect
  2512. if %invencho1% EQU 4 goto Armorselect
  2513. if %invencho1% EQU 5 goto viewlvls
  2514.  
  2515. :heal
  2516. cls
  2517. echo.
  2518. set /a hp=%orighp%
  2519. echo You have been healed back to full health.
  2520. echo.
  2521. pause>nul
  2522. goto checkitems
  2523.  
  2524. :viewlvls
  2525. cls
  2526. echo.
  2527. echo.
  2528. echo Levels:
  2529. echo.
  2530. echo.
  2531. echo Total level: %ttllvl%
  2532. echo.
  2533. echo.
  2534. echo Woodcutting level: %Woodcuttinglvl%
  2535. echo.
  2536. echo Cooking level: %Cooklvl%
  2537. echo.
  2538. echo Fishing level: %Fishinglvl%
  2539. echo.
  2540. echo Thieving level: %Thievinglvl%
  2541. echo.
  2542. echo Mining level: %Mininglvl%
  2543. echo.
  2544. echo Smithing level: %Smithinglvl%
  2545. echo.
  2546. echo.
  2547. echo Type "back" to go back.
  2548. echo.
  2549. set /p invencho2=
  2550. if %invencho2% EQU back goto checkitems
  2551.  
  2552.  
  2553.  
  2554.  
  2555. :skillplot
  2556. title FinalRealm - Skill Plot
  2557. cls
  2558. echo.
  2559. echo Skills:
  2560. echo.
  2561. echo.
  2562. echo 1) Woodcutting
  2563. echo.
  2564. echo 2) Cooking
  2565. echo.
  2566. echo 3) Fishing
  2567. echo.
  2568. echo 4) Mining
  2569. echo.
  2570. echo 5) Smithing
  2571. echo.
  2572. echo 6) Thieving
  2573. echo.
  2574. echo.
  2575. echo Type "exit" to leave.
  2576. set /p f2=
  2577. if %f2% EQU 1 goto Woodcuttingmenu
  2578. if %f2% EQU 2 goto Cookingmenu
  2579. if %f2% EQU 3 goto Fishingmenu
  2580. if %f2% EQU 4 goto Miningmenu
  2581. if %f2% EQU 5 goto Smithingmenu
  2582. if %f2% EQU 6 goto Thievingmenu
  2583. if %f2% EQU exit goto SAVE_GAME_FILES
  2584.  
  2585.  
  2586. :Cookingmenu
  2587. cls
  2588. echo.
  2589. echo Cooking level: %Cooklvl%
  2590. echo Current EXP: %Cookcurxp%
  2591. echo Remainder: %Cookxpleft%
  2592. echo Raw Food: %rfood%
  2593. echo Cooked Food: %food%
  2594. echo.
  2595. echo.
  2596. echo 1) Cook
  2597. echo 2) Back
  2598. set /p f1=
  2599. if %f1% EQU 1 goto Cookbow
  2600. if %f1% EQU 2 goto skillplot
  2601.  
  2602. :Cookbow
  2603. if %Cooklvl% EQU 100 goto instacook
  2604. if %rfood% LEQ 0 goto noitem
  2605. echo.
  2606. echo You Cook some food.
  2607. set /a rfood=%rfood%-1
  2608. set /a food=%food%+1
  2609. set /a Cookxpleft=%Cookxpleft%-%Cookxpgain%
  2610. set /a Cookcurxp=%Cookcurxp%+%Cookxpgain%
  2611. if %Cookxpleft% LEQ 0 goto Cooklevelup
  2612. echo.
  2613. pause>nul
  2614. goto Cookingmenu
  2615.  
  2616. :Cooklevelup
  2617. set /a Cooklvl=%Cooklvl%+1
  2618. if %Cooklvl% GTR 100 set /a Cooklvl=100
  2619. if %Cooklvl% GEQ 100 set /a Cookxpleft=0
  2620. if %Cooklvl% GEQ 100 goto maxlvl
  2621. set /a Cookxpremain=%Cookxpremain%+100
  2622. set /a Cookxpleft=%Cookxpleft%+%Cookxpremain%
  2623. echo.
  2624. echo Congratulations, You have now reached level %Cooklvl%.
  2625. echo.
  2626. pause>nul
  2627. goto Cookingmenu
  2628.  
  2629.  
  2630. :Fishingmenu
  2631. cls
  2632. echo.
  2633. echo Fishinging level: %Fishinglvl%
  2634. echo Current EXP: %Fishingcurxp%
  2635. echo Remainder: %Fishingxpleft%
  2636. echo Raw Fish: %rfood%
  2637. echo Bait: %bait%
  2638. echo.
  2639. echo.
  2640. echo 1) Fish
  2641. echo 2) Back
  2642. set /p f1=
  2643. if %f1% EQU 1 goto Fishingbow
  2644. if %f1% EQU 2 goto skillplot
  2645.  
  2646. :Fishingbow
  2647. if %Fishinglvl% EQU 100 goto instafish
  2648. if %bait% LEQ 0 goto noitem
  2649. echo.
  2650. echo You catch a fish.
  2651. set /a bait=%bait%-1
  2652. set /a rfood=%rfood%+1
  2653. set /a Fishingxpleft=%Fishingxpleft%-%Fishingxpgain%
  2654. set /a Fishingcurxp=%Fishingcurxp%+%Fishingxpgain%
  2655. if %Fishingxpleft% LEQ 0 goto Fishinglevelup
  2656. echo.
  2657. pause>nul
  2658. goto Fishingmenu
  2659.  
  2660. :Fishinglevelup
  2661. set /a Fishinglvl=%Fishinglvl%+1
  2662. if %Fishinglvl% GTR 100 set /a Fishinglvl=100
  2663. if %Fishinglvl% GEQ 100 set /a Fishingxpleft=0
  2664. if %Fishinglvl% GEQ 100 goto maxlvl
  2665. set /a Fishingxpremain=%Fishingxpremain%+100
  2666. set /a Fishingxpleft=%Fishingxpleft%+%Fishingxpremain%
  2667. echo.
  2668. echo Congratulations, You have now reached level %Fishinglvl%.
  2669. echo.
  2670. pause>nul
  2671. goto Fishingmenu
  2672.  
  2673.  
  2674. :Miningmenu
  2675. cls
  2676. echo.
  2677. echo Mining level: %Mininglvl%
  2678. echo Current EXP: %Miningcurxp%
  2679. echo Remainder: %Miningxpleft%
  2680. echo Ore: %ore%
  2681. echo.
  2682. echo.
  2683. echo 1) Mine
  2684. echo 2) Back
  2685. set /p f1=
  2686. if %f1% EQU 1 goto Miningbow
  2687. if %f1% EQU 2 goto skillplot
  2688.  
  2689. :Miningbow
  2690. if %Mininglvl% EQU 100 goto instamine
  2691. echo.
  2692. echo You start mining some ore.
  2693. echo.
  2694. echo You mine some ore.
  2695. set /a ore=%ore%+1
  2696. set /a Miningxpleft=%Miningxpleft%-%Miningxpgain%
  2697. set /a Miningcurxp=%Miningcurxp%+%Miningxpgain%
  2698. if %Miningxpleft% LEQ 0 goto Mininglevelup
  2699. echo.
  2700. goto Miningmenu
  2701.  
  2702. :Mininglevelup
  2703. set /a Mininglvl=%Mininglvl%+1
  2704. if %Mininglvl% GTR 100 set /a Mininglvl=100
  2705. if %Mininglvl% GEQ 100 set /a Miningxpleft=0
  2706. if %Mininglvl% GEQ 100 goto maxlvl
  2707. set /a Miningxpremain=%Miningxpremain%+100
  2708. set /a Miningxpleft=%Miningxpleft%+%Miningxpremain%
  2709. echo.
  2710. echo Congratulations, You have now reached level %Mininglvl%.
  2711. echo.
  2712. pause>nul
  2713. goto Miningmenu
  2714.  
  2715.  
  2716. :Smithingmenu
  2717. cls
  2718. echo.
  2719. echo Smithing level: %Smithinglvl%
  2720. echo Current EXP: %Smithingcurxp%
  2721. echo Remainder: %Smithingxpleft%
  2722. echo Ore: %ore%
  2723. echo Ingots: %ingot%
  2724. echo.
  2725. echo.
  2726. echo 1) Smith
  2727. echo 2) Back
  2728. set /p f1=
  2729. if %f1% EQU 1 goto Smithingbow
  2730. if %f1% EQU 2 goto skillplot
  2731.  
  2732. :Smithingbow
  2733. if %Smithinglvl% EQU 100 goto instasmith
  2734. if %ore% EQU 0 goto noitem
  2735. echo.
  2736. echo You smith some ore into an ingot.
  2737. set /a ore=%ore%-1
  2738. set /a ingot=%ingot%+1
  2739. set /a Smithingxpleft=%Smithingxpleft%-%Smithingxpgain%
  2740. set /a Smithingcurxp=%Smithingcurxp%+%Smithingxpgain%
  2741. if %Smithingxpleft% LEQ 0 goto Smithinglevelup
  2742. echo.
  2743. pause>nul
  2744. goto Smithingmenu
  2745.  
  2746. :Smithinglevelup
  2747. set /a Smithinglvl=%Smithinglvl%+1
  2748. if %Smithinglvl% GTR 100 set /a Smithinglvl=100
  2749. if %Smithinglvl% GEQ 100 set /a Smithingxpleft=0
  2750. if %Smithinglvl% GEQ 100 goto maxlvl
  2751. set /a Smithingxpremain=%Smithingxpremain%+100
  2752. set /a Smithingxpleft=%Smithingxpleft%+%Smithingxpremain%
  2753. echo.
  2754. echo Congratulations, You have now reached level %Smithinglvl%.
  2755. echo.
  2756. pause>nul
  2757. goto Smithingmenu
  2758.  
  2759.  
  2760. :Thievingmenu
  2761. cls
  2762. echo.
  2763. echo Thieving level: %Thievinglvl%
  2764. echo Current EXP: %Thievingcurxp%
  2765. echo Remainder: %Thievingxpleft%
  2766. echo Gold: %money%
  2767. echo.
  2768. echo.
  2769. echo 1) Pickpocket
  2770. echo 2) Back
  2771. set /p f1=
  2772. if %f1% EQU 1 goto Thievingbow
  2773. if %f1% EQU 2 goto skillplot
  2774.  
  2775. :Thievingbow
  2776. if %Thievinglvl% EQU 100 goto instathieve
  2777. echo.
  2778. echo You steal some coins.
  2779. set /a money=%money%+10
  2780. set /a Thievingxpleft=%Thievingxpleft%-%Thievingxpgain%
  2781. set /a Thievingcurxp=%Thievingcurxp%+%Thievingxpgain%
  2782. if %Thievingxpleft% LEQ 0 goto Thievinglevelup
  2783. echo.
  2784. pause>nul
  2785. goto Thievingmenu
  2786.  
  2787. :Thievinglevelup
  2788. set /a Thievinglvl=%Thievinglvl%+1
  2789. if %Thievinglvl% GTR 100 set /a Thievinglvl=100
  2790. if %Thievinglvl% GEQ 100 set /a Thievingxpleft=0
  2791. if %Thievinglvl% GEQ 100 goto maxlvl
  2792. set /a Thievingxpremain=%Thievingxpremain%+100
  2793. set /a Thievingxpleft=%Thievingxpleft%+%Thievingxpremain%
  2794. echo.
  2795. echo Congratulations, You have now reached level %Thievinglvl%.
  2796. echo.
  2797. pause>nul
  2798. goto Thievingmenu
  2799.  
  2800.  
  2801. :Woodcuttingmenu
  2802. cls
  2803. echo.
  2804. echo Woodcutting level: %Woodcuttinglvl%
  2805. echo Current EXP: %Woodcuttingcurxp%
  2806. echo Remainder: %Woodcuttingxpleft%
  2807. echo Logs: %log%
  2808. echo.
  2809. echo.
  2810. echo 1) Woodcut
  2811. echo 2) Back
  2812. set /p f1=
  2813. if %f1% EQU 1 goto Woodcuttingbow
  2814. if %f1% EQU 2 goto skillplot
  2815.  
  2816. :Woodcuttingbow
  2817. if %Woodcuttinglvl% EQU 100 goto instawc
  2818. echo.
  2819. echo You cut some logs.
  2820. set /a log=%log%+1
  2821. set /a Woodcuttingxpleft=%Woodcuttingxpleft%-%Woodcuttingxpgain%
  2822. set /a Woodcuttingcurxp=%Woodcuttingcurxp%+%Woodcuttingxpgain%
  2823. if %Woodcuttingxpleft% LEQ 0 goto Woodcuttinglevelup
  2824. echo.
  2825. pause>nul
  2826. goto Woodcuttingmenu
  2827.  
  2828. :Woodcuttinglevelup
  2829. set /a Woodcuttinglvl=%Woodcuttinglvl%+1
  2830. if %Woodcuttinglvl% GTR 100 set /a Woodcuttinglvl=100
  2831. if %Woodcuttinglvl% GEQ 100 set /a Woodcuttingxpleft=0
  2832. if %Woodcuttinglvl% GEQ 100 goto maxlvl
  2833. set /a Woodcuttingxpremain=%Woodcuttingxpremain%+100
  2834. set /a Woodcuttingxpleft=%Woodcuttingxpleft%+%Woodcuttingxpremain%
  2835. echo.
  2836. echo Congratulations, You have now reached level %Woodcuttinglvl%.
  2837. echo.
  2838. pause>nul
  2839. goto Woodcuttingmenu
  2840.  
  2841.  
  2842. :noitem
  2843. echo.
  2844. echo.
  2845. echo You do not have enough of the required materials to make this item.
  2846. echo.
  2847. pause>nul
  2848. goto skillplot
  2849.  
  2850. :maxlvl
  2851. echo.
  2852. echo.
  2853. echo Congratulations, you have reached the maximum level in this skill.
  2854. echo.
  2855. pause>nul
  2856. goto skillplot
  2857.  
  2858. :instacook
  2859. if %rfood% EQU 0 goto noitem
  2860. set /a food=%food%+%rfood%
  2861. set /a rfood=0
  2862. echo.
  2863. echo.
  2864. echo Because you are a master at this skill, you instantly cook all of your food.
  2865. echo.
  2866. pause>nul
  2867. goto Cookmenu
  2868.  
  2869. :instafish
  2870. if %bait% EQU 0 goto noitem
  2871. set /a rfood=%rfood%+%bait%
  2872. set /a bait=0
  2873. echo.
  2874. echo.
  2875. echo Because you are a master at this skill, you instantly use up all of your bait.
  2876. echo.
  2877. pause>nul
  2878. goto Fishingmenu
  2879.  
  2880. :instamine
  2881. set /a ore=%ore%+100
  2882. echo.
  2883. echo.
  2884. echo Because you are a master at this skill, you instantly mine 100 ore at a time.
  2885. echo.
  2886. pause>nul
  2887. goto Miningmenu
  2888.  
  2889. :instasmith
  2890. if %ore% EQU 0 goto noitem
  2891. set /a ingot=%ingot%+%ore%
  2892. set /a ore=0
  2893. echo.
  2894. echo.
  2895. echo Because you are a master at this skill, you instantly smelt all of your ore.
  2896. echo.
  2897. pause>nul
  2898. goto Smithingmenu
  2899.  
  2900. :instathieve
  2901. set /a money=%money%+10000
  2902. echo.
  2903. echo.
  2904. echo Because you are a master at this skill, you instantly steal 10,000 coins at a time.
  2905. echo.
  2906. pause>nul
  2907. goto Thievingmenu
  2908.  
  2909. :instawc
  2910. set /a log=%log%+100
  2911. echo.
  2912. echo.
  2913. echo Because you are a master at this skill, you instantly cut 100 logs at a time.
  2914. echo.
  2915. pause>nul
  2916. goto Woodcuttingmenu
  2917.  
  2918.  
  2919.  
  2920.  
  2921. :SAVE_GAME_FILES
  2922. (
  2923. echo set username1=%username1%
  2924. echo set password1=%password1%
  2925. :DATA_VALUES
  2926. echo set acc1g=%acc1g%
  2927. echo set acc1m=%acc1m%
  2928. echo set acc2g=%acc2g%
  2929. echo set acc2m=%acc2m%
  2930. echo set acc3g=%acc3g%
  2931. echo set acc3m=%acc3m%
  2932. echo set acc4g=%acc4g%
  2933. echo set acc4m=%acc4m%
  2934. echo set acc5g=%acc5g%
  2935. echo set acc5m=%acc5m%
  2936. echo set cost1=%cost1%
  2937. echo set cost=%cost%
  2938. echo set gcho=%gcho%
  2939. echo set echo=%echo%
  2940. echo set e2cho=%e2cho%
  2941. echo set e1=%e1%
  2942. echo set dmgnpc=%dmgnpc%
  2943. echo set ea=%ea%
  2944. echo set ls1=%ls1%
  2945. echo set ls2=%ls2%
  2946. echo set la1=%la1%
  2947. echo set la2=%la2%
  2948. echo set armtype=%armtype%
  2949. echo set hp=%hp%
  2950. echo set orighp=%orighp%
  2951. echo set swordtype=%swordtype%
  2952. echo set skind=%skind%
  2953. echo set curlvl=%curlvl%
  2954. echo set origxp=%origxp%
  2955. echo set playerxp=%playerxp%
  2956. echo set xpuntil=%xpuntil%
  2957. echo set destination=%destination%
  2958. echo set destination2=%destination2%
  2959. echo set swordchoice=%swordchoice%
  2960. echo set swordchoice2=%swordchoice2%
  2961. echo set swordchoice3=%swordchoice3%
  2962. echo set swordexist=%swordexist%
  2963. echo set sprice=%sprice%
  2964. echo set armchoice=%armchoice%
  2965. echo set armchoice2=%armchoice2%
  2966. echo set aprice=%aprice%
  2967. echo set money=%money%
  2968. echo set key=%key%
  2969. echo set damage=%damage%
  2970. echo set killcount=%killcount%
  2971. echo set dr=%dr%
  2972. echo set def=%def%
  2973. echo set def2=%def2%
  2974. echo set def3=%def3%
  2975. echo set def4=%def4%
  2976. echo set def5=%def5%
  2977. echo set def6=%def6%
  2978. echo set def7=%def7%
  2979. echo set def8=%def8%
  2980. echo set def9=%def9%
  2981. echo set def10=%def10%
  2982. echo set def11=%def11%
  2983. echo set def12=%def12%
  2984. echo set gmail=%gmail%
  2985. echo set hbone=%hbone%
  2986. echo set dhide=%dhide%
  2987. echo set rtab=%rtab%
  2988. echo set food=%food%
  2989. echo set rfood=%rfood%
  2990. echo set potion=%potion%
  2991. echo set bait=%bait%
  2992. echo set seed=%seed%
  2993. echo set fur=%fur%
  2994. echo set gem=%gem%
  2995. echo set ingot=%ingot%
  2996. echo set log=%log%
  2997. echo set bow=%bow%
  2998. echo set ore=%ore%
  2999. echo set aan=%aan%
  3000. echo set bankgold=%bankgold%
  3001. echo set morb=%morb%
  3002. echo set arm1=%arm1%
  3003. echo set arm2=%arm2%
  3004. echo set arm3=%arm3%
  3005. echo set arm4=%arm4%
  3006. echo set arm5=%arm5%
  3007. echo set arm6=%arm6%
  3008. echo set arm7=%arm7%
  3009. echo set arm8=%arm8%
  3010. echo set arm9=%arm9%
  3011. echo set arm10=%arm10%
  3012. echo set arm11=%arm11%
  3013. echo set arm12=%arm12%
  3014. echo set ma1=%ma1%
  3015. echo set ma2=%ma2%
  3016. echo set ma3=%ma3%
  3017. echo set ma4=%ma4%
  3018. echo set ma5=%ma5%
  3019. echo set ma6=%ma6%
  3020. echo set ma7=%ma7%
  3021. echo set ma8=%ma8%
  3022. echo set ma9=%ma9%
  3023. echo set ma10=%ma10%
  3024. echo set ms1=%ms1%
  3025. echo set ms2=%ms2%
  3026. echo set ms3=%ms3%
  3027. echo set ms4=%ms4%
  3028. echo set ms5=%ms5%
  3029. echo set ms6=%ms6%
  3030. echo set ms7=%ms7%
  3031. echo set ms8=%ms8%
  3032. echo set ms9=%ms9%
  3033. echo set ms10=%ms10%
  3034. echo set sword1=%sword1%
  3035. echo set sword2=%sword2%
  3036. echo set sword3=%sword3%
  3037. echo set sword4=%sword4%
  3038. echo set sword5=%sword5%
  3039. echo set sword6=%sword6%
  3040. echo set sword7=%sword7%
  3041. echo set sword8=%sword8%
  3042. echo set sword9=%sword9%
  3043. echo set sword10=%sword10%
  3044. echo set sword11=%sword11%
  3045. echo set sword12=%sword12%
  3046. echo set axxx=%axxx%
  3047. echo set pgmail=%pgmail%
  3048. echo set phbone=%phbone%
  3049. echo set pdhide=%pdhide%
  3050. echo set prtab=%prtab%
  3051. echo set ppotion=%ppotion%
  3052. echo set pingot=%pingot%
  3053. echo set pfood=%pfood%
  3054. echo set prfood=%prfood%
  3055. echo set pbait=%pbait%
  3056. echo set pseed=%pseed%
  3057. echo set pfur=%pfur%
  3058. echo set pore=%pore%
  3059. echo set pbow=%pbow%
  3060. echo set plog=%plog%
  3061. echo set pgem=%pgem%
  3062. echo set pmorb=%pmorb%
  3063. echo set Woodcuttinglvl=%Woodcuttinglvl%
  3064. echo set Woodcuttingxpremain=%Woodcuttingxpremain%
  3065. echo set Woodcuttingxpgain=%Woodcuttingxpgain%
  3066. echo set Woodcuttingcurxp=%Woodcuttingcurxp%
  3067. echo set Woodcuttingxpleft=%woodcuttingxpleft%
  3068. echo set Cooklvl=%Cooklvl%
  3069. echo set Cookxpremain=%Cookxpremain%
  3070. echo set Cookxpgain=%Cookxpgain%
  3071. echo set Cookcurxp=%Cookcurxp%
  3072. echo set Cookxpleft=%Cookxpleft%
  3073. echo set Fishinglvl=%Fishinglvl%
  3074. echo set Fishingxpremain=%Fishingxpremain%
  3075. echo set Fishingxpgain=%Fishingxpgain%
  3076. echo set Fishingcurxp=%Fishingcurxp%
  3077. echo set Fishingxpleft=%Fishingxpleft%
  3078. echo set Mininglvl=%Mininglvl%
  3079. echo set Miningxpremain=%Miningxpremain%
  3080. echo set Miningxpgain=%Miningxpgain%
  3081. echo set Miningcurxp=%Miningcurxp%
  3082. echo set Miningxpleft=%Miningxpleft%
  3083. echo set Smithinglvl=%Smithinglvl%
  3084. echo set Smithingxpremain=%Smithingxpremain%
  3085. echo set Smithingxpgain=%Smithingxpgain%
  3086. echo set Smithingcurxp=%Smithingcurxp%
  3087. echo set Smithingxpleft=%Smithingxpleft%
  3088. echo set Thievinglvl=%Thievinglvl%
  3089. echo set Thievingxpremain=%Thievingxpremain%
  3090. echo set Thievingxpgain=%Thievingxpgain%
  3091. echo set Thievingcurxp=%Thievingcurxp%
  3092. echo set Thievingxpleft=%Thievingxpleft%
  3093. echo set ttllvl=%ttllvl%
  3094. )>%username1%.bat
  3095. goto MENU
  3096.  
  3097.  
  3098.  
  3099. :settings
  3100. title FinalRealm - Settings
  3101. cls
  3102. echo.
  3103. echo What setting would you like to change?
  3104. echo.
  3105. echo 1) Color
  3106. echo 2) Username
  3107. echo 3) Password
  3108. echo 4) Admin Commands
  3109. echo 5) Exit
  3110. echo.
  3111. set /p scho=
  3112. if %scho% EQU 1 goto color
  3113. if %scho% EQU 2 goto namechange
  3114. if %scho% EQU 3 goto passchange
  3115. if %scho% EQU 4 goto verifyadmin
  3116. if %scho% EQU 5 goto SAVE_GAME_FILES
  3117.  
  3118.  
  3119. :verifyadmin
  3120. cls
  3121. echo.
  3122. echo Please verify that you are an Administrator.
  3123. echo.
  3124. echo.
  3125. set /p admin1=Please enter the Login Code:
  3126. if %admin1% NEQ 741 (
  3127. echo Invalid Code. The Administrator has been notified of this attempt.
  3128. pause>nul
  3129. goto settings
  3130. )
  3131. echo.
  3132. set /p admin2=Please enter the Verification PIN:
  3133. if %admin2% NEQ 9763 (
  3134. echo Invalid PIN. The Administrator has been notified of this attempt.
  3135. pause>nul
  3136. goto settings
  3137. )
  3138. goto admincommands
  3139.  
  3140. :admincommands
  3141. mode con cols=160 lines=62
  3142. cls
  3143. echo.
  3144. echo Type "vars" to get a list of Variables that can be edited, or type "exit" to exit.
  3145. echo.
  3146. echo Set [variable]=[ammount/class]
  3147. echo.
  3148. echo.
  3149. set /p am1=Set
  3150. if %am1% EQU exit goto settings
  3151. if %am1% EQU vars call :commandlist
  3152. echo.
  3153. set /p am2=Set %am1%=
  3154. echo.
  3155. set %am1%=%am2%
  3156. echo Setting variable [%am1%] to ammount/class [%am2%].
  3157. echo.
  3158. pause>nul
  3159. goto admincommands
  3160.  
  3161. :commandlist
  3162. mode con cols=160 lines=199
  3163. cls
  3164. echo.
  3165. echo Current Variables:
  3166. echo.
  3167. echo username1=%username1%
  3168. echo password1=%password1%
  3169. echo acc1g=%acc1g%
  3170. echo acc1m=%acc1m%
  3171. echo acc2g=%acc2g%
  3172. echo acc2m=%acc2m%
  3173. echo acc3g=%acc3g%
  3174. echo acc3m=%acc3m%
  3175. echo acc4g=%acc4g%
  3176. echo acc4m=%acc4m%
  3177. echo acc5g=%acc5g%
  3178. echo acc5m=%acc5m%
  3179. echo cost1=%cost1%
  3180. echo cost=%cost%
  3181. echo gcho=%gcho%
  3182. echo echo=%echo%
  3183. echo e2cho=%e2cho%
  3184. echo e1=%e1%
  3185. echo dmgnpc=%dmgnpc%
  3186. echo ea=%ea%
  3187. echo ls1=%ls1%
  3188. echo ls2=%ls2%
  3189. echo la1=%la1%
  3190. echo la2=%la2%
  3191. echo armtype=%armtype%
  3192. echo killcount=%killcount%
  3193. echo hp=%hp%
  3194. echo orighp=%orighp%
  3195. echo swordtype=%swordtype%
  3196. echo skind=%skind%
  3197. echo curlvl=%curlvl%
  3198. echo origxp=%origxp%
  3199. echo playerxp=%playerxp%
  3200. echo buyword1=%buyword1%
  3201. echo buyword2=%buyword2%
  3202. echo xpuntil=%xpuntil%
  3203. echo destination=%destination%
  3204. echo destination2=%destination2%
  3205. echo swordchoice=%swordchoice%
  3206. echo swordchoice2=%swordchoice2%
  3207. echo swordchoice3=%swordchoice3%
  3208. echo swordexist=%swordexist%
  3209. echo sprice=%sprice%
  3210. echo armchoice=%armchoice%
  3211. echo armchoice2=%armchoice2%
  3212. echo aprice=%aprice%
  3213. echo money=%money%
  3214. echo key=%key%
  3215. echo damage=%damage%
  3216. echo dr=%dr%
  3217. echo def=%def%
  3218. echo def2=%def2%
  3219. echo def3=%def3%
  3220. echo def4=%def4%
  3221. echo def5=%def5%
  3222. echo def6=%def6%
  3223. echo def7=%def7%
  3224. echo def8=%def8%
  3225. echo def9=%def9%
  3226. echo def10=%def10%
  3227. echo def11=%def11%
  3228. echo def12=%def12%
  3229. echo gmail=%gmail%
  3230. echo hbone=%hbone%
  3231. echo dhide=%dhide%
  3232. echo rtab=%rtab%
  3233. echo food=%food%
  3234. echo rfood=%rfood%
  3235. echo potion=%potion%
  3236. echo bait=%bait%
  3237. echo seed=%seed%
  3238. echo fur=%fur%
  3239. echo gem=%gem%
  3240. echo ingot=%ingot%
  3241. echo log=%log%
  3242. echo bow=%bow%
  3243. echo ore=%ore%
  3244. echo aan=%aan%
  3245. echo bankgold=%bankgold%
  3246. echo morb=%morb%
  3247. echo arm1=%arm1%
  3248. echo arm2=%arm2%
  3249. echo arm3=%arm3%
  3250. echo arm4=%arm4%
  3251. echo arm5=%arm5%
  3252. echo arm6=%arm6%
  3253. echo arm7=%arm7%
  3254. echo arm8=%arm8%
  3255. echo arm9=%arm9%
  3256. echo arm10=%arm10%
  3257. echo arm11=%arm11%
  3258. echo arm12=%arm12%
  3259. echo ma1=%ma1%
  3260. echo ma2=%ma2%
  3261. echo ma3=%ma3%
  3262. echo ma4=%ma4%
  3263. echo ma5=%ma5%
  3264. echo ma6=%ma6%
  3265. echo ma7=%ma7%
  3266. echo ma8=%ma8%
  3267. echo ma9=%ma9%
  3268. echo ma10=%ma10%
  3269. echo ms1=%ms1%
  3270. echo ms2=%ms2%
  3271. echo ms3=%ms3%
  3272. echo ms4=%ms4%
  3273. echo ms5=%ms5%
  3274. echo ms6=%ms6%
  3275. echo ms7=%ms7%
  3276. echo ms8=%ms8%
  3277. echo ms9=%ms9%
  3278. echo ms10=%ms10%
  3279. echo sword1=%sword1%
  3280. echo sword2=%sword2%
  3281. echo sword3=%sword3%
  3282. echo sword4=%sword4%
  3283. echo sword5=%sword5%
  3284. echo sword6=%sword6%
  3285. echo sword7=%sword7%
  3286. echo sword8=%sword8%
  3287. echo sword9=%sword9%
  3288. echo sword10=%sword10%
  3289. echo sword11=%sword11%
  3290. echo sword12=%sword12%
  3291. echo axxx=%axxx%
  3292. echo pgmail=%pgmail%
  3293. echo phbone=%phbone%
  3294. echo pdhide=%pdhide%
  3295. echo prtab=%prtab%
  3296. echo ppotion=%ppotion%
  3297. echo pingot=%pingot%
  3298. echo pfood=%pfood%
  3299. echo prfood=%prfood%
  3300. echo pbait=%pbait%
  3301. echo pseed=%pseed%
  3302. echo pfur=%pfur%
  3303. echo pore=%pore%
  3304. echo pbow=%pbow%
  3305. echo plog=%plog%
  3306. echo pgem=%pgem%
  3307. echo pmorb=%pmorb%
  3308. echo Woodcuttinglvl=%Woodcuttinglvl%
  3309. echo Woodcuttingxpremain=%Woodcuttingxpremain%
  3310. echo Woodcuttingxpgain=%Woodcuttingxpgain%
  3311. echo Woodcuttingcurxp=%Woodcuttingcurxp%
  3312. echo Woodcuttingxpleft=%woodcuttingxpleft%
  3313. echo Cooklvl=%Cooklvl%
  3314. echo Cookxpremain=%Cookxpremain%
  3315. echo Cookxpgain=%Cookxpgain%
  3316. echo Cookcurxp=%Cookcurxp%
  3317. echo Cookxpleft=%Cookxpleft%
  3318. echo Fishinglvl=%Fishinglvl%
  3319. echo Fishingxpremain=%Fishingxpremain%
  3320. echo Fishingxpgain=%Fishingxpgain%
  3321. echo Fishingcurxp=%Fishingcurxp%
  3322. echo Fishingxpleft=%Fishingxpleft%
  3323. echo Mininglvl=%Mininglvl%
  3324. echo Miningxpremain=%Miningxpremain%
  3325. echo Miningxpgain=%Miningxpgain%
  3326. echo Miningcurxp=%Miningcurxp%
  3327. echo Miningxpleft=%Miningxpleft%
  3328. echo Smithinglvl=%Smithinglvl%
  3329. echo Smithingxpremain=%Smithingxpremain%
  3330. echo Smithingxpgain=%Smithingxpgain%
  3331. echo Smithingcurxp=%Smithingcurxp%
  3332. echo Smithingxpleft=%Smithingxpleft%
  3333. echo Thievinglvl=%Thievinglvl%
  3334. echo Thievingxpremain=%Thievingxpremain%
  3335. echo Thievingxpgain=%Thievingxpgain%
  3336. echo Thievingcurxp=%Thievingcurxp%
  3337. echo Thievingxpleft=%Thievingxpleft%
  3338. echo ttllvl=%ttllvl%
  3339. echo.
  3340. pause>nul
  3341. goto admincommands
  3342.  
  3343.  
  3344. :color
  3345. title FinalRealm - Settings - Color Change
  3346. cls
  3347. echo.
  3348. echo What would you like to change the color to?
  3349. echo.
  3350. echo 0 = Black 8 = Gray
  3351. echo 1 = Blue 9 = Light Blue
  3352. echo 2 = Green A = Light Green
  3353. echo 3 = Aqua B = Light Aqua
  3354. echo 4 = Red C = Light Red
  3355. echo 5 = Purple D = Light Purple
  3356. echo 6 = Yellow E = Light Yellow
  3357. echo 7 = White F = Bright White
  3358. echo.
  3359. echo Type the color combination you would like, or type "exit" to exit.
  3360. echo (example: 0f)
  3361. echo.
  3362. set /p colorcho=
  3363. if %colorcho% EQU exit goto settings
  3364. color %colorcho%
  3365. goto color
  3366.  
  3367.  
  3368. :namechange
  3369. title FinalRealm - Username Change
  3370. cls
  3371. echo.
  3372. set /p name1=Please enter your current Username:
  3373. if not exist "%name1%.bat" (
  3374. echo Invalid Username.
  3375. pause>nul
  3376. goto settings
  3377. )
  3378. set /p pass1=Please enter your current Password:
  3379. call %name1%.bat
  3380. if not %password1% EQU %pass1% (
  3381. echo Invalid Password.
  3382. pause>nul
  3383. goto settings
  3384. )
  3385. echo What would you like to change your Username to?
  3386. set /p username1=
  3387. set v1f=0
  3388.  
  3389. :checkforspaces2
  3390. set x=!v1f!
  3391. set Letter%v1f%=!username1:~%x%,1!
  3392. if "!Letter%v1f%!" EQU " " (
  3393. echo.
  3394. echo.
  3395. echo Sorry you cant use spaces in your Username.
  3396. pause>nul
  3397. goto entergame
  3398. )
  3399. if NOT "!Letter%v1f%!" EQU "" (
  3400. set /a v1f=%v1f%+1
  3401. goto checkforspaces2
  3402. )
  3403. echo Username Changed.
  3404. echo.
  3405. pause>nul
  3406. goto settings
  3407.  
  3408.  
  3409. :passchange
  3410. title FinalRealm - Username Change
  3411. cls
  3412. echo.
  3413. set /p name1=Please enter your current Username:
  3414. if not exist "%name1%.bat" (
  3415. echo Invalid Username.
  3416. pause>nul
  3417. goto settings
  3418. )
  3419. set /p pass1=Please enter your current Password:
  3420. call %name1%.bat
  3421. if not %password1% EQU %pass1% (
  3422. echo Invalid Password.
  3423. pause>nul
  3424. goto settings
  3425. )
  3426. echo What would you like to change your Password to?
  3427. set /p password1=
  3428. echo.
  3429. echo Password changed.
  3430. echo.
  3431. pause>nul
  3432. goto settings
  3433.  
  3434.  
  3435.  
  3436.  
  3437. :ColorText [%1 = Color] [%2 = Text]
  3438. set /p ".=." > "%~2" <nul
  3439. findstr /v /a:%1 /R "^$" "%~2" nul 2>nul
  3440. set /p ".=" <nul
  3441. if "%3" == "end" set /p ".= " <nul
  3442. del "%~2" >nul 2>nul
  3443. exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement