From 4714f80db868134997efdfff750b5d43650b5171 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 11 Oct 2008 03:49:10 +0000 Subject: Commit magic patch v13 --- src/map/npc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/map/npc.h') diff --git a/src/map/npc.h b/src/map/npc.h index 63d7765..c843b56 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -28,6 +28,21 @@ struct npc_data* npc_name2id(const char *name); int npc_get_new_npc_id(void); +/** + * Spawns and installs a talk-only NPC + * + * \param message The message to speak. If message is NULL, the NPC will not do anything at all. + */ +struct npc_data *npc_spawn_text(int m, int x, int y, + int class, + char *name, + char *message); // message is strdup'd within + +/** + * Uninstalls and frees an NPC + */ +void npc_free(struct npc_data *npc); + void npc_addsrcfile(char *); void npc_delsrcfile(char *); int do_final_npc(void); -- cgit v1.2.3-60-g2f50