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');
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