Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

Page 10 of 19 FirstFirst ... 23456789101112131415161718 ... LastLast
Results 136 to 150 of 279
  1. #136
    Nothing Better godhoang is offline
    MemberRank
    Jul 2008 Join Date
    vietnamLocation
    557Posts

    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
    Attached Thumbnails Attached Thumbnails ok.jpg  

  2. #137
    ^_^ ashlay is offline
    MemberRank
    Jun 2010 Join Date
    BrazilLocation
    874Posts

    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));
    	}
    screen-10_04-00_09-0001.jpg

  3. #138
    Valued Member satta87 is offline
    MemberRank
    Oct 2011 Join Date
    ARGENTINALocation
    101Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Quote Originally Posted by ianvalls90 View Post
    @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

  4. #139
    C/C++,PHP,HTML,Java,ASM zasmqniq is offline
    MemberRank
    Jan 2009 Join Date
    BulgariaLocation
    435Posts

    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!

  5. #140
    Member lops118 is offline
    MemberRank
    Mar 2011 Join Date
    bllaac hujovaLocation
    51Posts

    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.... ;)

  6. #141
    ImperiaMuCMS CEO jacubb is offline
    MemberRank
    Jul 2011 Join Date
    SlovakiaLocation
    1,507Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Quote Originally Posted by godhoang View Post
    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
    And you will dont see party :) As I said before, better will be to add hp bar above each monster like its in ex702.

  7. #142
    Alpha Member ianvalls90 is offline
    MemberRank
    Apr 2007 Join Date
    ArgentinaLocation
    1,829Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Quote Originally Posted by satta87 View Post
    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 View Post
    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....

  8. #143
    ^_^ ashlay is offline
    MemberRank
    Jun 2010 Join Date
    BrazilLocation
    874Posts

    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));
    screen-10_04-19_34-0002.jpg

  9. #144
    Nothing Better godhoang is offline
    MemberRank
    Jul 2008 Join Date
    vietnamLocation
    557Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Quote Originally Posted by jacubb View Post
    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 View Post
    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));
    screen-10_04-19_34-0002.jpg
    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 ^^
    Attached Thumbnails Attached Thumbnails screen-10_04-19_34-0002.jpg  

  10. #145
    ^_^ ashlay is offline
    MemberRank
    Jun 2010 Join Date
    BrazilLocation
    874Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Quote Originally Posted by godhoang View Post
    ...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

  11. #146
    Lage Company™ afonsolage is offline
    MemberRank
    Mar 2012 Join Date
    Fortaleza, BRALocation
    244Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    More updates on this awesome topic



    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)
    Last edited by afonsolage; 06-10-13 at 05:48 PM.

  12. #147
    Valued Member redf0x is offline
    MemberRank
    Jun 2012 Join Date
    124Posts

    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

  13. #148
    Lage Company™ afonsolage is offline
    MemberRank
    Mar 2012 Join Date
    Fortaleza, BRALocation
    244Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Ok, here it is. Enjoy.

  14. #149
    Member ATJIAHT is offline
    MemberRank
    Jul 2008 Join Date
    65Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    if (Mob_HP_Bar.isDraw && (*(LPBYTE)0x8C8674) != 0xFF)
    this fix don't work, hp bar show on Mobs and Players

  15. #150
    Lage Company™ afonsolage is offline
    MemberRank
    Mar 2012 Join Date
    Fortaleza, BRALocation
    244Posts

    Re: Client 1.03P ENG Source(CustomHP-CustomMonster-CustomItems and more)

    Quote Originally Posted by ATJIAHT View Post
    this fix don't work, hp bar show on Mobs and Players
    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.



Advertisement