[req]health Bar

All Helbreath Server Source Discussion here.
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

Jaap wrote: So yea, like HB2..

What I did was add the HP% to each "tile" (only client side, the server just sends it with the tileupdate).

Then, I also added the HP% to the damage packets.

That's basically how it works.
It's not that hard to do it...

Why not putting HP% in each mob instead of each tile. Seems better to me.
Btw Ice-T you don't need a sprite to draw a simple gradient...
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Ice-T
Loyal fan
Posts: 262
Joined: Sat Oct 18, 2003 8:51 am
Location: nowere

Post by Ice-T »

if u want it to look good you do
<img src='http://www.prism.gatech.edu/~gtg818f/basesig.gif' border='0' alt='user posted image' /><br><img src='http://img228.imageshack.us/img228/439/steam1tf.gif' border='0' alt='user posted image' />
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

Image

Does it look good? :P
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Ice-T
Loyal fan
Posts: 262
Joined: Sat Oct 18, 2003 8:51 am
Location: nowere

Post by Ice-T »

looks too windowsy:S

it looks out of place, and doesnt follow the shitty gfx of hb :P
<img src='http://www.prism.gatech.edu/~gtg818f/basesig.gif' border='0' alt='user posted image' /><br><img src='http://img228.imageshack.us/img228/439/steam1tf.gif' border='0' alt='user posted image' />
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

the 'Boss' in pink does look very gay in HB. It looks like you're fighting a girl or something
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Ice-T
Loyal fan
Posts: 262
Joined: Sat Oct 18, 2003 8:51 am
Location: nowere

Post by Ice-T »

yeh it should look all pixelated and shitty and in red :P
<img src='http://www.prism.gatech.edu/~gtg818f/basesig.gif' border='0' alt='user posted image' /><br><img src='http://img228.imageshack.us/img228/439/steam1tf.gif' border='0' alt='user posted image' />
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

It also should have a typo in it.
Like 'Bos' 'Bosh' 'Box' 'Bose' 'Bosse' something like that. That sure would look alot more like HB
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Jaap
Loyal fan
Posts: 390
Joined: Thu Apr 22, 2004 8:21 am

Post by Jaap »

Cleroth wrote:
Jaap wrote: So yea, like HB2..

What I did was add the HP% to each "tile" (only client side, the server just sends it with the tileupdate).

Then, I also added the HP% to the damage packets.

That's basically how it works.
It's not that hard to do it...

Why not putting HP% in each mob instead of each tile. Seems better to me.
Btw Ice-T you don't need a sprite to draw a simple gradient...
Uh hello? The mobs are sent "per tile". The server sends information per tile, not per mob.

So for every tile, there are 4 types of information:
1) Player/NPC (Alive)
2) Deadplayer/ DeadNPC
3) Item
4) Dynamicobject

the distinction is made by "ucHeader" which can be 0x01, 0x02, 0x03, 0x04 who in turn match with the numbers in the above list.

I added HP% to ucHeader 0x01, and in the damage packets (to update it when you damage someone/something). That's all.

Oh and then there is the graphics client side of course.
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

uh Hello? Mobs have IDs ( like players? )? Maybe it's just because I'm a little confused with some other shit. It was like a function RequestNPCInformation, something like that. I used it in my text based client and it did give me NPCs information I request. Like requesting the NPC information of the 10001 and it'll give you his position etc.... ( BTW, I used that to find people on the same map, you can know if someone is in 35,60 even if you're in 150,150 ;) )

See that button 'check' checks all players on that map/hg and displays them with a dot on the minimap.
Image

As simple as that. The way Helbreath is is mass gay. I don't code HB anymore anyway.

EDIT: There, checked my sources ( checks the first 100 players on HG ):

Code: Select all

  	for(w=1;w<100;w++){
    SendToHG(MSGID_REQUEST_FULLOBJECTDATA,w);
  	}	
Yes, that can be done with a client. Happy hacking.
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

"Not coding hb anymore"

Pretty sure about that? :unsure:
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
James!
Member
Posts: 134
Joined: Sat Jan 01, 2005 12:09 am

Post by James! »

Cleroth wrote: uh Hello? Mobs have IDs ( like players? )? Maybe it's just because I'm a little confused with some other shit. It was like a function RequestNPCInformation, something like that. I used it in my text based client and it did give me NPCs information I request. Like requesting the NPC information of the 10001 and it'll give you his position etc.... ( BTW, I used that to find people on the same map, you can know if someone is in 35,60 even if you're in 150,150 ;) )

See that button 'check' checks all players on that map/hg and displays them with a dot on the minimap.
Image

As simple as that. The way Helbreath is is mass gay. I don't code HB anymore anyway.

EDIT: There, checked my sources ( checks the first 100 players on HG ):

Code: Select all

  	for(w=1;w<100;w++){
    SendToHG(MSGID_REQUEST_FULLOBJECTDATA,w);
  	}	
Yes, that can be done with a client. Happy hacking.
release this source :P :P :P
<img src='http://img.photobucket.com/albums/v482/ ... ingFan.jpg' border='0' alt='user posted image' /><br><a href='http://www.hbdreams.com.ar' target='_blank'><b>- Helbreath Dream Team -</a></b><br><a href='http://www.dreamforums.com.ar/top50' target='_blank'><b>- Dream Top 50 Owner Admin -</a></b><br>- <b>Contacto Por Mail</b> : <a href='mailto:james@dreamforums.com.ar'>james@dreamforums.com.ar</a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Please don't <_<
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Jaap
Loyal fan
Posts: 390
Joined: Thu Apr 22, 2004 8:21 am

Post by Jaap »

If you think that when you walk around you receive every NPC's full object data then you're wrong. The full object data is too much data to be send each time.

It doesn't matter if your tool uses the full object data, the client doesn't - only in a few cases where it is needed (cant think of any right now).
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

locobans wrote: "Not coding hb anymore"

Pretty sure about that? :unsure:
Yes.
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Post Reply