Issue information

Issue ID
#2212
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Sep 11, 2008 16:43
Last Post
Hercules Elf Bot
Mar 5, 2012 9:04
Confirmation
N/A

Hercules Elf Bot - Sep 11, 2008 16:43

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

(TRUNK)
Hi everyone,

My server quest exp reward rate is set to 10 instead of 1.
This cause an issue on the novice ground quest.

When you talk to NPC Helper (Elmeen) the base level of your char can be superior to 7.
But in the script, the variable needed to enter in the fighting part of the training ground is set to a right value, only if you are lvl 7 or below:

CODE
new_1-2,17,182,5    script    Helper#nv    84,{
...
mes "[Elmeen]";
            mes "Haaaaaaa~!";
            if (nov_2nd_cos < 1) {
                if (BaseLevel == 1) {
                    set nov_2nd_cos,12;
                    getexp 9,0;
                }
                else if (BaseLevel == 2) {
                    set nov_2nd_cos,13;
                    getexp 16,0;
                }
                else if (BaseLevel == 3) {
                    set nov_2nd_cos,14;
                    getexp 25,0;
                }
                else if (BaseLevel == 4) {
                    set nov_2nd_cos,15;
                    getexp 36,0;
                }
                else if (BaseLevel == 5) {
                    set nov_2nd_cos,16;
                    getexp 77,0;
                }
                else if (BaseLevel == 6) {
                    set nov_2nd_cos,17;
                    getexp 112,0;
                }
                else if (BaseLevel == 7) {
                    set nov_2nd_cos,18;
                    getexp 153,0;
                }
            }
            next;


After that if you talk to the Entrance Guard, he never allows you to pass.
CODE
new_1-2,38,182,3    script    Entrance Guard#nv    92,{
    if (nov_2nd_cos == 0) {
        mes "[Muriel]";
        mes "I'm sorry, but I can't let anybody who hasn't been instructed on fighting enter the Field Combat Training Grounds.";
        next;
        mes "[Muriel]";
        mes "Why don't you speak to the Helper to the left side of this room first, so that you can receive some battle instruction?";
        close;
    }


I fixed this by replacing
else if (BaseLevel == 7) {
by
else if (BaseLevel >= 7) {

I think something better can be done.