void npc_parse_unknown_mapflag_pre(const char **name, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval) { if (!strcmp(*w3,"nohomunc")) { int16 m = map->mapname2mapid(*name); struct mapflag_data *mf; if (!( mf = getFromMAPD(&map->list[m], 0))) { CREATE(mf, struct mapflag_data, 1); addToMAPD(&map->list[m], mf, 0, true); }
void parse_noafk_mapflag(const char *name, char *w3, char *w4, const char* start, const char* buffer, const char* filepath, int *retval){ int16 m = map->mapname2mapid(name); if (!strcmpi(w3,"noafk")){ struct plugin_mapflag *mf_data; if ( !( mf_data = getFromMAPD(&map->list[m], 0) ) ) { CREATE(mf_data,struct plugin_mapflag,1); mf_data->noafk = 1; addToMAPD(&map->list[m], mf_data, 0, true); } mf_data->noafk = 1; hookStop(); }
void npc_parse_unknown_mapflag_pre(const char **name, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval) { int16 m = map->mapname2mapid(*name); if (strcmpi(*w3, "noafk") == 0) { struct plugin_mapflag *mf_data; if ((mf_data = getFromMAPD(&map->list[m], 0)) == NULL) { CREATE(mf_data, struct plugin_mapflag, 1); mf_data->noafk = 1; addToMAPD(&map->list[m], mf_data, 0, true); } mf_data->noafk = 1; hookStop(); }