Jump to content
  • 0

quest_17_2.txt bug


Ichigo HikariRO

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.03
  • Content Count:  17
  • Reputation:   0
  • Joined:  06/15/23
  • Last Seen:  

Hello.

In quest 17.2, if you talk to Crux, to take you to the last room, it may happen that you leave without talking to the last npc, and you can't go back in.

Original Code:

ba_in01,37,138,0    script    #ep172_main_evt03    HIDDEN_WARP_NPC,2,2,{
    end;
OnTouch:
    if (ep17_2_main == 34)
        cloakoffnpcself( "Crux#ep172_clx01" );
    end;
}

ba_in01,48,146,3    script(CLOAKED)    Crux#ep172_clx01    4_EP16_CRUX,{
    if (ep17_2_main == 34) {
        cutin "ep16_crux_findel02",2;
        mes "[Crux]";
        mes "It's cozy and nice here.";
        mes "There is also a beautiful rest area in the main house of the Nerius family.";
        mes "When we're off duty, we usually play dice together.";
        next;
        mes "[Crux]";
        mes "Well, shall we leave now?";
        next;
        if (select( "Let's go right now.", "Let's go a bit later." ) == 2) {
            mes "[Crux]";
            mes "I'll wait for you.";
            close3;
        }
        mes "[Crux]";
        mes "Then, let us go.";
        close2;
        cutin "",255;
        cloakonnpcself();
        warp "prt_cas",138,342;
        end;
    }
    end;
}

This problem can be easily solved.
I leave the repaired code in case you want to rectify it in the rAthena git.

Rectified code:

ba_in01,37,138,0    script    #ep172_main_evt03    HIDDEN_WARP_NPC,2,2,{
    end;
OnTouch:
    if ((ep17_2_main == 34) || (ep17_2_main == 35))
        cloakoffnpcself( "Crux#ep172_clx01" );
    end;
}

ba_in01,48,146,3    script(CLOAKED)    Crux#ep172_clx01    4_EP16_CRUX,{
    if ((ep17_2_main == 34) || (ep17_2_main == 35)) {
        cutin "ep16_crux_findel02",2;
        mes "[Crux]";
        mes "It's cozy and nice here.";
        mes "There is also a beautiful rest area in the main house of the Nerius family.";
        mes "When we're off duty, we usually play dice together.";
        next;
        mes "[Crux]";
        mes "Well, shall we leave now?";
        next;
        if (select( "Let's go right now.", "Let's go a bit later." ) == 2) {
            mes "[Crux]";
            mes "I'll wait for you.";
            close3;
        }
        mes "[Crux]";
        mes "Then, let us go.";
        close2;
        cutin "",255;
        cloakonnpcself();
        warp "prt_cas",138,342;
        end;
    }
    end;
}

I hope it works for you.
And it can be added to the source code to avoid future errors to users.
Thank you.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1191
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

is this issue already post at rathena github?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...