summaryrefslogtreecommitdiff
path: root/npc/sample
diff options
context:
space:
mode:
authorsamuray22 <samuray22@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-27 23:37:50 +0000
committersamuray22 <samuray22@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-27 23:37:50 +0000
commitaafdd20c6f7ea338999bbf7b42bbb948aa8c7a0b (patch)
tree503616605c809d340f40d807ad2a061d3c2db74a /npc/sample
parent8515d1011cc7dcbbd4db1b80af5496559f3cec87 (diff)
downloadhercules-aafdd20c6f7ea338999bbf7b42bbb948aa8c7a0b.tar.gz
hercules-aafdd20c6f7ea338999bbf7b42bbb948aa8c7a0b.tar.bz2
hercules-aafdd20c6f7ea338999bbf7b42bbb948aa8c7a0b.tar.xz
hercules-aafdd20c6f7ea338999bbf7b42bbb948aa8c7a0b.zip
* 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
Diffstat (limited to 'npc/sample')
-rw-r--r--npc/sample/npc_dynamic_shop.txt5
1 files changed, 3 insertions, 2 deletions
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];