[Quest] Hungry Nether Rays


I’ve been practicing a bit in C++, and trying to fix up the Sha’Tari Skyguard reputation questchain.

On the quest Hungry Nether Rays the player needs to have this ‘pet’ (Hungry Nether Ray) and is supposed to ‘feed it’ after killing Blackwind Warp Chaser.

I decided to re-do this creature’s script on C++ (It was EventAI) for some minor abilities, and in order to have it give quest credit if the player has the Hungry nether Ray out.

Now, I have no idea how to make the creature look for a specific target, so what I thought I’d do was, if player is on the quest and its not complete, just target random targets until he finds one that has the same entry as the one I need. If he finds it, then give the quest credit.

Here’s what I have so far:


If anyone could help me out by saying how I can check for a specific entry (or check if the player has summoned this creature) and how to give kill credit for another creature.


EDIT: Script was uploaded to Paste2.org

Take a look at https://github.com/TrinityCore/TrinityCore/issues/3656

P.S. The quest will work blizzlike when the problem with giving quest credit to OWNER_OR_SUMMONER target type is fixed. Until then this is as close I can get to it.


My (untested) try.

Discover, I believe only the summoner should get quest credit. After all the quest requests that you feed a specific creature a specific amount of meet.


And I read it somewhere on wowhead as well.

Thanks bro /emoticons/default_smile.png

I get some errors, but I’ll try to fix them up. Cheers!

My mistake then.