Issue information

Issue ID
#2782
Status
Fixed
Severity
Medium
Started
Hercules Elf Bot
Feb 18, 2009 14:32
Last Post
Hercules Elf Bot
Mar 5, 2012 9:46
Confirmation
N/A

Hercules Elf Bot - Feb 18, 2009 14:32

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

There's an absurd part of the "Peace for Arunafeltz" quest, where near the beginning you need to run around the morroc ruins lake, and the quest npc appears by chance. Then you talk to it and it disappears again.

I have discovered a race condition in this npc when doing the quest with a friend.
1. Both of us managed to 'uncover' the hidden npc at about the same time.
2. So our aru_em variables were set to 6.
3. He talked to it, had his variable set to 7, and the npc hid itself again.
4. Now I'm stuck with aru_em = 6, and the npc will not unhide again due to how the script is written.

Consequence: I cannot finish the quest.
Well, unless someone else unhides the npc again while doing the quest, and I piggyback on his conversation while he's waiting on a next;.

PS: to be specific, it's this part:
CODE
npc/quests/quests_nameless.txt

moc_ruins,88,136,0    script    #ForeignMerchant2    -1,3,3,{
OnTouch:
    if (aru_em == 1) {
        set aru_em,2;
    }
    else if (aru_em == 5) {
        set .@nawara,rand(1,10);
        if (.@nawara < 5) {
            hideoffnpc "Foreign Merchant#aru2"; <- the place that unhides the npc
            set aru_em,6;

Could be patched to check for "( aru_em == 5 || aru_em == 6 )" instead, but perhaps there's a more correct way...


This post has been edited by theultramage: Feb 18 2009, 07:28 AM