• 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++ Quick Question

Deewad

Respected Member
I recently getting into doing a little C++ And, Was wondering the 0, 1, 2 ID's
Code:
    //These texts must be added to the creature texts of the npc for which the script is assigned.
    SAY_NOT_INTERESTED      = 0, // "Normal select, guess you're not interested."
    SAY_WRONG               = 1, // "Wrong!"
    SAY_CORRECT             = 2  // "You're right, you are allowed to see my inner secrets."

If them are From Creature_Texts in database, Or something? Where are they called from?
 
Last edited:

Deewad

Respected Member
Its the Example Gossip code from trinitycore, I've looked through the whole code, I don't see it define them in anyway
 

Tommy

Founder
I recently getting into doing a little C++ And, Was wondering the 0, 1, 2 ID's
Code:
    //These texts must be  added to the creature texts of the npc for which the script is assigned.
    SAY_NOT_INTERESTED      = 0, // "Normal select, guess you're not interested."
    SAY_WRONG               = 1, // "Wrong!"
    SAY_CORRECT             = 2  // "You're right, you are allowed to see my inner secrets."

If them are From Creature_Texts in database, Or something? Where are they called from?

If you're looking at the example script, it only tells you, you must add them in the creature_text table. They aren't real, just basic information on where to add it.

You can call it from 'sCreatureTextMgr->SendChat'. I don't know of other places they are called from.

Its the Example Gossip code from trinitycore, I've looked through the whole code, I don't see it define them in anyway

npc_text table is for gossip, by the way. It is used when sending the menu `SEND_GOSSIP_MENU(textId, Creature*)`

It might have another use, never know. SO MANY TABLES! :p
 

Epicblood

Epic Member
If you're looking at the example script, it only tells you, you must add them in the creature_text table. They aren't real, just basic information on where to add it.

You can call it from 'sCreatureTextMgr->SendChat'. I don't know of other places they are called from.



npc_text table is for gossip, by the way. It is used when sending the menu `SEND_GOSSIP_MENU(textId, Creature*)`

It might have another use, never know. SO MANY TABLES! :p


God damnit tommy, was just opening my example script cause I wanted to help this wayward traveller
Then you come in and steal my thunder
 
Last edited:
Top