@extends('template.layout')
@section('title', 'creatures')
@section('submenuItem', 'creatures')
@section('content')
@php
include "./monsterXml.php";
$creature_name = $name;
$index = array_search($creature_name, $creatures);
$serverPath = '';
$allMonsterData = [];
foreach ($creatures as $index => $creature) {
$creatureName = $creature["name"];
$allMonsterData[$creatureName] = $index;
}
$formattedName = strtolower(str_replace(' ', '', $name));
$creaturesOutfit = [
"Amazon" => ["addons" => 0, "head" => 113, "body" => 120, "legs" => 95, "feet" => 115],
"Assassin" => ["addons" => 0, "head" => 95, "body" => 95, "legs" => 95, "feet" => 95],
"Bandit" => ["addons" => 0, "head" => 58, "body" => 40, "legs" => 24, "feet" => 95],
"Ferumbras" => ["addons" => 0, "head" => 57, "body" => 113, "legs" => 95, "feet" => 113],
"Wild Warrior" => ["addons" => 0, "head" => 38, "body" => 38, "legs" => 38, "feet" => 38],
"Black Knight" => ["addons" => 0, "head" => 95, "body" => 95, "legs" => 95, "feet" => 95],
"Fury" => ["addons" => 3, "head" => 94, "body" => 77, "legs" => 96, "feet" => 0],
"Hunter" => ["addons" => 0, "head" => 95, "body" => 116, "legs" => 120, "feet" => 115],
"Smuggler" => ["addons" => 0, "head" => 95, "body" => 0, "legs" => 113, "feet" => 115],
"Stalker" => ["addons" => 0, "head" => 97, "body" => 116, "legs" => 95, "feet" => 95],
"Valkyrie" => ["addons" => 0, "head" => 113, "body" => 38, "legs" => 76, "feet" => 96],
"Warlock" => ["addons" => 0, "head" => 0, "body" => 52, "legs" => 128, "feet" => 95],
];
$creatureId = $creatures[$allMonsterData[$creature_name]]["type"];
$creatureName = $creatures[$allMonsterData[$creature_name]]["name"];
if(array_key_exists($creatureName, $creaturesOutfit)){
$creatureAddon = $creaturesOutfit[$creatureName]["addons"];
$creatureHead = $creaturesOutfit[$creatureName]["head"];
$creatureBody = $creaturesOutfit[$creatureName]["body"];
$creatureLeg = $creaturesOutfit[$creatureName]["legs"];
$creatureFeet = $creaturesOutfit[$creatureName]["feet"];
$creatureSrcInit = "/outfits/animoutfit.php?id=$creatureId&addons=$creatureAddon&head=$creatureHead&body=$creatureBody&legs=$creatureLeg&feet=$creatureFeet";
} else {
$creatureSrcInit = "/outfits/animoutfit.php?id=$creatureId.gif";
}
$numeroTotalCasos = 100000;
$creaturesAlign = [
"Amazon", "Assassin", "Bandit", "Black Knight", "Ferumbras", "Fernfang", "Fury", "Hunter", "Monk", "Smuggler", "Stalker", "Valkyrie", "Warlock", "Wild Warrior", "Witch", "Dark Monk", "Barbarian Skullhunter", "Barbarian Headsplitter", "Dworc Fleshhunter", "Dworc Voodoomaster", "Lion", "Crocodile", "Bonebeast", "Bear", "Centipede", "Orc Rider", "Polar Bear", "Panda", "Serpent Spawn", "Tiger", "War Wolf", "Grinch", "Evil Grinch", "Caiman"
];
$creaturesAlign1 = [
"Ashmunrah", "Barbarian Bloodwalker", "Barbarian Brutetamer", "Dipthrah", "Kongra", "Lizard Templar", "Lizard Snakecharmer", "Lizard Sentinel", "Mahrdis", "Lich", "Merlkin", "Morguthis", "Omruc", "Rahemos", "Novice Pumpkinhead", "Pumpkinhead", "Thalas", "Terror Bird", "Tarantula", "Vashresamun", "Sibang", "Stone Golem", "Spit Nettle", "Cyclops","Carniphila",
];
$creaturesAlign2 = [
"Ancient Scarab", "Crystal Spider", "Grorlam", "The Old Widow",
];
$creaturesAlign3 = [
"Elephant", "Hyaena",
];
$creaturesAlign4 = [
"Bat", "Badger", "Banshee", "Black Sheep", "Butterfly", "Bug", "Cave Rat", "Chicken", "Helper Elf", "Cobra", "Crab", "Crypt Shambler", "Deathslicer", "Deer", "Demon Skeleton", "Dog", "Dharalion", "Dummy Target", "Dummy Target", "Dwarf Geomancer", "Dwarf Guard", "Dwarf Soldier", "Dwarf", "Dworc Venomsniper", "Elf Arcanist", "Elf Scout", "Elf", "Fire Devil", "Fire Elemental", "Flamingo", "Frost Troll", "Gamemaster", "Gargoyle", "Gazer", "General Murius", "Ghost", "Ghoul", "Goblin", "Hero", "Larva", "Mimic", "Minotaur Acher", "Minotaur Guard", "Minotaur Mage", "Minotaur", "Mummy", "Necromancer", "Necropharus", "Orc Berserker", "Orc Leader", "Orc Shaman", "Orc Spearman", "Orc Warlord", "Orc Warrior", "Orc", "Parrot", "Pig", "Poison Spider", "Priestess", "Butterfly", "Rabbit", "Rat", "RotWorm", "Scarab", "Scorpion", "Sheep", "Skeleton", "Skunk", "Slime", "Snake", "Spider", "Swamp Troll", "The Halloween Hare", "The Horned Fox", "Troll", "Vampire", "Wasp", "Winter Wolf", "Wolf",
];
$creaturesAlign5 = [
"Frost Dragon", "Frozemoth"
];
$style= "position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);";
if(in_array($creatureName, $creaturesAlign)){
$style = "position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%";
}
$monsterDeleted = [
"Flamethrower", "Magicthrower", "Plaguethrower", "Shredderthrower", "Grinch", "Evil Grinch", "Gamemaster", "Dummy Target", "Fury", "Dummy Target Ravenor", "Pumpkinhead", "Novice Pumpkinhead", "Dummy Elite", "Bring Me The Halloween"
];
@endphp
@php $columnCount = 0; @endphp
@foreach ($creatures as $index => $creature)
@php
if(in_array($creature["name"], $monsterDeleted)){
continue;
}
$formattedCreature = str_replace(' ', '', strtolower($creature["name"]));
$creatureName = $creature["name"];
$creatureId = $creature["type"];
if(in_array($creatureName, $creaturesAlign)){
$style = "position: absolute; left: 23px; top: 0px";
} elseif(in_array($creatureName, $creaturesAlign1)){
$style = "position: absolute; left: 28px; top: 2px";
} elseif(in_array($creatureName, $creaturesAlign2)){
$style = "position: absolute; left: 38px; top: 5px;";
} elseif(in_array($creatureName, $creaturesAlign3)){
$style = "position: absolute; left: 30px; top: -10px";
} elseif(in_array($creatureName, $creaturesAlign4)){
$style = "position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);";
} elseif(in_array($creatureName, $creaturesAlign5)){
$style = "position: absolute; left: 40%; top: 30%; transform: translate(-50%, -50%); width: 90px";
} else {
$style = "position: absolute; left: 50%; top: 35%; transform: translate(-50%, -50%)";
}
if(array_key_exists($creatureName, $creaturesOutfit)){
$creatureAddon = $creaturesOutfit[$creatureName]["addons"];
$creatureHead = $creaturesOutfit[$creatureName]["head"];
$creatureBody = $creaturesOutfit[$creatureName]["body"];
$creatureLeg = $creaturesOutfit[$creatureName]["legs"];
$creatureFeet = $creaturesOutfit[$creatureName]["feet"];
$creatureSrc = "$serverPath/outfits/animoutfit.php?id=$creatureId&addons=$creatureAddon&head=$creatureHead&body=$creatureBody&legs=$creatureLeg&feet=$creatureFeet";
} else {
$creatureSrc = "$serverPath/outfits/animoutfit.php?id=$creatureId.gif?v=1";
}
@endphp
@if ($columnCount % 5 == 0)
@endif
{{ $creatureName }}
@php $columnCount++; @endphp
@if (($columnCount) % 5 == 0 || $loop->last)
@endif
@endforeach
@php
$creaturesJson = json_encode($creatures);
@endphp
Health:
Experience:
Est. Max Dmg:
Total: /
Summonable:
Convinceable:
Mana Cost:
Sounds:
Abilities:
Immunities:
Avg NPC Loot Value:
?
{{-- {{ $creatures[$allMonsterData[$creature_name]]["avg_npc_loot_value"] }} --}}
Use instant travel system
No matter where you are heading, travel via the Ravenor transport system and you will always be there in a jiffy! Boats, magic carpets, steamships, astral bridges, elemental shrines - travelling has never been that convenient.
@endsection