From aafdd20c6f7ea338999bbf7b42bbb948aa8c7a0b Mon Sep 17 00:00:00 2001 From: samuray22 Date: Tue, 27 Nov 2007 23:37:50 +0000 Subject: * Corrected some broken warp points. (bugreport:497) * Corrected a bug on Sample Dynamic Shop. (bugreport:421) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11829 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/sample/npc_dynamic_shop.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/sample') diff --git a/npc/sample/npc_dynamic_shop.txt b/npc/sample/npc_dynamic_shop.txt index ddc39dceb..1a1f174c9 100644 --- a/npc/sample/npc_dynamic_shop.txt +++ b/npc/sample/npc_dynamic_shop.txt @@ -2,13 +2,14 @@ prontera,181,200,4 script Dynamic Shop 123,{ callshop "dyn_shop1",0; +npcshopattach "dyn_shop1"; end; OnSellItem: for(set @i, 0; @i < getarraysize(@sold_nameid); set @i, @i + 1){ - if(countitem(@sold_nameid[@i]) < @sold_quantity[@i] || @sold_quantity[@i] <= 0){ + if(countitem(@sold_nameid[@i]) < @sold_quantity[@i] && @sold_quantity[@i] <= 0){ mes "omgh4x!"; - end; + close; } if(@sold_nameid[@i] == 501){ set $@rpotsleft, $@rpotsleft + @sold_quantity[@i]; -- cgit v1.2.3-70-g09d2