So far, I found the problem in the following quests:
Description:
The common thing with these quests is:
Current behaviour:
Expected behaviour:
Branch: 3.3.5a
TC rev: c00a2ef
TDB: 335.64
OS: Debian 9 / Windows 8.1
Note: If this can be solved using smart_scripts, I could try a solution.
Find the Phylactery works, except that the urn doesn't despawn.
You don't get the quest item from the urn tho.
This will never fly with the TrinityCore guys but @funjoker if your looking for a temp fix to let you do quest 12000 and 11999-Rifle the Bodies you can apply this and do a .reload smart_scripts
`-- Dead Mage Hunter SAI
DELETE FROM smart_scripts WHERE entryorguid=26477 AND source_type=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
(26477,0,0,1,8,0,100,513,61832,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dead Mage Hunter - On Spellhit 'Rifle the Bodies: Create Magehunter Personal Effects Cover' - Despawn In 1000 ms (No Repeat)"),
(26477,0,1,0,61,0,100,0,0,0,0,0,83,16777216,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dead Mage Hunter - On Spellhit -
Remove Npc Flag Spellclick (No Repeat)");`
This is some code I found while digging around TrinityCore's GitHub page. Its not my code and I can't remember exactly where I went and got it from but it does allow the quest to work on my server. Only issue I think, the reason it was rejected by TrinityCore, was due to the idea that every so often when you clicked a NPC that was laying on the ground it would make their orientation move a little, if your ok with that then I see no harm in being able to use this till TrinityCore comes up with a better solution to the problem.
@WOW-Reborn you can do
```sql
SQL STATEMENTS
```
and it will look like
-- Dead Mage Hunter SAI
DELETE FROM smart_scripts WHERE entryorguid=26477 AND source_type=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
(26477,0,0,1,8,0,100,513,61832,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dead Mage Hunter - On Spellhit 'Rifle the Bodies: Create Magehunter Personal Effects Cover' - Despawn In 1000 ms (No Repeat)"),
(26477,0,1,0,61,0,100,0,0,0,0,0,83,16777216,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dead Mage Hunter - On Spellhit - Remove Npc Flag Spellclick (No Repeat)");
@PolarCookie thanks I couldn't figure out how they were getting it to look right lol
We're all learning!
@WOW-Reborn : for code handling in github comments, I think you will find this interesting:
I am also trying to come up with a more precise and accurate title for this issue.
See if you think this suggestion, or something similar, fits better than the current.
DB/SAI: Quest items looted by spellclick
@illfated that title looks better.
Sometimes I have just crappy titles since english is not my native language.
More quest with the same issue:
https://www.wowhead.com/quest=12527/gluttonous-lurkers
https://www.wowhead.com/quest=12629/you-can-run-but-you-cant-hide
Dup #21772