From 2be5a82d3849a499377ece635b4ec3932dfc6ec9 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Tue, 26 Feb 2008 22:14:05 +0000 Subject: - Added new settings for autotrade on battle/misc.conf (you can read descriptions there). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12243 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index f7e3157bf..3c13404e2 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -25,6 +25,7 @@ #include "script.h" #include "unit.h" #include "mercenary.h" +#include "vending.h" #include #include @@ -6489,6 +6490,15 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid) status_set_hp(bl, 10, 0); status_set_sp(bl, 10, 0); break; + case SC_AUTOTRADE: + if (tid == -1) + break; + vending_closevending(sd); + map_quit(sd); + // Because map_quit calls status_change_end with tid -1 + // from here it's not neccesary to continue + return 1; + break; } opt_flag = 1; -- cgit v1.2.3-60-g2f50