Enchant menu rework.
Contributed by realAprox and CostyKiller.
This commit is contained in:
		| @@ -220,11 +220,40 @@ | ||||
| 	<admin command="admin_setun" accessLevel="100" /> | ||||
| 	<admin command="admin_setba" accessLevel="100" /> | ||||
| 	<admin command="admin_setbe" accessLevel="100" /> | ||||
| 	<admin command="admin_setrb" accessLevel="100" /> | ||||
| 	<admin command="admin_setci" accessLevel="100" /> | ||||
| 	<admin command="admin_setma" accessLevel="100" /> | ||||
| 	<admin command="admin_seth1" accessLevel="100" /> | ||||
| 	<admin command="admin_seth2" accessLevel="100" /> | ||||
| 	<admin command="admin_setbr" accessLevel="100" /> | ||||
| 	<admin command="admin_setbt" accessLevel="100" /> | ||||
| 	<admin command="admin_setsb" accessLevel="100" /> | ||||
| 	<admin command="admin_setab" accessLevel="100" /> | ||||
| 	<admin command="admin_seta1" accessLevel="100" /> | ||||
| 	<admin command="admin_seta2" accessLevel="100" /> | ||||
| 	<admin command="admin_seta3" accessLevel="100" /> | ||||
| 	<admin command="admin_seta4" accessLevel="100" /> | ||||
| 	<admin command="admin_seta5" accessLevel="100" /> | ||||
| 	<admin command="admin_set01" accessLevel="100" /> | ||||
| 	<admin command="admin_set02" accessLevel="100" /> | ||||
| 	<admin command="admin_set03" accessLevel="100" /> | ||||
| 	<admin command="admin_set04" accessLevel="100" /> | ||||
| 	<admin command="admin_set05" accessLevel="100" /> | ||||
| 	<admin command="admin_set06" accessLevel="100" /> | ||||
| 	<admin command="admin_set07" accessLevel="100" /> | ||||
| 	<admin command="admin_set08" accessLevel="100" /> | ||||
| 	<admin command="admin_set09" accessLevel="100" /> | ||||
| 	<admin command="admin_set10" accessLevel="100" /> | ||||
| 	<admin command="admin_set11" accessLevel="100" /> | ||||
| 	<admin command="admin_set12" accessLevel="100" /> | ||||
| 	<admin command="admin_set13" accessLevel="100" /> | ||||
| 	<admin command="admin_set14" accessLevel="100" /> | ||||
| 	<admin command="admin_set15" accessLevel="100" /> | ||||
| 	<admin command="admin_set16" accessLevel="100" /> | ||||
| 	<admin command="admin_set17" accessLevel="100" /> | ||||
| 	<admin command="admin_set18" accessLevel="100" /> | ||||
| 	<admin command="admin_set19" accessLevel="100" /> | ||||
| 	<admin command="admin_set20" accessLevel="100" /> | ||||
| 	<admin command="admin_set21" accessLevel="100" /> | ||||
| 	<admin command="admin_artifact" accessLevel="100" /> | ||||
| 	<admin command="admin_agathion" accessLevel="100" /> | ||||
| 	<admin command="admin_enchant" accessLevel="100" /> | ||||
|  | ||||
| 	<!-- ADMIN EVENT ENGINE --> | ||||
|   | ||||
| @@ -1,115 +1,120 @@ | ||||
| <html><title>Enchant & Attribute Menu</title><body> | ||||
| <center> | ||||
| <table width=265 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"> | ||||
| 	<tr> | ||||
| 		<td><button value="Main" action="bypass -h admin_admin" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td width=120 align=center>Enchant Value 0-127:</td> | ||||
| 		<td width=55 align=center><edit var="qbox" width=40 height=14></td> | ||||
| 		<td><button value="Back" action="bypass -h admin_admin7" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <table width=270> | ||||
| <tr> | ||||
| <td width=45><button value="Main" action="bypass -h admin_admin" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td width=180><center>Enchant & Attribute</center></td> | ||||
| <td width=45><button value="Back" action="bypass -h admin_admin7" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| 	<tr> | ||||
| 		<td width=130 align=center><button value="Artifacts" action="bypass -h admin_artifact" width=130 height=22 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td width=130 align=center><button value="Agathions" action="bypass -h admin_agathion" width=130 height=22 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <table width=260 border=0 bgcolor=323232> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_seteh 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Helmet" action="bypass -h admin_seteh $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Left Earring" action="bypass -h admin_setle $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+10" action="bypass -h admin_setle 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_setec 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Chest" action="bypass -h admin_setec $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Right Earring" action="bypass -h admin_setre $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+10" action="bypass -h admin_setre 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_setel 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Leggings" action="bypass -h admin_setel $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Necklace" action="bypass -h admin_seten $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+10" action="bypass -h admin_seten 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_seteg 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Gloves" action="bypass -h admin_seteg $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Left Ring" action="bypass -h admin_setlf $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+10" action="bypass -h admin_setlf 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_seteb 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Boots" action="bypass -h admin_seteb $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Right Ring" action="bypass -h admin_setrf $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+10" action="bypass -h admin_setrf 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_setba 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Cloak" action="bypass -h admin_setba $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+10" action="bypass -h admin_setew 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Weapon" action="bypass -h admin_setew $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Shield / Sigil" action="bypass -h admin_setes $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+10" action="bypass -h admin_setes 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <br> | ||||
| <font color="LEVEL">Enchant Enhancement:</font><br> | ||||
| <table width=250> | ||||
| <tr> | ||||
| <td>Enchant Value 0-127:</td> | ||||
| <td><edit var="qbox" width=75 height=12></td> | ||||
| </tr> | ||||
| <table width=250 border=0 bgcolor=323232> | ||||
| 	<tr> | ||||
| 		<td><button value="+5" action="bypass -h admin_seth1 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Hair 1" action="bypass -h admin_seth1 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Hair 2" action="bypass -h admin_seth2 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+5" action="bypass -h admin_seth2 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+5" action="bypass -h admin_setun 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Shirt" action="bypass -h admin_setun $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Belt" action="bypass -h admin_setbe $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+5" action="bypass -h admin_setbe 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+5" action="bypass -h admin_setbr 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Brooch" action="bypass -h admin_setbr $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Bracelet" action="bypass -h admin_setbt $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+5" action="bypass -h admin_setbt 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="+5" action="bypass -h admin_setsb 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Seed" action="bypass -h admin_setsb $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Art. Book" action="bypass -h admin_setab $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="+5" action="bypass -h admin_setab 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <br> | ||||
| <table width=260> | ||||
| <tr> | ||||
| <td><button value="+5" action="bypass -h admin_setma 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Mask" action="bypass -h admin_setma $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Circlet" action="bypass -h admin_setci $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+5" action="bypass -h admin_setci 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+6" action="bypass -h admin_seteh 6" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Helmet" action="bypass -h admin_seteh $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Upper Earring" action="bypass -h admin_setle $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setle 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+6" action="bypass -h admin_setec 6" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Chest" action="bypass -h admin_setec $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Lower Earring" action="bypass -h admin_setre $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setre 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+6" action="bypass -h admin_setel 6" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Leggings" action="bypass -h admin_setel $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Necklace" action="bypass -h admin_seten $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_seten 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+6" action="bypass -h admin_seteg 6" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Gloves" action="bypass -h admin_seteg $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Upper Ring" action="bypass -h admin_setlf $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setlf 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+6" action="bypass -h admin_seteb 6" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Boots" action="bypass -h admin_seteb $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Lower Ring" action="bypass -h admin_setrf $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setrf 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+4" action="bypass -h admin_setba 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Cloak" action="bypass -h admin_setba $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="R Bracelet" action="bypass -h admin_setrb $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setrb 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+4" action="bypass -h admin_setun 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Shirt" action="bypass -h admin_setun $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Belt" action="bypass -h admin_setbe $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setbe 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+4" action="bypass -h admin_setew 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Weapon" action="bypass -h admin_setew $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Shield / Sigil" action="bypass -h admin_setes $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+4" action="bypass -h admin_setes 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="+5" action="bypass -h admin_setbr 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Brooch" action="bypass -h admin_setbr $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Artifact Book" action="bypass -h admin_setab $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="+5" action="bypass -h admin_setab 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| </table> | ||||
| <br><br> | ||||
| <font color="LEVEL">Attribute Enhancement:</font><br> | ||||
| <table width=250> | ||||
| <tr> | ||||
| <td>Element Type:</td> | ||||
| <td><combobox width=75 var=ebox list=Fire;Water;Wind;Earth;Dark;Holy></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td>Element Value 0-450:</td> | ||||
| <td><edit var="vbox" width=75 height=12></td> | ||||
| </tr> | ||||
| 	<tr> | ||||
| 		<td>Element Type:</td> | ||||
| 		<td><combobox width=75 var=ebox list=Fire;Water;Wind;Earth;Dark;Holy></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td>Element Value 0-450:</td> | ||||
| 		<td><edit var="vbox" width=75 height=12></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <br> | ||||
| <table width=260> | ||||
| <tr> | ||||
| <td><button value="60" action="bypass -h admin_setlh $ebox 60" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Helmet" action="bypass -h admin_setlh $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Gloves" action="bypass -h admin_setlg $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="60" action="bypass -h admin_setlg $ebox 60" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="60" action="bypass -h admin_setlc $ebox 60" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Chest" action="bypass -h admin_setlc $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Boots" action="bypass -h admin_setlb $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="60" action="bypass -h admin_setlb $ebox 60" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><button value="60" action="bypass -h admin_setll $ebox 60" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Leggings" action="bypass -h admin_setll $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="Weapon" action="bypass -h admin_setlw $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| <td><button value="150" action="bypass -h admin_setlw $ebox 150" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| </tr> | ||||
| <table width=260 border=0 bgcolor=323232> | ||||
| 	<tr> | ||||
| 		<td><button value="120" action="bypass -h admin_setlh $ebox 120" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Helmet" action="bypass -h admin_setlh $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Gloves" action="bypass -h admin_setlg $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="120" action="bypass -h admin_setlg $ebox 120" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="120" action="bypass -h admin_setlc $ebox 120" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Chest" action="bypass -h admin_setlc $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Boots" action="bypass -h admin_setlb $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="120" action="bypass -h admin_setlb $ebox 120" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td><button value="120" action="bypass -h admin_setll $ebox 120" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Leggings" action="bypass -h admin_setll $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="Weapon" action="bypass -h admin_setlw $ebox $vbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td><button value="360" action="bypass -h admin_setlw $ebox 360" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <br> | ||||
| </center> | ||||
|   | ||||
							
								
								
									
										75
									
								
								L2J_Mobius_8.0_Homunculus/dist/game/data/html/admin/enchantAgathion.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								L2J_Mobius_8.0_Homunculus/dist/game/data/html/admin/enchantAgathion.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,75 @@ | ||||
