[Guide] Custom Mall Guards menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    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)

    [Guide] Custom Mall Guards

    Long time ago (rev 2488 or something like that ) I wondered if I could make Custom guards for my mall.

    Not like those normal guards (Just walking and fighting)
    I mean like Stormwind, Orgrimmar or whatever City Guards.
    You can ask them a thing and they will give you a point on your minimap, where you should go. This is usefull if you have alot of newbs on your server that dont know how your mall is structured

    So after some time i looked into the GuardGossip.cpp in my Ascent Source and looked for the structure of a guard.

    I still dont know alot about this and maybe this Gossip will not longer work due its old (in ascent rev years :P). If it doesnt work pls give a reply (I cant test it atm sorry) about it and Ill fix it.


    Now Ill just make it a guide with Copy&Paste, experienced users can make this into a .patch file and/or modify the MakeFile.am in the folder

    Now... As you can think of you have to change alot in this code...

    Every mall is different (maybe some mall releasers will add a code like this to their releases ) but if you have made one on your own you´ll have to get some coords (trainers, teleporters, portals, vendors etc.)

    Actually here is the guide oO:


    Gahme's Guide for Custom Guards


    We will do this step by step.


    Requiered:
    Notepad
    Ascent Source (modified: You have to enter your coords)
    A guard npc (you need to know its Id)


    1.
    Get the ascent source.
    If you need help with this, there are plenty of guides here on Mmowned how to
    get it. (The trunk is: http://projects.emupedia.com/svn/ascent/trunk/ )


    2.
    Open the folder with your ascent source and browse to .../src/scripts/src/GossipScripts/
    In it there are this files (if you didnt already add one): Gossip_Battlemaster.cpp, Gossip_Innkeeper.cpp, GuardGossip.cpp, Makefile.am, Setup.cpp and Setup.h


    3.
    Open up the GuardGossip.cpp with Notepad or another text editor.

    4.
    Scroll all the way down.
    Scroll abit up and you should see something like this:
    Code:
    ...
    				Plr->Gossip_SendPOI(-4711.54, -12386.7, 6, 6, 0, "Odesyus' Landing, Tailor");
                    SendQuickMenu(2593);
                }break;
            }
        }
    };
    (Here ends the last guard and the register scripts start)
    void SetupGuardGossip(ScriptMgr * mgr)
    {
    	GossipScript * gold = (GossipScript*) new GoldshireGuard();
    ...
    (Those "..." just mean there is text before it and after it :P)
    The part I marked red is important. There we will add in our custom guard!

    5.
    Put another line between the last guard script and the register scripts and paste in the custom source.
    Be sure that there is a free line between the Brill Guard and your guard!
    There has to be a free line after the custom gossip too. It should look like this:

    Code:
    ...
    		case 27: //Tailoring
                {
    				Plr->Gossip_SendPOI(-4711.54, -12386.7, 6, 6, 0, "Odesyus' Landing, Tailor");
                    SendQuickMenu(2593);
                }break;
            }
        }
    };
    
    class SCRIPT_DECL CustomGuard : public GossipScript
    {
    public:
    	void Destroy()
    	{
    ...
    and:

    Code:
    ...
    
    	case 33: //Warlock Trainer
                {
                    Plr->Gossip_SendPOI(X Coordinate, Y Coordinate, 6, 6, 0, "Warlock Trainer");
                    SendQuickMenu(11350);
                }break;
            }
        }
    };
    
    void SetupGuardGossip(ScriptMgr * mgr)
    {
    	GossipScript * gold = (GossipScript*) new GoldshireGuard();
    ...
    After you have done this, the Gossip is implemented ingame.
    The problem is we haven't bound it to our guard.

    6.
    To do this you have to scroll down and add a new line after
    Code:
    ...
    	mgr->register_gossip_script(18038,azure);		// Azuremyst Peacekeeper
    }	
    ...
    Just make it look like this:
    Code:
    ...
    	mgr->register_gossip_script(18038,azure);		// Azuremyst Peacekeeper
    	mgr->register_gossip_script(33344,mall);
    }	
    ...
    The 33344 is your guard's entry id in your database. You can change this to whatever you want


    Almost done.
    Just compile Ascent now and spawn the guard you made before ingame!
    Remember it must be at your mall's place (atleast on it's map).

    Gratulations you just made your own Mall Guard!


    If there are any problems please post them here.
    If there arent.... good why not posting here anyway :wave:
    If you have anything to contribute on this post, ill add it here.


    Downloads:
    Gossip Source


    Last edited by Cursed; 01-24-2008 at 01:11 PM. Reason: Guard.sql doesnt work

    [Guide] Custom Mall Guards
  2. #2
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice mate! Here is a rep cookie, as you would say! /smile
    Also, when is the next release for the custom parts.. /frown
    I have been WAITING!


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

  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)
    Ill make another thread of it okay?^^

  4. #4
    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)
    Removed the sql - didnt work

  5. #5
    /K2's Avatar Member
    Reputation
    3
    Join Date
    Jun 2007
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for posting this! I just made my very first custom guard thanks to you!

    I was wondering though, how do you change the guard's text? When you ask the guard where the weapon trainer is, he says "Woo Ping is the best. He's in the armory" or something like that... how do you change that text? I can't seem to find it in the .cpp files or in the dB..

    Again, Danke for the post! +rep

  6. #6
    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)
    I think its both... You have to make a custom text in the Database table npc_text
    and make alot of new cases in the script (if_click on 1: lead to text x etc. )

  7. #7
    /K2's Avatar Member
    Reputation
    3
    Join Date
    Jun 2007
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, that was it exactly. I don't know how I didn't see it before... :P Thanks for letting me know.

    Taken from GuardGossip.cpp and changed a little:

    case 1: //This is what happens after clicking on the first option
    {
    Plr->Gossip_SendPOI(-8751.0, 1124.5, 6, 6, 0, "The Park");
    SendQuickMenu(999); //999 is the entryID in NPC_Text for what this NPC says when you select this option
    }break;

  8. #8
    spudman321's Avatar Member
    Reputation
    4
    Join Date
    Oct 2007
    Posts
    34
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool guide, i'll have to try this out a bit later

  9. #9
    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)
    Ahh cool thanks for that /K2 I wondered what those were +rep 2x

  10. #10
    boone2515's Avatar Member
    Reputation
    2
    Join Date
    Aug 2007
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great guide +rep

  11. #11
    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)
    thx
    *filler*

  12. #12
    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)
    Good job, +Rep

  13. #13
    wowowner5's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    omfg nice now my malls have guards lol thnx +rep

  14. #14
    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)
    Thanks both of you

  15. #15
    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)
    Thanks for this guide.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Guide] Custom instances
    By Chrispee in forum WoW EMU Guides & Tutorials
    Replies: 38
    Last Post: 08-11-2008, 08:56 AM
  2. [guide]Customs weps/ armor/ bags/ amo (Ascent*
    By bombhell in forum WoW EMU Guides & Tutorials
    Replies: 8
    Last Post: 03-02-2008, 09:10 PM
  3. [Super Mario's 2.3 Ascent Repack] With custom mall and hyjal
    By mcimmino92 in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 01-18-2008, 03:04 PM
  4. Crusade-WoW|Custom Content|T7 and T8|254 Cap|Custom Mall|
    By Corosive720 in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 11-04-2007, 05:36 PM
All times are GMT -5. The time now is 10:52 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search