Code:
//Title of Script: Portable Multifuncional Item
//Description of Script: It has several functions :P.
//Author: Spartansp
//Credits: To Gastric Aldaus Knaur and insane
#include "StdAfx.h"
#include "Setup.h"
#ifdef WIN32
#pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
#endif
//Defining PMulti
class SCRIPT_DECL PMulti : 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 PMulti::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(), 1, Plr);
if(Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5)
{Menu->AddItem(0, "Horde Cities", 1);}else{Menu->AddItem(1, "Alliance Cities", 2);}
Menu->AddItem(2, "Global Locations", 80);
Menu->AddItem(3, "Azeroth Instances", 30);
Menu->AddItem(4, "Outland Instances", 50);
Menu->AddItem(5, "Shattrath", 20);
Menu->AddItem(5, "PVP Arenas", 21);
Menu->AddItem(9, "Bufeame porfavor :P", 96);
Menu->AddItem(9, "Quitame esta fregadera", 97);
Menu->AddItem(5, "SpartanWoW Locations", 98);
Menu->AddItem(5, "Morph ME", 134);
if(AutoSend)
Menu->SendTo(Plr);
}
};
//Defining Cases
void PMulti::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
{
Object * pObject = (pObject->GetTypeId()==TYPEID_UNIT)?((Object*)pObject):NULL;
if(pObject==NULL)
return;
GossipMenu * Menu;
switch(IntId)
{
case 0:
GossipHello(pObject, Plr, true);
break;
case 1: // Hord Cities
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Silvermoon", 4);
Menu->AddItem(5, "Orgrimmar", 5);
Menu->AddItem(5, "Thunder Bluff", 6);
Menu->AddItem(5, "Undercity", 7);
Menu->SendTo(Plr);
}
break;
case 2: // Alliance Cities
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "The Exodar", 8);
Menu->AddItem(5, "Stormwind", 9);
Menu->AddItem(5, "Ironforge", 10);
Menu->AddItem(5, "Darnassus", 11);
Menu->SendTo(Plr);
}
break;
case 3: // Outland Locations
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Hellfire Peninsula", 12);
Menu->AddItem(5, "Zangermarsh", 13);
Menu->AddItem(5, "Nagrand", 14);
Menu->AddItem(5, "Blades Edge Mountains", 15);
Menu->AddItem(5, "Netherstorm", 16);
Menu->AddItem(5, "Terokkar Forest", 17);
Menu->AddItem(5, "Shadowmoon Valley", 18);
Menu->SendTo(Plr);
}
break;
case 4://Silvermoon
{
Plr->SafeTeleport(530, 0, 9400.486328, -7278.376953, 14.206780, 0);
Plr->Gossip_Complete();
}break;
case 5://Orgrimmar
{
Plr->SafeTeleport(1, 0, 1371.068970, -4370.801758, 26.052483, 0);
Plr->Gossip_Complete();
}break;
case 6://ThunderBluff
{
Plr->SafeTeleport(1, 0, -1304.569946, 205.285004, 68.681396, 0);
Plr->Gossip_Complete();
}
break;
case 7://Undercity
{
Plr->SafeTeleport(0, 0, 2050.203125, 285.650604, 56.994549, 0);
Plr->Gossip_Complete();
}
break;
case 8: //Exodar
{
Plr->SafeTeleport(530, 0, -4072.202393, -12014.337891, -1.277277, 0);
Plr->Gossip_Complete();
}
break;
case 9: //Stormwind
{
Plr->SafeTeleport(0, 0, -9100.480469, 406.950745, 92.594185, 0);
Plr->Gossip_Complete();
}
break;
case 10: //Ironforge
{
Plr->SafeTeleport(0, 0, -5028.265137, -825.976563, 495.301575, 0);
Plr->Gossip_Complete();
}
break;
case 11: //Darnassus
{
Plr->SafeTeleport(1, 0, 9985.907227, 1971.155640, 1326.815674, 0);
Plr->Gossip_Complete();
}
break;
case 12: //Hellfire Peninsula
{
Plr->SafeTeleport(530, 0, -248.160004, 922.348999, 84.379799, 0);
Plr->Gossip_Complete();
}
break;
case 13: //Zangermarsh
{
Plr->SafeTeleport(530, 0, -225.863632, 5405.927246, 22.346397, 0);
Plr->Gossip_Complete();
}
break;
case 14: //Nagrand
{
Plr->SafeTeleport(530, 0, -468.232330, 8418.666016, 28.031298, 0);
Plr->Gossip_Complete();
}
break;
case 15: //Blades Edge Mountains
{
Plr->SafeTeleport(530, 0, 1471.672852, 6828.047852, 107.759239, 0);
Plr->Gossip_Complete();
}
break;
case 16: //Netherstorm
{
Plr->SafeTeleport(530, 0, 3396.123779, 4182.208008, 137.097992, 0);
Plr->Gossip_Complete();
}
break;
case 17: //Terokkar Forest
{
Plr->SafeTeleport(530, 0, -1202.426636, 5313.692871, 33.774723, 0);
Plr->Gossip_Complete();
}
break;
case 18: //Shadowmoon Valley
{
Plr->SafeTeleport(530, 0, -2859.522461, 3182.34773, 10.008426, 0);
Plr->Gossip_Complete();
}
break;
case 20: //Shattrath
{
Plr->SafeTeleport(530, 0, -1887.510010, 5359.379883, -12.427300, 0);
Plr->Gossip_Complete();
}
break;
case 21: // PVP Arena
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Gurubashi Arena", 22);
Menu->AddItem(5, "Circle of Blood", 23);
Menu->SendTo(Plr);
}
break;
case 22: // Gurubashi Arena
{
Plr->SafeTeleport(0, 0, -13271.959961, 149.105515, 34.464458, 0);
Plr->Gossip_Complete();
}
break;
case 23: // Circle of Blood
{
Plr->SafeTeleport(530, 0, 2840.38, 5929.42, 12.0902, 0);
Plr->Gossip_Complete();
}
break;
case 30: // Azeroth Instances
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Shadowfang Keep", 31);
Menu->AddItem(5, "Scarlet Monastery", 32);
Menu->AddItem(5, "Zul'Farrak", 33);
Menu->AddItem(5, "Stratholme", 41);
Menu->AddItem(5, "Scholomance", 40);
Menu->AddItem(5, "Blackrock Spire", 42);
Menu->AddItem(5, "Onyxia's Lair", 38);
Menu->AddItem(5, "Molten Core", 37);
Menu->AddItem(5, "Zul'Gurub", 34);
Menu->AddItem(5, "Karazhan", 43);
Menu->AddItem(5, "Ahn'Qiraj 20", 35);
Menu->AddItem(5, "Ahn'Qiraj 40", 36);
Menu->AddItem(5, "Naxxramas", 39);
Menu->AddItem(5, "Caverns of Time", 44);
Menu->SendTo(Plr);
}
break;
case 31: // Shadowfang Keep
{
Plr->SafeTeleport(0, 0, -234.495087, 1561.946411, 76.892143, 0);
Plr->Gossip_Complete();
}
break;
case 32: // Scarlet Monastery
{
Plr->SafeTeleport(0, 0, 2870.442627, -819.985229, 160.331085, 0);
Plr->Gossip_Complete();
}
break;
case 33: // Zul'Farrak
{
Plr->SafeTeleport(1, 0, -6797.278809, -2903.917969, 9.953360, 0);
Plr->Gossip_Complete();
}
break;
case 34: // Zul'Gurub
{
Plr->SafeTeleport(0, 0, -11919.073242, -1202.459374, 92.298744, 0);
Plr->Gossip_Complete();
}
break;
case 35: // Ahn'Qiraj 20
{
Plr->SafeTeleport(1, 0, -8394.730469, 1485.658447, 21.038563, 0);
Plr->Gossip_Complete();
}
break;
case 36: // Ahn'Qiraj 40
{
Plr->SafeTeleport(1, 0, -8247.316406, 1970.156860, 129.071472, 0);
Plr->Gossip_Complete();
}
break;
case 37: // Molten Core
{
// Plr->SafeTeleport(0, 0, -7515.409668, -1045.369629, 182.301208, 0);
Plr->SafeTeleport(409, 0, 1089.6, -470.19, -106.41, 0);
Plr->Gossip_Complete();
}
break;
case 38: // Onyxia
{
// Plr->SafeTeleport(1, 0, -4708.491699, -3727.672363, 54.535076, 0);
Plr->SafeTeleport(249, 0, 30.0, -64.0, -5.0, 0);
Plr->Gossip_Complete();
}
break;
case 39: // Naxxramas
{
// Plr->SafeTeleport(0, 3132.915283, -3731.012939, 138.658371);
Plr->SafeTeleport(533, 0, 3006.06, -3436.72, 293.891, 0);
Plr->Gossip_Complete();
}
break;
case 40: //Scholomance
{
Plr->SafeTeleport(0, 0, 1267.468628, -2556.651367, 94.127983, 0);
Plr->Gossip_Complete();
}
break;
case 41: //Stratholme
{
Plr->SafeTeleport(0, 0, 3359.111572, -3380.8444238, 144.781860, 0);
Plr->Gossip_Complete();
}break;
case 42: // Black Rock Spire
{
Plr->SafeTeleport(0, 0, -7527.129883, -1224.997437, 285.733002, 0);
Plr->Gossip_Complete();
}break;
case 43: // Kharazan
{
// Plr->SafeTeleport(0, 0, -11122.913086, -2014.498779, 47.079350, 0);
Plr->SafeTeleport(532, 0, -11087.3, -1977.47, 49.6135, 0);
Plr->Gossip_Complete();
}break;
case 44: // Caverns of Times
{
Plr->SafeTeleport(1, 0, -8519.718750, -4297.542480, -208.441376, 0);
Plr->Gossip_Complete();
}break;
case 50: // Outland Instances
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(0, "Outland Raids", 64);
Menu->AddItem(5, "Hellfire Ramparts", 51);
Menu->AddItem(5, "The Blood Furnace", 52);
Menu->AddItem(5, "The Shattered Halls", 53);
Menu->AddItem(5, "The Underbog", 54);
Menu->AddItem(5, "The Slave Pens", 55);
Menu->AddItem(5, "The Steamvault", 56);
Menu->AddItem(5, "Mana-Tombs", 57);
Menu->AddItem(5, "Auchenai Crypts", 58);
Menu->AddItem(5, "Sethekk Halls", 59);
Menu->AddItem(5, "Shadow Labyrinth", 60);
Menu->AddItem(5, "The Mechanar", 61);
Menu->AddItem(5, "The Botanica", 62);
Menu->AddItem(5, "The Arcatraz", 63);
Menu->SendTo(Plr);
}
break;
case 51: // Hellfire Ramparts
{
Plr->SafeTeleport(530, 0, -360.670990, 3071.899902, -15.097700, 0);
Plr->Gossip_Complete();
}break;
case 52: // The Blood Furnace
{
Plr->SafeTeleport(530, 0, -303.506012, 3164.820068, 31.742500, 0);
Plr->Gossip_Complete();
}break;
case 53: // The Shattered Halls
{
Plr->SafeTeleport(530, 0, -311.083527, 3083.291748, -3.745923, 0);
Plr->Gossip_Complete();
}break;
case 54: // The Underbog
{
Plr->SafeTeleport(530, 0, 777.088989, 6763.450195, -72.062561, 0);
Plr->Gossip_Complete();
}break;
case 55: // The Slave Pens
{
Plr->SafeTeleport(530, 0, 719.507996, 6999.339844, -73.074303, 0);
Plr->Gossip_Complete();
}break;
case 56: // The Steamvault
{
Plr->SafeTeleport(530, 0, 816.590027, 6934.669922, -80.544601, 0);
Plr->Gossip_Complete();
}break;
case 57: // Mana-Tombs
{
Plr->SafeTeleport(530, 0, -3079.810059, 4943.040039, -101.046997, 0);
Plr->Gossip_Complete();
}break;
case 58: // Auchenai Crypts
{
Plr->SafeTeleport(530, 0, -3361.959961, 5225.770020, -101.047997, 0);
Plr->Gossip_Complete();
}break;
case 59: // Sethekk Halls
{
Plr->SafeTeleport(530, 0, -3362.219971, 4660.410156, -101.049004, 0 );
Plr->Gossip_Complete();
}break;
case 60: // Shadow Labyrinth
{
Plr->SafeTeleport(530, 0, -3645.060059, 4943.620117, -101.047997, 0);
Plr->Gossip_Complete();
}break;
case 61: // The Mechanar
{
Plr->SafeTeleport(530, 0, 2862.409912, 1546.089966, 252.158691, 0);
Plr->Gossip_Complete();
}break;
case 62: // The Botanica
{
Plr->SafeTeleport(530, 0, 3413.649902, 1483.319946, 182.837997, 0);
Plr->Gossip_Complete();
}break;
case 63: // The Arcatraz
{
Plr->SafeTeleport(530, 0, 3311.598145, 1332.745117, 505.557251, 0);
Plr->Gossip_Complete();
}break;
case 64: // Outland Raids
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Magtheridon's Lair", 65);
Menu->AddItem(5, "Serpentshrine Cavern", 66);
Menu->AddItem(5, "Gruul's Lair", 67);
Menu->AddItem(5, "The Eye", 68);
Menu->AddItem(5, "Black Temple", 69);
Menu->SendTo(Plr);
}
break;
case 65: // Magtheridon's Lair
{
Plr->SafeTeleport(530, 0, -313.678986, 3088.350098, -116.501999, 0);
Plr->Gossip_Complete();
}break;
case 66: // Serpentshrine Cavern
{
Plr->SafeTeleport(530, 0, 830.542908, 6865.445801, -63.785503, 0);
Plr->Gossip_Complete();
}break;
case 67: // Gruul's Lair
{
Plr->SafeTeleport(530, 0, 3549.424072, 5179.854004, -4.430779, 0);
Plr->Gossip_Complete();
}break;
case 68: // The Eye
{
Plr->SafeTeleport(530, 0, 3087.310059, 1373.790039, 184.643005, 0);
Plr->Gossip_Complete();
}break;
case 69: // Black Temple
{
// Plr->SafeTeleport(530, -3609.739990, 328.252014, 37.307701 );
Plr->SafeTeleport(564, 0, 97.0894, 1001.96, -86.8798, 0 );
Plr->Gossip_Complete();
}break;
case 80: //SUB MENU
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Eastern Kingdoms", 81);
Menu->AddItem(5, "Kalimdor", 82);
Menu->AddItem(5, "Outland", 3);
Menu->SendTo(Plr);
}
break;
case 81: // EASTERN KINGDOM
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Eastern Plaguelands", 70);
Menu->AddItem(5, "Western Plaguelands", 71);
Menu->AddItem(5, "Tristfal Glades", 72);
Menu->AddItem(5, "Alterac Mountains", 73);
Menu->AddItem(5, "Silverpine Forest", 74);
Menu->AddItem(5, "Hillsbrad Foothills", 75);
Menu->AddItem(5, "The Hinterlands", 76);
Menu->AddItem(5, "Arathi Highlands", 77);
Menu->AddItem(5, "Wetlands", 78);
Menu->AddItem(5, "Dun Morogh", 79);
Menu->AddItem(5, "Loch Modan", 100);
Menu->AddItem(5, "Badlands", 101);
Menu->AddItem(5, "Blackrock Mountain", 102);
Menu->AddItem(5, "Redridge Mountain", 103);
Menu->AddItem(5, "Elwynn Forest", 104);
Menu->AddItem(5, "Duskwood", 105);
Menu->AddItem(5, "Westfall", 106);
Menu->AddItem(5, "Swamp of Sorrows", 107);
Menu->AddItem(5, "The Blasted Lands", 108);
Menu->AddItem(5, "Deadwind Pass", 109);
Menu->AddItem(5, "Stranglethorn Vale", 110);
Menu->SendTo(Plr);
}
break;
case 82: // KALIMDOR
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "Moonglade", 111);
Menu->AddItem(5, "Winterspring", 112);
Menu->AddItem(5, "Felwood", 113);
Menu->AddItem(5, "Darkshore", 114);
Menu->AddItem(5, "Azshara", 115);
Menu->AddItem(5, "Ashenvale", 116);
Menu->AddItem(5, "Stonetalon Mountains", 117);
Menu->AddItem(5, "The Barrens", 118);
Menu->AddItem(5, "Durotar", 119);
Menu->AddItem(5, "Mulgore", 120);
Menu->AddItem(5, "Desolace", 121);
Menu->AddItem(5, "Dustwallow Marsh", 122);
Menu->AddItem(5, "Feralas", 123);
Menu->AddItem(5, "Thousand Needles", 124);
Menu->AddItem(5, "Tanaris Desert", 125);
Menu->AddItem(5, "Un'Goro Crater", 126);
Menu->AddItem(5, "Silithus", 127);
Menu->SendTo(Plr);
}
break;
// EASTERN KINGDOMS [case] //
case 70: // WesternPlaguelands
{
Plr->SafeTeleport( 0, 0, 1855, -1569, 61, 0);
Plr->Gossip_Complete();
}break;
case 71: // EasternPlaguelands
{
Plr->SafeTeleport( 0, 0, 2278, -5311, 89, 0);
Plr->Gossip_Complete();
}break;
case 72: // TristfallGlades
{
Plr->SafeTeleport( 0, 0, 2032, -432, 37, 0);
Plr->Gossip_Complete();
}break;
case 73: // AlteracMountains
{
Plr->SafeTeleport( 0, 0, 552, -275, 152, 0);
Plr->Gossip_Complete();
}break;
case 74: // Silverpine Forest
{
Plr->SafeTeleport( 0, 0, -126, 815, 68, 0);
Plr->Gossip_Complete();
}break;
case 75: // Hillsbrad
{
Plr->SafeTeleport( 0, 0, -502, 91, 61, 0);
Plr->Gossip_Complete();
}break;
case 76: // TheHinterlands
{
Plr->SafeTeleport( 0, 0, -678, -4018, 240, 0);
Plr->Gossip_Complete();
}break;
case 77: // ArathiHighlands
{
Plr->SafeTeleport( 0, 0, -797, -2068, 35, 0);
Plr->Gossip_Complete();
}break;
case 78: // Wetlands
{
Plr->SafeTeleport( 0, 0, -3256, -2718, 11, 0);
Plr->Gossip_Complete();
}break;
case 79: // Dunmorogh
{
Plr->SafeTeleport( 0, 0, -5826, -1586, 366, 0);
Plr->Gossip_Complete();
}break;
case 100: // Lochmodan
{
Plr->SafeTeleport( 0, 0, -4771, -3329, 347, 0);
Plr->Gossip_Complete();
}break;
case 101: // Badlands
{
Plr->SafeTeleport( 0, 0, -7027, -3330, 243, 0);
Plr->Gossip_Complete();
}break;
case 102: // Blackrockmountain
{
Plr->SafeTeleport( 0, 0, -7317, -1072, 279, 0);
Plr->Gossip_Complete();
}break;
case 103: // Redridgemountain
{
Plr->SafeTeleport( 0, 0, -9168, -2726, 92, 0);
Plr->Gossip_Complete();
}break;
case 104: // ElwynnForest
{
Plr->SafeTeleport( 0, 0, -9325, -1038, 67, 0);
Plr->Gossip_Complete();
}break;
case 105: // Duskwood
{
Plr->SafeTeleport( 0, 0, -10694, -884, 52, 0);
Plr->Gossip_Complete();
}break;
case 106: // Westfall
{
Plr->SafeTeleport( 0, 0, -11018, 1513, 45, 0);
Plr->Gossip_Complete();
}break;
case 107: // SwampofSorrows
{
Plr->SafeTeleport( 0, 0, -10429, -3828, -29, 0);
Plr->Gossip_Complete();
}break;
case 108: // BlastedLands
{
Plr->SafeTeleport( 0, 0, -11853, -3197, -25, 0);
Plr->Gossip_Complete();
}break;
case 109: // DeadwindPass
{
Plr->SafeTeleport( 0, 0, -10435, -1809, 101, 0);
Plr->Gossip_Complete();
}break;
case 110: // Stranglethornvale
{
Plr->SafeTeleport( 0, 0, -13382, 2, 23, 0);
Plr->Gossip_Complete();
}break;
// KALIMDOR [case] //
case 111: // Moonglade
{
Plr->SafeTeleport( 1, 0, 7978, -2501, 490, 0);
Plr->Gossip_Complete();
}break;
case 112: // winterspring
{
Plr->SafeTeleport( 1, 0, 6721, -4659, 722, 0);
Plr->Gossip_Complete();
}break;
case 113: // felwood
{
Plr->SafeTeleport( 1, 0, 4878, -614, 362, 0);
Plr->Gossip_Complete();
}break;
case 114: // darkshore
{
Plr->SafeTeleport( 1, 0, 4565, 438, 34, 0);
Plr->Gossip_Complete();
}break;
case 115: // azshara
{
Plr->SafeTeleport( 1, 0, 2717, -5968, 108, 0);
Plr->Gossip_Complete();
}break;
case 116: // ashenvale
{
Plr->SafeTeleport( 1, 0, 3469, 847, 7, 0);
Plr->Gossip_Complete();
}break;
case 117: // Stonetalon
{
Plr->SafeTeleport( 1, 0, 898, 922, 128, 0);
Plr->Gossip_Complete();
}break;
case 118: // TheBarrens
{
Plr->SafeTeleport( 1, 0, -1330, -3120, 93, 0);
Plr->Gossip_Complete();
}break;
case 119: // Durotar
{
Plr->SafeTeleport( 1, 0, 242, -5151, 3, 0);
Plr->Gossip_Complete();
}break;
case 120: // Mulgore
{
Plr->SafeTeleport( 1, 0, -2326, -367, -6, 0);
Plr->Gossip_Complete();
}break;
case 121: // Desolace
{
Plr->SafeTeleport( 1, 0, -939, 1091, 95, 0);
Plr->Gossip_Complete();
}break;
case 122: // Dustwallow
{
Plr->SafeTeleport( 1, 0, -3719, -2530, 71, 0);
Plr->Gossip_Complete();
}break;
case 123: // Feralas
{
Plr->SafeTeleport( 1, 0, -4508, 2041, 53, 0);
Plr->Gossip_Complete();
}break;
case 124: // ThousandNeedles
{
Plr->SafeTeleport( 1, 0, -4619, -1850, 88, 0);
Plr->Gossip_Complete();
}break;
case 125: // Tanaris
{
Plr->SafeTeleport( 1, 0, -7373, -2950, 12, 0);
Plr->Gossip_Complete();
}break;
case 126: // Ungoro
{
Plr->SafeTeleport( 1, 0, -6186, -1106, -215, 0);
Plr->Gossip_Complete();
}break;
case 127: // Silithus
{
Plr->SafeTeleport( 1, 0, -6824, 821, 51, 0);
Plr->Gossip_Complete();
}break;
case 96: // Bufeame porfavor
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Plr->CastSpell(Plr, 15366, 0);
Menu->SendTo(Plr);
}break;
case 97: // Quitame esta fregadera
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Plr->addSpell(15007);
Plr->removeSpell(15007,0,0,0);
Menu->SendTo(Plr);
}break;
case 98: // SpartanWoW Locations
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "SpartanCity", 130);
Menu->AddItem(5, "Horde Mall", 131);
Menu->AddItem(5, "Aliance Mall", 132);
Menu->AddItem(5, "Spartan Exiled Warriors", 133);
Menu->SendTo(Plr);
}
break;
// SpartanWoW Locations [case] //
case 130: // SpartanCity
{
Plr->SafeTeleport( 1, 0, -8524.66, 2015.16, 103.7, 0);
Plr->Gossip_Complete();
}break;
case 131: // Horde Mall
{
Plr->SafeTeleport( 1, 0, -11827, -4753.89, 6.44935, 0);
Plr->Gossip_Complete();
}break;
case 132: // Aliance Mall
{
Plr->SafeTeleport( 1, 0, -11368.8, -4732.63, 5.00862, 0);
Plr->Gossip_Complete();
}break;
case 133: // Spartan Exiled Warriors
{
Plr->SafeTeleport( 1, 0, -10712.7, 2412.72, 7.6057, 0);
Plr->Gossip_Complete();
}break;
case 134: // MorphME
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(0, "Goblin", 135);
Menu->AddItem(0, "Felguard", 136);
Menu->AddItem(0, "Broken", 137);
Menu->AddItem(0, "Ogre", 138);
Menu->AddItem(0, "Pirate", 139);
Menu->AddItem(0, "Skeleton", 140);
Menu->AddItem(0, "Infernal", 141);
Menu->AddItem(0, "AmaniBear", 142);
Menu->AddItem(0, "Samuro", 143);
Menu->AddItem(0, "Illidan Stormrage", 144);
Menu->AddItem(0, "Akama", 145);
Menu->AddItem(0, "Baby Murloc", 146);
Menu->AddItem(0, "Flik's Frog", 147);
Menu->AddItem(0, "SpartanWoW Guard", 148);
Menu->AddItem(2, "Demorph", 149);
Menu->SendTo(Plr);
}
break;
//Defining Cases
void PMulti::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
{
GossipMenu * Menu;
switch(IntId)
{
//Goblin
case 135:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 7109);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//FelGuard
case 136:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 18287);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Broken
case 137:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 17833);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Ogre
case 138:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 1122);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Pirate
case 139:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 2347);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Skeleton
case 140:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 17970);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Infernal
case 141:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 169);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Amani Bear
case 142:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 22467);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Samuro
case 143:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 21665);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Illidan Stormrage
case 144:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 21135);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Akama
case 145:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 20681);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Baby Murloc
case 146:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 15394);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Flik's Frog
case 147:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 14936);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//SpartanWoW Guard
case 148:
{
Plr->SetUInt32Value(UNIT_FIELD_DISPLAYID, 19386);
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->Gossip_Complete();
}break;
//Demorph :P
case 149:
{
Plr->Emote(EMOTE_ONESHOT_CHEER);
Plr->DeMorph();
Plr->Gossip_Complete();
}break;
case 99: //main menu
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
if(Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5)
{Menu->AddItem(0, "Horde Cities", 1);}else{Menu->AddItem(1, "Alliance Cities", 2);}
Menu->AddItem(2, "Global Locations", 80);
Menu->AddItem(3, "Azeroth Instances", 30);
Menu->AddItem(4, "Outland Instances", 50);
Menu->AddItem(5, "Shattrath", 20);
Menu->AddItem(5, "Gurubashi Arena", 21);
Menu->AddItem(9, "Bufeame porfavor", 96);
Menu->AddItem(9, "Quitame esta fregadera", 97);
Menu->AddItem(5, "SpartanWoW Locations", 98);
Menu->AddItem(5, "Morph ME", 134);
Menu->SendTo(Plr);
}break;
}
}
void PMulti::GossipEnd(Object * pObject, Player* Plr)
{
GossipScript::GossipEnd(pObject, Plr);
}
void SetupPMulti(ScriptMgr * mgr)
{
GossipScript * gs = (GossipScript*) new PMulti();
mgr->register_item_gossip_script(60003,gs);
}
Code:
delete from items where entry = '60003';
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 Multifuntional', 'Portable Multifuntional', 'Portable Multifuntional', 'Portable Multifuntional', '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', 'Made by Spartansp', '0', '0', '0', '0', '60003');