summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c12
-rw-r--r--src/map/clif.c18
-rw-r--r--src/map/clif.h3
3 files changed, 33 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index f2947372b..e32f288ce 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -8170,6 +8170,17 @@ int atcommand_feelreset(const int fd, struct map_session_data* sd, const char* c
}
/*==========================================
+ * AUCTION SYSTEM
+ *------------------------------------------*/
+int atcommand_auction(const int fd, struct map_session_data *sd, const char *command, const char *message)
+{
+ nullpo_retr(0,sd);
+
+ clif_Auction_openwindow(sd);
+ return 0;
+}
+
+/*==========================================
* Kill Steal Protection
*------------------------------------------*/
int atcommand_ksprotection(const int fd, struct map_session_data *sd, const char *command, const char *message)
@@ -8509,6 +8520,7 @@ AtCommandInfo atcommand_info[] = {
{ "homshuffle", 60, atcommand_homshuffle },
{ "showmobs", 10, atcommand_showmobs },
{ "feelreset", 10, atcommand_feelreset },
+ { "auction", 60, atcommand_auction },
{ "mail", 1, atcommand_mail },
{ "noks", 0, atcommand_ksprotection },
{ "allowks", 6, atcommand_allowks },
diff --git a/src/map/clif.c b/src/map/clif.c
index 4ce9ff3c4..3378d785c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11753,6 +11753,24 @@ void clif_parse_cashshop_buy(int fd, struct map_session_data *sd)
}
/*==========================================
+ * AUCTIONS SYSTEM
+ *==========================================*/
+void clif_Auction_openwindow(struct map_session_data *sd)
+{
+ int fd = sd->fd;
+
+ WFIFOHEAD(fd,12);
+ WFIFOW(fd,0) = 0x25f;
+ WFIFOL(fd,2) = 0;
+ WFIFOB(fd,6) = 0xb6;
+ WFIFOB(fd,7) = 0x00;
+ WFIFOB(fd,8) = 0xa6;
+ WFIFOB(fd,9) = 0xde;
+ WFIFOW(fd,10) = 0;
+ WFIFOSET(fd,12);
+}
+
+/*==========================================
* Requesting equip of a player
*------------------------------------------*/
void clif_parse_ViewPlayerEquip(int fd, struct map_session_data* sd)
diff --git a/src/map/clif.h b/src/map/clif.h
index 1aa5edcf6..51dc0c417 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -413,4 +413,7 @@ void clif_Mail_getattachment(int fd, uint8 flag);
void clif_cashshop_show(struct map_session_data *sd, struct npc_data *nd);
+// AUCTION SYSTEM
+void clif_Auction_openwindow(struct map_session_data *sd);
+
#endif /* _CLIF_H_ */