From 8b3b32e0007255bd7cde1a936bd006cc7e66f7b7 Mon Sep 17 00:00:00 2001 From: Napster Date: Sun, 6 Dec 2015 00:59:16 +0700 Subject: [PATCH] Fixed #503 * when use the callshop, then player can't move in the game. thank to @CairoLee --- src/map/script.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/map/script.c b/src/map/script.c index ef0c5eaefa..c2c17e8591 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -16395,6 +16395,9 @@ BUILDIN_FUNC(callshop) return SCRIPT_CMD_FAILURE; } + if( sd->st ) + sd->st->state = END; // Fixed can't move [Naspter] + if (nd->subtype == NPCTYPE_SHOP || nd->subtype == NPCTYPE_ITEMSHOP || nd->subtype == NPCTYPE_POINTSHOP) { // flag the user as using a valid script call for opening the shop (for floating NPCs) sd->state.callshop = 1;