Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.3.5] Creature: Proto-Drake Egg (23777) #16900

Closed
Treeston opened this issue Apr 2, 2016 · 4 comments
Closed

[3.3.5] Creature: Proto-Drake Egg (23777) #16900

Treeston opened this issue Apr 2, 2016 · 4 comments

Comments

@Treeston
Copy link
Member

Treeston commented Apr 2, 2016

3.3.5 f37682b

Creature: Proto-Drake Egg turns to face player that hits it. It shouldn't. It's an egg. Eggs don't turn.

@Kodekc
Copy link
Contributor

Kodekc commented Apr 3, 2016

-- Proto-Drake Egg
UPDATE `creature_template` SET `unit_flags`='262148' WHERE  `entry`=23777;

Add UNIT_FLAG_STUNNED

@dr-j
Copy link
Contributor

dr-j commented Apr 3, 2016

Believe changing unit flags on these would be a hack as in sniff these have no auras and unit_flags =0 yet these still dont move when attacked, however on tc these already have unit flags 4 disable move.

@Treeston
Copy link
Member Author

Treeston commented Apr 3, 2016

They don't move, they just turn. Targeting the player will make them turn client-side. They shouldn't target the player.

@dr-j
Copy link
Contributor

dr-j commented Apr 3, 2016

well theres nothing in the script for these which targets player all actions use self as target so this is probably due to combat,

The following removes the unit_flag hack and the eggs still dont move however they still turn upon entering combat when not killed with a single hit.

DELETE FROM `smart_scripts` WHERE  `entryorguid`=23777 AND `source_type`=0 AND `id`IN(6,7) AND `link`=0;

UPDATE `smart_scripts` SET `link`=6 WHERE  `entryorguid`=23777 AND `source_type`=0 AND `id`=1 AND `link`=0;
INSERT 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 
(23777, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Proto-Drake Egg - On Reset - Set Passive'),
(23777, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 94, 24, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Proto-Drake Egg - On Reset - Set Dynamic Flags');

UPDATE `creature_template` SET `unit_flags`=0 WHERE  `entry`=23777;

Updated found something in sniff dynamicflags 24 stops the eggs from turning when agrod.

dr-j added a commit that referenced this issue Apr 3, 2016
1) "Crowleg" Dan closes #16903
2) Dead Man's Debt closes #16902
3) Proto-Drake egg closes #16900
Shauren pushed a commit that referenced this issue Apr 9, 2016
1) "Crowleg" Dan closes #16903
2) Dead Man's Debt closes #16902
3) Proto-Drake egg closes #16900
(cherry picked from commit 7491cac)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants