Fixed #503
* when use the callshop, then player can't move in the game. thank to @CairoLee
This commit is contained in:
parent
0212d44bb4
commit
8b3b32e000
@ -16395,6 +16395,9 @@ BUILDIN_FUNC(callshop)
|
|||||||
return SCRIPT_CMD_FAILURE;
|
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) {
|
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)
|
// flag the user as using a valid script call for opening the shop (for floating NPCs)
|
||||||
sd->state.callshop = 1;
|
sd->state.callshop = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user