From 35d7b2c7661bad6596a48c81f24a044a91fa346b Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 24 Mar 2009 01:56:16 +0000 Subject: * Added support for new status change packet, uses new setting display_status_timers in client.conf. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13613 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index ae0da921f..05061ec5a 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5370,7 +5370,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val //val3 : Brings the skilllv (merged into val1 here) //val4 : Partner if (val1 == CG_MOONLIT) - clif_status_change(bl,SI_MOONLIT,1); + clif_status_change(bl,SI_MOONLIT,1,tick); val1|= (val3<<16); val3 = tick/1000; //Tick duration tick = 1000; @@ -6226,9 +6226,9 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val } if( vd && (pcdb_checkid(vd->class_) || bl->type == BL_MER ) ) //Only for players sprites, client crashes if they receive this for a mob o.O [Skotlex] - clif_status_change(bl,StatusIconChangeTable[type],1); + clif_status_change(bl,StatusIconChangeTable[type],1,tick); else if( sd ) //Send packet to self otherwise (disguised player?) - clif_status_load(bl,StatusIconChangeTable[type],1); + clif_status_load(bl,StatusIconChangeTable[type],1,tick); //Don't trust the previous sce assignment, in case the SC ended somewhere between there and here. if((sce=sc->data[type])) @@ -6538,7 +6538,7 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid) } } if ((sce->val1&0xFFFF) == CG_MOONLIT) - clif_status_change(bl,SI_MOONLIT,0); + clif_status_change(bl,SI_MOONLIT,0,0); status_change_end(bl,SC_LONGING,-1); break; @@ -6815,7 +6815,7 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid) //On Aegis, when turning off a status change, first goes the sc packet, then the option packet. if( vd && (pcdb_checkid(vd->class_) || bl->type == BL_MER ) ) - clif_status_change(bl,StatusIconChangeTable[type],0); + clif_status_change(bl,StatusIconChangeTable[type],0,0); else if (sd) clif_status_load(bl,StatusIconChangeTable[type],0); -- cgit v1.2.3-70-g09d2