Issue information

Issue ID
#2498
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Nov 29, 2008 6:29
Last Post
Hercules Elf Bot
Mar 5, 2012 9:25
Confirmation
N/A

Hercules Elf Bot - Nov 29, 2008 6:29

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

I'm using the last stable.

There're 3 NPCs in Lighthalzen (only one is enabled). He's a guy who steal your money when you walk near him. If you go with less money than he wants to steal, then:

CODE
[2008-11-27 04:47:14][Error]: script:set_reg: failed to set param 'Zeny' to -97.
[2008-11-27 04:47:14][Debug]: Source (NPC): Suspicious Guy#lhz_02 at lighthalzen (220,169)


A fix could be this:

Change this:
CODE
set zeny,zeny-100;


To this:
CODE
if (Zeny < 100) set Zeny,0;
else set Zeny,Zeny-100;

There're more of those lines (with 100, 200, and 10 Zenys).

Or in case of not having enough Zeny, to put a 'end' instead of 'set Zeny,0;'. What you want.