summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-08 20:11:28 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-08 20:11:28 +0000
commit603dc60466a7067ecb68384185cb1c20aaea7366 (patch)
treeb8e75ab3e5b7fe481571738ad7454262607d403f /src/map/script.c
parent1f4883d1f4fb65260691692879a795992fdbcf88 (diff)
downloadhercules-603dc60466a7067ecb68384185cb1c20aaea7366.tar.gz
hercules-603dc60466a7067ecb68384185cb1c20aaea7366.tar.bz2
hercules-603dc60466a7067ecb68384185cb1c20aaea7366.tar.xz
hercules-603dc60466a7067ecb68384185cb1c20aaea7366.zip
- Auction System implementation completed.
- As mail system, this will need a "mapflag" or something to only allow auctions on some maps. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12325 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index ee5bbbdc5..36c29e8d5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13016,6 +13016,20 @@ BUILDIN_FUNC(openmail)
return 0;
}
+BUILDIN_FUNC(openauction)
+{
+ TBL_PC* sd;
+
+ sd = script_rid2sd(st);
+ if( sd == NULL )
+ return 0;
+
+#ifndef TXT_ONLY
+ clif_Auction_openwindow(sd);
+#endif
+ return 0;
+}
+
/// Modifies flags of cells in the specified area.
///
/// setcell "<map name>",<x1>,<y1>,<x2>,<y2>,<type>,<flag>;
@@ -13386,6 +13400,7 @@ struct script_function buildin_func[] = {
BUILDIN_DEF(checkvending,"*"),
BUILDIN_DEF(checkchatting,"*"),
BUILDIN_DEF(openmail,""),
+ BUILDIN_DEF(openauction,""),
BUILDIN_DEF(setcell,"siiiiii"),
{NULL,NULL,NULL},
};