// 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, there 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;
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 == 5)
{
setq CandorQuest_HAS, 2;
}
getexp 5,0;
close;
}
005-1,69,90,0 script Charda 451,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,23,84,0 script Faris 451,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,84,21,0 script Ghada 445,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,38,58,0 script Latif 445,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-1,18,43,0 script Rasin 445,{
if (getq(CandorQuest_HAS) == 1)
{
CheckEnfant();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}