';
echo '';
echo '';
$var = getInfo('var',npc_groups,"WHERE id='$group'");
$job = getInfo(mode,npc_groups,"WHERE id='$group'");
echo "Current Job : ";
if ($job == "siege") {
$target = getInfo(target,npc_siege,"WHERE npc='$slave'");
$weapon = getInfo(weapon,npc_siege,"WHERE npc='$slave'");
$weaponType = getInfo(type,arsenals,"WHERE id='$weapon'");
$weaponType = getInfo(name,weapons,"WHERE id='$weaponType'");
$ammo = getInfo(ammo,npc_siege,"WHERE npc='$slave'");
$ammoType = getInfo(type,ammo,"WHERE id='$ammo'");
$ammoType = getInfo(name,ammunition,"WHERE id='$ammoType'");
$targetName = getInfo(name,places,"WHERE id='$target'");
if ($target) echo "Fire $weaponType [$weapon] ($ammoType) at $targetName ";
else echo "Man $weaponType [$weapon] ($ammoType) and return fire if attacked ";
}
if ($job == "protect") {
$protect = getInfo('var',npcs,"WHERE name='$slave'");
$protect = getInfo(username,users,"WHERE id='$protect'");
echo "Protect $protect ";
}
if ($job == "sell") {
echo "Automatically tend to the selling of items, if the npc is an employee in its current location ";
}
if ($job == "mine") {
echo "Automatically pick up every crude resource in a room, every 12 hours.";
}
if ($job == "wander") {
echo "Wander around aimlessly";
}
if ($job == "") {
echo "This NPC is not set to do anything";
}
echo '';
echo ' | ';
echo '
';
echo '