Issue information

Issue ID
#4098
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Mar 5, 2010 22:59
Last Post
Hercules Elf Bot
Mar 5, 2012 16:09
Confirmation
N/A

Hercules Elf Bot - Mar 5, 2010 22:59

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

Will I fill the whole first page with my reports? xd

Anyway:

CODE
    else if ((KielHyreQuest >= 6) || (KHToastGirlEnd == 3)) {
        //KHToastGirlEnd no longer needed-- deleting.
        set KHToastGirlEnd,0;
        mes "[Cezu]";
        mes "Hot, fresh and";
        mes "cruuuunchy toast!";
        mes "Come and get some!";
        close;
    }


if you leave the second part of the if statement, the players could repeat this part any time, so:

CODE
    else if (KielHyreQuest >= 6) {
        //KHToastGirlEnd no longer needed-- deleting.
        set KHToastGirlEnd,0;
        mes "[Cezu]";
        mes "Hot, fresh and";
        mes "cruuuunchy toast!";
        mes "Come and get some!";
        close;
    }


CODE
        else {
            cutin "kh_elly02",2;
            mes "[Elly]";
            mes "Hooray! Finally, I have";
            mes "everything I need! This is";
            mes "great! Oh, would you please";
            mes "give me a moment while I bake";
            mes "these cookies?  It shouldn't take";
            mes "long, so hold on just a bit.";
            delitem 519,7; //Milk
            delitem 548,2; //Cheese
            delitem 7182,5; //Cacao
            delitem 7487,1; //Tavern_Wine
            delitem 7488,1; //Delivery_Package
            set KielHyreQuest,8;
            //KHPubMasterEnd no longer needed-- deleting.
            set KHPubMasterEnd,0;
            emotion e_ho;
        }


You must erase one more variable here:

CODE
set KHToastGirlEnd,0;


It's done in another NPC above, but you can't be sure the player will talk to him again.

This post has been edited by NoH: Mar 5 2010, 04:39 PM