Jump to content
  • 0
Sign in to follow this  
nuna

how can i record specific npc announcement?

Question

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;

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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:

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;
}

 

Share this post


Link to post
Share on other sites
  • 0

https://rathena.org/board/topic/115821-how-can-i-record-specific-npc-announcement/
spot another same topic in rathena

both answer provided are different ...
maybe you should elaborate more about how you want to do the "record the break announcement" ...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.