summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-02 21:26:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-02 21:26:53 +0000
commit68503609ec28be3fa2c4eb0d66b0ce0ea8815cee (patch)
tree9f8c79c6424a9030baf7b6afce60bdbe2dfb1176 /src/map/map.h
parentcba97f4deb4a9bb62da4ab7748926fd5319090d0 (diff)
downloadhercules-68503609ec28be3fa2c4eb0d66b0ce0ea8815cee.tar.gz
hercules-68503609ec28be3fa2c4eb0d66b0ce0ea8815cee.tar.bz2
hercules-68503609ec28be3fa2c4eb0d66b0ce0ea8815cee.tar.xz
hercules-68503609ec28be3fa2c4eb0d66b0ce0ea8815cee.zip
- Improved the NPC timer system to enable to have multiple timers going on at a time with different players attached to each. Now npc event timers are of two types: attached or global. The global timers don't have a player attached and can be started/halted by anyone. The character timers have a player attached, and they can only be stopped by a script that has the same player attached.
- Now player attached scripts will auto-abort when the atteched player quits the map server. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5167 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h
index b41f4f1f0..960e99424 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -491,6 +491,7 @@ struct map_session_data {
unsigned char *npc_script,*npc_scriptroot;
int npc_scriptstate;
char npc_str[256];
+ int npc_timer_id; //For player attached npc timers. [Skotlex]
unsigned int chatID;
time_t idletime;
@@ -786,7 +787,7 @@ struct npc_data {
unsigned char *script;
short xs,ys;
int guild_id;
- int timer,timerid,timeramount,nexttimer,rid;
+ int timer,timerid,timeramount,rid;
unsigned int timertick;
struct npc_timerevent_list *timer_event;
int label_list_num;