From c7b72fc94094e863763ecb3c4d8e818953925a2b Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 17 Mar 2006 13:42:14 +0000 Subject: - removed auto-attaching of player-run scripts in initnpctimer. You must use attachnpctimer! - updated juperos elevator script to invoke attachnpctimer as it should be. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5643 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index 4eeea13cb..e38e55c85 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5659,7 +5659,7 @@ int buildin_initnpctimer(struct script_state *st) else nd=(struct npc_data *)map_id2bl(st->oid); - nd->u.scr.rid = st->rid; + //nd->u.scr.rid = st->rid; //NO, use npcattachtimer if you want a player-attached timer! [Skotlex] npc_settimerevent_tick(nd,0); npc_timerevent_start(nd, st->rid); return 0; -- cgit v1.2.3-70-g09d2