[Guide] Create a custom Portable Telerporter! menu

User Tag List

Page 1 of 4 1234 LastLast
Results 1 to 15 of 46
  1. #1
    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)

    [Guide] Create a custom Portable Telerporter!

    What you need before we get started:

    - any text editor

    - some experience in compiling .dlls

    - Microsoft Visual Studios

    - A working private server

    First, you start with the basic script:

    Code:
    #include "StdAfx.h" #include "Setup.h" #ifdef WIN32 #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float' #endif //Defining Pwarper class SCRIPT_DECL Pwarper : 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 Pwarper::GossipHello(Object* pObject, Player * Plr, bool AutoSend) { if(Plr->CombatStatus.IsInCombat()) { Plr->BroadcastMessage("You are in combat!"); } if(!Plr->CombatStatus.IsInCombat()) { GossipMenu *Menu; objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr); if(Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5) {Menu->AddItem(0, "Horde Cities", 1);}else{Menu->AddItem(1, "Alliance Cities", 2);} if(AutoSend) Menu->SendTo(Plr); } }; void Pwarper::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code) { GossipMenu*Menu; switch(IntId) { case 0: GossipHello(pObject, Plr, true); break; case 1: // Horde Cities { objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr); Menu->AddItem(5, "Silvermoon", 4); Menu->AddItem(5, "Orgrimmar", 5); Menu->AddItem(5, "Thunder Bluff", 6); Menu->AddItem(5, "Undercity", 7); Menu->SendTo(Plr); } break; case 2: // Alliance Cities { objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr); Menu->AddItem(5, "The Exodar", 8); Menu->AddItem(5, "Stormwind", 9); Menu->AddItem(5, "Ironforge", 10); Menu->AddItem(5, "Darnassus", 11); Menu->SendTo(Plr); } break; case 4://Silvermoon { Plr->EventTeleport(530, 9400.486328, -7278.376953, 14.206780); }break; case 5://Orgrimmar { Plr->EventTeleport(1, 1371.068970, -4370.801758, 26.052483); }break; case 6://ThunderBluff { Plr->EventTeleport(1, -1304.569946, 205.285004, 68.681396); } break; case 7://Undercity { Plr->EventTeleport(0, 2050.203125, 285.650604, 56.994549); } break; case 8: //Exodar { Plr->EventTeleport(530, -4072.202393, -12014.337891, -1.277277); } break; case 9: //Stormwind { Plr->EventTeleport(0, -9100.480469, 406.950745, 92.594185); } break; case 10: //Ironforge { Plr->EventTeleport(0, -5028.265137, -825.976563, 495.301575); } break; case 11: //Darnassus { Plr->EventTeleport(1, 9985.907227, 1971.155640, 1326.815674); } break; case 99: //main menu { objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr); if(Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5) {Menu->AddItem(0, "Horde Cities", 1);}else{Menu->AddItem(1, "Alliance Cities", 2);} Menu->SendTo(Plr); }break; } }; void Pwarper::GossipEnd(Object * pObject, Player* Plr) { GossipScript::GossipEnd(pObject, Plr); } void SetupPwarper(ScriptMgr * mgr) { GossipScript * gs = (GossipScript*) new Pwarper(); mgr->register_item_gossip_script(60001,gs); }


    Copy and paste that into you text editor. Now we get to the customizing, to add custom locations what you do is first do .gps at the exact location you want to teleport to. Then, you take that information and complete this:

    Code:
    case "#":
            {
            Plr->EventTeleport(map #, x #, y #, z#);
            }break;
    For case # you can put in what ever number you want that hasn't been used yet. Then for the map, x, y, and z numbers, use your .gps info to fill that in.

    When you are finished with that, you add this to the menus:

    Code:
    Menu->AddItem(5, "Teleport Name", "case #");
    Replace case # with the case number you chose above and replace Teleport Name with the name of the location you are teleporting to. Finally, save your script and compile. To make the item ingame execute this query:

    Code:
    INSERT INTO `items` VALUES ('60001', '8', '-1', '-1', 'Portable Teleporter', 'Portable Teleporter', 'Portable Teleporter', 'Portable Teleporter', '42629', '1', '0', '0', '0', '0', '1503', '1791', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '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', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '33208', '0', '579', '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', '1', 'Don't lose yourself now!', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', null, '0', null, '0', '0', '0', '0', '0', '0', '0', null, null, '0', '-1', '0');
    The script was made by Aldaus
    and updated by Spartansp. So this should work with the latest rev.

    Have Fun!





    Last edited by Murlock.; 02-26-2008 at 04:10 PM.

    [Guide] Create a custom Portable Telerporter!
  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)
    WTB Replies!

  3. #3
    bigjohnson4's Avatar Member
    Reputation
    12
    Join Date
    Mar 2007
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Scripted by Aldaus, small typo there. Otherwise, it's a decent guide.

  4. #4
    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)
    Thanks and I fixed it

  5. #5
    roguesownu's Avatar Member
    Reputation
    10
    Join Date
    Nov 2006
    Posts
    189
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep

    This will come in very handy!
    The following statement is true
    The previous statement is false

  6. #6
    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)
    Thanks! Wow.. 40 views and only 2 people commented.. *detects leeching*

  7. #7
    xunmadex's Avatar Member
    Reputation
    5
    Join Date
    May 2007
    Posts
    70
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kick ass man +rep

  8. #8
    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)
    Hehe thanks.

  9. #9
    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)
    This is my first guide btw

  10. #10
    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)
    Come on.. 129 views and only 3 people commented.. Stop teh leeching

  11. #11
    Andeby's Avatar Active Member
    Reputation
    29
    Join Date
    Nov 2007
    Posts
    500
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide! I actually found this out by myself for a while ago, and checked this guide to see if I did it right (I think I messed the compiling up or the source was outdated 'cus it just crashed my server when I talked to the NPC). +rep for the nice guide!
    Pigpoo//Sleep~Away:
    One day I try to get it on, nothing happens

  12. #12
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *Detects Mysterio spamming to get posts*
    Last edited by Romis; 02-28-2008 at 03:35 PM.



  13. #13
    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)
    Originally Posted by Andeby View Post
    Nice guide! I actually found this out by myself for a while ago, and checked this guide to see if I did it right (I think I messed the compiling up or the source was outdated 'cus it just crashed my server when I talked to the NPC). +rep for the nice guide!
    Did you get it working? I can help you or well try to if you haven't yet

  14. #14
    **Sweeny**'s Avatar Member
    Reputation
    33
    Join Date
    Dec 2007
    Posts
    282
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OWNAGE really gud guide xD +Rep

  15. #15
    Sensisativa's Avatar Contributor
    Reputation
    151
    Join Date
    Feb 2008
    Posts
    551
    Thanks G/R
    1/7
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have not learnt the compiling part yet, looks like I got to get browsing.

Page 1 of 4 1234 LastLast

Similar Threads

  1. [Guide]Create a custom starting zone!
    By trinityunit in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 05-05-2010, 12:44 PM
  2. [nOOb guide] Create a server with custom everything
    By c0ddingt0n in forum WoW EMU Guides & Tutorials
    Replies: 11
    Last Post: 07-05-2008, 12:38 PM
  3. [nOOb Guide][Extreamly Detailed] Creating a custom instance.
    By c0ddingt0n in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 06-26-2008, 07:28 AM
  4. [Guide] Creating custom books!
    By c0ddingt0n in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 06-12-2008, 02:28 PM
  5. [n00b Guide] Creating custom vendors. Very detailed.
    By c0ddingt0n in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 04-23-2008, 10:41 PM
All times are GMT -5. The time now is 02:55 PM. 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