diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-31 17:21:24 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-31 17:21:24 +0000 |
commit | 653c08bb22079c851a785b88e0f1744c21f08d41 (patch) | |
tree | 7c0c2b0e4477be3b9bbf6bf1ae3ae51680f6f8ef /src/map/script.c | |
parent | 76da1004104ac328b5004883fc14aba3c24c9284 (diff) | |
download | hercules-653c08bb22079c851a785b88e0f1744c21f08d41.tar.gz hercules-653c08bb22079c851a785b88e0f1744c21f08d41.tar.bz2 hercules-653c08bb22079c851a785b88e0f1744c21f08d41.tar.xz hercules-653c08bb22079c851a785b88e0f1744c21f08d41.zip |
* Fixed a bug with InitTimer/StopTimer
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1358 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c index 980b552af..8a1672c06 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5524,9 +5524,9 @@ int buildin_cmdothernpc(struct script_state *st) // Added by RoVeRT int buildin_inittimer(struct script_state *st) // Added by RoVeRT { // struct npc_data *nd=(struct npc_data*)map_id2bl(st->oid); - // nd->lastaction=nd->timer=gettick(); - npc_do_ontimer(st->oid, map_id2sd(st->rid), 1); + + npc_do_ontimer(st->oid, 1); return 0; } @@ -5534,9 +5534,9 @@ int buildin_inittimer(struct script_state *st) // Added by RoVeRT int buildin_stoptimer(struct script_state *st) // Added by RoVeRT { // struct npc_data *nd=(struct npc_data*)map_id2bl(st->oid); - // nd->lastaction=nd->timer=-1; - npc_do_ontimer(st->oid, map_id2sd(st->rid), 0); + + npc_do_ontimer(st->oid, 0); return 0; } |