Jump to content
luizragna

Custom Unit HP Bar System

Recommended Posts

Very nice, but I think it would be annoying to do that for every single mob?

Could be a nice feature for Boss mobs though. 

Share this post


Link to post
Share on other sites
9 minutes ago, Blinzer said:

i must be retarded but it doesn't work when i load it up

Do you put the images in your data? (and not in GRF)

Share this post


Link to post
Share on other sites

There is a small problem some clients cant display it if inside a folder inside /illust

But works good if  directly inside /illust

My client won't

ex:  /illust/hpbar/0.bmp [won't work]

ex: /illust/0_hpbar.bmp [Works]

Share this post


Link to post
Share on other sites
16 hours ago, Habilis said:

There is a small problem some clients cant display it if inside a folder inside /illust

But works good if  directly inside /illust

My client won't

ex:  /illust/hpbar/0.bmp [won't work]

ex: /illust/0_hpbar.bmp [Works]

Yes, the illust folder don't like subfolders

I improved the topic to avoid problems

Edited by luizragna

Share this post


Link to post
Share on other sites
On 6/25/2018 at 6:15 PM, luizragna said:

Do you put the images in your data? (and not in GRF)

 

what is the npc supposed to do ingame exactly? because i think it's the npc that's not working.

Share this post


Link to post
Share on other sites
5 hours ago, Blinzer said:

what is the npc supposed to do ingame exactly? because i think it's the npc that's not working.

He makes a mob with a HP Bar.

Do you added the data files? 

Share this post


Link to post
Share on other sites
5 hours ago, luizragna said:

He makes a mob with a HP Bar.

Do you added the data files? 

 

dude, the npc doesn't spawn anything for me.

Share this post


Link to post
Share on other sites
1 hour ago, Blinzer said:

 

dude, the npc doesn't spawn anything for me.

Strange, does some error appear somewhere?

Share this post


Link to post
Share on other sites
7 hours ago, luizragna said:

Strange, does some error appear somewhere?

Quote

Loading NPC file: npc/cities/limitless.txt[K [1m[31m[Error][0m: [?5h                                                                                                                                                                                                                                                                                                                                                                                                                                          [?5lscript error in file 'npc/cities/limitless.txt' line 204 column 4


    parse_line: expect command, missing function name or calling undeclared function
   201:         {
   202:                 .HP_Bar = 1;
   203:                 .mobGID = monster ("payon",148,226,"[T] HP Test",POPORING,1,strnpcinfo(0)+"::OnDie");
*  204:                         [1m[31ms[0metunitdata .mobGID,UDT_MAXHP,4000;
        [1m[36m~~~~~~~~~~~~~~~~~~~~~~~~[0m[1m[32m^[0m
   205:                         setunitdata .mobGID,UDT_HP,4000;
   206:                 .@count = getunits(BL_PC, .@units, false, "payon");
   207:                 for (.@i = 0; .@i < .@count; .@i++)

Edited by Blinzer

Share this post


Link to post
Share on other sites

Cool idea. Unfortunately I think it has no better solution than 100 cutin image...

An idea to optimize it is to pass all your images in a bmp compressor. And another idea is to delete 1 image every 2 images (or more) : you will divide required images per 2 but you'll loose precision. However, I think a 1% precision isn't required.

Edited by vykimo

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.