// Evol scripts.
// Author:
// Crazyfefe
// Description:
// Blacksmith's assistant of Artis
// Variables:
// ArtisQuests_Enora
// Values:
// 0 Default.
// 1 BlackSmith quest delivered.
// 2 Chelios Quest given.
// 3 Chelios Quest done.
// 4 BlackSmith gave the sword.
function script CheckBarrel {
.questCheck = .questCheck + 1;
areamonster "005-3", 24, 34, 45, 42, "Cave Maggot", 1027, 1;
if (.questCheck == 8)
{
setq CandorQuest_Barrel, 1;
}
.@rand = rand(6);
if (.@rand == 0)
getitem Coal,1;
else if (.@rand == 1)
getitem PinkAntenna,1;
else if (.@rand == 2)
getitem CoinBag,1;
else if (.@rand == 3)
getitem Croconut,1;
else if (.@rand == 4)
getitem Bread,1;
else if (.@rand == 5)
getitem TolchiArrow,6;
}
005-3,24,36,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,24,39,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,29,37,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,35,34,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,38,34,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,44,40,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,38,41,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}
005-3,29,41,0 script Barrel NPC_NO_SPRITE,{
if (.questState == 0)
{
.questState = 1;
CheckBarrel();
}
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
end;
}