#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../map/pc.h"
#include "../map/clif.h"
#include "../common/HPMi.h"
#include "../common/HPMDataCheck.h" // should always be the last file included! (if you don't make it last, it'll intentionally break compile time)
HPExport struct hplugin_info pinfo = {
"townbanking", // Plugin name
SERVER_TYPE_MAP,// Which server types this plugin works with?
"0.1", // Plugin version
HPM_VERSION, // HPM Version (don't change, macro is automatically updated)
};
void clif_pBankCheck_pre(int fd, struct map_session_data* sd) {
if ( !map->list[sd->bl.m].flag.town ) {
clif->colormes( sd->fd, COLOR_RED, atcommand->msg(1483) );
hookStop();
// hookStopped();
}
return;
}
HPExport void plugin_init (void) {
map = GET_SYMBOL("map");
clif = GET_SYMBOL("clif");
atcommand = GET_SYMBOL("atcommand");
addHookPre("clif->pBankCheck", clif_pBankCheck_pre);
}