| <html><title>Agathion Enchant Menu</title><body> | ||||
| <center> | ||||
| <table width=285 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"> | ||||
| 	<tr> | ||||
| 		<td><button value="Main" action="bypass -h admin_admin" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td width=140 align=center>Enchant Value 0-10:</td> | ||||
| 		<td width=55 align=center><edit var="qbox" width=40 height=14></td> | ||||
| 		<td><button value="Back" action="bypass -h admin_enchant" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <table border=0 cellpadding=0 cellspacing=0 width=292 height=330 background="L2UI_CH3.refinewnd_back_Pattern"><tr><td align=center> | ||||
| <br><br><br><br> | ||||
| <table width=280><tr><td align=center> | ||||
| <table> | ||||
| 	<tr><td align=center><font color="LEVEL">Enchante Equipped Agathions</font><br></td></tr> | ||||
| 	<tr><td align=center><font color=828282>Equip and un-equip while enchanting.</font></td></tr> | ||||
| 	<tr><td align=center><font color=828282>Each button corresponds to agathion slot</font></td></tr> | ||||
| 	<tr><td align=center><font color=828282>in your inventory.</font></td></tr> | ||||
| </table> | ||||
| <br><br><br><br> | ||||
| <table order=0 bgcolor=282828 align=center> | ||||
| 	<tr> | ||||
| 		<td align=center><button value="+3" action="bypass -h admin_seta1 3" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1></td> | ||||
| 		<td width=10></td> | ||||
| 		<td align=center><button value="+3" action="bypass -h admin_seta2 3" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td align=center><button value="+3" action="bypass -h admin_seta3 3" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td align=center><button value="+3" action="bypass -h admin_seta4 3" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td align=center><button value="+3" action="bypass -h admin_seta5 3" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<td align=center> | ||||
| 			<font color=LEVEL> | ||||
| 			<table width=35 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td align=center> | ||||
| 				<button value="                    %ag0_ench%          " action="bypass -h admin_seta1 $qbox" width=35 height=35 back="%ag0_icon%" fore="%ag0_icon%"> | ||||
| 			</td></tr></table> | ||||
| 		</td> | ||||
| 		<td width=10></td> | ||||
| 		<td align=center> | ||||
| 			<table width=35 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td align=center> | ||||
| 				<button value="                    %ag1_ench%          " action="bypass -h admin_seta2 $qbox" width=35 height=35 back="%ag1_icon%" fore="%ag1_icon%"> | ||||
| 			</td></tr></table> | ||||
| 		</td> | ||||
| 		<td align=center> | ||||
| 			<table width=35 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td align=center> | ||||
| 				<button value="                    %ag2_ench%          " action="bypass -h admin_seta3 $qbox" width=35 height=35 back="%ag2_icon%" fore="%ag2_icon%"> | ||||
| 			</td></tr></table> | ||||
| 		</td> | ||||
| 		<td align=center> | ||||
| 			<table width=35 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td align=center> | ||||
| 				<button value="                    %ag3_ench%          " action="bypass -h admin_seta4 $qbox" width=35 height=35 back="%ag3_icon%" fore="%ag3_icon%"> | ||||
| 			</td></tr></table> | ||||
| 		</td> | ||||
| 		<td align=center> | ||||
| 			<table width=35 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td align=center> | ||||
| 				<button value="                    %ag4_ench%          " action="bypass -h admin_seta5 $qbox" width=35 height=35 back="%ag4_icon%" fore="%ag4_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</font> | ||||
| 		</td> | ||||
| 	</tr> | ||||
| 	<tr> | ||||
| 		<table><tr> | ||||
| 			<td align=center><button value="+10" action="bypass -h admin_seta1 10" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1></td> | ||||
| 			<td width=10></td> | ||||
| 			<td align=center><button value="+10" action="bypass -h admin_seta2 10" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 			<td align=center><button value="+10" action="bypass -h admin_seta3 10" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 			<td align=center><button value="+10" action="bypass -h admin_seta4 10" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 			<td align=center><button value="+10" action="bypass -h admin_seta5 10" width=45 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		</tr></table> | ||||
| 	</tr> | ||||
| </table> | ||||
| </td></tr></table> | ||||
| <br> | ||||
| </td></tr></table> | ||||
| </center> | ||||
| </body></html> | ||||
							
								
								
									
										195
									
								
								L2J_Mobius_8.0_Homunculus/dist/game/data/html/admin/enchantArtifact.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										195
									
								
								L2J_Mobius_8.0_Homunculus/dist/game/data/html/admin/enchantArtifact.htm
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,195 @@ | ||||
| <html><title>Artifact Enchant Menu</title><body> | ||||
| <center> | ||||
| <table width=285 background="L2UI_CT1.Windows.Windows_DF_TooltipBG"> | ||||
| 	<tr> | ||||
| 		<td><button value="Main" action="bypass -h admin_admin" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 		<td width=140 align=center>Enchant Value 0-10:</td> | ||||
| 		<td width=55 align=center><edit var="qbox" width=40 height=14></td> | ||||
| 		<td><button value="Back" action="bypass -h admin_enchant" width=45 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> | ||||
| 	</tr> | ||||
| </table> | ||||
| <table border=0 cellpadding=0 cellspacing=0 width=292 height=330 background="L2UI_CH3.refinewnd_back_Pattern"><tr><td height=19> </td></tr><tr><td align=center> | ||||
| <table height=150 width=68 border=0 bgcolor=323232> | ||||
| <tr><td align=center> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=5></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar2_ench%          " action="bypass -h admin_set03 $qbox" width=26 height=26 back="%ar2_icon%" fore="%ar2_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar3_ench%          " action="bypass -h admin_set04 $qbox" width=26 height=26 back="%ar3_icon%" fore="%ar3_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=5></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar0_ench%          " action="bypass -h admin_set01 $qbox" width=26 height=26 back="%ar0_icon%" fore="%ar0_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar1_ench%          " action="bypass -h admin_set02 $qbox" width=26 height=26 back="%ar1_icon%" fore="%ar1_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar15_ench%          " action="bypass -h admin_set16 $qbox" width=32 height=32 back="%ar15_icon%" fore="%ar15_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar18_ench%          " action="bypass -h admin_set19 $qbox" width=32 height=32 back="%ar18_icon%" fore="%ar18_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=18></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar12_ench%          " action="bypass -h admin_set13 $qbox" width=32 height=32 back="%ar12_icon%" fore="%ar12_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| </td></tr></table> | ||||
| <table> | ||||
| <tr><td> | ||||
| <table height=150 width=68 border=0 bgcolor=323232> | ||||
| <tr><td align=center> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=18></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar13_ench%          " action="bypass -h admin_set14 $qbox" width=32 height=32 back="%ar13_icon%" fore="%ar13_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar16_ench%          " action="bypass -h admin_set17 $qbox" width=32 height=32 back="%ar16_icon%" fore="%ar16_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar19_ench%          " action="bypass -h admin_set20 $qbox" width=32 height=32 back="%ar19_icon%" fore="%ar19_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=5></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar4_ench%          " action="bypass -h admin_set05 $qbox" width=26 height=26 back="%ar4_icon%" fore="%ar4_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar5_ench%          " action="bypass -h admin_set06 $qbox" width=26 height=26 back="%ar5_icon%" fore="%ar5_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=5></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar6_ench%          " action="bypass -h admin_set07 $qbox" width=26 height=26 back="%ar6_icon%" fore="%ar6_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar7_ench%          " action="bypass -h admin_set08 $qbox" width=26 height=26 back="%ar7_icon%" fore="%ar7_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| </td></tr> | ||||
| </table> | ||||
| </td> | ||||
| <td> | ||||
| <table height=150 width=68 border=0 bgcolor=323232> | ||||
| <tr><td align=center> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=18></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar14_ench%          " action="bypass -h admin_set15 $qbox" width=32 height=32 back="%ar14_icon%" fore="%ar14_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar17_ench%          " action="bypass -h admin_set18 $qbox" width=32 height=32 back="%ar17_icon%" fore="%ar17_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                    %ar20_ench%          " action="bypass -h admin_set21 $qbox" width=32 height=32 back="%ar20_icon%" fore="%ar20_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=5></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar8_ench%          " action="bypass -h admin_set09 $qbox" width=26 height=26 back="%ar8_icon%" fore="%ar8_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar9_ench%          " action="bypass -h admin_set10 $qbox" width=26 height=26 back="%ar9_icon%" fore="%ar9_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| 	<table> | ||||
| 		<tr> | ||||
| 			<td width=5></td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar10_ench%          " action="bypass -h admin_set11 $qbox" width=26 height=26 back="%ar10_icon%" fore="%ar10_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 			<table background="L2UI_CT1.Windows.Windows_DF_TooltipBG"><tr><td> | ||||
| 				<button value="                %ar11_ench%          " action="bypass -h admin_set12 $qbox" width=26 height=26 back="%ar11_icon%" fore="%ar11_icon%"> | ||||
| 			</td></tr></table> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	</table> | ||||
| </td></tr> | ||||
| </table> | ||||
| </td></tr> | ||||
| </table> | ||||
| <br> | ||||
| </td></tr></table> | ||||
|  | ||||
| </center> | ||||
| </body></html> | ||||
| @@ -19,12 +19,16 @@ package handlers.admincommandhandlers; | ||||
| import java.util.logging.Logger; | ||||
|  | ||||
| import org.l2jmobius.Config; | ||||
| import org.l2jmobius.gameserver.cache.HtmCache; | ||||
| import org.l2jmobius.gameserver.data.ItemTable; | ||||
| import org.l2jmobius.gameserver.handler.IAdminCommandHandler; | ||||
| import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; | ||||
| import org.l2jmobius.gameserver.model.itemcontainer.Inventory; | ||||
| import org.l2jmobius.gameserver.model.items.Item; | ||||
| import org.l2jmobius.gameserver.model.items.instance.ItemInstance; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage; | ||||
| import org.l2jmobius.gameserver.util.BuilderUtil; | ||||
|  | ||||
| /** | ||||
| @@ -51,21 +55,62 @@ public class AdminEnchant implements IAdminCommandHandler | ||||
| 		"admin_seten", // 3 | ||||
| 		"admin_setun", // 0 | ||||
| 		"admin_setba", // 13 | ||||
| 		"admin_setbe", // 29 | ||||
| 		"admin_setrb", // 16 | ||||
| 		"admin_setci", // 2 | ||||
| 		"admin_setma", // 3 | ||||
| 		"admin_setbr", // 30 | ||||
| 		"admin_setab", // 37 | ||||
| 		"admin_setbe", // belt | ||||
| 		"admin_seth1", // L Hair | ||||
| 		"admin_seth2", // R Hair | ||||
| 		"admin_setbr", // Brooch | ||||
| 		"admin_setbt", // L Bracelet | ||||
| 		"admin_setsb", // Seed (R) Bracelet | ||||
| 		"admin_setab", // Artifact Book | ||||
| 		"admin_seta1", // Agathion SLOT1 | ||||
| 		"admin_seta2", // Agathion SLOT2 | ||||
| 		"admin_seta3", // Agathion SLOT3 | ||||
| 		"admin_seta4", // Agathion SLOT4 | ||||
| 		"admin_seta5", // Agathion SLOT5 | ||||
| 		"admin_set01", // Artifact (balance) | ||||
| 		"admin_set02", // Artifact (balance) | ||||
| 		"admin_set03", // Artifact (balance) | ||||
| 		"admin_set04", // Artifact (balance) | ||||
| 		"admin_set05", // Artifact (balance) | ||||
| 		"admin_set06", // Artifact (balance) | ||||
| 		"admin_set07", // Artifact (balance) | ||||
| 		"admin_set08", // Artifact (balance) | ||||
| 		"admin_set09", // Artifact (balance) | ||||
| 		"admin_set10", // Artifact (balance) | ||||
| 		"admin_set11", // Artifact (balance) | ||||
| 		"admin_set12", // Artifact (balance) | ||||
| 		"admin_set13", // Artifact (Attack) | ||||
| 		"admin_set14", // Artifact (Attack) | ||||
| 		"admin_set15", // Artifact (Attack) | ||||
| 		"admin_set16", // Artifact (Protection) | ||||
| 		"admin_set17", // Artifact (Protection) | ||||
| 		"admin_set18", // Artifact (Protection) | ||||
| 		"admin_set19", // Artifact (Support) | ||||
| 		"admin_set20", // Artifact (Support) | ||||
| 		"admin_set21", // Artifact (Support) | ||||
| 		"admin_artifact", | ||||
| 		"admin_agathion", | ||||
| 		"admin_enchant" | ||||
| 	}; | ||||
| 	 | ||||
| 	@Override | ||||
| 	public boolean useAdminCommand(String command, PlayerInstance activeChar) | ||||
| 	{ | ||||
| 		int currentPage = 0; | ||||
| 		if (command.equals("admin_enchant")) | ||||
| 		{ | ||||
| 			showMainPage(activeChar); | ||||
| 			currentPage = 1; | ||||
| 			showMainPage(activeChar, currentPage); | ||||
| 		} | ||||
| 		else if (command.equals("admin_artifact")) | ||||
| 		{ | ||||
| 			currentPage = 2; | ||||
| 			showMainPage(activeChar, currentPage); | ||||
| 		} | ||||
| 		else if (command.equals("admin_agathion")) | ||||
| 		{ | ||||
| 			currentPage = 3; | ||||
| 			showMainPage(activeChar, currentPage); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| @@ -130,37 +175,146 @@ public class AdminEnchant implements IAdminCommandHandler | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_BELT; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setrb")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_RBRACELET; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setci")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_HAIR2; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setma")) | ||||
| 			else if (command.startsWith("admin_seth1")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_HAIR; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_seth2")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_HAIR2; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setbr")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_BROOCH; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setbt")) // bracelet | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_RBRACELET; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setsb")) // seed bracelet | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_LBRACELET; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_setab")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT_BOOK; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_seta1")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_AGATHION1; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_seta2")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_AGATHION2; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_seta3")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_AGATHION3; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_seta4")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_AGATHION4; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_seta5")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_AGATHION5; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set01")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT1; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set02")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT2; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set03")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT3; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set04")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT4; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set05")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT5; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set06")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT6; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set07")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT7; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set08")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT8; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set09")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT9; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set10")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT10; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set11")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT11; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set12")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT12; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set13")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT13; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set14")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT14; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set15")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT15; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set16")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT16; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set17")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT17; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set18")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT18; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set19")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT19; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set20")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT20; | ||||
| 			} | ||||
| 			else if (command.startsWith("admin_set21")) | ||||
| 			{ | ||||
| 				armorType = Inventory.PAPERDOLL_ARTIFACT21; | ||||
| 			} | ||||
| 			 | ||||
| 			if (armorType != -1) | ||||
| 			{ | ||||
| 				try | ||||
| 				{ | ||||
| 					final int ench = Integer.parseInt(command.substring(12)); | ||||
| 					final int enchIn = Integer.parseInt(command.substring(12)); | ||||
| 					int ench = enchIn; | ||||
| 					 | ||||
| 					// check value | ||||
| 					if ((ench < 0) || (ench > 127)) | ||||
| 					{ | ||||
| 						BuilderUtil.sendSysMessage(activeChar, "You must set the enchant level to be between 0-127."); | ||||
| 						BuilderUtil.sendSysMessage(activeChar, "New enchant value can only be 0 - 127."); | ||||
| 					} | ||||
| 					else | ||||
| 					{ | ||||
| @@ -169,11 +323,15 @@ public class AdminEnchant implements IAdminCommandHandler | ||||
| 				} | ||||
| 				catch (StringIndexOutOfBoundsException e) | ||||
| 				{ | ||||
| 					// quality of life change. if no input - set enchant value to 0 | ||||
| 					int fuse = 0; | ||||
| 					if (Config.DEVELOPER) | ||||
| 					{ | ||||
| 						LOGGER.warning("Set enchant error: " + e); | ||||
| 						LOGGER.warning("Enchant Value set to: " + fuse); | ||||
| 					} | ||||
| 					BuilderUtil.sendSysMessage(activeChar, "Please specify a new enchant value."); | ||||
| 					BuilderUtil.sendSysMessage(activeChar, "Auto-Set Enchant value to 0."); | ||||
| 					 | ||||
| 					setEnchant(activeChar, fuse, armorType); | ||||
| 				} | ||||
| 				catch (NumberFormatException e) | ||||
| 				{ | ||||
| @@ -186,7 +344,7 @@ public class AdminEnchant implements IAdminCommandHandler | ||||
| 			} | ||||
| 			 | ||||
| 			// show the enchant menu after an action | ||||
| 			showMainPage(activeChar); | ||||
| 			showMainPage(activeChar, currentPage); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
| @@ -217,9 +375,7 @@ public class AdminEnchant implements IAdminCommandHandler | ||||
| 			final int curEnchant = itemInstance.getEnchantLevel(); | ||||
| 			 | ||||
| 			// set enchant value | ||||
| 			player.getInventory().unEquipItemInSlot(armorType); | ||||
| 			itemInstance.setEnchantLevel(ench); | ||||
| 			player.getInventory().equipItem(itemInstance); | ||||
| 			 | ||||
| 			// send packets | ||||
| 			final InventoryUpdate iu = new InventoryUpdate(); | ||||
| @@ -233,9 +389,88 @@ public class AdminEnchant implements IAdminCommandHandler | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	private void showMainPage(PlayerInstance activeChar) | ||||
| 	private void showMainPage(PlayerInstance activeChar, int currentPage) | ||||
| 	{ | ||||
| 		AdminHtml.showAdminHtml(activeChar, "enchant.htm"); | ||||
| 		if (currentPage == 1) | ||||
| 		{ | ||||
| 			AdminHtml.showAdminHtml(activeChar, "enchant.htm"); | ||||
| 		} | ||||
| 		else if (currentPage == 2) | ||||
| 		{ | ||||
| 			String getVars = HtmCache.getInstance().getHtm(activeChar, "data/html/admin/enchantArtifact.htm"); | ||||
| 			ItemInstance findItem = null; | ||||
| 			int currentEnch = 0; | ||||
| 			for (int i = 0; i < 21; i++) | ||||
| 			{ | ||||
| 				Item item = ItemTable.getInstance().getTemplate(activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_ARTIFACT1 + i)); | ||||
| 				findItem = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_ARTIFACT1 + i); | ||||
| 				if (findItem != null) // null check for unequipped slots | ||||
| 				{ | ||||
| 					currentEnch = findItem.getEnchantLevel(); | ||||
| 				} | ||||
| 				// If no agathion in slot - returns blank square icon | ||||
| 				if (item == null) | ||||
| 				{ | ||||
| 					getVars = getVars.replace("%ar" + i + "_icon%", "L2UI_CT1.Windows.Windows_DF_TooltipBG"); | ||||
| 					getVars = getVars.replace("%ar" + i + "_ench%", " "); | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					getVars = getVars.replace("%ar" + i + "_icon%", item.getIcon()); | ||||
| 					// if enchant value is 0 - show "blank instead of 0 | ||||
| 					if (currentEnch != 0) | ||||
| 					{ | ||||
| 						getVars = getVars.replace("%ar" + i + "_ench%", Integer.toString(currentEnch));// send ench value | ||||
| 					} | ||||
| 					else | ||||
| 					{ | ||||
| 						getVars = getVars.replace("%ar" + i + "_ench%", " ");// send "space" so displays icon correctly | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			 | ||||
| 			final NpcHtmlMessage html = new NpcHtmlMessage(0, 1); | ||||
| 			html.setHtml(getVars); | ||||
| 			activeChar.sendPacket(html); | ||||
| 		} | ||||
| 		else if (currentPage == 3) | ||||
| 		{ | ||||
| 			String getVars = HtmCache.getInstance().getHtm(activeChar, "data/html/admin/enchantAgathion.htm"); | ||||
| 			ItemInstance findItem = null; | ||||
| 			int currentEnch = 0; | ||||
| 			for (int i = 0; i < 5; i++) | ||||
| 			{ | ||||
| 				Item item = ItemTable.getInstance().getTemplate(activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_AGATHION1 + i)); | ||||
| 				findItem = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_AGATHION1 + i); | ||||
| 				if (findItem != null) // null check for unequipped slots | ||||
| 				{ | ||||
| 					currentEnch = findItem.getEnchantLevel(); | ||||
| 				} | ||||
| 				// If no agathion in slot - returns blank square icon | ||||
| 				if (item == null) | ||||
| 				{ | ||||
| 					getVars = getVars.replace("%ag" + i + "_icon%", "L2UI_CT1.Windows.Windows_DF_TooltipBG"); | ||||
| 					getVars = getVars.replace("%ag" + i + "_ench%", " "); | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					getVars = getVars.replace("%ag" + i + "_icon%", item.getIcon()); | ||||
| 					// if enchant value is 0 - show "blank instead of 0 | ||||
| 					if (currentEnch != 0) | ||||
| 					{ | ||||
| 						getVars = getVars.replace("%ag" + i + "_ench%", Integer.toString(currentEnch));// send ench value | ||||
| 					} | ||||
| 					else | ||||
| 					{ | ||||
| 						getVars = getVars.replace("%ag" + i + "_ench%", " ");// send "space" so displays icon correctly | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			 | ||||
| 			final NpcHtmlMessage html = new NpcHtmlMessage(0, 1); | ||||
| 			html.setHtml(getVars); | ||||
| 			activeChar.sendPacket(html); | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment