[Guide] Create new command ( Like Donor Announce ) menu

Shout-Out

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] Create new command ( Like Donor Announce )

    Step 1 :

    -Download Ascent from its SVN if it hasent been done so yet.

    Step 2 :

    - First we need to edit 3 files in the ascent source code.

    - So first lets edit , lets say Chat.cpp located in scr/ascent-world/chat.cpp

    Lets search for a command for example

    "
    { "save", 's', &ChatHandler::HandleSaveCommand, "Save's your character", NULL, 0, 0, 0},

    "

    Under it lets add a new command , im going to call my command a .donor and for access lets say " d ". So this is how im going to put under the command we searched for


    { "donor", 'd', &ChatHandler::HandleDonorAnnounce, "
    Announce with the (DONOR) tag instead of your name
    ", NULL, 0, 0, 0},


    Now were done with this step , so lets click on save and close


    Step 3 :

    -Now we are going to edit chat.h located in " scr/ascent-world/chat.h "

    -Since what we are doing is a announce for donators lets be organized and put it under the original announcements.

    - Search for

    "
    bool HandleAnnounceCommand(const char* args, WorldSession *m_session);

    "

    Now right under it , lets put ours in , lets add this


    bool HandleDonorAnnounceCommand(const char* args, WorldSession *m_session);


    Alright were done with this step , lets save and close.

    Step 4 :

    -Now we are going to edit the levels of commands , for example level0.cpp , level1.cpp , level2.cpp , level3.cpp .

    -But I for me im going to put it on level2.cpp , but if I was you put it under level1.cpp.

    - Now lets look for level2.cpp located under " scr/ascent-world/level2.cpp "

    - Go all the way to the buttom and lets add a new command should we

    This is what I would add to make .donor appear as

    (DONOR) : MYMESSAGEGOESHERE

    We are going to add this


    bool ChatHandler::HandleDonorAnnounceCommand(const char* args, WorldSession *m_session)
    {
    if(!*args)
    return false;

    char pAnnounce[1024];
    snprintf((char*)pAnnounce, 1024, "(DONOR) %s", args);
    sWorld.SendWorldText(pAnnounce);
    sGMLog.writefromsession(m_session, "used donor announce command, [%s]", args);

    //sWorld.SendForcedIRCMessage(pAnnounce);
    return true;
    }
    Alright that should do it , now go into the game and try .donor or any command you just did.

    Any support will be posted only here
    Last edited by ~SaiLyn~; 03-08-2008 at 08:51 PM.

    [Guide] Create new command ( Like Donor Announce )
  2. #2
    Murlock.'s Avatar Knight-Lieutenant
    Reputation
    86
    Join Date
    Oct 2007
    Posts
    271
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Amazing.. simply amazing... Rep added.

  3. #3
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very cool... I didnt your stuff quite some time...
    Cool you post again helping some people
    rep 2x added

    Edit: Have to wait ,24 hours thing-.-

  4. #4
    Tubaquer's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow ... Thanks.

  5. #5
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awsome! Great guide, I'll +Rep after the 24 hours thing goes away

  6. #6
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem mate

  7. #7
    FelBlood's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome needed this for my root-admin server, for a donator rank, that could use .recall port and .morph

    +Rep when i can

  8. #8
    deathomen's Avatar Member
    Reputation
    6
    Join Date
    May 2007
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is very nice. +Rep for this. i will definatly be using this.

    ~death~

  9. #9
    Krazyglue's Avatar Member
    Reputation
    13
    Join Date
    Oct 2007
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice, ill be using this
    -Krazyglue

  10. #10
    mmhelm's Avatar Member
    Reputation
    25
    Join Date
    Aug 2007
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide +Rep

  11. #11
    dase's Avatar Banned
    Reputation
    24
    Join Date
    Nov 2007
    Posts
    84
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fantastic.

  12. #12
    nickobro's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I have a ?

    how do you depatch to 2.3.3?

  13. #13
    daniel4166's Avatar Member
    Reputation
    8
    Join Date
    Sep 2007
    Posts
    152
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know how to add the command Morph because the server I got they forgot to add it

  14. #14
    Etzzhy's Avatar Member
    Reputation
    15
    Join Date
    Mar 2008
    Posts
    120
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice one : Simple and good :P +rep

  15. #15
    EtanTheMidget's Avatar Member
    Reputation
    5
    Join Date
    Mar 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice guide, +rep when I can
    EtanTheMidget, Main Developer of Norwegianelite

Page 1 of 2 12 LastLast

Similar Threads

  1. [Guide] Fixing New Mounts
    By Creepfold in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 12-04-2007, 05:31 AM
  2. [Guide] Creating and Compiling a Teleporter NPC
    By Gastricpenguin in forum WoW EMU Guides & Tutorials
    Replies: 59
    Last Post: 10-29-2007, 03:06 PM
  3. how do i create new mounts
    By Masterkenshin in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 10-19-2007, 07:14 PM
  4. Create new weapons/armor
    By Zogger1 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-13-2007, 12:52 PM
  5. Edit Glider Path V1 !!! You can now create Glider profiles like a pro with no trouble
    By Flying Piggy in forum World of Warcraft Bots and Programs
    Replies: 4
    Last Post: 02-06-2007, 12:38 AM
All times are GMT -5. The time now is 01:26 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