From b6f1b6b9a11bdb8a5001dbc042d54fce0a963705 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Thu, 8 May 2008 16:58:57 +0000 Subject: - Added some new items and headgears. - Changed the way DEF Potion and MDEF potion works to official. - Cleanups to Barricade Engine. It now can be used in WoE 2.0, i will release optional scripts soon. - Fixes to @noks. Now if the mob is targeting someone else the protection get lost. - Added new status effects icons to cash items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12693 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index bc3872ad6..cfd87b748 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7920,7 +7920,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) if( sd->state.changemap ) {// restore information that gets lost on map-change - if (night_flag && map[sd->bl.m].flag.nightenabled) + if( night_flag && map[sd->bl.m].flag.nightenabled ) { //Display night. if( !sd->state.night ) { @@ -7934,6 +7934,13 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) clif_status_load(&sd->bl, SI_NIGHT, 0); } + if( map[sd->bl.m].flag.allowks && !map_flag_ks(sd->bl.m) ) + { + char output[128]; + sprintf(output, "[ Kill Steal Protection Disable. KS is allowed in this map ]"); + clif_announce(&sd->bl, output, strlen(output) + 1, 0x00CC66, 3); + } + mob_barricade_get(sd); sd->state.changemap = false; } -- cgit v1.2.3-70-g09d2