[FrostTeam] Wotlk  C++ Teleporter menu

User Tag List

Results 1 to 13 of 13
  1. #1
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [FrostTeam] Wotlk C++ Teleporter

    Another FrostTeam release, made by Snailz and me(I only gave coords, and some script ideas). Hope you enjoy it and report any bugs that you find :P


    To Do List
    Code:
    *Wotlk Cities
    *Wotlk Instances

    WotlkTele.cpp

    Code:
    /***********************************************************
    *                                                          *
    *                                                          *
    *               ******************************             *                   
    *               *                            *             *
    *               *   The FrostTeam Project    *             *     
    *               *          Snailz            *             *
    *               ******************************             *            
    *                                                          *
    *                                                          *
    *      --FrostTeam SVN consists of the latest WotLK        *   
    *      scripts, both Lua and C++. Some will be our own,    *
    *      some will be others with credits attatched. Our     *
    *      Svn includes all scripts that you may need          *
    *      to help make your server a more fun environment.--  *
    *                                                          *
    ************************************************************/
    
    #include "StdAfx.h"
    #include "Setup.h"
          
          #ifdef WIN32
          #pragma warning(disable:4305)// warning C4305: 'argument' : truncation from 'double' to 'float'
          #endif
           
           
          class SCRIPT_DECL WotlkTele : 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 WotlkTele::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
              {
                  GossipMenu *Menu;
                  objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
                          if(Plr->IsPvPFlagged() && Plr->getLevel() <= 70)
                          {
                                  Menu->AddItem(2, "You are either Flagged for PVP or are not higher than level 70.");
                          }else{
                          if(Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5)
                          {Menu->AddItem(0, "Horde Wotlk Cities", 1);}else{Menu->AddItem(1, "Alliance Wotlk Cities", 2);}
                          Menu->AddItem(2, "Wotlk Locations", 3);                            
                          Menu->AddItem(3, "Wotlk Instances", 4);
                          Menu->AddItem(8, "Buff me up, baby!", 5);
                          Menu->AddItem(9, "Remove Resurrection Sickness", 6);
                          }
                          if(AutoSend)
                      Menu->SendTo(Plr);
              }
           
          void WotlkTele::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:
                          GossipHello(pObject, Plr, true);
                  break;
                                  
                  case 1:     // Horde Wotlk Cities
                          {
                          objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
                          Menu->AddItem(5, "Still To Come", 9000);
           
                          Menu->SendTo(Plr);
                                          }
                          break;
           
           
                  case 2:     // Alliance Wotlk Cities
                                          {
                          objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
                          Menu->AddItem(5, "Still To Come", 9000);
           
                          Menu->SendTo(Plr);
                                          }
                      break;
           
                  case 3:     // Wotlk Locations
                                  {
                          objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
                          Menu->AddItem(5, "Howling Fjord", 20);
    					  Menu->AddItem(5, "Ebon Hold", 21);
    					  Menu->AddItem(5, "Dragonblight", 22);
    					  Menu->AddItem(5, "Dalaran", 23);
    					  Menu->AddItem(5, "Grizzly Hills", 24);
    					  Menu->AddItem(5, "Zul'Drak", 25);
    					  Menu->AddItem(5, "Storm Peaks [Highly Recommend F-Mount]", 26);
    					  Menu->AddItem(5, "Crystalsong", 27);
    					  Menu->AddItem(5, "Icecrown", 28);
    					  Menu->AddItem(5, "WIntergrasp", 29);
    					  Menu->AddItem(5, "Sholazar Basin", 30);
    					  Menu->AddItem(5, "Borean Tundra", 31);
           
                          Menu->SendTo(Plr);
                                          }
                      break;
           
                  case 4:	 //Wotlk Instances
                  {
                          objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
                          Menu->AddItem(5, "Still to come", 9000);
           
                          Menu->SendTo(Plr);
                  }
    			  break;
    
    			  case 20://Howling Fjord
    			  {
                    Plr->EventTeleport(571, 592, -5095, 6);
                  }
    			  break;
    
    			  case 21://Ebon Hold
    			  {
                    Plr->EventTeleport(609, 0, 0, 0);
                  }
    			  break;
    
    			  case 22://DragonBlight
                  {
                    Plr->EventTeleport(571, 3577.16, 656.005, 76.5898);
                  }
    			  break;
    
    			  case 23://Dalaran
                  {
                    Plr->EventTeleport(571, 5797.17, 639.257, 647.505);
                  }
    			  break;
    
    			  case 24://Grizzly Hills
                  {
                    Plr->EventTeleport(571, 3475.56, -4357.48, 230.87);
                  }
    			  break;
    
    			  case 25://Zul'Drak
                  {
                    Plr->EventTeleport(571, 5249.10, -4034.64, 371.99);
                  }
    			  break;
    
    			  case 26://Storm Peaks
                  {
                    Plr->EventTeleport(571, 6123.95, -987.35, 403.49);
                  }
    			  break;
    
    			  case 27://Crystalsong
                  {
                    Plr->EventTeleport(571, 5703.00, -199.67, 4184.12);
                  }
    			  break;
    
    			  case 28://Icecrown
                  {
                    Plr->EventTeleport(571, 7294.33, 2728.08, 396.78);
                  }
    			  break;
    
    			  case 29://Wintergrasp
                  {
                    Plr->EventTeleport(571, 4478.33, 2828.92, 395.37m);
                  }
    			  break;
    
    			  case 30://Shol. Basin
                  {
                    Plr->EventTeleport(571, 4727.07, 556917.17, 7.36);
                  }
    			  break;
    
    			  case 31://Bo. Tundra
                  {
                    Plr->EventTeleport(571, 3354.95, 5453.45, 59.13);
                  }
    			  break;
                         
             
                  case 5: // Buff me up!
                          {
                          if(Plr->getLevel() >= 70) 
                          {
                          pCreature->CastSpell(Plr, 15366, 0);
                          pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "By all that is wrong in this world, I bless you." );
                          Plr->Gossip_Complete();
                          }else{
                          pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "You need to be at least level 70 in order to recieve my buff." );
                          Plr->Gossip_Complete();}
                          }
    					  break; 
           
                  case 6: // Rez Sickness
                          {
    					  Plr->addSpell(15007);
                          Plr->removeSpell(15007,0,0,0);
                          pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "You have been cured of that dreaded sickness." );
                          Plr->Gossip_Complete();
                          }
    					  break;
    
    			  case 9000: //Ye Ol' Still to come
                  {
                    
                  }
    			  break;
           
    			 }
           }
           
          void WotlkTele::GossipEnd(Object * pObject, Player* Plr)
          {
              GossipScript::GossipEnd(pObject, Plr);
          }
           
          void SetupWotlkTele(ScriptMgr * mgr)
          {
                  GossipScript * gs = (GossipScript*) new WotlkTele();
              mgr->register_gossip_script(112230, gs);
          }

    What is FrostTeam Project?
    FrostTeam Project, is a Wotlk Scripting project, related to fun events

    Who makes part of it?
    *Edude
    *Nymphx
    *bsod-staff14 - Partnership
    *stoneharry
    *Snailz


    You can download our newest content on:


    frosteam - Revision 48/

    [FrostTeam] Wotlk  C++ Teleporter
  2. #2
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First Bro this rocks...Lemme in next C++ Release plz =-)

    I know C++
    LUA
    Sun++
    Moon++
    Php
    HTML
    Immortal GamerZ Under Development!

  3. #3
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bsod-staff14 View Post
    First Bro this rocks...Lemme in next C++ Release plz =-)

    I know C++
    LUA
    Sun++
    Moon++
    Php
    HTML
    Sun++ and Moon++ are not programming language's so this is failure.
    Script is once again messed, much not needed block's with can bug buttons in 75% of time's.

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  4. #4
    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)
    I removed all of your stupid spam, thats what happened. Stay ontopic!
    If you need me you have my skype, if you don't have my skype then you don't need me.

  5. #5
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright lmfao.
    Immortal GamerZ Under Development!

  6. #6
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ill let you in my next one then.
    Cheese Cake?

  7. #7
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks man!Seems like it would be tight!
    Immortal GamerZ Under Development!

  8. #8
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by AzolexX View Post
    Sun++ and Moon++ are not programming language's so this is failure.
    Script is once again messed, much not needed block's with can bug buttons in 75% of time's.
    Explain, Please.
    Cheese Cake?

  9. #9
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didnt get it either..I think he means the more buttons or something...
    Immortal GamerZ Under Development!

  10. #10
    Nymphx's Avatar Active Member
    Reputation
    83
    Join Date
    Sep 2008
    Posts
    212
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Love it . Well done on your first C++ script, Edude .

    Get them on the SVN!

  11. #11
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it looks great not to mention it works perfectly!!!My first C++ script sucked...Now im great at it along with LUA scripts...
    Immortal GamerZ Under Development!

  12. #12
    jmulhern345's Avatar Banned
    Reputation
    93
    Join Date
    Mar 2008
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bsod-staff14 View Post
    First Bro this rocks...Lemme in next C++ Release plz =-)

    I know C++
    LUA
    Sun++
    Moon++
    Php
    HTML
    When someone says that they know Sun++ and Moon++ and i believe it is just a type of C++ script from a SVN that is owned by the CREATORS or moon and sun therfore they are not languages, they are obviously making something up. Do not lie to become popular and get a place buddy.

  13. #13
    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)
    You can always use GetTeam() instead of checking their race you know :P Its returns their faction. (C++ is better then lua)

    I also wanna comment on the style of coding. IMO indentation and clean code is the way to go. Its easier to read, edit, and fix bugs. The style of coding is a bit awkward... But maybe thats just me. +rep for the effort

    EDIT: Need to spread
    Last edited by Sounddead; 01-01-2009 at 11:55 PM.

    I live in a shoe

Similar Threads

  1. [FrostTeam] LUA Item Teleporter
    By Edude in forum WoW EMU General Releases
    Replies: 45
    Last Post: 02-17-2009, 03:00 AM
  2. REQUEST | Teleporter npc for wotlk 9061
    By keazain in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-15-2008, 01:56 PM
  3. [DLL]WotLK Teleport NPC
    By SectorSeven in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 06-15-2008, 01:15 PM
  4. Any working teleport hack?
    By iamtheovermind in forum World of Warcraft General
    Replies: 18
    Last Post: 07-12-2006, 12:17 PM
  5. Any working teleport hack?
    By iamtheovermind in forum World of Warcraft Bots and Programs
    Replies: 6
    Last Post: 05-05-2006, 04:38 PM
All times are GMT -5. The time now is 04:30 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