All pastes #761803 Raw Edit

Mine

public text v1 · immutable
·published 2007-11-05 02:31 UTC
rendered paste body
void ZhizheGossip::GossipHello(Creature* pCreature, Player* Plr, bool AutoSend)
{
    sLog.outDetail("Gossip-Zhizhe.cpp : Hello by %s", Plr->GetName());
    GossipMenu *Menu;
    uint32 TextID =31023;
    // Hello (First) Menu.
    objmgr.CreateGossipMenuForPlayer(&Menu, pCreature->GetGUID(), TextID, Plr);

    if( pCreature->GetUInt32Value(UNIT_NPC_FLAGS) & UNIT_NPC_FLAG_VENDOR );
	 Menu-> AddItem (0, "[ Main City ]             - Major cities transmission", 1); 
     Menu->AddItem (1, "[ Primary Instance ]      - Class I" 2); 
     Menu-> AddItem (1, "[ Intermediate Instance ] - Class II", 3); 
     Menu-> AddItem (1, "[ Senior Instance ]       - Raids", 4); 
     Menu-> AddItem (1, "[ Boss Zone ]             - Teleport to BOSS ZONE", 5); 
     Menu-> AddItem (0, "[ Scenery Teleport ]      - View world Landscapes", 6); 
     Menu-> AddItem (3, "[ Professional Auction ]  - Auction House", 7); 
     Menu-> AddItem (3, "[ Individual Banks]       - Personal Bank System", 8); 
     Menu-> AddItem (2, "[ Activate Taxi]          - Open all Flightpaths (10G)", 9); 
     Menu->AddItem (4, "[ BG Teleport ]           - Battlegrounds" 10); 
     Menu->AddItem (0, "[ Resurrection ]          - Cure Resurrection Sickness (5G)," 11); 
     Menu-> AddItem (5, "[ Sale & Repair ]         - Stay a while and listen", 12); 
     Menu-> AddItem (6, "[ Bind Hearthstone]       - Bind your Heathstone", 13); 
	 Menu-> AddItem (6, "[ Reset Talent ]          - Resets all talent points", 14); 
	 Menu-> AddItem (6, "[ Get My Wages ]          - Wager 1g every minute", 16);
    if(AutoSend)
    Menu->SendTo(Plr);
}