LolKitteh Gossip NPC menu

User Tag List

Results 1 to 7 of 7
  1. #1
    dexterkris's Avatar Member
    Reputation
    14
    Join Date
    Jan 2009
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LolKitteh Gossip NPC

    Hi

    I made a fun c++ gossipscript and I decided to share it with ya all.

    To spawn the NPC, use the command .npc spawn 50000 (remember to apply the SQL query's before spawning).

    When you right-click on the NPC "TehKitteh", you get a menu asking you what form you want to shapeshift into(there is also a flying option in the menu), when you click on some form on the list, it casts a shapeshifting spell on you(the spells can last for seconds, minutes or forever).

    The script is made for Aspire Hearthstone's 3_1_0 branch so it most likely won't work with ArcEmu and NO, I'm not gonna make an ArcEmu version.

    You are allowed to modify the script, if you redistribute the script, please leave credits. If you re-release the script without credits or sell it, I WILL flame you, sue you and most likely shoot you

    Credits go to me for making this script and Sun++(looking at their code helped me a lot).

    Enjoy

    You need to apply these SQL queries to your world database to add the GossipNPC("EvilKitteh") to your database:
    Code:
    Insert into `creature_names` (`entry`,`name`,`subname`,`rank`,`male_displayid`) Values ('50000','TehKitteh','Master of LoLcats','4','892');
    
    Insert into `creature_proto` (`entry`,`minlevel`,`maxlevel`,`faction`,`minhealth`,`maxhealth`,`mana`,`scale`,`npcflags`,`respawntime`,`death_state`)
                          Values ('50000','100','100','35','5000000','5000000','5000','1','1','50000','0');
    Here is the C++ Script:
    Code:
    /* TehKitteh
       Credits go to DeXtErKrIs and Sun++
       
       You are allowed to modify the script, if you redistribute the script, leave credits. 
       If you re-release the script without credits or sell it, I WILL flame you, sue you and most likely shoot you;) */
    
    /* I can haz includes? =O */
    //_______________________________________
    #include "StdAfx.h"
    #include "Setup.h"
    //_______________________________________
    
    /* OH, NOEZ!!!, SPELLS =O   
      _______________________________________*/
    //|     Spell_Name          |Spell_Id    |
    //|_________________________|____________|
    #define Wyrmrest_Dragon      49335       //Wyrmrest Defender V2 Dragon Form
    #define Chicken_Form         9220        //Chicken Form
    #define Human_Form           9192        //Human Form
    #define Cobrah_Form          7965        //Cobrah Form
    #define Frog_Form            3329        //Frog Form
    #define Wolf_Form            22660       //Wolf Form
    #define Dragonhawk_Form      32818       //Dragonhawk Form
    #define Rokkaram_Form        39697       //Form of Rokkaram
    #define Furbolg_Form         6405        //Furbolg Form
    #define Ghoul_Form           3287        //Ghoul Form
    #define Giraffe_Form         32816       //Giraffe Form
    #define Vaelastrasz_Dragon   16421       //Vaelastrasz Dragon Form
    #define Worgen_Form          32819        //Worgen Form
    //_______________________________________|
    
    
    /* Some Code..... 
    _____________________________________________________________________________________*/
    class LOLKitteh : public GossipScript
    {
    public:
        void GossipHello(ObjectPointer pObject, PlayerPointer Plr, bool AutoSend);
        void GossipSelectOption(ObjectPointer pObject, PlayerPointer Plr, uint32 Id, uint32 IntId, const char * Code);
        void GossipEnd(ObjectPointer pObject, PlayerPointer Plr);
    	
    	void Destroy()
    	{
    		delete this;
    	}
    };
    /*
    _____________________________________________________________________________________*/
    
    
    
    
    
    
    /* More Code =O 
    _____________________________________________________________________________________*/
    void LOLKitteh::GossipHello(ObjectPointer pObject, PlayerPointer Plr, bool AutoSend)
    {
    	GossipMenu *Menu;
    	objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
    	
    	//List
    	Menu->AddItem(0, "Gief Mi Fly/Speed Hax", 1);
        Menu->AddItem(0, "Gief Mi Chicken Form", 2);
        Menu->AddItem(0, "Gief Mi Human Form", 3);
        Menu->AddItem(0, "Gief Mi Cobrah Form", 4);
        Menu->AddItem(0, "Gief Mi Frog Form", 5);
        Menu->AddItem(0, "Gief Mi Wolf Form", 6);
        Menu->AddItem(0, "Gief Mi Dragonhawk Form", 7);
        Menu->AddItem(0, "Gief Mi Form of Rokkaram", 8);
        Menu->AddItem(0, "Gief Mi Furbolg Form", 9);
        Menu->AddItem(0, "Gief Mi Ghoul Form", 10);
        Menu->AddItem(0, "Gief Mi Giraffe Form", 11);
        Menu->AddItem(0, "Gief Mi Vaelastrasz Dragon Form", 12);
        Menu->AddItem(0, "Gief Mi Worgen Form", 13);
    	
    	//Exit
    	Menu->AddItem(5, "KTHXBYE", 14);
    	
    	if(AutoSend)
    	Menu->SendTo(Plr);
    }
    /*
    _____________________________________________________________________________________*/
    
    
    
    
    
    
    /* Even More Code!! =O 
    _____________________________________________________________________________________*/
    void LOLKitteh::GossipSelectOption(ObjectPointer pObject, PlayerPointer Plr, uint32 Id, uint32 IntId, const char * Code)
    {
    	CreaturePointer pCreature = (pObject->GetTypeId()==TYPEID_UNIT)?(TO_CREATURE(pObject)):NULLCREATURE;
    	if(pCreature==NULLCREATURE)
    		return;
    
        switch(IntId)
        {
    	
    	//Wyrmrest Dragon Form
        case 1:     
    		Plr->CastSpell(Plr, Wyrmrest_Dragon, true); 
            break;
    	
    	//Chicken Form
    	case 2:     
    		Plr->CastSpell(Plr, Chicken_Form, true); 
            break;
    	
    	//Human Form
    	case 3:     
    		Plr->CastSpell(Plr, Human_Form, true); 
            break;
    	
    	//Cobrah
    	case 4:     
    		Plr->CastSpell(Plr, Cobrah_Form, true); 
            break;
    		
    	//Frog Form	
    	case 5:     
    		Plr->CastSpell(Plr, Frog_Form, true); 
            break;
    		
    	//Wolf Form	
    	case 6:     
    		Plr->CastSpell(Plr, Wolf_Form, true); 
            break;
    		
    	//Dragonhawk Form	
    	case 7:     
    		Plr->CastSpell(Plr, Dragonhawk_Form, true); 
            break;
    		
    	//Form of Rokkaram	
    	case 8:     
    		Plr->CastSpell(Plr, Rokkaram_Form, true); 
            break;
    		
    	//Furbolg Form	
    	case 9:     
    		Plr->CastSpell(Plr, Furbolg_Form, true); 
            break;
    	
    	//Ghoul Form	
    	case 10:     
    		Plr->CastSpell(Plr, Ghoul_Form, true); 
            break;
    		
    	//Giraffe Form	
    	case 11:     
    		Plr->CastSpell(Plr, Giraffe_Form, true); 
            break;
    		
    	//Vaelastrasz Dragon Form	
    	case 12:     
    		Plr->CastSpell(Plr, Vaelastrasz_Dragon, true); 
            break;
    		
    	//Worgen Form	
    	case 13:     
    		Plr->CastSpell(Plr, Worgen_Form, true); 
            break;
    
    		
    	//Exit
        case 14:     
            Plr->Gossip_Complete();
    		break;
        }
    }
    /*
    _____________________________________________________________________________________*/
    
    
    
    
    
    
    /* OH NOEZ, MORE CODE!! =O 
    _____________________________________________________________________________________*/
    void LOLKitteh::GossipEnd(ObjectPointer pObject, PlayerPointer Plr)
    {
        GossipScript::GossipEnd(pObject, Plr);
    }
    /*
    _____________________________________________________________________________________*/
    
    
    
    
    
    
    /* TOO MUCH CODES, BRAIN FAILURE =O
    _____________________________________________________________________________________*/
    void SetupLOLKitteh(ScriptMgr * mgr)
    {
    	GossipScript * gs = (GossipScript*) new LOLKitteh();
        
    	/* LolKitteh =O */
        mgr->register_gossip_script(50000, gs); //50000 = Custom NPC     
    }
    /*
    _____________________________________________________________________________________*/
    
    //KTHXBYE
    Screen Shots:















    LolKitteh Gossip NPC
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,503
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woot?

    Kinda pointless but good Script. +Rep

  3. #3
    dexterkris's Avatar Member
    Reputation
    14
    Join Date
    Jan 2009
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    +2 Rep for the effert of making this and the screenshots, but it is very basic and, as Ground Zero said, pointless.

  5. #5
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep for this, i love lolcats and this is pretty fun looking

    Also, tho it is basic it is well documented.

  6. #6
    b01n4v3rt's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    =?

    Is the same as arcemu c++ scripts, why won't work?

    Is ok that you don't like arc, but I think that script works with arc

  7. #7
    4l3k's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    add the murloc costume too

Similar Threads

  1. [Lua Script] Gossip NPC
    By Deathmaker1 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 03-17-2011, 12:37 PM
  2. [Lua Script] Two gossip npc's on the same script.
    By sora2810 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-01-2010, 12:56 PM
  3. [Lua] Gossip NPC Question
    By Herbalism in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 11-07-2010, 06:52 AM
  4. How to : Basic Gossip NPC
    By Warriar in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 01-27-2010, 11:32 PM
  5. [guides] boss and gossip npc in c++
    By scarfaze in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 07-26-2009, 07:19 AM
All times are GMT -5. The time now is 03:11 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