1 Attachment(s)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
i think my immediate question was repiled on some pages before, but i can't find it, so can someone answer me this:
How a problem with HP bar if it covers Status Icon ? i think it may be bad for mu screen :))
so, i make a better thinking from psd =]] just look it and change maybe ^^
attach img
http://forum.ragezone.com/attachment...-source-ok.jpg
1 Attachment(s)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
@godhoang
change in mob_hp_bar.cpp
Code:
if (pHP)
{
MU_DrawGUI(NEWUI_BAR_SWITCH01, (MAX_WIDTH / 2) - 80, 20, 160, 18);
MU_DrawColorButton(NEWUI_BAR_SWITCH02, (MAX_WIDTH / 2) - 75, 25, (150 * pHP) / 100, 8, 0, 0, MU_CreateColor(255, 0, 0, 130));
}
to
Code:
if (pHP)
{
MU_DrawGUI(NEWUI_BAR_SWITCH01, (MAX_WIDTH / 2) - -100, 20, 160, 18);
MU_DrawColorButton(NEWUI_BAR_SWITCH02, (MAX_WIDTH / 2) - -105, 25, (150 * pHP) / 100, 8, 0, 0, MU_CreateColor(255, 0, 0, 130));
}
Attachment 137823
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
Originally Posted by
ianvalls90
@zasqmiq: actually; I'm getting kinda familiar with visual studio; and this thread has the worst explained fixes.....I mean, I tried already like 10 times to add the freaking hp bar; always getting lots of errors.
That's why I asked @afonsolage to give some kind of step by step for adding it...but hell, nevermind, I guess I'll have to keep trying till I get it right :P
i can help you if you want, in spanish ^^... send me pm with the error or add me to skype, satta873
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
gyiz i dont have a problem that you ask for help yeah the source is shitty but its working ok with my VS 2010 no problems with compile etc shits :)! Nice one ashley :P!
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
So I m not only with that fu..ing errors... ;) thats why i ask complited source.... ;)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
Originally Posted by
godhoang
i think my immediate question was repiled on some pages before, but i can't find it, so can someone answer me this:
How a problem with HP bar if it covers Status Icon ? i think it may be bad for mu screen :))
so, i make a better thinking from psd =]] just look it and change maybe ^^
attach img
http://forum.ragezone.com/attachment...-source-ok.jpg
And you will dont see party :) As I said before, better will be to add hp bar above each monster like its in ex702.
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
Originally Posted by
satta87
i can help you if you want, in spanish ^^... send me pm with the error or add me to skype, satta873
I got it to compile with no errors, but using the new dll; the HP bar doesnt show :|.
May you have any idea on why? I dont use skype...maybe I'll pm you later tonight.
Quote:
Originally Posted by
jacubb
And you will dont see party :) As I said before, better will be to add hp bar above each monster like its in ex702.
Exactly....best thing would be between the icons & the party bar....or like you said, as in Ex702....
1 Attachment(s)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
i think it is better now =)
Code:
MU_DrawGUI(NEWUI_BAR_SWITCH01, (MAX_WIDTH / 2) - -80, 20, 160, 18);
MU_DrawColorButton(NEWUI_BAR_SWITCH02, (MAX_WIDTH / 2) - -85, 25, (150 * pHP) / 100, 8, 0, 0, MU_CreateColor(255, 0, 0, 130));
Attachment 137887
1 Attachment(s)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
Originally Posted by
jacubb
And you will dont see party :) As I said before, better will be to add hp bar above each monster like its in ex702.
...if we can =]]]]
Quote:
Originally Posted by
ashlay
i think it is better now =)
Code:
MU_DrawGUI(NEWUI_BAR_SWITCH01, (MAX_WIDTH / 2) - -80, 20, 160, 18);
MU_DrawColorButton(NEWUI_BAR_SWITCH02, (MAX_WIDTH / 2) - -85, 25, (150 * pHP) / 100, 8, 0, 0, MU_CreateColor(255, 0, 0, 130));
Attachment 137887
well, but guy, it's so not... nice =]]]
i think the better position is place that above skill icons list, ofc when we click main skill, it will appear all skills for coverring HP Bar, but if we don't, it's ok again ^^
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
Originally Posted by
godhoang
...if we can =]]]]
well, but guy, it's so not... nice =]]]
i think the better position is place that above skill icons list, ofc when we click main skill, it will appear all skills for coverring HP Bar, but if we don't, it's ok again ^^
Code:
if (pHP)
{
MU_DrawGUI(NEWUI_BAR_SWITCH01, (MAX_WIDTH / 2) - 80, 410, 160, 18);
MU_DrawColorButton(NEWUI_BAR_SWITCH02, (MAX_WIDTH / 2) - 75, 415, (150 * pHP) / 100, 8, 0, 0, MU_CreateColor(255, 0, 0, 130));
}
Attachment 137890:hmmmm:
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
More updates on this awesome topic :P:
http://img59.imageshack.us/img59/6383/q5j1.png
I'll try to add a Step-by-step of how to add this on HPBar. All those configurations relay on client side:
1 - On Interface.h, add this right bellow "#define MU_CDC_SETTEXTCOLOR 0x00420178"
Code:
#define MU_CDC_SETBACKGROUNDCOLOR 0x004201DA
2 - Still on Interface.h, add this right bellow "typedef DWORD(__thiscall *pCDCSetTextColor)"
Code:
typedef DWORD(__thiscall *pCDCSetBackgroundColor)(LPVOID This, BYTE r, BYTE g, BYTE b, BYTE h);
3 - The last change on Interface.h is to add this right bellow "void MU_SetColor(BYTE r, BYTE g, BYTE b, BYTE h);"
Code:
void MU_SetBGColor(BYTE r, BYTE g, BYTE b, BYTE h);
4 - Now lets move to Interface.cpp and add this right bellow "pCDCSetTextColor MU_SetTextColor"
Code:
pCDCSetBackgroundColor MU_SetBackgroundColor = (pCDCSetBackgroundColor)MU_CDC_SETBACKGROUNDCOLOR;
5 - On Interface.cpp, add this function right bellow the function "MU_SetColor"
Code:
void MU_SetBGColor(BYTE r, BYTE g, BYTE b, BYTE h)
{
MU_SetBackgroundColor(CDC_This(), r, g, b, h);
}
6 - Ok, so lets finally add the code which prints those values. On mob_hp_bar.cpp, change the CMob_HPBar::Draw() to this:
Code:
void CMob_HPBar::Draw()
{
if (this->MaxHP == 0) return;
float pHP = (this->HP * 100) / this->MaxHP;
if (pHP)
{
MU_DrawGUI(NEWUI_BAR_SWITCH01, (MAX_WIDTH / 2) - 80, 20, 160, 18);
MU_DrawColorButton(NEWUI_BAR_SWITCH02, (MAX_WIDTH / 2) - 75, 25, (150 * pHP) / 100, 8, 0, 0, MU_CreateColor(255, 0, 0, 150));
MU_SetColor(0xFF, 0xFF, 0xFF, 255);
MU_SetBGColor(0, 0, 0, 0);
char msg[100];
sprintf(msg, "%d / %d", (int)this->HP, (int)this->MaxHP);
MU_OutText(300, 24, msg);
}
else
{
this->isDraw = false;
}
}
So, thats it. Maybe you need to play with X and Y coords on MU_OutText if you have changed your HPBar position.
Lets keep this work guys!
EDIT:
Also if you want to HPBar to be shown only when there is a Mob selected (with mouse over it), then change the if on cDrawInterface() function at file interface.cpp to this:
Code:
if (Mob_HP_Bar.isDraw && (*(LPBYTE)0x8C8674) != 0xFF)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
can u share your dll :D
i don't have vs and really don't know where to put updates on src , it's too many
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
if (Mob_HP_Bar.isDraw && (*(LPBYTE)0x8C8674) != 0xFF)
this fix don't work, hp bar show on Mobs and Players :tongue:
Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)
Quote:
Originally Posted by
ATJIAHT
this fix don't work, hp bar show on Mobs and Players :tongue:
By mob I mean players also :P. This fix is just to when you spread a area skill, like Evil Spirit, the HPBar dont show random mobs HP.