Issue information

Issue ID
#2558
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 21, 2008 0:21
Last Post
Hercules Elf Bot
Mar 5, 2012 9:27
Confirmation
N/A

Hercules Elf Bot - Dec 21, 2008 0:21

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

In the script the Helper#nv (npc/jobs/novice.txt:2218) script has this block of code:

[codebox] 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;
}
}[/codebox]

As you can see, it only supports up to level 7... But what if a player is over level 7? The least it could do is have one last else for that purpose, or tell the player to somehow warp to prontera to level around there. This of course should theoretically not be needed, but if a player is leveling in a field by Prontera only gets to level 8 then feels it's too hard to keep leveling here or forgot how to do something wand wants to take the full tutorial, they can't... So here's the simple fix:

[codebox] 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;
}
else set nov_2nd_cos,18;
}[/codebox]