|
You last visited: Today at 18:49
Advertisement
Request HP/MP/FP displayed
Discussion on Request HP/MP/FP displayed within the Flyff Private Server forum part of the Flyff category.
12/13/2015, 19:25
|
#1
|
elite*gold: 0
Join Date: Jul 2012
Posts: 141
Received Thanks: 7
|
Request HP/MP/FP displayed
Hello!
I'm just wondering if any one has the HP/MP/FP source code, like instead of the hp showing 1000000HP it shows 1M HP, has this been released anywhere? or does anyone have the source code, thanks!
|
|
|
12/13/2015, 22:50
|
#2
|
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
|
Just learn to balance your game instead of trying to fix the symptoms of unnecessary high effects on weapons, sets and skills.
|
|
|
12/14/2015, 09:18
|
#3
|
elite*gold: 0
Join Date: Dec 2012
Posts: 239
Received Thanks: 33
|
Quote:
Originally Posted by laitila
Hello!
I'm just wondering if any one has the HP/MP/FP source code, like instead of the hp showing 1000000HP it shows 1M HP, has this been released anywhere? or does anyone have the source code, thanks!
|
Open your wndfield
search for this
Code:
else
{
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
int x = lpHP->rect.right - 82;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());
x = lpHP->rect.right - 30;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
int nWidthCustom = lpHP->rect.Width();
int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );
p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
}
then replace
with this:
Code:
else
{
/**************************************************************/
//HP
/**************************************************************/
if ( pMover->GetHitPoint() >= 10000 && pMover->GetHitPoint() <= 999999 )
{
nCharHP = wsprintf(cbufHp, "%dk", pMover->GetHitPoint() / 1000 );
}
else
if ( pMover->GetHitPoint() >= 1000000 && pMover->GetHitPoint() <= 999999999 )
{
nCharHP = wsprintf(cbufHp, "%dm", pMover->GetHitPoint() / 1000000 );
}
else
if ( pMover->GetHitPoint() >= 1000000000 )
{
nCharHP = wsprintf(cbufHp, "%db", pMover->GetHitPoint() / 1000000000 );
}
else
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
/**************************************************************/
//MP
/**************************************************************/
if ( pMover->GetManaPoint() >= 10000 && pMover->GetManaPoint() <= 999999 )
{
nCharMP = wsprintf(cbufMp, "%dk", pMover->GetManaPoint() / 1000 );
}
else
if ( pMover->GetManaPoint() >= 1000000 && pMover->GetManaPoint() <= 999999999 )
{
nCharMP = wsprintf(cbufMp, "%dm", pMover->GetManaPoint() / 1000000 );
}
else
if ( pMover->GetManaPoint() >= 1000000000 )
{
nCharMP = wsprintf(cbufMp, "%db", pMover->GetManaPoint() / 1000000000 );
}
else
nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
/**************************************************************/
//FP
/**************************************************************/
if ( pMover->GetFatiguePoint() >= 10000 && pMover->GetFatiguePoint() <= 999999 )
{
nCharFP = wsprintf(cbufFp, "%dk", pMover->GetFatiguePoint() / 1000 );
}
else
if ( pMover->GetFatiguePoint() >= 1000000 && pMover->GetFatiguePoint() <= 999999999 )
{
nCharFP = wsprintf(cbufFp, "%dm", pMover->GetFatiguePoint() / 1000000 );
}
else
if ( pMover->GetFatiguePoint() >= 1000000000 )
{
nCharFP = wsprintf(cbufFp, "%db", pMover->GetFatiguePoint() / 1000000000 );
}
else
nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
int x = lpHP->rect.right - 82;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
/**************************************************************/
//HP
/**************************************************************/
if ( pMover->GetMaxHitPoint() >= 10000 && pMover->GetMaxHitPoint() <= 999999 )
{
nCharHP = wsprintf(cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000 );
}
else
if ( pMover->GetMaxHitPoint() >= 1000000 && pMover->GetMaxHitPoint() <= 999999999 )
{
nCharHP = wsprintf(cbufHp, "%dm", pMover->GetMaxHitPoint() / 1000000 );
}
else
if ( pMover->GetMaxHitPoint() >= 1000000000 )
{
nCharHP = wsprintf(cbufHp, "%db", pMover->GetMaxHitPoint() / 1000000000 );
}
else
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
/**************************************************************/
//MP
/**************************************************************/
if ( pMover->GetMaxManaPoint() >= 10000 && pMover->GetMaxManaPoint() <= 999999 )
{
nCharMP = wsprintf(cbufMp, "%dk", pMover->GetMaxManaPoint() / 1000 );
}
else
if ( pMover->GetMaxManaPoint() >= 1000000 && pMover->GetMaxManaPoint() <= 999999999 )
{
nCharMP = wsprintf(cbufMp, "%dm", pMover->GetMaxManaPoint() / 1000000 );
}
else
if ( pMover->GetMaxManaPoint() >= 1000000000 )
{
nCharMP = wsprintf(cbufMp, "%db", pMover->GetMaxManaPoint() / 1000000000 );
}
else
nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
/**************************************************************/
//FP
/**************************************************************/
if ( pMover->GetMaxFatiguePoint() >= 10000 && pMover->GetMaxFatiguePoint() <= 999999 )
{
nCharFP = wsprintf(cbufFp, "%dk", pMover->GetMaxFatiguePoint() / 1000 );
}
else
if ( pMover->GetMaxFatiguePoint() >= 1000000 && pMover->GetMaxFatiguePoint() <= 999999999 )
{
nCharFP = wsprintf(cbufFp, "%dm", pMover->GetMaxFatiguePoint() / 1000000 );
}
else
if ( pMover->GetMaxFatiguePoint() >= 1000000000 )
{
nCharFP = wsprintf(cbufFp, "%db", pMover->GetMaxFatiguePoint() / 1000000000 );
}
else
nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());
x = lpHP->rect.right - 30;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
int nWidthCustom = lpHP->rect.Width();
int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );
p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
}
|
|
|
12/14/2015, 16:42
|
#4
|
elite*gold: 0
Join Date: Jul 2012
Posts: 141
Received Thanks: 7
|
Quote:
Originally Posted by macboyem07
Open your wndfield
search for this
Code:
else
{
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
int x = lpHP->rect.right - 82;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());
x = lpHP->rect.right - 30;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
int nWidthCustom = lpHP->rect.Width();
int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );
p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
}
then replace
with this:
Code:
else
{
/**************************************************************/
//HP
/**************************************************************/
if ( pMover->GetHitPoint() >= 10000 && pMover->GetHitPoint() <= 999999 )
{
nCharHP = wsprintf(cbufHp, "%dk", pMover->GetHitPoint() / 1000 );
}
else
if ( pMover->GetHitPoint() >= 1000000 && pMover->GetHitPoint() <= 999999999 )
{
nCharHP = wsprintf(cbufHp, "%dm", pMover->GetHitPoint() / 1000000 );
}
else
if ( pMover->GetHitPoint() >= 1000000000 )
{
nCharHP = wsprintf(cbufHp, "%db", pMover->GetHitPoint() / 1000000000 );
}
else
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
/**************************************************************/
//MP
/**************************************************************/
if ( pMover->GetManaPoint() >= 10000 && pMover->GetManaPoint() <= 999999 )
{
nCharMP = wsprintf(cbufMp, "%dk", pMover->GetManaPoint() / 1000 );
}
else
if ( pMover->GetManaPoint() >= 1000000 && pMover->GetManaPoint() <= 999999999 )
{
nCharMP = wsprintf(cbufMp, "%dm", pMover->GetManaPoint() / 1000000 );
}
else
if ( pMover->GetManaPoint() >= 1000000000 )
{
nCharMP = wsprintf(cbufMp, "%db", pMover->GetManaPoint() / 1000000000 );
}
else
nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
/**************************************************************/
//FP
/**************************************************************/
if ( pMover->GetFatiguePoint() >= 10000 && pMover->GetFatiguePoint() <= 999999 )
{
nCharFP = wsprintf(cbufFp, "%dk", pMover->GetFatiguePoint() / 1000 );
}
else
if ( pMover->GetFatiguePoint() >= 1000000 && pMover->GetFatiguePoint() <= 999999999 )
{
nCharFP = wsprintf(cbufFp, "%dm", pMover->GetFatiguePoint() / 1000000 );
}
else
if ( pMover->GetFatiguePoint() >= 1000000000 )
{
nCharFP = wsprintf(cbufFp, "%db", pMover->GetFatiguePoint() / 1000000000 );
}
else
nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
int x = lpHP->rect.right - 82;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
/**************************************************************/
//HP
/**************************************************************/
if ( pMover->GetMaxHitPoint() >= 10000 && pMover->GetMaxHitPoint() <= 999999 )
{
nCharHP = wsprintf(cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000 );
}
else
if ( pMover->GetMaxHitPoint() >= 1000000 && pMover->GetMaxHitPoint() <= 999999999 )
{
nCharHP = wsprintf(cbufHp, "%dm", pMover->GetMaxHitPoint() / 1000000 );
}
else
if ( pMover->GetMaxHitPoint() >= 1000000000 )
{
nCharHP = wsprintf(cbufHp, "%db", pMover->GetMaxHitPoint() / 1000000000 );
}
else
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
/**************************************************************/
//MP
/**************************************************************/
if ( pMover->GetMaxManaPoint() >= 10000 && pMover->GetMaxManaPoint() <= 999999 )
{
nCharMP = wsprintf(cbufMp, "%dk", pMover->GetMaxManaPoint() / 1000 );
}
else
if ( pMover->GetMaxManaPoint() >= 1000000 && pMover->GetMaxManaPoint() <= 999999999 )
{
nCharMP = wsprintf(cbufMp, "%dm", pMover->GetMaxManaPoint() / 1000000 );
}
else
if ( pMover->GetMaxManaPoint() >= 1000000000 )
{
nCharMP = wsprintf(cbufMp, "%db", pMover->GetMaxManaPoint() / 1000000000 );
}
else
nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
/**************************************************************/
//FP
/**************************************************************/
if ( pMover->GetMaxFatiguePoint() >= 10000 && pMover->GetMaxFatiguePoint() <= 999999 )
{
nCharFP = wsprintf(cbufFp, "%dk", pMover->GetMaxFatiguePoint() / 1000 );
}
else
if ( pMover->GetMaxFatiguePoint() >= 1000000 && pMover->GetMaxFatiguePoint() <= 999999999 )
{
nCharFP = wsprintf(cbufFp, "%dm", pMover->GetMaxFatiguePoint() / 1000000 );
}
else
if ( pMover->GetMaxFatiguePoint() >= 1000000000 )
{
nCharFP = wsprintf(cbufFp, "%db", pMover->GetMaxFatiguePoint() / 1000000000 );
}
else
nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());
x = lpHP->rect.right - 30;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
int nWidthCustom = lpHP->rect.Width();
int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );
p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
}
|
Thank you man been looking a long time for this
Quote:
Originally Posted by Mognakor
Just learn to balance your game instead of trying to fix the symptoms of unnecessary high effects on weapons, sets and skills.
|
Dude i can do whatever i want with my server
|
|
|
 |
Similar Threads
|
[GUICtrlCreatePic] image is not displayed
02/21/2014 - AutoIt - 5 Replies
~Close
image is not displayed
German:Hallo Community,
der Banner wird nicht angezeigt und ich weiß nicht wieso. (Bin zu blöd den Fehler zu erkennen) ich wollte euch fragen, ob mir jemand weiter helfen kann.
Freundliche grüße
md88
|
VSro - Names are not displayed
04/11/2013 - SRO Private Server - 2 Replies
Hello :)
As the title says, no names!
No NPC names..
No Skill names..
Weapons,Armor,Quest,Trader .... I miss the names and texts...
Were can I dl a good mediapk2 or how can I fix the problem?
|
WoW: Personal Information to be Displayed on Official Forums
01/30/2011 - Gaming News - EN - 7 Replies
Today Blizzard announced some highly controversial changes to the format of the Official Forums. Players will post using their Battle.net RealID account (as usual) however the actual name attached to the account will be displayed alongside a character name.
This is a controversial proposal for obvious reasons; many players don't want their real name shared with everyone that reads a thread they post in. In this day and age someone's name can be used to find out a massive amount of...
|
All times are GMT +1. The time now is 18:51.
|
|