Issue information

Issue ID
#2380
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Oct 23, 2008 0:45
Last Post
Hercules Elf Bot
Mar 5, 2012 9:18
Confirmation
N/A

Hercules Elf Bot - Oct 23, 2008 0:45

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

CODE
kh_kiehl01,17,39,0    script    Receiver    111,{
    if (.KHKilled < 1) {
        mes "^333333*BBBZZZ*^000000";
        if (KielHyreQuest == 74) {
            next;
            mes "[????]";
            mes "^333333*Bzzzz...*";
            mes "I've never seen you";
            mes "before. Did Father send";
            mes "you to kill me? We'll just";
            mes "see about that! Go ahead,";
            mes "try to find me, adventurer.^000000.";
            set KielHyreQuest,76;
        }
        close2;
        set .KHKilled,2;
        monster "kh_kiehl01",16,32,"Alicel",1739,1,"Receiver::OnMyMobDead";
        monster "kh_kiehl01",18,31,"Aliot",1740,1,"Receiver::OnMyMobDead";
        end;
    }

    else {
        end;
    }

OnMyMobDead:
    set .KHKilled,.KHKilled-1;
    if (.KHKilled < 1) {
        makeitem 7506,1,"this",19,36;
        set .KHKilled,0;
    }
    end;
}

In this piece of code, there's something wrong. A player has been in a case in which you talk to this NPC, but it doesn't summon any mob. At the same time, there aren't any mobs in the room. I loaded a script for using getvariableofnpc, and it showed that ".KHKilled = 1". I've been testing this, but I don't know how to reproduce it.