[Release] Portable Teleporter and Morpher for new revs menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 44
  1. #1
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Portable Teleporter and Morpher for new revs

    ok with the help of insanesk8123 we could make the portable teleporter and morpher work for ascent 3940... as a lot of people were asking for a .dll that work with newer revs... it is only tested for ascent 3940 so if it dont work on previous cores youll need to update this files...

    ok as requested here is sourcefiles:
    Code:
    //Title of Script: Portable Teleporter
    //Description of Script: Teleports people to diferent locations.
    //Author: Spartansp
    //Credits: To Aldaus for original script changed by me though.
    
        #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);
            Menu->AddItem(0, "Stormwind", 50);
            Menu->AddItem(0, "Ironforge", 51);
            Menu->AddItem(0, "Exodar", 52);
            Menu->AddItem(0, "Darnassus", 53);  
            Menu->AddItem(0, "Orgrimar", 54);
            Menu->AddItem(0, "Thunder Bluff", 55);
            Menu->AddItem(0, "Silvermoon City", 56);
            Menu->AddItem(0, "Undercity", 57);
            Menu->AddItem(0, "Shattrath", 58);
                if(AutoSend)
                Menu->SendTo(Plr);
        }
    };
    
    
    
    
        //Defining Cases
        void Pwarper::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
        {
            GossipMenu * Menu;
            switch(IntId)
            {
                    case 50:
                        {   //Stormwind
                            Plr->SafeTeleport(0, 0, -8831.61, 622.666, 93.7787, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 51:
                        {   //Ironforge
                            Plr->SafeTeleport(0, 0, -4804.45, -1101.14, 498.807, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 52:
                        {   //Exodar
                            Plr->SafeTeleport(530, 0, -3796.24, -11710.9, -105.45, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 53:
                        {   //Darnassus
                            Plr->SafeTeleport(1, 0, 9952.07, 2278.46, 1341.39, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 54:
                        {   //Orgrimmar
                            Plr->SafeTeleport(1, 0, 1499.55, -4406.91, 23.1642, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 55:
                        {   //Thunder Bluff
                            Plr->SafeTeleport(1, 0, -1195.88, -56.5582, 160.034, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 56:
                        {   //Silvermoon City
                            Plr->SafeTeleport(530, 0, 9492.45, -7279.12, 14.3036, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 57:
                        {   //Undercity
                            Plr->SafeTeleport(0, 0, 1615.1, 239.786, -62.0774, 0);
                            Plr->Gossip_Complete();
                        }break;
                        
                    case 58:
                        {   //Shattrath
                            Plr->SafeTeleport(530, 0, -1852, 5432, -11, 0);
                            Plr->Gossip_Complete();
                        }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);
        }
    Code:
    //Title of Script: Portable Morpher
    //Description of Script: Morphs the player into a few different creatures using a item.
    //Original Script Author: Aldaus
    //Author of this mod: Spartansp
    //Credits: Aldaus for the First Script
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305)        // warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
      //Start of Script
    class SCRIPT_DECL Morpher : 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 Morpher::GossipHello(Object* pObject, Player * Plr, bool AutoSend)
        {
            GossipMenu *Menu;
            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
            Menu->AddItem(0, "Goblin", 0);
            Menu->AddItem(0, "Felguard", 2);
            Menu->AddItem(0, "Broken", 3);
            Menu->AddItem(0, "Ogre", 4);
            Menu->AddItem(0, "Pirate", 5);
            Menu->AddItem(0, "Skeleton", 6);
        Menu->AddItem(0, "Infernal", 7);
        Menu->AddItem(0, "AmaniBear", 8);
        Menu->AddItem(0, "Samuro", 9);
        Menu->AddItem(0, "Illidan Stormrage", 10);
        Menu->AddItem(0, "Akama", 11);
        Menu->AddItem(0, "Baby Murloc", 12);
        Menu->AddItem(0, "Flik's Frog", 13);
        Menu->AddItem(0, "SpartanWoW Guard", 14);
            Menu->AddItem(2, "Demorph", 15);
    
               if(AutoSend)
                Menu->SendTo(Plr);
        }
    
    
    //Defining Cases
    void Morpher::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
        {
            GossipMenu * Menu;
            switch(IntId)
            {
                //Goblin
            case 0:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 7109);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
                
                //FelGuard
            case 2:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 18287);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
                
                //Broken
            case 3:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 17833);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
                
                //Ogre
            case 4:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 1122);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
                
                //Pirate
            case 5:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 2347);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
                //Skeleton
            case 6:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 17970);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
            //Infernal
            case 7:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 169);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
        //Amani Bear
            case 8:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 22467);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
        //Samuro
            case 9:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 21665);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
        
        //Illidan Stormrage
            case 10:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 21135);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break; 
    
            //Akama
            case 11:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 20681);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break; 
    
            //Baby Murloc
            case 12:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 15394);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break; 
    
            //Flik's Frog
            case 13:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 14936);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break; 
    
            //SpartanWoW Guard
            case 14:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 19386);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break; 
    
        //Demorph :P
            case 15:
                {
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->DeMorph();
                    Plr->Gossip_Complete();
                }break;
            
    
    
            }
    };
    
    void Morpher::GossipEnd(Object * pObject, Player* Plr)
    {
    GossipScript::GossipEnd(pObject, Plr);
    }
    
    void SetupMorpher(ScriptMgr * mgr)
    {
    GossipScript * gs = (GossipScript*) new Morpher();
    mgr->register_item_gossip_script(60002,gs);
    }
    AND REMEMBER LOOK MY SIG
    remember to people that helped you out this means also rep insanesk8123 cause he helped me a lot

    Dll download links:
    File Beam Download
    Click ME

    Rapidshare Download
    Click ME

    Some pics:



    and SQL queries:

    for teleporter
    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', 'Dont loose 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');
    For morpher
    Code:
    INSERT INTO `items` VALUES ('60002', '8', '-1', '-1', 'Portable Morpher', 'Portable Morpher', 'Portable Morpher', 'Portable Morpher', '42629', '1', '0', '100000000', '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', 'All hail to the almighty morpher!', '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');
    Edit filebeam download added
    Last edited by Spartansp; 02-25-2008 at 08:03 PM.

    [Release] Portable Teleporter and Morpher for new revs
  2. #2
    Sonic Waffle's Avatar Contributor
    Reputation
    170
    Join Date
    Dec 2007
    Posts
    990
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That sounds cool, but I can't really test them as I still can't download it
    You can always use mediafire or rapidshare...
    I will check this out later...


  3. #3
    Xeneth's Avatar Member
    Reputation
    157
    Join Date
    Oct 2007
    Posts
    534
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pics = win


  4. #4
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol ok ill take some pics... BTW rapidshare already added

  5. #5
    Sonic Waffle's Avatar Contributor
    Reputation
    170
    Join Date
    Dec 2007
    Posts
    990
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Spartansp View Post
    lol ok ill take some pics... BTW rapidshare already added
    Oh soz, didn't see that >.<
    I will test it out later as my wow is only patch 2.1 and ascent wont work with it (don't know why)...


  6. #6
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice spartansp =P


  7. #7
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by pigpoo View Post
    Oh soz, didn't see that >.<
    I will test it out later as my wow is only patch 2.1 and ascent wont work with it (don't know why)...

    Gossip scripting changes a LOT

  8. #8
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well pics added remember to rep insanesk8123

  9. #9
    NineOneOne's Avatar Member
    Reputation
    14
    Join Date
    Aug 2006
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice scripts +rep

  10. #10
    Xeneth's Avatar Member
    Reputation
    157
    Join Date
    Oct 2007
    Posts
    534
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    3x rep to the both of you when i can rep again in the next 24/h


  11. #11
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol ok faeleryn

  12. #12
    Xeneth's Avatar Member
    Reputation
    157
    Join Date
    Oct 2007
    Posts
    534
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Idk why there's a rep limit like, 24 hours span wise. ~_~


  13. #13
    Mr. Herbert's Avatar Banned
    Reputation
    319
    Join Date
    Nov 2007
    Posts
    821
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice man sweet +rep x2 after i spread

  14. #14
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks mate... BTW filebeam download added

  15. #15
    wside420's Avatar Member
    Reputation
    9
    Join Date
    Feb 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Source

    Hey I really really need your help,
    Can I please have the source to your portable teleporter
    I believe I need

    Setup.h
    Setup.cpp
    x.cpp x=personal teleportter

    I really would like to learn from this and compile my own using vc++ Express 2008, any tips?

Page 1 of 3 123 LastLast

Similar Threads

  1. [Release] Portable Teleporter Package - The Unused areas
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 08-05-2008, 05:14 AM
  2. [Release] Portable Teleporter V2.
    By Murlock. in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 04-04-2008, 12:34 PM
  3. [RELEASE] Portable Teleporter
    By Aldaus in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 02-18-2008, 01:36 AM
  4. [INFO] WarpNPC for new rev!
    By MysticViper in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-30-2008, 02:44 PM
  5. Replies: 2
    Last Post: 12-18-2007, 07:45 AM
All times are GMT -5. The time now is 08:19 PM. 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