Issue information

Issue ID
#3437
Status
Fixed
Severity
Medium
Started
Hercules Elf Bot
Jul 28, 2009 19:59
Last Post
Hercules Elf Bot
Mar 5, 2012 14:22
Confirmation
N/A

Hercules Elf Bot - Jul 28, 2009 19:59

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

This NPC sets var '$@re_moc' to '2' when talking to it, but it requires this variable to be set to 1 to summon Satan. If you die before executing the 'close2', this variable is left set to 2 since you cannot keep talking to an NPC when dead and there is no way to reset it until a server reboot. So the quest is left bugged and no one can complete it since there is no way to summon Satan:
QUOTE
moc_fild21,178,239,0 script Group of Evil#edq 844,1,1,{
if (((rebirth_moc_edq == 4) || (rebirth_moc_edq == 7)) && ($@re_moc == 1)) {
set $@re_moc,2; // <======= This
mes "Awed by the time-space gap where darkness is given life, you instinctively step back.";
next;
mes "You can feel the power of the darkness rise from the gap where light and darkness are mingled.";
next;
mes "[" + strcharinfo(0) + "]";
mes "Wah...!";
close2;

donpcevent "Satan Summon#edq::OnEnable";
end;
}
else {
mes "Awed by the time-space gap where darkness is given life, you instinctively step back.";
next;
mes "You can feel the power of the darkness rise from the gap where light and darkness are mingled.";
close;
}

This variable should be set after 'donpcevent "Satan Summon#edq::OnEnable";' or better yet, after Satan is summoned by 'Satan Summon#edq':
QUOTE
moc_fild21,3,1,0 script Satan Summon#edq 844,{
OnInit:
disablenpc "Satan Summon#edq";
end;

OnEnable:
enablenpc "Satan Summon#edq";
initnpctimer;
monster "moc_fild21",177,217,"Satan Morroc",1916,1,"Satan Summon#edq::OnMyMobDead";
set $@re_moc,2; // <======== Set it here
end;




This post has been edited by Kazukin: Jul 28 2009, 01:03 PM