Jump to content
  • 0

Can Anyone Help/teach This One? ? Check Please


Question

9 answers to this question

Recommended Posts

  • 0
Posted (edited)

Progress bar? An example.. like screenshot?

https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSd2Z55NF3FteEOrTAJtydm-Lk6cH_H3Oa2bvIonolNh-YVOaZV

 

something like this into a npc!! 

 

Eg :

 

min cap mobs killed 0 and max cap mobs killed 1k and you've killed around 600 mobs so the bar will showing your progress at about 60%

Edited by Olymps
  • 0
Posted

I was wondered how to do this, and here is the result: http://prntscr.com/5iagza

I've used the hp image from the client side, then i get the percentage value of my current hp...

 

This is the html

<table bgcolor="000000" width=100>
    <tr>
        <td><img src="L2UI.HP" width="%currenthppercent%" height=16></td>
    </tr>
</table>

%currenthppercent% is calculated like this: 100 * currentHp / maxHp

 

I don't have H5's core atm but the process is the same, i suppose  :lol:

  • 0
Posted

I was wondered how to do this, and here is the result: http://prntscr.com/5iagza

I've used the hp image from the client side, then i get the percentage value of my current hp...

 

This is the html

<table bgcolor="000000" width=100>
    <tr>
        <td><img src="L2UI.HP" width="%currenthppercent%" height=16></td>
    </tr>
</table>

%currenthppercent% is calculated like this: 100 * currentHp / maxHp

 

I don't have H5's core atm but the process is the same, i suppose  :lol:

so i should do it on html and not on script right? or still i need to create a script ?

  • 0
Posted

so i should do it on html and not on script right? or still i need to create a script ?

You need to get the percentage value from the script...

 

100 * killedMobs / requiredKills

 

This will return the value that you should use as a width value for the image

For example:

If you have killed 50 mobs, and the mobs you need to kill are 100, this will return 50% and the width of the image becomes 50

  • 0
Posted

You need to get the percentage value from the script...

 

100 * killedMobs / requiredKills

 

This will return the value that you should use as a width value for the image

For example:

If you have killed 50 mobs, and the mobs you need to kill are 100, this will return 50% and the width of the image becomes 50

Aha will try mate!! thank you very much appretiate it :) hope i'll figure it out :) have a nice day!

  • 0
Posted

Aha will try mate!! thank you very much appretiate it :) hope i'll figure it out :) have a nice day!

You too, and good luck! :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock