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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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