req some help with hpbar pls.

All Helbreath Client Source Discussion here.
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

hi guys, how r u all, im working on a hp / mp bar for helbreath, got not examples here, so im doing it myself.

need some of those who done it already to guide me,

im trying to do it like how the client shows you yours and other players' guildnames.

means from client, point crusor on someone else, then use a bSendCommand like the show guild method uses. right?

im not too sure on how to use the bSendCommand to just ask for the player's mp / hp. anyone help?

Code: Select all

bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQGUILDNAME, NULL, _tmp_wObjectID, iGuildIndex, NULL, NULL);
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
xenx
Member
Posts: 169
Joined: Tue Oct 03, 2006 7:08 am

Post by xenx »

i know im no pro, but isnt there a DEF_HP_REMAIN(or something similar) variable in there somewhere, the one it uses for health bar? im sure iv seen that, u tried just replacing
DEF_COMMONTYPE_REQGUILDNAME
with that to see what effect you get ?
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

omar_omiez wrote: hi guys, how r u all, im working on a hp / mp bar for helbreath, got not examples here, so im doing it myself.

need some of those who done it already to guide me,

im trying to do it like how the client shows you yours and other players' guildnames.

means from client, point crusor on someone else, then use a bSendCommand like the show guild method uses. right?

im not too sure on how to use the bSendCommand to just ask for the player's mp / hp. anyone help?

Code: Select all

bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQGUILDNAME, NULL, _tmp_wObjectID, iGuildIndex, NULL, NULL);
Holy shit. Add me to msn. Someone actually THINKS before fucking posting nonsense. I'll give you a few hints on it ;)
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

ty zero
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
xenx
Member
Posts: 169
Joined: Tue Oct 03, 2006 7:08 am

Post by xenx »

if u get it working matie let me know how you did it would ya im interested in doing something that uses that idea for pvp.
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

i got it to show numbers, but problem is they all showing random numbers. and everytime i press tab, my character has every single aura/effect on him. like im being serked, pfa, pfm, illusioned all at same time. i might have pasted codes wrong place. :(
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

omar_omiez wrote: i got it to show numbers, but problem is they all showing random numbers. and everytime i press tab, my character has every single aura/effect on him. like im being serked, pfa, pfm, illusioned all at same time. i might have pasted codes wrong place. :(
that my good friend is in the wrong place XD
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

yer so i figured. i've put it on a hold for now, quite hard to do, ima work on some other coding parts first. meanwhile if anyone done it and wanan share, post here pls.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

i have done this code befor hp bar on players. ill see if i can make it for u again
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

here this would work but it will be only for that player :P ill code srv side tonight

Code: Select all

if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) {   
  
 iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2; 
      if (m_iHP > iMaxPts) m_iHP = iMaxPts; 
       
 wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts);   
 } 
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

juggalo2 wrote: here this would work but it will be only for that player :P ill code srv side tonight

Code: Select all

if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) {   
  
 iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2; 
      if (m_iHP > iMaxPts) m_iHP = iMaxPts; 
       
 wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts);   
 } 
Don't do it :[ there has to be something that separates servers from one another. One are the more advanced features. You're killing them :[

Also, if you haven't coded it fully before you're in for a treat. Good luck keeping the data as accurate as possible ;) talk about overhead.. xD
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

bone-you wrote:
juggalo2 wrote: here this would work but it will be only for that player :P ill code srv side tonight

Code: Select all

if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) {   
  
 iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2; 
      if (m_iHP > iMaxPts) m_iHP = iMaxPts; 
       
 wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts);   
 } 
Don't do it :[ there has to be something that separates servers from one another. One are the more advanced features. You're killing them :[

Also, if you haven't coded it fully before you're in for a treat. Good luck keeping the data as accurate as possible ;) talk about overhead.. xD
He wont pull it off so don't even worry. If he does it'll be 12% working(If i remembered correctly that's all the functionality juggalo thinks is necessary.)
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

Dax wrote:
bone-you wrote:
juggalo2 wrote: here this would work but it will be only for that player :P ill code srv side tonight

Code: Select all

if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) {   
  
 iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2; 
      if (m_iHP > iMaxPts) m_iHP = iMaxPts; 
       
 wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts);   
 } 
Don't do it :[ there has to be something that separates servers from one another. One are the more advanced features. You're killing them :[

Also, if you haven't coded it fully before you're in for a treat. Good luck keeping the data as accurate as possible ;) talk about overhead.. xD
He wont pull it off so don't even worry. If he does it'll be 12% working(If i remembered correctly that's all the functionality juggalo thinks is necessary.)
dude u are dumb arnt u i already hade this coded and working 100% befor just lost it cuz my hd fried also your right i porbly wotn finish it cuz yes im open my own bissness with my dad my dads singin all the papper work in abotu an hour from now so yea ill eb working 7 days a week no time for hb liek i give a fuck so dax shove it up ur fuckin ass cuz if i rember u asked em some noob shit u even asked me if i coudl get ti for u a while ago

[17:22] Danny: experience bar is the only 1 displaying vars correctly
[17:22] Danny: the other ones display stupid vars
[17:22] Danny: like 2389987498
[17:23] Danny: not the actual var
[17:23] Danny: why?
[17:23] ~LiFe[GM]~>New Old School Server This Weekend:  iMaxPts u need to make ur own shit not like the way ur doing it
[17:24] ~LiFe[GM]~>New Old School Server This Weekend: there is alreayd things in src to tell u ur max hp and mp
[17:25] Danny: no.. i wrote it
[17:27] ~LiFe[GM]~>New Old School Server This Weekend: if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) { 
 
iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2;
      if (m_iHP > iMaxPts) m_iHP = iMaxPts;
     
wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts); 
}
 
[17:27] ~LiFe[GM]~>New Old School Server This Weekend: try dat
[17:33] Danny: already have
[17:33] Danny: nothing wants to work
[17:41] ~LiFe[GM]~>New Old School Server This Weekend: hmm idk
nigga plz
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

juggalo2 wrote: u even asked me if i coudl get ti for u a while ago

[17:22] Danny: experience bar is the only 1 displaying vars correctly
[17:22] Danny: the other ones display stupid vars
[17:22] Danny: like 2389987498
[17:23] Danny: not the actual var
[17:23] Danny: why?
[17:23] ~LiFe[GM]~>New Old School Server This Weekend:  iMaxPts u need to make ur own shit not like the way ur doing it
[17:24] ~LiFe[GM]~>New Old School Server This Weekend: there is alreayd things in src to tell u ur max hp and mp
[17:25] Danny: no.. i wrote it
[17:27] ~LiFe[GM]~>New Old School Server This Weekend: if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) {  
 
iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2;
      if (m_iHP > iMaxPts) m_iHP = iMaxPts;
      
wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts);  
}
 
[17:27] ~LiFe[GM]~>New Old School Server This Weekend: try dat
[17:33] Danny: already have
[17:33] Danny: nothing wants to work
[17:41] ~LiFe[GM]~>New Old School Server This Weekend: hmm idk
nigga plz
That was for the icon panel you brain dead peice of shit. All you do is cut other stech codes up, thats why u were trying to tell me to do that aswell.

1. what does a hp bar ingame have to do with the hp/mp/exp bar on the icon panel
2. i was asking if you knew why those variables used in the icon panel were messing up.
3. i was not asking for your hp bar (which u never even told me u had done, and even if you did i still wouldnt put a retards code in my sources. i don't like bugs tyvm)

I like how you can pull a portion of the logs then pretend i was talking about a different topic. Well it's either that or you're too stupid to realize what i was actualy talking about in the first place.

You have that problem with coding don't you? When you think the code was talking about somthing else so you use it then all the sudden OMG BUGS! A prime example of this would be your "ek announcer" topic.. What a fucking laugh that was, it's a must see if you're a coder.

Anyway, you're a retard and STILL don't know what you're talking about. Just give up now. I really hope for your sake that business works out.

EDIT: Especially with your dad singing at all the contracts.. lol?
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

Dax wrote:
juggalo2 wrote: u even asked me if i coudl get ti for u a while ago

[17:22] Danny: experience bar is the only 1 displaying vars correctly
[17:22] Danny: the other ones display stupid vars
[17:22] Danny: like 2389987498
[17:23] Danny: not the actual var
[17:23] Danny: why?
[17:23] ~LiFe[GM]~>New Old School Server This Weekend:  iMaxPts u need to make ur own shit not like the way ur doing it
[17:24] ~LiFe[GM]~>New Old School Server This Weekend: there is alreayd things in src to tell u ur max hp and mp
[17:25] Danny: no.. i wrote it
[17:27] ~LiFe[GM]~>New Old School Server This Weekend: if ((msX > 19) && (msX < 124+4) && (msY > 437) && (msY < 437+20)) {  
 
iMaxPts = m_iVit*3 + m_iLevel*2 + m_iStr/2;
      if (m_iHP > iMaxPts) m_iHP = iMaxPts;
      
wsprintf(G_cTxt, "Health: %d/%d", m_iHP, iMaxPts);  
}
 
[17:27] ~LiFe[GM]~>New Old School Server This Weekend: try dat
[17:33] Danny: already have
[17:33] Danny: nothing wants to work
[17:41] ~LiFe[GM]~>New Old School Server This Weekend: hmm idk
nigga plz
That was for the icon panel you brain dead peice of shit. All you do is cut other stech codes up, thats why u were trying to tell me to do that aswell.

1. what does a hp bar ingame have to do with the hp/mp/exp bar on the icon panel
2. i was asking if you knew why those variables used in the icon panel were messing up.
3. i was not asking for your hp bar (which u never even told me u had done, and even if you did i still wouldnt put a retards code in my sources. i don't like bugs tyvm)

I like how you can pull a portion of the logs then pretend i was talking about a different topic. Well it's either that or you're too stupid to realize what i was actualy talking about in the first place.

You have that problem with coding don't you? When you think the code was talking about somthing else so you use it then all the sudden OMG BUGS! A prime example of this would be your "ek announcer" topic.. What a fucking laugh that was, it's a must see if you're a coder.

Anyway, you're a retard and STILL don't know what you're talking about. Just give up now. I really hope for your sake that business works out.

EDIT: Especially with your dad singing at all the contracts.. lol?
ahahahah i nvr made an ek anouncer dumb shit. so go fuck ur self nigga now stfu and pce bitch
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Post Reply