Issue information

Issue ID
#1262
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Mar 25, 2008 3:24
Last Post
Hercules Elf Bot
Mar 25, 2008 3:24
Confirmation
N/A

Hercules Elf Bot - Mar 25, 2008 3:24

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

CODE
airplane_01,96,48,3    script    Man#Lyozien    868,{

This NPC doesn't appear. It's disabled as I can see because I cannot walk over those coords.

I search for this in quests_lighthalzen.txt, and I found that the quest "disables" this NPC when you have the quest var set to 18:

[codebox] else if(lhz_rekenber == 18)
{
mes "[Lyozien]";
mes "Okay, just like before, we";
mes "gotta get these packages to";
mes "Mr. Ahmam. When we arrive";
mes "in Izlude, find Mr. Ahman in";
mes "the Airport and tell him that";
mes "his packages have arrived.";
next;
mes "[Lyozien]";
mes "W-wait...";
mes "Did you hear that?";
mes "I heard--I think it's them.";
mes "Those thugs are back! Don't";
mes "let them damage the packages!";
close2;
set lhz_rekenber,19;
donpcevent "#bully2::OnEnter";
donpcevent "Man#Lyozien::OnStop";
end;
}[/codebox]
"OnStop" does that "disable". I go to "bully2::OnEnter", and we have this:

CODE
OnEnter:
    enablenpc "#bully2";
    initnpctimer;
    monster "airplane_01",96,53,"Thug",1592,1,"#bully2::OnMyMobDead";
    monster "airplane_01",87,47,"Thug",1592,1,"#bully2::OnMyMobDead";
    monster "airplane_01",97,43,"Thug",1592,1,"#bully2::OnMyMobDead";
    set .bullymobs,3;
    end;

The player has to kill those mobs before the time finishes (2 minutes). Although you don't kill the mobs, this line is executed: donpcevent "#packidentity::OnEnter";

That does an Enable of that invisible NPC, that's an OnTouch type:

[codebox]OnTouch:
if(lhz_rekenber == 19)
{
mes "^3355FFYou peek through the";
mes "slit in the wrapping";
mes "that is covering one";
mes "of the packages.^000000";
next;
mes "[" + strcharinfo(0) + "]";
mes "Oh... my God!";
mes "These are... These are";
mes "weapons of mass destruction.";
mes "There's even parts for assembling guardians, the kinds that usually";
mes "defend those Guild Castles...";
close2;
donpcevent "Man#Lyozien::OnEnter";
donpcevent "#packidentity::OnInit";
end;
}[/codebox]

Here's something wrong. If the player passes and he doesn't finish this part, Lyozien stays disabled until he wants, or (I imagine) until the server restart. I think that a "donpcevent "Man#Lyozien::OnEnter";" line should be put I don't know where, because actually someone who disconnects in this part causes that anyone from the server can finish this quest.

The name of this quest is "Noghalt ~ Shadow Quest (Rekenber Job Quest)". Here a Guide (Spanish).