Code:
class SCRIPT_DECL Warper : public GossipScript
{
public:
void GossipHello(Object* pObject, Player * Plr, bool AutoSend)
{
GossipMenu *Menu;
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
Menu->AddItem(0, "Stormwind", 0);
Menu->AddItem(0, "Ironforge", 1);
Menu->AddItem(0, "Exodar", 2);
Menu->AddItem(0, "Darnassus", 3);
Menu->AddItem(0, "Orgrimar", 4);
Menu->AddItem(0, "Thunder Bluff", 5);
Menu->AddItem(0, "Silvermoon City", 6);
Menu->AddItem(0, "Undercity", 7);
if(AutoSend)
Menu->SendTo(Plr);
}
void GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
{
GossipMenu * Menu;
switch(IntId)
{
case 0:
{
Plr->SafeTeleport(0, 0, -8831.61, 622.666, 93.7787, 0);
Plr->Gossip_Complete();
}break;
case 1:
{
Plr->SafeTeleport(0, 0, -4804.45, -1101.14, 498.807, 0);
Plr->Gossip_Complete();
}break;
case 2:
{
Plr->SafeTeleport(530, 0, -3796.24, -11710.9, -105.45, 0);
Plr->Gossip_Complete();
}break;
case 3:
{
Plr->SafeTeleport(1, 0, 9952.07, 2278.46, 1341.39, 0);
Plr->Gossip_Complete();
}break;
case 4:
{
Plr->SafeTeleport(1, 0, 1499.55, -4406.91, 23.1642, 0);
Plr->Gossip_Complete();
}break;
case 5:
{
Plr->SafeTeleport(1, 0, -1195.88, -56.5582, 160.034, 0);
Plr->Gossip_Complete();
}break;
case 6:
{
Plr->SafeTeleport(530, 0, 9492.45, -7279.12, 14.3036, 0);
Plr->Gossip_Complete();
}break;
case 7:
{
Plr->SafeTeleport(0, 0, 1615.1, 239.786, -62.0774, 0);
Plr->Gossip_Complete();
}break;
}
}
};
all right before
Code:
INSERT INTO `items` VALUES ('8000004', '0', '0', '-1', 'Warper', 'Warper', 'Warper', 'Warper', '0', '0', '0', '0', '0', '0', '-1', '-1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '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', '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', '0', '0', '0', '0', '0', '0', '0', '0', '0','0','0');
this was compiled under the latest ascent rev, and it ports to all major cities, doesn't check for faction, yet, and feel free to improve on it!