Вечер добрый. Снова решила покопатся в SmartAI , чуть подзабыла. прощу подсказать где совершила ошибку! Вообщем у меня есть 3 npc ( 1 = id 50тыс, 2 = id 60тыс, 3 = id 70тыс ). Игрок подходит к перовму Npc и сражаясь с ним убивает, после убийства 1 Npc , начинает говорить 2 Npc ( говорит 2 фразы и открывает двери), после открытия дверей 3 Npc призывает мобов.вот как-то так. 1 npc
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`, `unit_flags2`, `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`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES (50000, 0, 0, 0, 0, 0, 24560, 0, 0, 0, 'Первый', '', '', 0, 82, 82, 2, 1693, 1693, 0, 1, 1.14286, 1, 1, 452, 678, 0, 169, 46.4, 2000, 2000, 1, 32768, 2048, 8, 0, 0, 0, 0, 0, 362, 542, 135, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62315, 62415, 62316, 62417, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 1, 20, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, '', 12340); REPLACE INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (50000, 0, 0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 9388786, 60000, 0, 0, 0, 0, 0, "Smart Script");
2npc
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`, `unit_flags2`, `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`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES (60000, 23142, 0, 0, 0, 0, 28977, 0, 0, 0, 'Второй', '', '', 0, 83, 83, 2, 14, 14, 0, 1.8, 1.14286, 1, 3, 435, 653, 0, 163, 73.3, 2000, 2000, 2, 256, 2048, 8, 0, 0, 0, 0, 0, 348, 522, 130, 5, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26662, 62131, 64390, 62016, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 1, 300, 100, 1, 0, 0, 0, 0, 0, 0, 0, 180, 1, 617299967, 1, '', 12340); REPLACE INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (60000, 0, 0, 1, 38, 0, 100, 31, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Say_text_0"), (60000, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 0'), (60000, 0, 2, 0, 5, 0, 100, 0, 0, 0, 0, 32882, 80, 600000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Creature name - Run Script'), (6000000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 1'), (6000000, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 2'), (60000, 0, 3, 0, 52, 0, 100, 0, 0, 60000, 0, 0, 9, 0, 0, 0, 0, 0, 0, 14, 34155, 194560, 0, 0, 0, 0, 0, "Smart Script");
Проблема в самом начале, после убийства нпс не говорит текст, ну и конечно же двери не октрываются.
Рисовщица, выполняю любые заказы, босы, итемы, квесты, вендоры, кастомные нпс, ворлд ивенты (платно)
Сообщение #
1 отредактировано
Low -
Вторник, 18.03.2014, 22:29
поправила, вот только он теперь говорит сразу 2 фразы, а не спустя время. и не открывает двери после 2 фразы
REPLACE INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (60000, 0, 0, 1, 38, 0, 100, 30, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Say_text_0"), (60000, 0, 1, 0, 61, 0, 100, 30, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 0'), (60000, 0, 2, 0, 5, 0, 100, 30, 0, 0, 0, 50000, 80, 60000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Creature name - Run Script"), (6000000, 9, 0, 0, 0, 0, 100, 30, 1000, 1000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 1'), (6000000, 9, 1, 0, 0, 0, 100, 30, 4000, 4000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 2'), (60000, 0, 3, 0, 52, 0, 100, 30, 1, 60000, 0, 0, 9, 0, 0, 0, 0, 0, 0, 14, 194560, 34155, 0, 0, 0, 0, 0, "Open"); REPLACE INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) values ('60000', '0', '0', 'test111...', '14', '0', '0', '0', '0', '0', ''), ('60000', '1', '0', 'test222,,,', '14', '0', '0', '0', '0', '0', '');
Рисовщица, выполняю любые заказы, босы, итемы, квесты, вендоры, кастомные нпс, ворлд ивенты (платно)
Сообщение #
5 отредактировано
Low -
Среда, 19.03.2014, 16:00
Цитата Low (
)
теперь говорит сразу 2 фразы
У вас идёт запрос на фразу 1 и следом фразу 2, но у самих фраз ид 0 и 1 Цитата Low (
)
(6000000, 9, 0, 0, 0, 0, 100, 30, 1000, 1000, 0, 0, 1, 1 , 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 1'), (6000000, 9, 1, 0, 0, 0, 100, 30, 4000, 4000, 0, 0, 1, 2 , 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link text 2'),
Цитата Low (
)
('60000', '0 ', '0', 'test111...', '14', '0', '0', '0', '0', '0', ''), ('60000', '1 ', '0', 'test222,,,', '14', '0', '0', '0', '0', '0', '');
Вообще текст вроде должен иметь немного другой вид: Цитата Low (
)
('60000', '0', '0 ', 'test111...', '14', '0', '0', '0', '0', '0', ''), ('60000', '0', '1 ', 'test222,,,', '14', '0', '0', '0', '0', '0', '');
Сообщение #
6 отредактировано
infinium -
Среда, 19.03.2014, 16:12