Этот sql файл заливаем в базу. Code
INSERT INTO `creature_names` (`name`, `subname`, `info_str`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `civilian`, `Leader`, `entry`) VALUES ('Ally Bouncer', '', '', '7', '0', '1', '18718', '0', '0', NULL, '50000');
INSERT INTO `creature_proto` (`minlevel`, `maxlevel`, `Faction`, `minhealth`, `maxhealth`, `mana`, `Scale`, `npcflags`, `attacktime`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `combat_reach`, `boss`, `equipmodel1`, `equipmodel2`, `equipmodel3`, `respawntime`, `auras`, `invisibility_type`, `death_state`, `entry`) VALUES ('80', '80', '1054', '100000', '100000', '10000', '1', '0', '1500', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '36000', '0', '0', '0', '50000');
INSERT INTO `creature_names` (`name`, `subname`, `info_str`, `type`, `family`, `rank`, `male_displayid`, `female_displayid`, `civilian`, `Leader`, `entry`) VALUES ('Horde Bouncer', '', '', '7', '0', '1', '18718', '0', '0', NULL, '50001');
INSERT INTO `creature_proto` (`minlevel`, `maxlevel`, `Faction`, `minhealth`, `maxhealth`, `mana`, `Scale`, `npcflags`, `attacktime`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `combat_reach`, `boss`, `equipmodel1`, `equipmodel2`, `equipmodel3`, `respawntime`, `auras`, `invisibility_type`, `death_state`, `entry`) VALUES ('80', '80', '1034', '100000', '100000', '10000', '1', '0', '1500', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '36000', '0', '0', '0', '50001');
Этот скрипт lua кидаем в папку scripts
Code
function Bouncer_OnSpawn(unit, event)
Unit:CastSpell(18950)
end
function Bouncer_OnCombat(unit, event)
Unit:SendChatMessage(14,0,"You are not allowed here. LEAVE NOW!!")
Unit:CastSpell(36812)
end
RegisterUnitEvent(50000,1,"Bouncer_OnSpawn")
RegisterUnitEvent(50001,2,"Bouncer_OnSpawn")
RegisterU nitEvent(50000,3,"Bouncer_OnCombat")
RegisterUnitEvent(50001,4,"Bouncer_OnCombat")