diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-26 10:02:29 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-26 10:02:29 +0000 |
commit | b064f50c5c54c66cd8e91e75f000a8caa14968d6 (patch) | |
tree | 7dcd12076e63e3e2dbe02a504ac1724289af3f23 /src/map/clif.c | |
parent | 91b84dacf6e1376e097cff7c7eff697d21bf1c62 (diff) | |
download | hercules-b064f50c5c54c66cd8e91e75f000a8caa14968d6.tar.gz hercules-b064f50c5c54c66cd8e91e75f000a8caa14968d6.tar.bz2 hercules-b064f50c5c54c66cd8e91e75f000a8caa14968d6.tar.xz hercules-b064f50c5c54c66cd8e91e75f000a8caa14968d6.zip |
Finished Full Strip, Weapon Refine, Slim Pitcher and Full Protection
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@369 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 2038304dc..9163671a8 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5031,6 +5031,33 @@ int clif_item_repair_list(struct map_session_data *sd) } /*========================================== + * Weapon Refining [Celest] + *------------------------------------------ + */ +int clif_item_refine_list(struct map_session_data *sd) +{ + int i,c; + int fd; + + nullpo_retr(0, sd); + + fd=sd->fd; + + WFIFOW(fd,0)=0x177; // temporarily use same packet as clif_item_identify + for(i=c=0;i<MAX_INVENTORY;i++){ + if(sd->status.inventory[i].nameid > 0 && itemdb_type(sd->status.inventory[i].nameid)==4){ + WFIFOW(fd,c*2+4)=i+2; + c++; + } + } + if(c > 0) { + WFIFOW(fd,2)=c*2+4; + WFIFOSET(fd,WFIFOW(fd,2)); + } + return 0; +} + +/*========================================== * アイテムによる一時的なスキル効果 *------------------------------------------ */ |