Ejemplo n.º 1
0
void test_add_chat(persistence *persistence,int admin_id){
	int id_user;

	if(add_chat(persistence, admin_id, "Descripción de prueba",0,0)!=0)
		exit(-1);

}
Ejemplo n.º 2
0
void
create_monster()
{
    set_name("chatter");
    set_adj("chatting");
    set_long("An example of a chatting monster.\n");
    set_race_name("elf");

    /* This chatter will say something every now and then... :) */

    set_chat_time(5); /* Interval between chat */

    /* And the list we will run through, it will be randomized but our chatter
     * won't say something he has already said from the list again until the
     * whole list is gone through, and randommized again.
     */
    add_chat("Hi, how are you?");
    add_chat("I'm talking to you ;-)");
    add_chat("Don't you think this is fun?");
}