Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////
- How to Setup: https://www.youtube.com/user/Rzaahhardy
- 1. Download GMH Core+Database+Website+Client:
- 2. Extract anywhere.
- 3. Download Xxamp(for Website+Mysql): http://sourceforge.net/projects/xampp/files/
- 4. Download HediSQL: http://www.heidisql.com/download.php
- 5. Download JDK for Windows x86: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- 6. Install xxamp.
- 7. Install HediSQL.
- 8. Install JDK.
- 8. Set new Mysql Password to "mypass123": http://localhost/security/xamppsecurity.php
- NOTE: If you want to put your own password you have to change the password "mypass123" in the website config files and Database too.
- Its hard work, if you are a noob, use password "mypass123".
- No one will be able to enter your database unless you give them permission, so you are safe and secure.
- 9. Go to Start->Computer->Properties->Advanced settings->Enviroment variables->New
- 10. put name: Path
- 11. put value: C:\Program Files (x86)\Java\jdk1.8.0_20\bin;
- 12. Close and save.
- 13. Open HediSQL and Create Databases.
- 14. Import all the .SQL from the /Database
- 15. Open Openheroes database and open accounts
- 16. Add yourself an account.
- 17. Close it
- 18. Go to Core/GMH and click AutoCompileAll.bat
- 19. Edit server.xml and edit <password>MYSQLPASSWORD</password> to your mysqlpassword
- 20. When its done Compiling, click on RunAll.bat
- 21. Go to Client/Global Martial Heroes and click do.exe.
- 22. Have Fun Playing.
- <=== Website ===>
- 1. Go to /Website/Public_html and Select All and Copy.
- 2. Paste or Drag in xxamp/htdocs.
- 3. Dont 4get to create and import the website Databases.
- 4. go to http://localhost/ to go on your own website.
- NOTE: The website password is "mypass123" by default and only localhost can access it so you are safe.
- If your password isnt "mypass123" then you have to change the password of the website to your password.
- Go to your website folder/configzzzzz_FOREIGN/ and edit the password "mypass123" to your own password in every file.
- Then Copy All and paste it in the website folder.
- Then go to heidisql and open root_ogmhwebsite.
- Then open jos_modules, Find the password "mypass123" and change it to your own password.
- /////////////////////////////////
- Going Public Online:
- 1. Change IP,HOST,USERNAME,PASSWORD in server.xml in GMH folder to your http://www.whatsmyip.org/ IP and Mysql Database.
- 2. Open ports 11000, 10002, 10000
- 3. For website you need to forward port 80 and send people over your IP in webrowser.
- 4. Now other people can go to your website and login!
- 5. Other people need to set your IP in their Client/Global Martial heroes/ hmg.txt file.
- 6. Have fun playing.
- ////////////////////////////////
- How to upgrade account to Admin:
- 1. Open heidisql.
- 2. Open Openheroes database.
- 3. Open Characters and find your Character.
- 4. go to "isgm" coloum.
- 5. Put in az for Admin rank for your character.
- 6. Close and save.
- 7. Go ingame and type in Guild Chat the commands.
- NOTE: you can edit the commands and ranks in the Core but you need to know Java-Code.
- Admin Commands:
- ,scan:ITEMID:STACKVALUE:0 or 1(delete)// scan all items in Database by itemid and stack, any above stack is delete if 1.
- ,playcasino:VALUE // casino roll
- ,guildwar:NAME // declare war
- ,banip:NAME // perm ban player + account ip by ,banip:charname
- ,banplayer:NAME // perm ban by ,banplayer:charname:days:banreason
- ,unban:NAME // unban acccount by ,unbanaccount:charname
- ,show:NAME // shows player inv, cargo, friends, skills, skillbar ,show:charname
- // when using show command u get visual of other player.
- // dont do anything with it or else you will fuck your own inventory up.
- // Its only a visual!!!
- ,clean:NAME // back to your normal self inv, cargo, friends, skills, skillbar ,clean:1
- ,shout:NAME // shout aka world chat ,shout:message
- ,kickplayer:NAME // kick player ,kickplayer:charname
- ,endwar:GUILDNAME // end war ,endwar:guildname
- ,playerinfo:NAME // get player info by ,playerinfo:charname
- ,endwar:GUILDNAME // end war
- ,refresharea:VALUE // refresh area
- ,revive:VALUE // revive
- ,stealth: VALUE // stealth
- ,ri:ITEMID // remove item by slot
- ,startprof:VALUE // start proffesin by value
- ,commands:VALUE // show commands
- ,additem:ITEMID // spawn item
- ,massitemspawn:ITEMID // spawn item to every player in world map
- ,heal:VALUE // set current hp mana stamto ?:?:?
- ,shout:MESSAGE // shout aka world chat
- ,whisper:MESSAGE // whisper a player
- ,servernews:MESSAGE // server news
- ,shutdown:VALUE // servershutdown
- ,exit:VALUE // servershutdown
- ,restart:VALUE // servershutdown
- ,serverrestart:VALUE // serverrestart
- ,setplayerGM:NAME:VALUE // setplayergmlevel by name: string value
- ,setplayerface:NAME:VALUE // setplayerface by name: int value
- ,setplayerlevel:NAME:VALUE // setplayerlevel by name: int value
- ,setplayerfaction:NAME:VALUE // setplayerfaction by name: int value
- ,setplayerclass:NAME:VALUE // setplayerclass by name: int value
- ,setplayerfame:NAME:VALUE // setplayerclass by name: int value
- ,setplayername:NAME:NAME // change any player name to ?
- ,fame:VALUE // set fame
- ,regen:VALUE:VALUE:VALUE // set current hp mana stamto ?:?:?
- ,getstatsfromdb:VALUE // get character stats from db (such as current hp mana etc )
- ,quit:VALUE // force quitgame (usefull for when stuck -> like holding item etc)
- ,test:VALUE // test shit
- ,exp:VALUE // exp by value
- ,icon:VALUE // icon by value
- ,mobspawn:MOBID // spawn mob
- ,gold:VALUE // add gold
- ,npcspawn:NPCID:NAME // spawn npc
- ,showstats:NAME // shows char stats in console
- ,porttele:X:Y:MAPID // teleport your character to X,Y,MAP
- ,portplayer:X:Y:MAPID // teleport ANY PLAYER to X,Y,MAP
- ,appear:NAME // appear to player by name
- ,summon:NAME // summons a player by name
- ,masssummon:VALUE // summons every player in the world map
- ,kickplayer:NAME // kick player name
- ,banip:NAME // perm ban player + account ip by player name
- ,masskickplayer:VALUE // kick everyones in the server ( ultimate troll)
- ,banplayer:NAME // perm ban player name
- ,unbanaccount:NAME // unban acccount by username OR PLAYERNAME
- ,massbanplayer:VALUE // ban everyones in the server ( ultimate troll)
- ,time:VALUE // time in console
- ,playernames:VALUE // display all online playernames
- ,debug:VALUE // ThreadDebuging
- ,a:MESSAGE // gm announce
- ,greena:MESSAGE // green announce
- ,reda:MESSAGE // red announce
- ,playerinfo:NAME // get player info by name
- ,setplayermodel:VALUE // change modelid for any player
- ,model:VALUE // change modelid for yourself
- ,booth:NAMME // spawns booth :String booth-name
- ,guildchat:MESSAGE // guildchat as shout
- ,guildcreate:NAME // create guild : String guildname
- ,guildkick:NAME // guildkick
- ,partychat:MESSAGE // partychat as shout
- ,castbuff:VALUE // castspell : id ?
- ,castspeed:VALUE // castspeed : 1/2/3/4
- ,flagred:NAME // flag the player red by name
- ,level:VALUE // set level
- ,pot:VALUE // set hp
- ,fury:VALUE // set fury
- ,furyoff:VALUE // turn fury off or on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement