Issue information

Issue ID
#4091
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 5, 2010 16:02
Last Post
Hercules Elf Bot
Mar 5, 2012 16:05
Confirmation
N/A

Hercules Elf Bot - Mar 5, 2010 16:02

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

CODE
que_bingo,49,125,0    script    plate1#bingo    139,1,1,{

OnInit:
    disablenpc "plate1#bingo";
    disablenpc "plate2#bingo";
    disablenpc "plate3#bingo";
    disablenpc "plate4#bingo";
    disablenpc "plate5#bingo";
    end;

OnTouch:
    set Zeny,Zeny -1000;


The script doesn't check if the player has at least 1000z. If he doesn't, the script stops, and you're basically screwed. You must add a check like:

CODE
OnTouch:
    if ( zeny < 1000 ) {
        mapannounce "que_bingo","Eukran: Oh it look like "+strcharinfo(0)+" doesn't have enough money. I'm sorry but I must cancel the game~",1,0xFFAB54;
        setnpctimer 201999,"start#bingo"; // manual reset
        end;
    }
    set Zeny,Zeny -1000;

Hercules Elf Bot - Dec 28, 2011 16:52

Originally posted by [b]Jguy[/b]
Another issue where AEGIS doesn't check for these things, as the check is built into the function of SetFeeZeny in AEGIS.

rAthena, however, does not have such ability. It should do the same thing, however.

This is fixed in [rev=15293]