how can i record specific npc announcement?

nuna

New member
Messages
136
Points
0
Emulator
Example: during woe. I would like to record all the break announcement that can be seen on an npc.

Npc will show:

[NPCname]

Kriemhild castle has been conquered by playername1 of the guildname1.

close;

 
It's a very simple example:

announcement.sql:

DROP TABLE IF EXISTS `announcements`;
CREATE TABLE IF NOT EXISTS `announcements` (

`time` DATETIME NOT NULL DEFAULT '00-00-0000 00:00:00',
`announcement` VARCHAR(50) NOT NULL DEFAULT '',

PRIMARY KEY (`time`)
) ENGINE=MYISAM;




announce.txt:

Code:
prontera,159,180,3	script	Announcer Girl	1_F_MARIA,{


set .@announcement$,"Hello "+strcharinfo(PC_NAME)+" from World";

announce(""+.@announcement$+"", bc_all);

query_sql("INSERT INTO `announcements` (announcement,time) VALUES ('"+.@announcement$+"',NOW() )");

end;
}
 
Back
Top