Issue information

Issue ID
#2074
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Aug 16, 2008 16:11
Last Post
Hercules Elf Bot
Apr 4, 2012 9:50
Confirmation
N/A

Hercules Elf Bot - Aug 16, 2008 16:11

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

I maked a mobkill count script, and it worked fine with old revisions.
But I updated to r13046, and now the 'killedrid' dont get the correct monster CLASS ID, its aways '0'.

Here is my script:
CODE
prt_fild08,0,0,0    script    QuestEssenciaContador    -1,{

    end;

OnNPCKillEvent:
    if(killedrid == 1002)
    {
        if((QE_Seq == 1) && (QE_Cont < 25))
        {
            set QE_Cont,QE_Cont+1;
            dispbottom "Você já matou "+QE_Cont+"/25 Porings.";
        }
        else
            if (getgmlevel() >= 20) dispbottom "Debug: 2"+killedrid;
    }
    else     if(killedrid == 1113)
    {
        if((QE_Seq == 3) && (QE_Cont < 50))
        {
            set QE_Cont,QE_Cont+1;
            dispbottom "Você já matou "+QE_Cont+"/50 Drops.";
        }
        else
            if (getgmlevel() >= 20) dispbottom "Debug: 2";
    }
    else
        if (getgmlevel() >= 20) dispbottom "Debug: 1 "+killedrid;
    end;
    
}


I puted some debbug msg toknow whats happen.
When i kill a poring (ID 1002), i got a "Debug: 1" with the 'killedrid' = 0.

There is a SS:
(IMG:http://img292.imageshack.us/img292/4145/bugeaql9.jpg)


There is a DB's ss:
(IMG:http://img530.imageshack.us/img530/8863/erledbp0.th.jpg)



This post has been edited by Raw Arkanis: Aug 19 2008, 04:31 PM

Hercules Elf Bot - Dec 10, 2011 1:56

Originally posted by [b]Ind[/b]
I checked the code and it seems it always returns killedrid with md->class_ (mob name id) so i guess it was fixed in a previous revision