diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-02-06 05:08:37 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-02-06 05:08:37 +0000 |
commit | 2ba08eae75f05d5a81494c7e3b98286796635cb3 (patch) | |
tree | 0039320850c6553383cb3b028273588b4ce66ef8 /src/map/clif.c | |
parent | 78b321140807eae39e03b79b20c87e21677515f0 (diff) | |
download | hercules-2ba08eae75f05d5a81494c7e3b98286796635cb3.tar.gz hercules-2ba08eae75f05d5a81494c7e3b98286796635cb3.tar.bz2 hercules-2ba08eae75f05d5a81494c7e3b98286796635cb3.tar.xz hercules-2ba08eae75f05d5a81494c7e3b98286796635cb3.zip |
2010/02/06
* Added official packet to display received expirience. (info provided by papkil)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14240 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ab43524e8..f9fd3ffca 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -13455,6 +13455,30 @@ void clif_party_show_picker(struct map_session_data * sd, struct item * item_dat #endif } +// Display gain exp +// type = 1 -> base_exp +// type = 2 -> job_exp +// flag = 0 -> normal exp gain/lost +// flag = 1 -> quest exp gain/lost +void clif_displayexp(struct map_session_data *sd, unsigned int exp, char type, bool quest) +{ + int fd; + + nullpo_retv(sd); + + fd = sd->fd; + + WFIFOHEAD(fd, packet_len(0x7f6)); + WFIFOW(fd,0) = 0x7f6; + WFIFOL(fd,2) = sd->bl.id; + WFIFOL(fd,6) = exp; + WFIFOW(fd,10) = type; + WFIFOW(fd,12) = quest?1:0;// Normal exp is shown in yellow, quest exp is shown in purple. + WFIFOSET(fd,packet_len(0x7f6)); + + return; +} + /*========================================== * パケットデバッグ *------------------------------------------*/ @@ -13846,7 +13870,7 @@ static int packetdb_readdb(void) 6, 2, -1, 4, 4, 4, 4, 8, 8,268, 6, 8, 6, 54, 30, 54, #endif 0, 0, 0, 0, 0, 8, 8, 32, -1, 5, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, //#0x800 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; |