Mobs Search
HeliosClassic

From Lineage 2 Encyclopaedia
Jump to: navigation, search

To find the mobs, select the options you want:

{{#form:method=post|action=/index.php?action=purge}}

 {{#input:type=hidden|id=id-content|name=content|title=Mobs Search|value=}}
Mobs min. lvl.: name=level|id=id-level}}
Mobs max. lvl. (or leave empty if need a mobs of exact level): name=levelmax|id=id-levelmax}}
Mobs race: {{#input:type=select|name=race|id=id-race|*Select Race {{#dpl:category=Mobs_by_Race|format=,\n*%TITLE%,,}}}}
HP Multiplier: name=HP|id=id-HP|*Select Multiplier {{#dpl:category=Mobs_by_HP_Multiplier|format=,\n*%TITLE%,,}}}}
P. Def. level: name=pdef|id=id-pdef|*Select P. Def. level {{#dpl:category=Mobs_by_P_Def_level|format=,\n*%TITLE%,,}}}}
M. Def. level: name=mdef|id=id-mdef|*Select M. Def. level{{#dpl:category=Mobs_by_M_Def_level|format=,\n*%TITLE%,,}}}}
Elements Weakness: name=attribweak|id=id-attribweak|*Select Weakness{{#dpl:category=Mobs_by_Elements_Weakness|format=,\n*%TITLE%,,}}}}
Weapon Weakness: name=weaponweak|id=id-weaponweak|*Select Weakness{{#dpl:category=Mobs_by_Weapon_Weakness|format=,\n*%TITLE%,,}}}}
{{#input:type=submit|value=Search!|onClick=

var FirstParam = true; var ResultValue = ''; var SearchStr = ''; var formObj = self.document.getElementById('id-level'); var formObj1 = self.document.getElementById('id-levelmax'); if (formObj.value != '') { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } if ((formObj1.value == '') || (formObj.value == formObj1.value)) { ResultValue = ResultValue+'category={{#request:level}}_level_mobs'; SearchStr = SearchStr+''+formObj.value+' level mobs'; } else { if (parseInt(formObj.value) < parseInt(formObj1.value)) { ResultValue = ResultValue+'category={{#request:level}}_level_mobs'; for (var i = parseInt(formObj.value)+1; i <= parseInt(formObj1.value); i++) { ResultValue = ResultValue+'{{!}}'+i+'_level_mobs'; } SearchStr = SearchStr+'From '+formObj.value+' to '+formObj1.value+' level mobs'; } else { ResultValue = ResultValue+'category={{#request:levelmax}}_level_mobs'; for (var i = parseInt(formObj1.value)+1; i <= parseInt(formObj.value); i++) { ResultValue = ResultValue+'{{!}}'+i+'_level_mobs'; } SearchStr = SearchStr+'From '+formObj1.value+' to '+formObj.value+' level mobs'; } } } var formObj = self.document.getElementById('id-race'); if (!formObj.options[0].selected) { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } ResultValue = ResultValue+'category={{#request:race}}'; SearchStr = SearchStr+formObj.value; } var formObj = self.document.getElementById('id-HP'); if (!formObj.options[0].selected) { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } ResultValue = ResultValue+'category={{#request:HP}}'; SearchStr = SearchStr+formObj.value; } var formObj = self.document.getElementById('id-pdef'); if (!formObj.options[0].selected) { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } ResultValue = ResultValue+'category={{#request:pdef}}'; SearchStr = SearchStr+formObj.value; } var formObj = self.document.getElementById('id-mdef'); if (!formObj.options[0].selected) { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } ResultValue = ResultValue+'category={{#request:mdef}}'; SearchStr = SearchStr+formObj.value; } var formObj = self.document.getElementById('id-attribweak'); if (!formObj.options[0].selected) { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } ResultValue = ResultValue+'category={{#request:attribweak}}'; SearchStr = SearchStr+formObj.value; } var formObj = self.document.getElementById('id-weaponweak'); if (!formObj.options[0].selected) { if (FirstParam) { ResultValue = ResultValue+'{{#dpl:'; FirstParam = false; } else { ResultValue = ResultValue+'|'; SearchStr = SearchStr+', '; } ResultValue = ResultValue+'category={{#request:weaponweak}}'; SearchStr = SearchStr+formObj.value; } if (!FirstParam) { ResultValue = ResultValue+'}}'; } if (SearchStr != '') { SearchStr = '<h3>Search Conditions: '+SearchStr+' </h3>'; } ResultValue = ResultValue+'';

var formObj = self.document.getElementById('id-content'); formObj.value = SearchStr+ResultValue;

}}

{{#formend:}}