Dneska sem si napsal kratkej script a proste se o nej musim podelit :D
#include "ScriptPCH.h"
#define PUSA "A kam ji chces? "
#define ORAL "Hmehmohmhomhm....Promin vzdycky zapomenu prestat mluvit"
#define SEX "Ja si jen lehnu. Zbytek necham na tobe <|>"
class npc_strip : public CreatureScript
{
public:
npc_strip() : CreatureScript("npc_strip") { }
bool OnGossipHello(Player *player, Creature *_creature)
{
player->ADD_GOSSIP_ITEM( 7, "Dej mi pusu" , GOSSIP_SENDER_MAIN, 1);
player->ADD_GOSSIP_ITEM( 7, "Zatancuj mi" , GOSSIP_SENDER_MAIN, 2);
player->ADD_GOSSIP_ITEM( 7, "Oralek? " , GOSSIP_SENDER_MAIN, 3);
player->ADD_GOSSIP_ITEM( 7, "Co sexik?" , GOSSIP_SENDER_MAIN, 4);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, _creature->GetGUID());
return true;
}
bool OnGossipSelect(Player *player, Creature *_creature, uint32 sender, uint32 uiAction)
{
if (sender == GOSSIP_SENDER_MAIN)
{
player->PlayerTalkClass->ClearMenus();
switch(uiAction)
{
case 1://Pusa
player->CLOSE_GOSSIP_MENU();
_creature->HandleEmoteCommand(17);
_creature->MonsterSay(PUSA, 0, player->GetGUID());
break;
case 2://Tanec
player->CLOSE_GOSSIP_MENU();
_creature->HandleEmoteCommand(10);
break;
case 3://Oral
player->CLOSE_GOSSIP_MENU();
_creature->HandleEmoteCommand(68);
_creature->MonsterSay(ORAL, 0, player->GetGUID());
break;
case 4://Sexik
player->CLOSE_GOSSIP_MENU();
_creature->HandleEmoteCommand(12);
_creature->MonsterSay(SEX, 0, player->GetGUID());
break;
default:
break;
}
}
return true;
}
};
void AddSC_npc_strip()
{
new npc_strip();
}
sql:
REPLACE INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES (900004, 0, 0, 0, 0, 0, 18785, 0, 0, 0, 'Maiky', 'Verejna sluzba', '', 0, 10, 10, 0, 35, 35, 1, 1, 1.14286, 1, 0, 13, 17, 0, 42, 1, 1500, 0, 1, 512, 8, 0, 0, 0, 0, 0, 9, 13, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 'npc_strip', 12340);