From 95c1abdfcb62211557fdd14b463a014e87882a2d Mon Sep 17 00:00:00 2001 From: epoque11 Date: Wed, 14 Dec 2011 00:37:17 +0000 Subject: - Fixed floating shops being accessible from any location through 3rd party programs - TODO: needs amending for the walking glitch (bugreport:5016) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15099 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index ea8e26c23..88380af29 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13816,6 +13816,9 @@ BUILDIN_FUNC(callshop) if( nd->subtype == SHOP ) { + // flag the user as using a valid script call for opening the shop (for floating NPCs) + sd->state.callshop = 1; + switch( flag ) { case 1: npc_buysellsel(sd,nd->bl.id,0); break; //Buy window -- cgit v1.2.3-60-g2f50