[Guide] Add a 'Reload ScriptEngine Command' menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    Ashaníta's Avatar Member
    Reputation
    19
    Join Date
    Mar 2008
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] Add a 'Reload ScriptEngine Command' - Aspire Version

    Hello Guys,

    I'm going to show you how to add a 'Reload Script Engine Command' in the Aspire Console.

    Note: This will only work on your OWN compiled server. This won't work on a repack.

    At first open your trunk solution. Now you can see on the left side the explorer.

    Now go to 'hearthstone-world' -> 'launcher' -> 'console' and open 'ConsoleListener.cpp'.

    Then search for this lines:

    Code:
    void HandleConsoleInput(BaseConsole * pConsole, const char * szInput)
    {
    	static ConsoleCommand Commands[] = {
    Below this lins you can see all other commands for the console.

    Now simply add this line under the

    Code:
    	static ConsoleCommand Commands[] = {
    line:

    Code:
    		{ &HandleScriptReloadCommand, "scriptreload","none", "PUT A TEXT HERE." },
    Explanation:

    'HandleScriptReloadCommand' is the name of our command.
    'scriptreload' is the command which you type in the console.
    'none' would be the syntax but we don't need some.
    'PUT A TEXT HERE.' here you can put the text which will be shown when you type '?' or 'help' in the console.



    Now we told the core to do something when we type "scriptreload" in the console. But we have to define what should be done when we type "scriptreload" in.

    Just open 'ConsoleCommands.h' and add this

    Code:
    bool HandleScriptReloadCommand(BaseConsole * pConsole, int argc, const char * argv[]);
    between

    Code:
    #ifndef _CONSOLECOMMANDS_H
    #define _CONSOLECOMMANDS_H
    and

    Code:
    #endif


    Now open 'ConsoleCommands.cpp' and add this

    Code:
    bool HandleScriptReloadCommand(BaseConsole * pConsole, int argc, const char * argv[])
    {
    	sScriptMgr.UnloadScripts();
    	sScriptMgr.LoadScripts();
    	return true;
    }
    at the end of the file.



    That should be all.

    Proof:



    becomes to:



    Please do not copy this guide.. if you want to post it in another forum PM me and post credits!

    Greetz Asha

    PS: My english is not that good I'm sorry.

    EDIT: Pictures added!
    EDIT: Proof added!
    Last edited by Ashaníta; 08-20-2009 at 09:35 AM. Reason: Added some pics which proof that this is working.

    [Guide] Add a 'Reload ScriptEngine Command'
  2. #2
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a great guide. Good job +repx2

    I live in a shoe

  3. #3
    Ashaníta's Avatar Member
    Reputation
    19
    Join Date
    Mar 2008
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.. same guide for ArcEmu coming soon
    And maybe a guide how to add a gm command with reload Script Engine

  4. #4
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good guide

    Originally Posted by Ashaníta View Post
    Thank you.. same guide for ArcEmu coming soon
    And maybe a guide how to add a gm command with reload Script Engine
    i am waiting for this, nice!

  5. #5
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great guide, +rep
    If you need me you have my skype, if you don't have my skype then you don't need me.

  6. #6
    Ashaníta's Avatar Member
    Reputation
    19
    Join Date
    Mar 2008
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks everyone,

    you encourage me

    I think this evening I'll make the ArcEmu guide.
    It can take a little bit time to make the GM Command guide because I'm not able to login to my core and try it out

    Greetz Asha

Similar Threads

  1. [Guide] Add a 'Reload ScriptEngine Command' - ArcEmu Version
    By Ashaníta in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 08-21-2009, 04:30 AM
  2. Forrest's Guide to GM Lvl 3 commands for Mangos
    By Forrest in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 03-09-2008, 02:40 PM
  3. [Guide] Add Azshara Crater To Your Server
    By MathWizard in forum WoW EMU Guides & Tutorials
    Replies: 25
    Last Post: 02-06-2008, 12:07 PM
  4. [GUIDE] Add Voice Chat to your ascent server! [GUIDE]
    By Dryice in forum WoW EMU Guides & Tutorials
    Replies: 26
    Last Post: 12-09-2007, 11:29 AM
  5. [Guide] Add Enchants (Mangos)
    By leetnesspur in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 11-04-2007, 03:37 PM
All times are GMT -5. The time now is 07:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search