// Author:
// Crazyfefe
005-1,52,81,0 script Ayasha NPC_PLAYER,{
function quest_findAllKids
{
setq CandorQuest_HAS, 1;
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Good luck !");
close;
}
.@has = getq(CandorQuest_HAS);
if (.@has == 0)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Hello! can you help me for find all kids?");
do
{
select
l("Yes!"),
menuaction(l("Quit"));
switch (@menu)
{
case 1:
quest_findAllKids;
break;
}
} while (@menu != 2);
}
else if (.@has == 1)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You don't find all of them yet.");
close;
}
else if (.@has == 2)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Thank you, here is your reward.");
narrator("You receive 30 exp.");
getexp 30, 0;
setq CandorQuest_HAS, 3;
close;
}
else
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Thank you for your help.");
close;
}
//closedialog;
//goodbye;
close;
OnInit:
.sex = G_MALE;
.distance = 3;
end;
}
function script CheckEnfant {
.questCheck = .questCheck + 1; // NOTE: Do we really want this as a **NPC** variable? These affects other players, right?
l("Oh Welcome then.");
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Oh! You found me. Well played!");
narrator("You receive 5 exp.");
if (.questCheck == 6)
{
setq CandorQuest_HAS, 2;
}
getexp 5,0;
close;
}
005-1,69,90,0 script Charda NPC_GUARD1,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,23,84,0 script Faris NPC_GUARD1,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,84,21,0 script Ghada NPC_HUMAN_M_ARTIS,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,38,58,0 script Latif NPC_HUMAN_M_ARTIS,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,18,43,0 script Rasin NPC_HUMAN_M_ARTIS,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,38,65,0 script Djinx NPC_GUARD1,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}