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

c++ creature script

Status
Not open for further replies.

EmuNoob

Exalted Member
Hey guys i was working on creature script and i got a little bit confused.

Lets skip the explaining part, so bassicaly i want my creature to speak on regular chat ex. /s

I've read several tutorials about making creature speak and the Trinitycore example for creature script, my question is which is the code to make creature speak is it :

me->MonsterSay(“Example”, LANG_UNIVERSAL, NULL);

Or
Talk(“Example”, LANG_UNIVERSAL, NULL);


Which one is correct? Or even it's way different? Will apperciate help :)
 
Last edited:

Tommy

Founder
Code:
Talk(uint8 id, uint64 whisperGUID);

That requires an (uint8)ID from the npc_text table.

Code:
MonsterSay("Test", LANG_UNIVERSAL, 0);
MonsterYell("Test", LANG_UNIVERSAL, 0);

Those are correct.
 

EmuNoob

Exalted Member
So i don't need to add the me-> before MonsterSay? And is it possible to make something like speak timer?
 

Tommy

Founder
So i don't need to add the me-> before MonsterSay? And is it possible to make something like speak timer?

It was an example, of course you need a variable to point towards the method. :p

- Now the thread is solved. XD
 
Status
Not open for further replies.
Top