yeah compiling successful and all that but when i use my NPC Ascent crashes..
Steph could you maybe help me out on this one ?
All i did different was that i edited the GlobalNPC file in the GlobalNPC folder.
This is what i did:
Was put a new line in the Gossip Menu
Normal Menu:
Code:
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(6, "Gurubashi Arena", 21);
Menu->AddItem(8, "Buff me up, baby!", 96);
/* Menu->AddItem(7, "Make This Place Your Home", 95); */
Menu->AddItem(9, "Remove Resurrection Sickness", 97);
My modified menu:
Code:
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(6, "Gurubashi Arena", 21);
Menu->AddItem(10, "Shopping Zones", 130);
Menu->AddItem(8, "Buff me up, baby!", 96);
/* Menu->AddItem(7, "Make This Place Your Home", 95); */
Menu->AddItem(9, "Remove Resurrection Sickness", 97);
Then i added 3 new cases so it would actually teleport me somewhere:
Added Cases:
Code:
case 128: // Shopping Zones
{
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
Menu->AddItem(5, "General Shopping Mall", 129);
Menu->AddItem(5, "Custom Shopping Mall", 130);
Menu->SendTo(Plr);
}
break;
case 129: // General Shopping Mall
{
Plr->EventTeleport( 0, -8616, -513, 146);
}break;
case 130: // Custom Shopping Mall
{
Plr->EventTeleport( 30, 20, -300, 14);
}break;
Is there something I'm doing wrong here ?