[Release] Custom Places Warper menu

Shout-Out

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  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)

    [Release] Custom Places Warper

    Greetings again...
    Some of you may know my thread line 'Custom places'
    Today while chatting with King Shaun I got the idea about making a warper
    for all that places. And now Im finished


    This includes:
    - Warp NPC Source (Only the source, you have to compile yourself)
    - SQL for it
    - All places of my threads (I think 22 custom places or anything like this)
    - Of course the "Make this place my home" function included


    I hope some of you can use this for their servers or just for themselves.
    If you dont want your players to get to the emerald dream, outside Naxx or
    to other crank places spawn it on GM Island or whereever they dont reach it


    Source:



    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    
    class SCRIPT_DECL Warper : public GossipScript
    {
    public:
        void GossipHello(Object * pObject, Player* Plr, bool AutoSend);
        void GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code);
        void GossipEnd(Object * pObject, Player* Plr);
    	void Destroy()
    	{
    		delete this;
    	}
    };
    void Warper::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
        {
            GossipMenu *Menu;
            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
    			Menu->AddItem(0, "Eastern Kingdoms Locations", 2);
    			Menu->AddItem(1, "Kalimdor Locations", 1);
    			Menu->AddItem(9, "Make This Place Your Home", 95);
    			
    if(AutoSend)
                Menu->SendTo(Plr);
        }
    
    void Warper::GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
        {
    	Creature * pCreature = (pObject->GetTypeId()==TYPEID_UNIT)?((Creature*)pObject):NULL;
    	if(pCreature==NULL)
    		return;
    
            GossipMenu * Menu;
            switch(IntId)
            {
    		case 0: // Return to start
    				GossipHello(pObject, Plr, true);
    			break;
    	                
            case 1:     //Kalimdor
                    {
                    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
    				Menu->AddItem(5, "Goblin Mill", 4);
                    Menu->AddItem(5, "Stonetalon Peak", 5);
                    Menu->AddItem(5, "Isle of Dread", 6);
                    Menu->AddItem(5, "Ruins of Isildien", 7);
    				Menu->AddItem(5, "Desolace Ruins", 8);
    				Menu->AddItem(5, "Northwatch Hold", 9);
    				Menu->AddItem(0, "[Back]", 99);
                    Menu->SendTo(Plr);
    				}
    		break;
    
    
            case 2:     // Eastern Kingdoms
    				{
                    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
                    Menu->AddItem(5, "Dun Morogh Instance", 10);
                    Menu->AddItem(5, "Area next to Wetlands", 11);
                    Menu->AddItem(5, "Stormwind Vault", 12);
                    Menu->AddItem(5, "Ironforge Airport", 13);
    				Menu->AddItem(5, "Old Ironforge", 14);
    				Menu->AddItem(5, "Grim Batol", 15);
    				Menu->AddItem(5, "Wetlands Farm", 16);
    				Menu->AddItem(5, "Western Tirisfal", 17);
    				Menu->AddItem(5, "Outside Naxxramas", 18);
    				Menu->AddItem(5, "Jintha'Alor", 19);
    				Menu->AddItem(5, "Night Elf's Landing", 20);
    				Menu->AddItem(5, "Stranglethorn Special", 21);
    				Menu->AddItem(5, "Arathi Dwarven Farm", 22);
    				Menu->AddItem(5, "Hearthglen", 23);
    				Menu->AddItem(5, "Dun Modr", 24);
    				Menu->AddItem(0, "[Back]", 99);
                    Menu->SendTo(Plr);
    				}
                break;
    
    
    				
            case 4://Goblin Mill
                {
                    Plr->EventTeleport(1, 1876.058472, 1476.522949, 142.102249);
    
                }
    			break;
    
            case 5://Stonetalon Peak
                {
                    Plr->EventTeleport(1, 2506.300049, 1470.140015, 262.722626);
                }
    			break;
    
            case 6://Isle of Dread
                {
                    Plr->EventTeleport(1, -5811.144531, 3399.459717, 63.450497);
                }
    			break;
    
            case 7://Ruins of Isildien
                {
                    Plr->EventTeleport(1, -5523.183105, 1362.717529, 82.331253);
                }
    			break;
    				
            case 8: //Desolace Ruins
                {
                    Plr->EventTeleport(1, -2212.477783, 600.015869, 198.405182);
                }
    			break;
    
            case 9: //Northwatch Hold
                {
                    Plr->EventTeleport(1, -1986.579956, -3688.250000, 18.314852);
                }
    			break;
    
            case 10: //Dun Morogh Instance
                {
                    Plr->EventTeleport(0, -5582.658691, 887.209534, 392.631073);
                }
    			break;
    
            case 11: //Area next to Wetlands
                {
                    Plr->EventTeleport(0, -3438.822510, -3644.946289, 56.700352);
                }
    			break;
    				
    				
            case 12: //Stormwind Vault
                {
                    Plr->EventTeleport(0, -8653.801758, 607.536316, 90.675499);
                }
    			break;
    
            case 13: //Ironforge Airport
                {
                    Plr->EventTeleport(0, -4653.808105, -1688.603882, 503.324615);
                }
    			break;
    
            case 14: //Old Ironforge
                {
                    Plr->EventTeleport(0, -4815.6, -1033.32, 438.683);
    
                }
    			break;
    
            case 15: //Grim Batol
                {
                    Plr->EventTeleport(0, -4070.542725, -3456.188232, 281.388184);
    
                }
    			break;
    
            case 16: //Wetlands farm
                {
                    Plr->EventTeleport(0, -4024.388672, -1407.047974, 155.663696);
    
                }
    			break;
    
            case 17: //Western Tirisfal
                {
                    Plr->EventTeleport(0, 1954.999878, 2399.141357, 131.252274);
    
                }
    			break;
    
            case 18: //Outside Naxxramas
                {
                    Plr->EventTeleport(533, 3580.185791, -4505.611328, 197.894821);
    
                }
    			break;
    
    		case 19: //Jintha'Alor
    			 {
                    Plr->EventTeleport(0, -205.978485, -4137.642090, 117.683640);
    
    			 }
    			 break;
    			 
    		case 20: // Night Elf's Landing
    			 {
                    Plr->EventTeleport(0, 4263.138672, -2779.382324, 6.165768);
    
    			 }
    			 break;
    			 
    		case 21: // Stranglethorn Special
    			 {
                    Plr->EventTeleport(0, -12991.005859, -1301.977905, 42.370300);
    
    			 }
    			 break;
    			 
    		case 22: //Arathi Dwarven Farm
    			 {
                    Plr->EventTeleport(0, -1798.949951, -4248.970215, 2.135110);
    
    			 }
    			 break;
    			 
    		case 23: //Hearthglen
    			 {
                    Plr->EventTeleport(0, 2905.245850, -1493.115234, 146.304962);
    
    			 }
    			 break;
    			 
    		case 24: // Dun Modr
    			 {
                    Plr->EventTeleport(0, -2614.581055, -2414.518799, 79.228951);
    
    			 }
    			 break;
    			 
    
    
    
    		case 95: // Bind Position
                {
                    Plr->GetSession()->SendInnkeeperBind(pCreature);
    
                    
                    }break;
                    
                    
    				
    				
    				
    				
                    
                    
    		case 99: //main menu
    			{
    			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
    			Menu->AddItem(0, "Eastern Kingdoms Locations", 2);
    			Menu->AddItem(1, "Kalimdor Locations", 1);
    			Menu->AddItem(5, "Outland Locations", 3);
    			Menu->AddItem(9, "Make This Place Your Home", 95);
    			Menu->SendTo(Plr);
    			}
    			break;
    			
    			
     }
        }
    
    void Warper::GossipEnd(Object * pObject, Player* Plr)
    {
        GossipScript::GossipEnd(pObject, Plr);
    }
    
    void SetupWarper(ScriptMgr * mgr)
    {
    	GossipScript * ga = (GossipScript*) new Warper();
        /* Teleporter List */
        mgr->register_gossip_script(90009, ga);          // Gahme's Custom Warper
    }

    Here's the Sql:

    Code:
    delete from creature_proto where entry in (90009);
    delete from creature_names where entry in (90009);
    
    INSERT INTO `creature_names` VALUES ('90009', 'Custom Places', 'Want to take a ride?', '0', '0', '4', '4', '0', '0', '0', '9229', '9229', '0', '0', '1', '1', '1', '1');
    INSERT INTO `creature_proto` VALUES ('90009', '90', '90', '35', '200000', '200000', '1', '1', '98207', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 0, '2.5', '8', '14', '0');

    Great thanks to Bloodkip for compiling and SQL help.
    Download DLL (with SQL and Readme): Filebeam
    Before I forget: The NPC's Id is 90009
    If anyone can compile and upload it Ill put it in this post
    Have fun
    Last edited by Cursed; 02-03-2008 at 11:01 AM.

    [Release] Custom Places Warper
  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)
    Come on people, this is great!

    King Shaun and Gahme ftw!

    I would rep mate, but you know I cannot. Hehe.


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

  3. #3
    C.C.'s Avatar Contributor
    Reputation
    101
    Join Date
    May 2007
    Posts
    214
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im making the .dll and uploading it here. So hold on.

    -Bloodkip

  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)
    Yeah I know :P kk thanks Bloodkip I'll rep^^

    The cake is a lie-.-

  5. #5
    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)
    Hehe, go Bloodkip!

    I will rep you too if you compile! (x3)

    Thanks mate.


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

  6. #6
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Id compile it but cba atm :P

    But yeah good job


  7. #7
    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)
    Hehe, still waitin' for Bloodkip.


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

  8. #8
    C.C.'s Avatar Contributor
    Reputation
    101
    Join Date
    May 2007
    Posts
    214
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gahme, I think your warp is out of date I try to compile it on Ascent TRUNK 3656. Just gives me this error
    1>..\src\WarpNPC\Custom_Teleporters.cpp(84) : error C2143: syntax error : missing ')' before 'constant'
    1>..\src\WarpNPC\Custom_Teleporters.cpp(84) : error C2059: syntax error : ')'

    -Bloodkip

  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)
    Originally Posted by Bloodkip View Post
    Gahme, I think your warp is out of date I try to compile it on Ascent TRUNK 3656. Just gives me this error
    1>..srcWarpNPCCustom_Teleporters.cpp(84) : error C2143: syntax error : missing ')' before 'constant'
    1>..srcWarpNPCCustom_Teleporters.cpp(84) : error C2059: syntax error : ')'

    -Bloodkip
    Damn I knew it... gimme some minutes and Ill try to fix it

  10. #10
    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)
    Try again Bloodkip I edited the source...

  11. #11
    C.C.'s Avatar Contributor
    Reputation
    101
    Join Date
    May 2007
    Posts
    214
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it me or your making more errors lol?

    1>..\src\WarpNPC\Custom_Teleporters.cpp(16) : error C2653: 'Warper' : is not a class or namespace name
    1>..\src\WarpNPC\Custom_Teleporters.cpp(27) : error C2653: 'Warper' : is not a class or namespace name
    1>..\src\WarpNPC\Custom_Teleporters.cpp(2 : error C2601: 'GossipSelectOption' : local function definitions are illegal
    1> ..\src\WarpNPC\Custom_Teleporters.cpp(17): this line contains a '{' which has not yet been matched
    1>..\src\WarpNPC\Custom_Teleporters.cpp(272) : error C2653: 'Warper' : is not a class or namespace name
    1>..\src\WarpNPC\Custom_Teleporters.cpp(273) : error C2601: 'GossipEnd' : local function definitions are illegal
    1> ..\src\WarpNPC\Custom_Teleporters.cpp(17): this line contains a '{' which has not yet been matched
    1>..\src\WarpNPC\Custom_Teleporters.cpp(27 : error C2601: 'SetupWarper' : local function definitions are illegal
    1> ..\src\WarpNPC\Custom_Teleporters.cpp(17): this line contains a '{' which has not yet been matched
    1>..\src\WarpNPC\Custom_Teleporters.cpp(283) : fatal error C1075: end of file found before the left brace '{' at '..\src\WarpNPC\Custom_Teleporters.cpp(17)' was matched

    -Bloodkip
    Last edited by C.C.; 02-03-2008 at 10:02 AM.

  12. #12
    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)
    Haha. This just gets better and better.

    Edit: Bloodkip - Added rep (x3) for trying to compile. Hope you can fix it!


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

  13. #13
    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)
    Please another time Oh and if you have MSN please tell me^^ Dont want to spam this thread
    Last edited by Cursed; 02-03-2008 at 10:10 AM.

  14. #14
    Festigio's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    391
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very Nice Job, Gahme. I'm gonna attempt to Compile this. Just need the info from someone.
    +3reps


  15. #15
    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)
    Yeah finally 80 rep. My name will turn blue. Thanks^^

Page 1 of 3 123 LastLast

Similar Threads

  1. [Release] Custom LUA Instance
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 49
    Last Post: 05-12-2023, 02:55 AM
  2. [Release] Custom Headless Horseman Boss
    By Ebon in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 01-27-2008, 05:48 PM
  3. [Release] Custom 25 Man Raid Boss / Quest.
    By Drop_Warcrack in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 01-03-2008, 08:00 AM
  4. [Release] Custom Quest Commands/Subcommands
    By wowcomputer in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 12-29-2007, 05:35 PM
  5. [Release]: Custom level 80 Weapons
    By Greatdrak in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-15-2007, 04:19 PM
All times are GMT -5. The time now is 07:45 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