- Joined
- Aug 11, 2008
- Messages
- 2,628
- Solutions
- 2
- Reaction score
- 240
Hey there.
I'm releasing this script (based upon http://otland.net/f83/monster-looktypes-31774/ by Swij) for the simplicity of finding a certain creature looktype/name.
How it works is basically that you write either the looktype of any creature and it will return the name, and if you write the name it will return the looktype.
Creature Images: http://www.speedy*****malware.localhost/files/21300787/monsters.7z
I'm releasing this script (based upon http://otland.net/f83/monster-looktypes-31774/ by Swij) for the simplicity of finding a certain creature looktype/name.
How it works is basically that you write either the looktype of any creature and it will return the name, and if you write the name it will return the looktype.
Creature Images: http://www.speedy*****malware.localhost/files/21300787/monsters.7z
PHP:
<?php
/* * * * * * * * * * * * * * * * */
/* Script by Absolute Mango */
/* Fixes by Carlos Armenta */
/* */
/* Picture Generator by Slaktaren */
/* * * * * * * * * * * * * * * * */
$creatures = array
(
2 => "Orc warlord",
3 => "War wolf",
4 => "Orc rider",
5 => "Orc",
6 => "Orc shaman",
7 => "Orc warrior",
8 => "Orc berserker",
9 => "Necromancer",
10 => "Yellow butterfly",
11 => "Massive water elemental",
12 => "Archdemon",
13 => "Black sheep",
14 => "Sheep",
15 => "Troll",
16 => "Bear",
17 => "Beholder",
18 => "Ghoul",
19 => "Slime",
20 => "Quara predator",
21 => "Rat",
22 => "Cyclops",
23 => "Minotaur mage",
24 => "Minotaur archer",
25 => "Minotaur",
26 => "Rotworm",
27 => "Wolf",
28 => "Snake",
29 => "Minotaur guard",
30 => "Spider",
31 => "Deer",
32 => "Dog",
33 => "Skeleton",
34 => "Dragon",
35 => "Demon",
36 => "Poison spider",
37 => "Demon skeleton",
38 => "Giant spider",
39 => "Dragon lord",
40 => "Fire devil",
41 => "Lion",
42 => "Polar bear",
43 => "Scorpion",
44 => "Wasp",
45 => "Bug",
46 => "Quara constrictor",
47 => "Quara hydromancer",
48 => "Ghost",
49 => "Fire elemental",
50 => "Orc spearman",
51 => "Green Djinn",
52 => "Winter wolf",
53 => "Frost troll",
54 => "Witch",
55 => "behemoth",
56 => "Cave rat",
57 => "Monk",
58 => "Priestess",
59 => "Orc leader",
60 => "Pig",
61 => "Goblin",
62 => "Elf",
63 => "Elf arcanist",
64 => "Elf Scout",
65 => "Mummy",
66 => "Dwarf geomancer",
67 => "Stone golem",
68 => "Vampire",
69 => "Dwarf",
70 => "Dwarf guard",
71 => "Dwarf soldier",
72 => "Quara mantassin",
73 => "Hero",
74 => "Rabbit",
75 => "Gamemaster",
76 => "Swamp troll",
77 => "Quara pincher",
78 => "Banshee",
79 => "Ancient scarab",
80 => "Blue djinn",
81 => "Cobra",
82 => "Larva",
83 => "Scarab",
84 => "Ormuc",
85 => "Morguthis",
86 => "thalas",
87 => "Dipthrah",
88 => "Arkhothep",
89 => "Mahrdis",
90 => "Vashresamun",
91 => "Ashmunrah",
92 => "Mimic",
93 => "Pirate marauder",
94 => "Hyaena",
95 => "Gargoyle",
96 => "Pirate cutthroat",
97 => "Pirate buccaneer",
98 => "Pirate corsair",
99 => "Lich",
100 => "Crypt shambler",
101 => "Bone beast",
102 => "Deathslicer",
103 => "Efreet",
104 => "Marid",
105 => "Badger",
106 => "Skunk",
107 => "Demon",
108 => "Elder beholder",
109 => "Gazer",
110 => "Yeti",
111 => "Chicken",
112 => "Crab",
113 => "Lizard templar",
114 => "Lizard Sentinel",
115 => "Lizard Snakecharmer",
116 => "Kongra",
117 => "Merlkin",
118 => "Sibang",
119 => "Crocodile",
120 => "Carniphila",
121 => "Hydra",
122 => "Bat",
123 => "Panda",
124 => "Centipede",
125 => "tiger",
126 => "Old Woman",
127 => "Old man",
128 => "Male citizen",
129 => "Male hunter",
130 => "Male mage",
131 => "Male knight",
132 => "Male nobleman",
133 => "Male summoner",
134 => "Male warrior",
136 => "Female citizen",
137 => "Female hunter",
138 => "Female mage",
139 => "Female Knight",
140 => "Female noblewoman",
141 => "Female Summoner",
142 => "Female warrior",
143 => "Male barbarian",
144 => "Male druid",
145 => "Male wizard",
146 => "Male oriental",
147 => "Female barbarian",
148 => "Female druid",
149 => "Female wizard",
150 => "Female oriental",
151 => "Male pirate",
152 => "Male assassin",
153 => "Male beggar",
154 => "Male shaman",
155 => "Female pirate",
156 => "Female assassin",
157 => "Female beggar",
158 => "Female shaman",
159 => "Elf",
160 => "Dwarf",
192 => "Carrion worm",
193 => "Enlightened of the cult",
194 => "Adept of the cult",
195 => "Pirate skeleton",
196 => "Pirate ghost",
197 => "Tortoise",
198 => "Thornback tortoise",
199 => "Mammoth",
200 => "Blood crab",
201 => "Demon",
202 => "Minotaur guard",
203 => "Elf arcanist",
204 => "Dragon lord",
205 => "Stone golem",
206 => "Monk",
207 => "Minotaur guard",
208 => "giant spider",
209 => "Necromancer",
210 => "Elder beholder",
211 => "Elephant",
212 => "Flamingo",
213 => "Purple butterfly",
214 => "Dworc voodoomaster",
215 => "Dworc fleshhunter",
216 => "Dworc venomsniper",
217 => "Parrot",
218 => "Terror bird",
219 => "Tarantula",
220 => "Serpent spawn",
221 => "Spit nettle",
222 => "Toad",
223 => "Seagull",
224 => "Green frog",
225 => "Monk",
226 => "Frog",
227 => "Blue butterfly",
228 => "Red butterfly",
229 => "Ferumbras",
230 => "Hand of cursed fate",
231 => "Undead dragon",
232 => "Lost soul",
233 => "Betrayed wraith",
234 => "Dark torturer",
235 => "Spectre",
236 => "Destroyer",
237 => "Diabolic imp",
238 => "Defiler",
239 => "Wyvern",
240 => "Hellhound",
241 => "Phantasm",
242 => "Blistering fire elemental",
243 => "Hellfire fighter",
244 => "Juggernaut",
245 => "Nightmare",
246 => "Blightwalker",
247 => "Plaguesmith",
248 => "Frost dragon",
249 => "Chakoya tribewarden",
250 => "Penguin",
251 => "Male norseman",
252 => "Female norsewoman",
253 => "Barbarian headsplitter",
254 => "Barbarian skullhunter",
255 => "Barbarian bloodwalker",
256 => "Braindeath",
257 => "Frost giant",
258 => "Husky",
259 => "Chakoya toolshaper",
260 => "Chakoya windcaller",
261 => "Ice golem",
262 => "Silver rabbit",
263 => "Crystal spider",
264 => "Barbarian brutetamer",
265 => "Frost giantess",
266 => "Comunity manager",
267 => "Swimming",
268 => "Male nightmare",
269 => "Female nightmare",
270 => "Female jester",
271 => "Dragon hatchling",
272 => "Dragon lord hatchling",
273 => "Male jester",
274 => "Squirrel",
275 => "Sea serpent",
276 => "Cat",
277 => "Cyclops smith",
278 => "Male brotherhood",
279 => "Female brotherhood",
280 => "Cyclops drone",
281 => "Troll champion",
282 => "Island troll",
283 => "Frost dragon hatchling",
284 => "Cockroach",
285 => "Massive earth elemental",
286 => "Water elemental",
287 => "Vampire overlord",
288 => "Female demonhunter",
289 => "Male demonhunter",
290 => "Massive energy elemental",
291 => "Wyrm",
292 => "mutated pumpkin",
293 => "Energy elemental",
294 => "Wisp",
295 => "Rotworm queen",
296 => "Goblin assassin",
297 => "Goblin scavanger",
298 => "Skeleton warrior",
299 => "Bog raider",
300 => "Grim reaper",
301 => "Earth elemental",
302 => "God",
303 => "Undead tortoise",
304 => "Worker golem",
305 => "Mutated rat",
306 => "Undead gladiator",
307 => "Mutated bat",
308 => "Werewolf",
309 => "Yalahari",
310 => "Haunted treeling",
311 => "Zombie",
312 => "Vampire bride",
313 => "Gozzler",
314 => "Acid blob",
315 => "Death blob",
316 => "Mercury blob",
317 => "Young sea serpent",
318 => "Mutated tiger",
319 => "Haunted spirit",
320 => "Nightstalker",
321 => "Nightmare scion",
322 => "Hellspawn",
323 => "Mutaded human",
324 => "Female yalaharian",
325 => "Male yalaharian",
326 => "War golem",
328 => "Male wedding",
329 => "Female wedding",
330 => "Medusa",
331 => "Queen",
332 => "King",
333 => "Medusa stone",
334 => "Draken Warmaster",
335 => "Female warmaster",
336 => "Male warmaster",
337 => "Lizard high guard",
338 => "Lizard legionnaire",
339 => "Lizard dragon priest",
340 => "Draken spellweaver",
341 => "Gnarlhound",
342 => "Orc marauder",
343 => "Lizard zaogun",
344 => "Lizard chosen",
346 => "Terramite",
347 => "Wailing widow",
348 => "Lancer beetle",
349 => "Insect swarm",
350 => "Sandcrawler",
351 => "Ghastly dragon"
);
if(isset($_POST['creature'])) {
foreach($creatures as $key => $value) {
$creatures[$key] = strtolower($value);
}
$creature = strtolower($_POST['creature']);
if(in_array($creature, $creatures) or array_key_exists((int)$creature, $creatures)) {
$looktype .= "<strong><font size='3'>" . (
(array_key_exists((int)$creature, $creatures)) ? ucwords($creatures[$creature]) : ((in_array($creature, $creatures))?ucwords($creature):NULL)
) . "</strong></font> looktype is <strong><font size='3'>" . (
(array_key_exists((int)$creature, $creatures)) ? $creature : array_search($creature, $creatures)
) . "</font></strong>";
$main_content .= '<img src="monsters/'.$_POST['creature'].'.gif">';
} else {
$errorlook .= "<font color='red'>The creature you requested does not exist.</font>";
}
}
$main_content .= '
<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr bgcolor='.$config['site']['vdarkborder'].'>
<td colspan="2"><b>Looktypes</b></td>
</td align="right"></td></tr>
<tr bgcolor='.$config['site']['lightborder'].'>
<form method="post" action="">
<td width="20%"><b>Creature name:</b></td><td><input type="text" name="creature" /></td></tr>
<tr bgcolor='.$config['site']['lightborder'].'><td><input type="submit" value="Get looktype" /></td><td>'.$errorlook.''.$looktype.'</td></tr>
</form></table><br />
<span class="last20"><center><font size="1"><a href="http://otarts.net/f104">BUG REPORTS!</a></font></center></span><br /><span class="last20"><center><font size="1"><a href="?subtopic=looktypes">REFRESH</a></font></center></span>';
?>
Last edited: