Issue information

Issue ID
#4107
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 5, 2010 23:51
Last Post
Hercules Elf Bot
Mar 5, 2012 15:00
Confirmation
N/A

Hercules Elf Bot - Mar 5, 2010 23:51

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

CODE
pay_arche,86,129,6    script    Archer    732,{
    if (one_qset == 2) goto N_QuestStart;
    mes "[Kieth]";
    mes "Sorry can't talk, I'm a busy man, I'm waiting for my package.";
    close;
N_QuestStart:
    mes "[Kieth]";
    mes "Ahh, you must be from the Treasure Hunter Agensy. Do you have my bow??";
    mes " ";
    mes "Ahh, good,thank you for your time. Take this Treasure Token.";
    set one_qset,0;
    set On_Quest,0;
    delitem 1072,1;
    set #Treasure_Token,#Treasure_Token+1;
    close;
}


What if the player doesn't have the item 1072?

->

CODE
N_QuestStart:
    if (!countitem(1072)) { // Bugfix: il manquait ce check [No Healing]
        mes "[Kieth]";
        mes "Weren't you supposed to deliver me a bow? Where is it";
        close;
        }
    mes "[Kieth]";
    mes "Ahh, you must be from the Treasure Hunter Agensy. Do you have my bow??";
    mes " ";
    mes "Ahh, good,thank you for your time. Take this Treasure Token.";
    set one_qset,0;
    set On_Quest,0;
    delitem 1072,1;
    set #Treasure_Token,#Treasure_Token+1;
    close;