mangosR2 / mangos

Production (stable and testing) versions of current mangosR2 v2 server (World of Warcraft: Wrath of the Lich King, 3.3.5a client).
http://mangosr2.2x2forum.com/
GNU General Public License v2.0
175 stars 78 forks source link

Chillmaw entries in vehicle_accessory #939

Closed Kim72 closed 11 years ago

Kim72 commented 12 years ago

Hi,

Chillmaw should spawn cultist bombardier at 25%, 50% and 75% of his health. This is done using eventai and works as intended.

He also has entries in table vehicle_accessory and so 3 cultist bombardier are sitting on his back and head. This is also correct.

The problem is that when Chillmay dies the three cultist bombardiers sitting on his back and head don't die with him, but jump of him and fight the player, who already thought cultist bombardiers at 25%, 50% and 75%. So the player has to fight a total of 6 cultist bombardier which is not correct.

I think vehicle_handler.cpp should look at column minion of table vehicle_accessory and when the value is 1, the minions of the vehicle (in this case the cultist bombardier sitting on Chillmaw) should die on death of the vehicle (in this case Chillmaw).

rsa commented 12 years ago

may your exactly specify numbers of this mobs, quests and place? ower 30 mobs called "Chillmaw*" in database. PS as i think, EventAI script not correct - mobs not must be spawned, but must leave vehicle. need call author of this EventAI.

Kim72 commented 12 years ago

Of course, sorry, just totally forgot Here is the id's Chillmaw => 33687 Cultist Bombardier => 33695 Q: Thread from above (horde and ally) => 13809, 13812, 13682, 13788

I am not so sure that with eventai it is possible to leave vehicle instead of spawn. But I will have a look at that side of the problem as well, thanks for thinking with me on this.

Kim72 commented 12 years ago

Does anybody here know an eventai that already support vehicle? Acid doesn't

rsa commented 12 years ago

not need special support. only cast mount spell/remove mount aura need.

Kim72 commented 12 years ago

thanks for the quick response rsa. I thought I had the solution with this code:

DELETE FROM creature_ai_scripts WHERE creature_id=33687; INSERT INTO creature_ai_scripts VALUES ( 3368701, 33687, 0, 0, 100, 1, 5800, 13900, 21700, 30800, 11, 65248, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chillmaw - Cast Frost Breath'), ( 3368702, 33687, 0, 0, 100, 1, 7800, 10800, 21800, 31100, 11, 65260, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chillmaw - Cast Wing Buffet'), ( 3368703, 33687, 2, 0, 100, 0, 75, 0, 0, 0, 11, 52205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chillmaw - Eject Cultist Bombardier at 75% HP'), ( 3368704, 33687, 2, 0, 100, 0, 50, 0, 0, 0, 11, 62539, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chillmaw - Eject Cultist Bombardier at 50% HP'), (3368705, 33687, 2, 0, 100, 0, 25, 0, 0, 0, 11, 60603, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Chillmaw - Eject Cultist Bombardier at 25% HP');

But it doesn't work. I guess there is no support yet for these spells?

rsa commented 12 years ago

:) it's not may work, scripteffects require separate realization. need use ACTION_T_REMOVEAURASFROMSPELL = 28 on passengers (mount spell possible 46598) or construct new spells with targets 96...103.

Kim72 commented 12 years ago

Nice job RSA!! Thanks1

rsa commented 12 years ago

untested. need (by theory) use action 28 on target 50 some times.