Updated admin NPC info html and handler.
Contributed by CostyKiller.
This commit is contained in:
		| @@ -21,20 +21,23 @@ | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">ObjectId</font></td><td align=right width=170>%objid%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Type:</font></td><td align=right width=170><font color=999999>%class%</font></td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Race</font></td><td align=right width=170>%race%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Spawn file:</font></td><td align=right width=170>%spawnfile%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Spawn file:</font></td><td align=right width=170>%spawnfile%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Spawn name:</font></td><td align=right width=170>%spawnname%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Spawn group:</font></td><td align=right width=170>%spawngroup%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Spawn group:</font></td><td align=right width=170>%spawngroup%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Spawn AI:</font></td><td align=right width=170>%spawnai%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Spawn loc:</font></td><td align=right width=170>%spawn%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Location:</font></td><td align=right width=170>%loc%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Location:</font></td><td align=right width=170>%loc%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Heading:</font></td><td align=right width=170>%heading%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Collision Radius:</font></td><td align=right width=170>%collision_radius%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Collision Height:</font></td><td align=right width=170>%collision_height%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Distance:</font></td><td align=right width=170>2D: %loc2d%, 3D: %loc3d%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Respawn:</font></td><td align=right width=170>%resp%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Chase Range:</font></td><td align=right width=170>%chaseRange%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">Aggro:</font></td><td align=right width=170><font color=999999>%aggro%</font></td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">HP:</font></td><td align=right width=170><font color=FF4040>%hp%/%hpmax%</font></td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">MP:</font></td><td align=right width=170><font color=6161FF>%mp%/%mpmax%</font></td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">EXP:</font></td><td align=right width=170>%exp%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">SP:</font></td><td align=right width=170>%sp%</td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color="LEVEL">Clan Hall:</font></td><td align=right width=170><font color=LEVEL>%clanHall%</font></td></tr></table></td></tr> | ||||
| <tr><td><table width=270 border=0><tr><td width=100><font color="LEVEL">MpReward:</font></td><td align=right width=170><font color=6161FF>%mpRewardValue% %mpRewardType% %mpRewardTicks% %mpRewardAffectType%</font></td></tr></table></td></tr> | ||||
| %ai_intention% | ||||
|   | ||||
| @@ -67,6 +67,8 @@ public class NpcActionShift implements IActionShiftHandler | ||||
| 			html.replace("%hpmax%", String.valueOf(npc.getMaxHp())); | ||||
| 			html.replace("%mp%", String.valueOf((int) npc.getCurrentMp())); | ||||
| 			html.replace("%mpmax%", String.valueOf(npc.getMaxMp())); | ||||
| 			html.replace("%exp%", String.valueOf((int) npc.getTemplate().getExp())); | ||||
| 			html.replace("%sp%", String.valueOf((int) npc.getTemplate().getSP())); | ||||
| 			 | ||||
| 			html.replace("%patk%", String.valueOf(npc.getPAtk())); | ||||
| 			html.replace("%matk%", String.valueOf(npc.getMAtk())); | ||||
| @@ -141,11 +143,13 @@ public class NpcActionShift implements IActionShiftHandler | ||||
| 				{ | ||||
| 					html.replace("%resp%", (npc.getSpawn().getRespawnMinDelay() / 1000) + " sec"); | ||||
| 				} | ||||
| 				html.replace("%chaseRange%", npc.getSpawn().getChaseRange()); | ||||
| 			} | ||||
| 			else | ||||
| 			{ | ||||
| 				html.replace("%spawn%", "<font color=FF0000>null</font>"); | ||||
| 				html.replace("%resp%", "<font color=FF0000>--</font>"); | ||||
| 				html.replace("%chaseRange%", "<font color=FF0000>--</font>"); | ||||
| 			} | ||||
| 			 | ||||
| 			html.replace("%spawnfile%", "<font color=FF0000>--</font>"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment