diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-17 19:41:29 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-17 19:41:29 +0000 |
commit | d398b01eb2dceba231b7c313e402817554c3a43d (patch) | |
tree | e58896ff84ea57f360a79a00693ad80d4321937b /src/map/npc.h | |
parent | c03b423beb53c93a24075516597617ca3f40a493 (diff) | |
download | hercules-d398b01eb2dceba231b7c313e402817554c3a43d.tar.gz hercules-d398b01eb2dceba231b7c313e402817554c3a43d.tar.bz2 hercules-d398b01eb2dceba231b7c313e402817554c3a43d.tar.xz hercules-d398b01eb2dceba231b7c313e402817554c3a43d.zip |
Added 2 (3) new atcommands:
* @unloadnpcfile <file path>
** e.g. "@unloadnpcfile npc/cities/alberta.txt" unloads all npcs created by the npc/cities/alberta.txt file.
* @addperm/@rmvperm <permission_name>
** e.g. "@addperm skill_unconditional" / "#rmvperm "player" skill_unconditional"
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16656 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.h')
-rw-r--r-- | src/map/npc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h index f5dd9011c..7198ad905 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -40,6 +40,7 @@ struct npc_data { unsigned size : 2; void* chatdb; // pointer to a npc_parse struct (see npc_chat.c) + char* path;/* path dir */ enum npc_subtype subtype; int src_id; union { @@ -169,10 +170,12 @@ int npc_cashshop_buylist(struct map_session_data *sd, int points, int count, uns * For the Secure NPC Timeout option (check config/Secure.h) [RR] **/ #if SECURE_NPCTIMEOUT -int npc_rr_secure_timeout_timer(int tid, unsigned int tick, int id, intptr_t data); + int npc_rr_secure_timeout_timer(int tid, unsigned int tick, int id, intptr_t data); #endif // @commands (script-based) int npc_do_atcmd_event(struct map_session_data* sd, const char* command, const char* message, const char* eventname); +bool npc_unloadfile( const char* path ); + #endif /* _NPC_H_ */ |