Beispiel #1
0
bool BotHelper::OnGossipSelect(Player* player, uint32 sender, uint32 action)
{
    switch (sender)
    {
        case SENDER_MAIN_PAGE:
            OnGossipHello(player);
            break;
        case SENDER_CREATE_NBOT_MENU:
            SendCreateNPCBotMenu(player, action);
            break;
        case SENDER_CREATE_NBOT:
            SendCreateNPCBot(player, action);
            break;
        case SENDER_REMOVE_NBOT_MENU:
            SendRemoveNPCBotMenu(player, action);
            break;
        case SENDER_REMOVE_NBOT:
            SendRemoveNPCBot(player, action);
            break;
        case SENDER_INFO_WHISPER:
            SendBotHelpWhisper(player, action);
            break;
        default:
            break;
    }
    return true;
}
		bool OnGossipSelect(Player *player, Creature *creature, uint32 sender, uint32 action)
		{	
			switch(sender)
			{
				case 6006: SendCreateNPCBotMenu(player, creature, action); break;
				case 6001: SendCreateNPCBot(player, creature, action); break;
				case 6002: SendCreatePlayerBotMenu(player, creature, action); break;
				case 6003: SendCreatePlayerBot(player, creature, action); break;
				case 6004: SendRemovePlayerBotMenu(player, creature, action); break;
				case 6005: SendRemovePlayerBot(player, creature, action); break;
			}
			return true;
		}