diff options
author | Sara <Sara@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-24 01:56:16 +0000 |
---|---|---|
committer | Sara <Sara@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-24 01:56:16 +0000 |
commit | 35d7b2c7661bad6596a48c81f24a044a91fa346b (patch) | |
tree | ba243d910a1aeda54169e536f73e66c7785c542e /src/map/status.c | |
parent | 227a195447ddca43b40555952552c6bfc1381c2e (diff) | |
download | hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.tar.gz hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.tar.bz2 hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.tar.xz hercules-35d7b2c7661bad6596a48c81f24a044a91fa346b.zip |
* 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
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |