Issue information

Issue ID
#5294
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Feb 6, 2012 3:15
Last Post
Hercules Elf Bot
Apr 4, 2012 7:14
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Feb 6, 2012 3:15

Originally posted by [b]Poseid0n[/b]
Hello everybody,

in npc/jobs/3-1/warlock.txt

There is a problème with the windows to enter in the test room. The first time it works, but if a player wants to enter again, it fails.

the npc who enable the chat room for enter in the test room is never enable, so the initnpctimer fails, and the chat room never enabled again.

[CODE]
job3_war01,1,1,0 script Ebein#E 66,{
end;
OnInit:
disablenpc "Ebein#E";
end;
OnEnable:
initnpctimer;
end;
OnDisable:
disablenpc "Ebein#E";
end;
OnTimer2000:
mapannounce "job3_war02","Congratulations! You've successfully made a magic crystal.",bc_map; //Custom translation
end;
OnTimer3000:
mapannounce "job3_war02","The Magic Chamber is starting to fill with magic power.",bc_map;
end;
OnTimer6000:
donpcevent "Ebein#E::OnDisable";
stopnpctimer;
donpcevent "The chamber of magic::OnEnable";
end;
}
job3_war02,1,1,0 script Ebein#E2 66,{
end;
OnInit:
disablenpc "Ebein#E2";
end;
OnEnable:
initnpctimer;
end;
OnDisable:
disablenpc "Ebein#E2";
end;
OnTimer3000:
mapannounce "job3_war02","Congratulations! You've successfully made a magic crystal.",bc_map; //Custom translation
end;
OnTimer5000:
mapannounce "job3_war02","The Magic Chamber is starting to fill with magic power.",bc_map;
mapwarp "job3_war02","spl_in02",79,102;
end;
OnTimer6000:
donpcevent "Ebein#E2::OnDisable";
stopnpctimer;
end;
}
[/CODE]

Just put two rows for enable the two npc before the timer rows.

[CODE]
job3_war01,1,1,0 script Ebein#E 66,{
end;
OnInit:
disablenpc "Ebein#E";
end;
OnEnable:
enablenpc "Ebein#E";
initnpctimer;
end;
OnDisable:
disablenpc "Ebein#E";
end;
OnTimer2000:
mapannounce "job3_war02","Congratulations! You've successfully made a magic crystal.",bc_map; //Custom translation
end;
OnTimer3000:
mapannounce "job3_war02","The Magic Chamber is starting to fill with magic power.",bc_map;
end;
OnTimer6000:
donpcevent "Ebein#E::OnDisable";
stopnpctimer;
donpcevent "The chamber of magic::OnEnable";
end;
}
job3_war02,1,1,0 script Ebein#E2 66,{
end;
OnInit:
disablenpc "Ebein#E2";
end;
OnEnable:
enablenpc "Ebein#E2";
initnpctimer;
end;
OnDisable:
disablenpc "Ebein#E2";
end;
OnTimer3000:
mapannounce "job3_war02","Congratulations! You've successfully made a magic crystal.",bc_map; //Custom translation
end;
OnTimer5000:
mapannounce "job3_war02","The Magic Chamber is starting to fill with magic power.",bc_map;
mapwarp "job3_war02","spl_in02",79,102;
end;
OnTimer6000:
donpcevent "Ebein#E2::OnDisable";
stopnpctimer;
end;
}
[/CODE]

I hope I can help, an sorry for my english,

Poseidon

This post has been edited by Poseid0n on Feb 6, 2012 3:18

Hercules Elf Bot - Mar 22, 2012 7:41

Originally posted by [b]Vali[/b]
Confirmed, It's happening also in my server.

Hercules Elf Bot - Mar 24, 2012 22:48

Originally posted by [b]Vali[/b]
Poseidon,

With that fix the problem still is there and the chat of The chamber of magic is never enabled.

Vali~

This post has been edited by Vali on Mar 24, 2012 23:16

Hercules Elf Bot - Mar 26, 2012 9:30

Originally posted by [b]JayPee[/b]
Fixed in [rev=15793]

This post has been edited by Kenpachi on Apr 4, 2012 7:13