[Release] Portable Morpher MOD menu

User Tag List

Results 1 to 6 of 6
  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 Morpher MOD

    ok with the permision of aldaus i can post this custom morpher script that i moded to add new cool morphs its more less the same script used by aldaus but i added some stuff, hope you guys like it also if you want any other morph ID you can see them in the DisplayID list link on my sig :P
    well here is the script
    EDIT: forget to say with this script you can morph into:
    "Goblin"
    "Felguard"
    "Broken"
    "Ogre"
    "Pirate"
    "Skeleton"
    "Infernal"
    "AmaniBear"
    "Samuro"
    "Illidan Stormrage"
    "Akama"
    "Baby Murloc"
    "Flik's Frog"
    "SpartanWoW Guard"

    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 here is the SQL :

    Code:
    INSERT INTO `items` (`class`, `subclass`, `name1`, `name2`, `name3`, `name4`, `displayid`, `quality`, `buyprice`, `sellprice`, `itemlevel`, `ContainerSlots`, `unique`, `maxcount`, `bonding`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `delay`, `range`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `armor`, `block`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `allowableclass`, `allowablerace`, `RequiredSkill`, `RequiredSkillRank`, `RequiredSkillSubRank`, `RequiredFaction`, `RequiredFactionStanding`, `requiredlevel`, `inventorytype`, `quest_id`, `sheathID`, `itemset`, `MaxDurability`, `Description`, `socket_color_1`, `socket_color_2`, `socket_color_3`, `socket_bonus`, `entry`) VALUES ('8', '-1', 'Portable Morpher', 'Portable Morpher', 'Portable Morpher', 'Portable Morpher', '42629', '1', '0', '0', '0', '0', '1', '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', '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', '1503', '1791', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'All hail to the almighty morpher!', '0', '0', '0', '0', '60002');
    Last edited by Spartansp; 01-10-2008 at 11:14 PM.

    [Release] Portable Morpher MOD
  2. #2
    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)
    Can anyone leave a feed back please....Oh never mind i think my works are not worth them...T-T

  3. #3
    chaoticd35's Avatar Site Donator
    Reputation
    44
    Join Date
    Jun 2007
    Posts
    337
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think a portable morpher is a cool Idea , I would rep you but I got to spread it around.

  4. #4
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would take out the

    "AmaniBear"
    "Illidan Stormrage"


    It would rather lag your Server with a Mount Displaya nd it Trying to Attack with the Displayed Weapons and Illidan is rather just to big

    But thanks for posting Code

  5. #5
    danis's Avatar Member
    Reputation
    5
    Join Date
    Jul 2007
    Posts
    274
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can't u make the compile to xDI`m not home and want to send a mail whit this :P

  6. #6
    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)
    Originally Posted by Illidan1 View Post
    I would take out the

    "AmaniBear"
    "Illidan Stormrage"


    It would rather lag your Server with a Mount Displaya nd it Trying to Attack with the Displayed Weapons and Illidan is rather just to big

    But thanks for posting Code
    Well maybe you are right... any good ideas of another ones???

    can't u make the compile to xDI`m not home and want to send a mail whit this :P
    Sorry im not good at compiling

Similar Threads

  1. [C++ RELEASE] Portable Morpher + Noob Guide To Setting It Up
    By 1ns0mnia in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-17-2008, 09:18 AM
  2. [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
  3. [RELEASE] Portable Teleporter
    By Aldaus in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 02-18-2008, 01:36 AM
  4. [Release] Portable Multifuncional Item (test)
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 01-15-2008, 03:03 PM
  5. Portable Morpher
    By Aldaus in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-17-2007, 10:51 PM
All times are GMT -5. The time now is 11:39 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