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); }AND REMEMBER LOOK MY SIG remember to people that helped you out this means also rep insanesk8123 cause he helped me a lotCode://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); }
Dll download links:
File Beam Download
Click ME
Rapidshare Download
Click ME
Some pics:
and SQL queries:
for teleporter
For morpherCode: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');
Edit filebeam download addedCode: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');