Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

HP/AP/EXP/DMG Colors (Code)

Newbie Spellweaver
Joined
Nov 29, 2022
Messages
13
Reaction score
11
Code:
    pDC->SetColor(MCOLOR(0xFF0033FF));
    sprintf(hp, "%d/%d", (int)pCharacter->GetHP() ,(int)pCharacter->GetMaxHP());
    TextRelative(pDC, 250.f / 800.f, 23.f / 600.f, hp);

    pDC->SetColor(MCOLOR(0xFF008000));
    sprintf(ap, "%d/%d", (int)pCharacter->GetAP() ,(int)pCharacter->GetMaxAP());
    TextRelative(pDC, 250.f / 800.f, 47.f / 600.f, ap);

    pDC->SetColor(MCOLOR(0xFFFFFFFF));
    sprintf(szMsg, "%d%%", ZGetMyInfo()->GetLevelPercent());
    TextRelative(pDC, 250.f / 800.f, 66.f / 600.f, szMsg);

    pDC->SetColor(MCOLOR(0xFFFF0000));
    sprintf(szMsg, "Damage:%d", pCharacter->GetStatus().Ref().nDamageDealt);
    TextRelative(pDC, 700.f / 800.f, 23.f / 600.f, szMsg);

Gowther_20240212_211503 - HP/AP/EXP/DMG Colors (Code) - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Back
Top