Well I wanted to show the work I did in seeing characters | made by me
going to System / application / view
open View_character.php
where
add this:
and then find it
add this
MUST BE AS
and ready
Demo:
going to System / application / view
open View_character.php
where
Code:
try {$ created = $ player-> getCreated ();} catch (Exception $ e) {$ created = time () -36000;}
add this:
Code:
$ hp = ($ player-> getHealth () / $ player-> getHealthMax () * 100);
$ mana = ($ player-> getMana () / $ player-> getManaMax () * 100);
and then find it
Code:
<td bgcolor="#D4C0A1" width='30%'> Created </ td> <td bgcolor="#D4C0A1"> <? php echo ago ($ created). "|". UNIX_TIMESTAMP ($ created );?> </ td> </ tr>
add this
Code:
<td bgcolor="#F1E0C6" width='30%'> Player Health </ td> <td bgcolor="#F1E0C6"> <? php echo $ player-> getHealth ();?> / <? php echo $ player-> getHealthMax ();?> 50%; height: <div> 3px; border: 1px solid #000;"> <div style = "background: red; width: <? PHP miss "". $ hp. "%"?>; height: 3px "> </ td> </ tr>
<td bgcolor="#D4C0A1" width='30%'> Player Mana </ td> <td bgcolor="#D4C0A1"> <? php echo $ player-> getMana ();?> / <? php echo $ player-> getManaMax ();?> 50%; height: <div> 3px; border: 1px solid #000;"> <div style = "background: blue; width: <? PHP miss "". $ mana. "%"?>; height: 3px "> </ td> </ tr>
MUST BE AS
Code:
<td bgcolor="#D4C0A1" width='30%'> Created </ td> <td bgcolor="#D4C0A1"> <? php echo ago ($ created). "|". UNIX_TIMESTAMP ($ created );?> </ td> </ tr>
<td bgcolor="#F1E0C6" width='30%'> Player Health </ td> <td bgcolor="#F1E0C6"> <? php echo $ player-> getHealth ();?> / <? php echo $ player-> getHealthMax ();?> 50%; height: <div> 3px; border: 1px solid #000;"> <div style = "background: red; width: <? PHP miss "". $ hp. "%"?>; height: 3px "> </ td> </ tr>
<td bgcolor="#D4C0A1" width='30%'> Player Mana </ td> <td bgcolor="#D4C0A1"> <? php echo $ player-> getMana ();?> / <? php echo $ player-> getManaMax ();?> 50%; height: <div> 3px; border: 1px solid #000;"> <div style = "background: blue; width: <? PHP miss "". $ mana. "%"?>; height: 3px "> </ td> </ tr>
Demo: