Advertisement
Guest User

MH Tutorials by Ry

a guest
Sep 16th, 2014
3,637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.57 KB | None | 0 0
  1. /////////////////////////////////
  2. How to Setup: https://www.youtube.com/user/Rzaahhardy
  3. 1. Download GMH Core+Database+Website+Client:
  4. 2. Extract anywhere.
  5. 3. Download Xxamp(for Website+Mysql): http://sourceforge.net/projects/xampp/files/
  6. 4. Download HediSQL: http://www.heidisql.com/download.php
  7. 5. Download JDK for Windows x86: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  8. 6. Install xxamp.
  9. 7. Install HediSQL.
  10. 8. Install JDK.
  11. 8. Set new Mysql Password to "mypass123": http://localhost/security/xamppsecurity.php
  12. NOTE: If you want to put your own password you have to change the password "mypass123" in the website config files and Database too.
  13. Its hard work, if you are a noob, use password "mypass123".
  14. No one will be able to enter your database unless you give them permission, so you are safe and secure.
  15. 9. Go to Start->Computer->Properties->Advanced settings->Enviroment variables->New
  16. 10. put name: Path
  17. 11. put value: C:\Program Files (x86)\Java\jdk1.8.0_20\bin;
  18. 12. Close and save.
  19. 13. Open HediSQL and Create Databases.
  20. 14. Import all the .SQL from the /Database
  21. 15. Open Openheroes database and open accounts
  22. 16. Add yourself an account.
  23. 17. Close it
  24. 18. Go to Core/GMH and click AutoCompileAll.bat
  25. 19. Edit server.xml and edit <password>MYSQLPASSWORD</password> to your mysqlpassword
  26. 20. When its done Compiling, click on RunAll.bat
  27. 21. Go to Client/Global Martial Heroes and click do.exe.
  28. 22. Have Fun Playing.
  29.  
  30. <=== Website ===>
  31. 1. Go to /Website/Public_html and Select All and Copy.
  32. 2. Paste or Drag in xxamp/htdocs.
  33. 3. Dont 4get to create and import the website Databases.
  34. 4. go to http://localhost/ to go on your own website.
  35.  
  36. NOTE: The website password is "mypass123" by default and only localhost can access it so you are safe.
  37. If your password isnt "mypass123" then you have to change the password of the website to your password.
  38. Go to your website folder/configzzzzz_FOREIGN/ and edit the password "mypass123" to your own password in every file.
  39. Then Copy All and paste it in the website folder.
  40. Then go to heidisql and open root_ogmhwebsite.
  41. Then open jos_modules, Find the password "mypass123" and change it to your own password.
  42.  
  43.  
  44. /////////////////////////////////
  45. Going Public Online:
  46. 1. Change IP,HOST,USERNAME,PASSWORD in server.xml in GMH folder to your http://www.whatsmyip.org/ IP and Mysql Database.
  47. 2. Open ports 11000, 10002, 10000
  48. 3. For website you need to forward port 80 and send people over your IP in webrowser.
  49. 4. Now other people can go to your website and login!
  50. 5. Other people need to set your IP in their Client/Global Martial heroes/ hmg.txt file.
  51. 6. Have fun playing.
  52.  
  53.  
  54. ////////////////////////////////
  55. How to upgrade account to Admin:
  56. 1. Open heidisql.
  57. 2. Open Openheroes database.
  58. 3. Open Characters and find your Character.
  59. 4. go to "isgm" coloum.
  60. 5. Put in az for Admin rank for your character.
  61. 6. Close and save.
  62. 7. Go ingame and type in Guild Chat the commands.
  63.  
  64. NOTE: you can edit the commands and ranks in the Core but you need to know Java-Code.
  65.  
  66. Admin Commands:
  67.  
  68. ,scan:ITEMID:STACKVALUE:0 or 1(delete)// scan all items in Database by itemid and stack, any above stack is delete if 1.
  69. ,playcasino:VALUE // casino roll
  70. ,guildwar:NAME // declare war
  71. ,banip:NAME // perm ban player + account ip by ,banip:charname
  72. ,banplayer:NAME // perm ban by ,banplayer:charname:days:banreason
  73. ,unban:NAME // unban acccount by ,unbanaccount:charname
  74. ,show:NAME // shows player inv, cargo, friends, skills, skillbar ,show:charname
  75. // when using show command u get visual of other player.
  76. // dont do anything with it or else you will fuck your own inventory up.
  77. // Its only a visual!!!
  78. ,clean:NAME // back to your normal self inv, cargo, friends, skills, skillbar ,clean:1
  79. ,shout:NAME // shout aka world chat ,shout:message
  80. ,kickplayer:NAME // kick player ,kickplayer:charname
  81. ,endwar:GUILDNAME // end war ,endwar:guildname
  82. ,playerinfo:NAME // get player info by ,playerinfo:charname
  83. ,endwar:GUILDNAME // end war
  84. ,refresharea:VALUE // refresh area
  85. ,revive:VALUE // revive
  86. ,stealth: VALUE // stealth
  87. ,ri:ITEMID // remove item by slot
  88. ,startprof:VALUE // start proffesin by value
  89. ,commands:VALUE // show commands
  90. ,additem:ITEMID // spawn item
  91. ,massitemspawn:ITEMID // spawn item to every player in world map
  92. ,heal:VALUE // set current hp mana stamto ?:?:?
  93. ,shout:MESSAGE // shout aka world chat
  94. ,whisper:MESSAGE // whisper a player
  95. ,servernews:MESSAGE // server news
  96. ,shutdown:VALUE // servershutdown
  97. ,exit:VALUE // servershutdown
  98. ,restart:VALUE // servershutdown
  99. ,serverrestart:VALUE // serverrestart
  100. ,setplayerGM:NAME:VALUE // setplayergmlevel by name: string value
  101. ,setplayerface:NAME:VALUE // setplayerface by name: int value
  102. ,setplayerlevel:NAME:VALUE // setplayerlevel by name: int value
  103. ,setplayerfaction:NAME:VALUE // setplayerfaction by name: int value
  104. ,setplayerclass:NAME:VALUE // setplayerclass by name: int value
  105. ,setplayerfame:NAME:VALUE // setplayerclass by name: int value
  106. ,setplayername:NAME:NAME // change any player name to ?
  107. ,fame:VALUE // set fame
  108. ,regen:VALUE:VALUE:VALUE // set current hp mana stamto ?:?:?
  109. ,getstatsfromdb:VALUE // get character stats from db (such as current hp mana etc )
  110. ,quit:VALUE // force quitgame (usefull for when stuck -> like holding item etc)
  111. ,test:VALUE // test shit
  112. ,exp:VALUE // exp by value
  113. ,icon:VALUE // icon by value
  114. ,mobspawn:MOBID // spawn mob
  115. ,gold:VALUE // add gold
  116. ,npcspawn:NPCID:NAME // spawn npc
  117. ,showstats:NAME // shows char stats in console
  118. ,porttele:X:Y:MAPID // teleport your character to X,Y,MAP
  119. ,portplayer:X:Y:MAPID // teleport ANY PLAYER to X,Y,MAP
  120. ,appear:NAME // appear to player by name
  121. ,summon:NAME // summons a player by name
  122. ,masssummon:VALUE // summons every player in the world map
  123. ,kickplayer:NAME // kick player name
  124. ,banip:NAME // perm ban player + account ip by player name
  125. ,masskickplayer:VALUE // kick everyones in the server ( ultimate troll)
  126. ,banplayer:NAME // perm ban player name
  127. ,unbanaccount:NAME // unban acccount by username OR PLAYERNAME
  128. ,massbanplayer:VALUE // ban everyones in the server ( ultimate troll)
  129. ,time:VALUE // time in console
  130. ,playernames:VALUE // display all online playernames
  131. ,debug:VALUE // ThreadDebuging
  132. ,a:MESSAGE // gm announce
  133. ,greena:MESSAGE // green announce
  134. ,reda:MESSAGE // red announce
  135. ,playerinfo:NAME // get player info by name
  136. ,setplayermodel:VALUE // change modelid for any player
  137. ,model:VALUE // change modelid for yourself
  138. ,booth:NAMME // spawns booth :String booth-name
  139. ,guildchat:MESSAGE // guildchat as shout
  140. ,guildcreate:NAME // create guild : String guildname
  141. ,guildkick:NAME // guildkick
  142. ,partychat:MESSAGE // partychat as shout
  143. ,castbuff:VALUE // castspell : id ?
  144. ,castspeed:VALUE // castspeed : 1/2/3/4
  145. ,flagred:NAME // flag the player red by name
  146. ,level:VALUE // set level
  147. ,pot:VALUE // set hp
  148. ,fury:VALUE // set fury
  149. ,furyoff:VALUE // turn fury off or on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement