From c70e4ff87c88500a1608a9af714e372f0d99f313 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sat, 3 Feb 2007 07:48:38 +0000 Subject: - Fixed the flag parameter not working on npcshopattach - Modified unit_walktoxy so it accepts flag &4. When used, this flag will delay the walk request if the character is unable to move because of the can't walk delay. This is used for player and homunculus walk requests. - Removed the delay walking code from clif.c as it's now handled by unit.c - Added a possible crash protection in clif_skillfail when the player is without a connection. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9782 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 9ae8e3d55..3cce74af1 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -12014,8 +12014,8 @@ int buildin_npcshopattach(struct script_state *st) char* npcname = conv_str(st, & (st->stack->stack_data[st->start+2])); int flag = 1; - if( script_hasdata(st,2) ) - flag = conv_num(st, script_getdata(st,2)); + if( script_hasdata(st,3) ) + flag = conv_num(st, script_getdata(st,3)); nd = npc_name2id(npcname); -- cgit v1.2.3-70-g09d2