[C++ RELEASE] Portable Morpher + Noob Guide To Setting It Up menu

User Tag List

Results 1 to 10 of 10
  1. #1
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++ RELEASE] Portable Morpher + Noob Guide To Setting It Up

    if this is the wrong section then just move it, just the C++ programming section looked more for guides.
    hey guys, this is my first C++ release so i if its a lil sh*ty then 6):

    Ok well simply what i have made is a custom portable morpher that you can give to players as an event reward or maybe a custom quest or just give it them as a starting item its up to you.

    ok for starters to show this aint no joke or virus :
    VIRUS SCAN

    ok now you can get the guide, the code backup and the SQL from here : DOWNLOAD

    or you can just read on...

    ok if your new to compile-ing then just read the guide on how to set it up (in the download like above)

    ok now the code:
    Code:
    //Title of Script: My Morpher
    //Description of Script: Morphs the player into The Specified Display
    //Author of this script: 1ns0mnia
    
    
    
    
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305)        
    #endif
    
    
    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, "Illidan", 0);
            Menu->AddItem(0, "Dark Illidan", 2);
            Menu->AddItem(0, "Spirit Healer", 3);
            Menu->AddItem(0, "Kael'thas", 4);
            Menu->AddItem(0, "Lady Vashj", 5);
            Menu->AddItem(0, "Skeleton", 6);
            Menu->AddItem(0, "Broken", 7);
            Menu->AddItem(0, "Infernal", 8);
            Menu->AddItem(0, "Amani War-Bear", 9);
            Menu->AddItem(0, "Felguard", 10);
            Menu->AddItem(0, "Vazruden The Herald", 11);
            Menu->AddItem(0, "Super Cow", 12);
            Menu->AddItem(0, "Panda", 13);
            Menu->AddItem(2, "Demorph", 30);
    
               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)
            {
                //Illidan
            case 0:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 21135);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
               
                //Dark Illidan
            case 2:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 21322);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
               
                //Spirit Healer
            case 3:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 5233);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
               
                //kael'thas
            case 4:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 20023);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
               
                //Lady Vashj
            case 5:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 20748);
                    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;
                
                //Broken
            case 7:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 17833);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
                
                //Infernal
            case 8:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 169);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
                
                    //Amani Bear
            case 9:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 22467);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
                    //Felguard
            case 10:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 14152);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
                
                //Vazruden The Herald
            case 11:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 18944);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
                //Super Cow
            case 12:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 1060);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
                //Panda
            case 13:
                {
                    Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 10990);
                    Plr->Emote(EMOTE_ONESHOT_CHEER);
                    Plr->Gossip_Complete();
                }break;
    
                //Demorph
            case 30:
                {
                    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(91000,gs);
    }


    Setup.cpp
    Code:
    SetupMorpher(mgr);
    Setup.h
    Code:
    void SetupMorpher(ScriptMgr * mgr);

    the SQL code:
    Code:
      INSERT INTO `items` VALUES ('91000', '8', '-1', '-1', 'My Portable Morpher', 'My Portable Morpher', 'My Portable Morpher', 'My Portable Morpher', '38160', '6', '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', '3', 'I Can Morph 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, '-1', '0');
    proof of successful compile :
    Code:
    1>------ Skipped Build: Project: ServerStatusPlugin, Configuration: Debug Win32 ------
    1>Project not selected to build for this solution configuration 
    2>------ Build started: Project: GossipScripts, Configuration: Debug Win32 ------
    2>Compiling...
    3>------ Skipped Build: Project: SpellHandlers, Configuration: Debug Win32 ------
    3>Project not selected to build for this solution configuration 
    4>------ Skipped Build: Project: InstanceScripts, Configuration: Debug Win32 ------
    4>Project not selected to build for this solution configuration 
    5>------ Skipped Build: Project: LUAScripting, Configuration: Debug Win32 ------
    5>Project not selected to build for this solution configuration 
    2>GuardGossip.cpp
    2>..srcGossipScriptsGuardGossip.cpp(3713) : warning C4101: 'Menu' : unreferenced local variable
    2>Linking...
    2>Embedding manifest...
    2>Build log was saved at "file://c:Documents and Settings**********DesktopASCENTsrcscriptsprojects2008_int_debug_gossipscriptsBuildLog.htm"
    2>GossipScripts - 0 error(s), 1 warning(s)
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 4 skipped ==========
    if you have any problems just PM me or any bugs or anything then just post back. GL with your morphing

    EDIT: You need to have the resource ascent, most repacks dont allow you to do this.


    oh almost forgot, pictures :::







    Last edited by 1ns0mnia; 05-17-2008 at 11:12 AM.

    [C++ RELEASE] Portable Morpher + Noob Guide To Setting It Up
  2. #2
    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)
    Hmmm Portable Morphers are OLD! But still +Rep 2x

  3. #3
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cursed View Post
    Hmmm Portable Morphers are OLD! But still +Rep 2x
    haha thx, but liek is aid ive only just started C++ so wanted to start something easy to test on

  4. #4
    bsyburra's Avatar Active Member
    Reputation
    21
    Join Date
    Jan 2008
    Posts
    225
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in the guide wats SRC?

    and what if we do not have a file called that

  5. #5
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You completely forgot to mention Setup.h and Setup.cpp

    Two files necessary for compiling
    Life Puzzler WoW - Website | Forums

  6. #6
    LordJedi's Avatar Member
    Reputation
    20
    Join Date
    Dec 2007
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gastricpenguin View Post
    You completely forgot to mention Setup.h and Setup.cpp

    Two files necessary for compiling
    thats right

    im not sure but
    1>------ Skipped Build: Project: ServerStatusPlugin, Configuration: Debug Win32 ------
    1>Project not selected to build for this solution configuration
    2>------ Build started: Project: GossipScripts, Configuration: Debug Win32 ------
    2>Compiling...
    3>------ Skipped Build: Project: SpellHandlers, Configuration: Debug Win32 ------
    3>Project not selected to build for this solution configuration
    4>------ Skipped Build: Project: InstanceScripts, Configuration: Debug Win32 ------
    4>Project not selected to build for this solution configuration
    5>------ Skipped Build: Project: LUAScripting, Configuration: Debug Win32 ------
    5>Project not selected to build for this solution configuration
    2>GuardGossip.cpp
    2>..srcGossipScriptsGuardGossip.cpp(3713) : warning C4101: 'Menu' : unreferenced local variable
    2>Linking...
    2>Embedding manifest...
    2>Build log was saved at "file://cocuments and Settings**********DesktopASCENTsrcscriptsprojects2008_int_debug_gossipscriptsBui ldLog.htm"
    2>GossipScripts - 0 error(s), 1 warning(s)
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 4 skipped ==========
    at the red line, if it told u this, i think it wont work very well

  7. #7
    tobiasahlmo's Avatar Member
    Reputation
    11
    Join Date
    Feb 2007
    Posts
    242
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  8. #8
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tobiasahlmo View Post
    you saw what on wow status?


    @ gastric the setup.h and setup.cpp are mentiond in the guide but if youve used c++ before like 90% of the people here u can just get it at the bottom of the script but yeh its mentiond in the guide

    @ LordJedi , do warnings really matter? and the pictures are proof it works and also when ur compiling mangos, dont u get like 50+ warnings? but it still compiles... *shrugs* like i said im new to C++ but all i know is it compiled with 1 warning nothing more and it still works -.-

  9. #9
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can compile with warning but not errors


  10. #10
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by doublehex View Post
    you can compile with warning but not errors
    yeh so i dont see how 1 warning will stop[ it from working good? (refering to a previous post by jedi)

Similar Threads

  1. An easy noob friendly guide to setting up MySql !!
    By pattywhack in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 07-18-2012, 10:08 AM
  2. Replies: 216
    Last Post: 08-08-2008, 11:09 PM
  3. [Release] Portable Teleporter and Morpher for new revs
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 43
    Last Post: 04-11-2008, 07:14 AM
  4. [Release] Portable Morpher MOD
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-11-2008, 11:41 AM
  5. Noob Guide
    By Borat in forum World of Warcraft Guides
    Replies: 8
    Last Post: 02-10-2007, 12:11 PM
All times are GMT -5. The time now is 03:16 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