Issue information

Issue ID
#734
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jan 2, 2008 0:01
Last Post
Hercules Elf Bot
Feb 21, 2012 8:47
Confirmation
N/A

Hercules Elf Bot - Jan 2, 2008 0:01

Originally posted by [b]telekito[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=734

I don't know if I'm doing something wrong. But I try the sample script named npc_dynamic_shop.txt, and this doesn't do nothing from the "OnBuyItem" nor "OnSellItem" labels. I load the npc from the custom_scripts.conf, same as another script.

It must to avoid I could buy more than 10 red potions. I buy 15 of them, and I can buy 15, instead of 10 (which is what the script says).

I change the content of the FOR by this:

CODE
OnBuyItem:
for(set @i, 0; @i < getarraysize(@bought_nameid); set @i, @i + 1)
{
    mes "You have entered the FOR.";
    close;
}


It doesn't appear, and I remove directly the FOR bucle, except the "MES" command, and nothing occurs. ¿Is this feature running correctly, or am I using it wrongly? Thanks, and happy new year!!