{assign var="page_title" value="Spawns bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; NPCs bearbeiten &raquo; Eintrag bearbeiten"}
{assign var="page_title_site" value="NPCs bearbeiten"}

{form_errors error_list=$form_errors}
<form method="post" action="npcs.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="edit" value="{$formvalues.edit}" />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Allgemein</th>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Reittier</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="reittier_id" class="list_form">
                    <option value="NULL"></option>
                    {html_options options=$npcids selected=$formvalues.reittier_id}
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Kleidungsset</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="kleidungsset" class="list_form">
                    <option value="NULL"></option>
                    {html_options options=$kleidungssetids selected=$formvalues.kleidungsset}
                </select>
	        </td>
	    </tr>
		<tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Futterliste</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="futterliste" class="list_form">
                    <option value="NULL"></option>
                    {html_options options=$futterlistenids selected=$formvalues.futterliste}
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Emoteset</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="emote_set" class="list_form">
                    <option value="NULL"></option>
                    {html_options options=$emotesetids selected=$formvalues.emote_set}
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>XP-Klasse</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="xp_klassen" class="list_form">
                    {html_options options=$xpklassenids selected=$formvalues.xp_klassen}
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>KI</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="kis_id" class="list_form">
                    {html_options options=$kiids selected=$formvalues.kis_id}
                </select>
	        </td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Name</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="name" size="30" maxlength="30" class="input_form" value="{$formvalues.name}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Name (Interface)</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="name_interface" size="30" maxlength="100" class="input_form" value="{$formvalues.name_interface}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Beschreibung</b></td>
	        <td bgcolor="{$style.bg_a}"><textarea name="beschreibung" cols="40" rows="6">{$formvalues.beschreibung}</textarea></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Geschlecht</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="geschlecht" class="list_form">
                    <option value="m"{if $formvalues.geschlecht == "m"} selected="selected"{/if}>Mnnlich</option>
                    <option value="w"{if $formvalues.geschlecht == "w"} selected="selected"{/if}>Weiblich</option>
                    <option value="s"{if $formvalues.geschlecht == "s"} selected="selected"{/if}>Sachlich</option>
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Body ID</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="bodyid" size="6" maxlength="11" class="input_form" value="{$formvalues.bodyid}" /></td>
	    </tr>
	     <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Anim</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	Hhe: <input type="text" name="animation_hoehe" size="6" maxlength="5" class="input_form" value="{$formvalues.animation_hoehe}" />
	        	Breite: <input type="text" name="animation_breite" size="6" maxlength="5" class="input_form" value="{$formvalues.animation_breite}" />
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Farbe</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="farbe" size="6" maxlength="11" class="input_form" value="{$formvalues.farbe}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Farbe (Sprache)</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="farbe_speech" size="6" maxlength="11" class="input_form" value="{$formvalues.farbe_speech}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Farbe (Emote)</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="farbe_emote" size="6" maxlength="11" class="input_form" value="{$formvalues.farbe_emote}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Basis Sound ID</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="basis_sound_id" size="6" maxlength="11" class="input_form" value="{$formvalues.basis_sound_id}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Freigeschalten</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="freigeschalten" class="list_form">
                    <option value="0">Nein</option>
                    <option value="1"{if $formvalues.freigeschalten} selected="selected"{/if}>Ja</option>
                </select>
	        </td>
	    	<td></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Status</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="status[]" class="list_form" multiple="multiple">
                    <option value="Neu"{if (!empty($formvalues.status) && in_array("Neu", $formvalues.status)) || !isset($formvalues)} selected="selected"{/if}>Neu</option>
                    <option value="ToDo"{if (!empty($formvalues.status) && in_array("ToDo", $formvalues.status))} selected="selected"{/if}>ToDo</option>
                    <option value="Balancing"{if (!empty($formvalues.status) && in_array("Balancing", $formvalues.status))} selected="selected"{/if}>Balancing</option>
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Kommentar</b></td>
	        <td bgcolor="{$style.bg_a}"><textarea name="kommentar" cols="40" rows="6">{$formvalues.kommentar}</textarea></td>
	    </tr>
	    
	     <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Reiten</th>
        </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Reitbar</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="reitbar" class="list_form">
                    <option value="0">Nein</option>
                    <option value="1"{if $formvalues.reitbar} selected="selected"{/if}>Ja</option>
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>ItemID</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="reit_itemid" size="7" maxlength="7" class="input_form" value="{$formvalues.reit_itemid}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Delay gehen</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="delay_gehen" size="4" maxlength="4" class="input_form" value="{$formvalues.delay_gehen}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Delay laufen</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="delay_rennen" size="4" maxlength="4" class="input_form" value="{$formvalues.delay_rennen}" /></td>
	    </tr>
	    
	    <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Stats</th>
        </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>kl min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="kl_min" size="3" maxlength="3" class="input_form" value="{$formvalues.kl_min}" />
				/
				<input type="text" name="kl_max" size="3" maxlength="3" class="input_form" value="{$formvalues.kl_max}" />
	        </td>
	    </tr>
	    
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>in min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="in_min" size="3" maxlength="3" class="input_form" value="{$formvalues.in_min}" />
				/
				<input type="text" name="in_max" size="3" maxlength="3" class="input_form" value="{$formvalues.in_max}" />
			</td>
	    </tr>
	    
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>ge min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="ge_min" size="3" maxlength="3" class="input_form" value="{$formvalues.ge_min}" />
				/
				<input type="text" name="ge_max" size="3" maxlength="3" class="input_form" value="{$formvalues.ge_max}" />
			</td>
	    </tr>
	    
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>ff min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="ff_min" size="3" maxlength="3" class="input_form" value="{$formvalues.ff_min}" />
				/
				<input type="text" name="ff_max" size="3" maxlength="3" class="input_form" value="{$formvalues.ff_max}" />
			</td>
	    </tr>
	    
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>kk min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="kk_min" size="3" maxlength="3" class="input_form" value="{$formvalues.kk_min}" />
				/
				<input type="text" name="kk_max" size="3" maxlength="3" class="input_form" value="{$formvalues.kk_max}" />
			</td>
	    </tr>
	    
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>ko min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="ko_min" size="3" maxlength="3" class="input_form" value="{$formvalues.ko_min}" />
				/
				<input type="text" name="ko_max" size="3" maxlength="3" class="input_form" value="{$formvalues.ko_max}" />
			</td>
	    </tr>
	    
	    <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Skills</th>
        </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Skill 0 id/min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<select name="skill_0_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_0_id}
                </select>
				<input type="text" name="skill_0_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_0_min}" />
				/
				<input type="text" name="skill_0_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_0_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Skill 1 id/min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<select name="skill_1_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_1_id}
                </select>
				<input type="text" name="skill_1_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_1_min}" />
				/
				<input type="text" name="skill_1_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_1_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Skill 2 id/min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<select name="skill_2_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_2_id}
                </select>
				<input type="text" name="skill_2_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_2_min}" />
				/
				<input type="text" name="skill_2_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_2_max}" />

			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Skill 3 id/min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<select name="skill_3_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_3_id}
                </select>
				<input type="text" name="skill_3_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_3_min}" />

				/
				<input type="text" name="skill_3_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_3_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Skill 4 id/min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<select name="skill_4_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_4_id}
                </select>

				<input type="text" name="skill_4_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_4_min}" />
				/
				<input type="text" name="skill_4_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_4_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Skill 5 id/min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<select name="skill_5_id" class="list_form">

                    {html_options options=$skillids selected=$formvalues.skill_5_id}
                </select>
				<input type="text" name="skill_5_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_5_min}" />
				/
				<input type="text" name="skill_5_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_5_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Skill 6 id/min/max</b></td>

	        <td bgcolor="{$style.bg_b}">
				<select name="skill_6_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_6_id}
                </select>
				<input type="text" name="skill_6_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_6_min}" />
				/
				<input type="text" name="skill_6_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_6_max}" />
			</td>
	    </tr>
	    <tr>

	        <td align="right" bgcolor="{$style.bg_a}"><b>Skill 7 id/min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<select name="skill_7_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_7_id}
                </select>
				<input type="text" name="skill_7_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_7_min}" />
				/
				<input type="text" name="skill_7_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_7_max}" />
			</td>

	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Skill 8 id/min/max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<select name="skill_8_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_8_id}
                </select>
				<input type="text" name="skill_8_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_8_min}" />
				/
				<input type="text" name="skill_8_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_8_max}" />

			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Skill 9 id/min/max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<select name="skill_9_id" class="list_form">
                    {html_options options=$skillids selected=$formvalues.skill_9_id}
                </select>
				<input type="text" name="skill_9_min" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_9_min}" />

				/
				<input type="text" name="skill_9_max" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_9_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Skill Rest</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="skill_rest" size="3" maxlength="3" class="input_form" value="{$formvalues.skill_rest}" /></td>
	    </tr>
	    
	    
	    <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Weitere F&auml;higkeiten</th>
        </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Kann schwimmen</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="kann_schwimmen" class="list_form">
                    <option value="0">Nein</option>
                    <option value="1"{if $formvalues.kann_schwimmen} selected="selected"{/if}>Ja</option>
                </select>
	        </td>
	    	<td></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Virt. R&uuml;stungswert</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="virtueller_ruestungswert" size="5" maxlength="5" class="input_form" value="{$formvalues.virtueller_ruestungswert}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Sichtweite</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="sichtweite" size="3" maxlength="3" class="input_form" value="{$formvalues.sichtweite}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>H&ouml;rweite</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="hoerweite" size="3" maxlength="3" class="input_form" value="{$formvalues.hoerweite}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Lebensenergie Min/Max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="lebensenergie_min" size="5" maxlength="5" class="input_form" value="{$formvalues.lebensenergie_min}" />
				/
				<input type="text" name="lebensenergie_max" size="5" maxlength="5" class="input_form" value="{$formvalues.lebensenergie_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Ausdauer Min/Max</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="ausdauer_min" size="5" maxlength="5" class="input_form" value="{$formvalues.ausdauer_min}" />
				/
				<input type="text" name="ausdauer_max" size="5" maxlength="5" class="input_form" value="{$formvalues.ausdauer_max}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Geschwindigkeit Normal/Max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="geschwindigkeit_normal" size="5" maxlength="5" class="input_form" value="{$formvalues.geschwindigkeit_normal}" />
				/
				<input type="text" name="geschwindigkeit_max" size="5" maxlength="5" class="input_form" value="{$formvalues.geschwindigkeit_max}" />
			</td>
	    </tr>
	    
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Regen. Trefferpunkte</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="regeneration_trefferpunkte" size="5" maxlength="5" class="input_form" value="{$formvalues.regeneration_trefferpunkte}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Regen. Ausdauer</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="regeneration_ausdauer" size="5" maxlength="5" class="input_form" value="{$formvalues.regeneration_ausdauer}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Schaden Min/Max</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="schaden_min" size="5" maxlength="5" class="input_form" value="{$formvalues.schaden_min}" />
				/
				<input type="text" name="schaden_max" size="5" maxlength="5" class="input_form" value="{$formvalues.schaden_max}" />
			</td>
	    </tr>  
	    
	    <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Z&auml;hmen</th>
        </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Z&auml;hmen-Tierkunde</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="zaehmen_tierkunde" size="5" maxlength="5" class="input_form" value="{$formvalues.zaehmen_tierkunde}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Z&auml;hmen-Z&auml;hmen</b></td>
	        <td bgcolor="{$style.bg_a}">
				<input type="text" name="zaehmen_zaehmen" size="5" maxlength="5" class="input_form" value="{$formvalues.zaehmen_zaehmen}" />
			</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Z&auml;hmen-Rezept</b></td>
	        <td bgcolor="{$style.bg_b}">
				<input type="text" name="zaehmen_rezept" size="5" maxlength="5" class="input_form" value="{$formvalues.zaehmen_rezept}" />
			</td>
	    </tr>
    </table>
    <br />
    <input type="submit" name="send_form" class="button_form" value="&auml;ndern..." />
</form>

<br /><br />
<fieldset>
	<legend>Lootlisten-Verk&uuml;npfungen</legend>
	
	<p>
		<a href="npcs.php?newlink=1&amp;edit={$formvalues.edit}&amp;region={$formvalues.region}&amp;{$SID}">Neue Verk&uuml;npfung</a><br />
	</p>
	
	<table>
	    <tr bgcolor="{$style.bg_2}">
	    	<th>Lootliste</th>
	        <th>Aktion</th>
	    </tr>
	    {foreach from=$links item=row}
	    <tr>
	    	<td>{$row.name}</td>
	        <td><a href="npcs.php?dellink={$row.lootlisten}&amp;region={$formvalues.region}&amp;edit={$row.spawn_npc_id}&amp;{$SID}">Lschen</a></td>
	    </tr>
	    {/foreach}
	</table>
</fieldset>
