//===== eAthena Script =======================================
//= Halloween Events
//===== By ===================================================
//= Izumi
//===== Version ==============================================
//= 1.0
//===== Compatible With ======================================
//= eAthena SVN
//===== Description ==========================================
//= Collecting all the Halloween Events in one script.
//===== Comments =============================================
//= 1.0 Finding Ludes added.
//============================================================
// Finding Ludes
//============================================================
//=====Enabling Ludes=====
//========================
ecl_in03,248,81,5 script Enabler#a1 1509,{
if (gettime(3)==18) {
enablenpc "Lude#a1";
enablenpc "Lude#b1";
enablenpc "Lude#c1";
end;
}
else {
end;
}
}
//Ludea1
prontera,205,266,3 script Lude#a1 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#a2::OnEnable";
donpcevent "Lude#a1::OnDisable";
}
else {
donpcevent "Lude#a3::OnEnable";
donpcevent "Lude#a1::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#a2::OnEnable";
donpcevent "Lude#a1::OnDisable";
}
else {
donpcevent "Lude#a3::OnEnable";
donpcevent "Lude#a1::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#a1";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 205,271;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#a1";
end;
}
else {
disablenpc "Lude#a1";
}
}
//Ludea2
prontera,84,210,2 script Lude#a2 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#a1::OnEnable";
donpcevent "Lude#a2::OnDisable";
}
else {
donpcevent "Lude#a3::OnEnable";
donpcevent "Lude#a2::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#a1::OnEnable";
donpcevent "Lude#a2::OnDisable";
}
else {
donpcevent "Lude#a3::OnEnable";
donpcevent "Lude#a2::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#a2";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 84,215;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#a2";
end;
}
else {
disablenpc "Lude#a2";
}
}
//Ludea3
prontera,171,138,4 script Lude#a3 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#a1::OnEnable";
donpcevent "Lude#a3::OnDisable";
}
else {
donpcevent "Lude#a2::OnEnable";
donpcevent "Lude#a3::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#a1::OnEnable";
donpcevent "Lude#a3::OnDisable";
}
else {
donpcevent "Lude#a2::OnEnable";
donpcevent "Lude#a3::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#a2";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 171,133;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#a3";
end;
}
else {
disablenpc "Lude#a3";
}
}
//Ludeb1
prontera,102,102,4 script Lude#b1 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#b2::OnEnable";
donpcevent "Lude#b1::OnDisable";
}
else {
donpcevent "Lude#b3::OnEnable";
donpcevent "Lude#b1::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#b2::OnEnable";
donpcevent "Lude#b1::OnDisable";
}
else {
donpcevent "Lude#b3::OnEnable";
donpcevent "Lude#b1::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#b1";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 102,97;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#b1";
end;
}
else {
disablenpc "Lude#b1";
}
}
//Ludeb2
prontera,238,127,2 script Lude#b2 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#b1::OnEnable";
donpcevent "Lude#b2::OnDisable";
}
else {
donpcevent "Lude#b3::OnEnable";
donpcevent "Lude#b2::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#b1::OnEnable";
donpcevent "Lude#b2::OnDisable";
}
else {
donpcevent "Lude#b3::OnEnable";
donpcevent "Lude#b2::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#b2";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 233,127;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#b2";
end;
}
else {
disablenpc "Lude#b2";
}
}
//Ludeb3
prontera,238,127,2 script Lude#b3 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#b1::OnEnable";
donpcevent "Lude#b3::OnDisable";
}
else {
donpcevent "Lude#b2::OnEnable";
donpcevent "Lude#b3::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#b1::OnEnable";
donpcevent "Lude#b3::OnDisable";
}
else {
donpcevent "Lude#b2::OnEnable";
donpcevent "Lude#b3::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#b3";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 233,127;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#b3";
end;
}
else {
disablenpc "Lude#b3";
}
}
//Ludec1
prontera,40,234,2 script Lude#c1 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#c2::OnEnable";
donpcevent "Lude#c1::OnDisable";
}
else {
donpcevent "Lude#c3::OnEnable";
donpcevent "Lude#c1::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#c2::OnEnable";
donpcevent "Lude#c1::OnDisable";
}
else {
donpcevent "Lude#c3::OnEnable";
donpcevent "Lude#c1::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#c1";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 40,239;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#c1";
end;
}
else {
disablenpc "Lude#c1";
}
}
//Ludec2
prontera,138,252,5 script Lude#c2 1509,{
if (isnight()) {
if (checkquest(90001) != -1) {
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#c1::OnEnable";
donpcevent "Lude#c2::OnDisable";
}
else {
donpcevent "Lude#c3::OnEnable";
donpcevent "Lude#c2::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#c1::OnEnable";
donpcevent "Lude#c2::OnDisable";
}
else {
donpcevent "Lude#c3::OnEnable";
donpcevent "Lude#c2::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#c2";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 138,257;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#c2";
end;
}
else {
disablenpc "Lude#c2";
}
}
//Ludec3
prontera,213,304,4 script Lude#c3 1509,{
if (isnight()) {
if (checkquest(90001)>-1)
mes "^0000FFThe Lude seems to be totally lost: as you slowly approach it, it notices you and slowly disappears.^000000";
next;
set find_ludes,find_ludes+1;
if (find_ludes == 3) {
mes "["+strcharinfo(0)+"]";
mes "Something fishy is going on here... I should bear this in mind and stay aware.";
setquest 90001;
next;
mes "["+strcharinfo(0)+"]";
mes "Oh, what is this?";
mes "^0000FFYou have found a freshly baked Pumpkin Pie. It might not a good idea to eat it.^000000";
getitem 20001,1; //Pumpkin Pie (modified)
set .@pk,rand(1,2);
if (.@pk == 1) {
donpcevent "Lude#c1::OnEnable";
donpcevent "Lude#c3::OnDisable";
}
else {
donpcevent "Lude#c2::OnEnable";
donpcevent "Lude#c3::OnDisable";
}
close;
}
else {
set .@pk,rand(1,2);
mes "["+strcharinfo(0)+"]";
mes "Woah... what is that?";
mes "Maybe there are some more out here...";
close;
if (.@pk == 1) {
donpcevent "Lude#c1::OnEnable";
donpcevent "Lude#c3::OnDisable";
}
else {
donpcevent "Lude#c2::OnEnable";
donpcevent "Lude#c3::OnDisable";
}
}
}
else {
mes "^0000FFYou notice a small, pale flash as you cast a quick glance from the corner of your eye: but as you turn your head to it, you can't see anything.^000000";
next;
mes "["+strcharinfo(0)+"]";
mes "Ludes are driving me crazy...";
mes "I wonder why they are here.";
close;
}
OnEnable:
enablenpc "Lude#c3";
end;
OnDisable:
initnpctimer;
npcspeed 400;
npcwalkto 208,304;
end;
OnTimer1000:
emotion e_hlp;
end;
OnTimer1800:
stopnpctimer;
npcstop;
misceffect 16;
disablenpc "Lude#c3";
end;
}
else {
disablenpc "Lude#c3";
}
}