summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-08 15:52:15 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-08 15:52:15 +0000
commit4c8554d9bb073eccfde7525f2ad33d9de9f0b7f1 (patch)
tree8513a1c9783fd8a95db68ebf8a862491d5e0a528 /src/map/clif.c
parent67264ee2c1e40690401ddc1d3f509f21b3281735 (diff)
downloadhercules-4c8554d9bb073eccfde7525f2ad33d9de9f0b7f1.tar.gz
hercules-4c8554d9bb073eccfde7525f2ad33d9de9f0b7f1.tar.bz2
hercules-4c8554d9bb073eccfde7525f2ad33d9de9f0b7f1.tar.xz
hercules-4c8554d9bb073eccfde7525f2ad33d9de9f0b7f1.zip
- Added support for Auction Close and Cancel.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12323 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a71c19f44..2e0591c99 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11834,6 +11834,17 @@ void clif_Auction_message(int fd, unsigned char flag)
WFIFOSET(fd,3);
}
+// 0 = You have ended the auction
+// 1 = You cannot end the auction
+// 2 = Bid number is incorrect
+void clif_Auction_close(int fd, unsigned char flag)
+{
+ WFIFOHEAD(fd,6);
+ WFIFOW(fd,0) = 0x25d;
+ WFIFOL(fd,2) = flag;
+ WFIFOSET(fd,6);
+}
+
void clif_parse_Auction_register(int fd, struct map_session_data *sd)
{
struct auction_data auction;
@@ -11910,6 +11921,20 @@ void clif_parse_Auction_register(int fd, struct map_session_data *sd)
}
}
+void clif_parse_Auction_cancel(int fd, struct map_session_data *sd)
+{
+ unsigned int auction_id = RFIFOL(fd,2);
+
+ intif_Auction_cancel(sd->status.char_id, auction_id);
+}
+
+void clif_parse_Auction_close(int fd, struct map_session_data *sd)
+{
+ unsigned int auction_id = RFIFOL(fd,2);
+
+ intif_Auction_close(sd->status.char_id, auction_id);
+}
+
/*------------------------------------------
* Auction Search
* S 0251 <search type>.w <search price>.l <search text>.24B <01>.w