• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] NPC with C++ Script Attached to it unable to give quests.

Status
Not open for further replies.

Recycle

Enthusiast
Hi there, it's me again!

With another new issue which I simply can't resolve my head around, my issue is the following:

We have a NPC that has a custom script attached to it (c++) and it works bueno. However, despite the NPC having Gossip and QuestGiver flags we can't seem to make the quest appear.

Examples:
http://i.imgur.com/sOvkY0D.jpg

But as we can tell, there is the "is quest giver" flag enabled.
http://i.imgur.com/Ngy8YDc.png

What am I exactly doing wrong not being able to receive the quests from NPC's that are linked to a ScriptName? What did I overlook? Been trying so hard to figure this out for a few hours now :(

Thanks already for whatever help I may get!

Edit: For those interested to look at the script:
http://pastebin.com/LKHpVUSU

Edit2:
Fixed it, yahoo! For those interested and having the same issue, all I had to do was add this:

Code:
		if (creature->IsQuestGiver())
			player->PrepareQuestMenu(creature->GetGUID());

Into the script. :)
 
Last edited:

Tulba

Glorious
Maybe I'm wrong:
- It seems that your custom script overwrites the general questgiverscript? Questgiver (gossip script) gets replaced by your custom script (gossip script).

But that's just a theory and I'm not familiar with TCs gossip handling.
 

Recycle

Enthusiast
Maybe I'm wrong:
- It seems that your custom script overwrites the general questgiverscript? Questgiver (gossip script) gets replaced by your custom script (gossip script).

But that's just a theory and I'm not familiar with TCs gossip handling.

I can't see anything regarding that in documentation I'm looking, but thanks. Still could use more pointers, but thanks for letting me know. :)
 
Status
Not open for further replies.
Top