|
You last visited: Today at 10:58
Advertisement
How to add coordinate display?
Discussion on How to add coordinate display? within the Flyff Private Server forum part of the Flyff category.
10/30/2011, 14:08
|
#1
|
elite*gold: 0
Join Date: Oct 2011
Posts: 60
Received Thanks: 0
|
How to add coordinate display?
How in the game the upper right above the small map added that coordinates... ?
|
|
|
10/30/2011, 14:11
|
#2
|
elite*gold: 0
Join Date: Sep 2011
Posts: 244
Received Thanks: 96
|
If i understood it, you have to look for the functions were if you press 9 the coordinates are written into a .txt file, now take it and let it continously show your coordinates via i think sprintf function, above the mini map.
|
|
|
10/30/2011, 14:58
|
#3
|
elite*gold: 15
Join Date: May 2010
Posts: 5,996
Received Thanks: 2,283
|
You can write /position in the Chat, then you can see your coordinates.
But I don't know, how to display the coordinates over the Mini Map.
|
|
|
10/30/2011, 15:04
|
#4
|
elite*gold: 0
Join Date: Aug 2011
Posts: 206
Received Thanks: 117
|
Do it like this :
WndField.cpp
Search for
Code:
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
CPoint point( rectRoot.right - rectWindow.Width(), rectRoot.top );
Move( point );
After this, add this:
Code:
#ifdef __MINIMAP_COORDINATES
CString StrCoordinates; //CString Variable erstellen
D3DXVECTOR3 vPos = g_pPlayer->GetPos(); //Position in 3D Vector speichern
StrCoordinates.Format( prj.GetText(TID_GAME_NOWPOSITION), vPos.x, vPos.y, vPos.z ); //Koordinaten in CString schreiben
CWndStatic* pSkillNameStatic;
pSkillNameStatic = (CWndStatic*) GetDlgItem( WIDC_STATIC2 );
pSkillNameStatic->SetTitle(StrCoordinates); //Koordinaten auf dem Bildschirm ausgeben
#endif //__MINIMAP_COORDINATES
Now define __MINIMAP_COORDINATES in the VersionCommon.h of the Neuz.
Finaly, bring up a StaticControl namend WIDC_STATIC2 in Daisy were you want.
Finish
|
|
|
10/30/2011, 15:30
|
#5
|
elite*gold: 20
Join Date: Apr 2009
Posts: 804
Received Thanks: 829
|
Code:
char sMsg[256] = { 0 };
D3DXVECTOR3 pPos = g_pPlayer->GetPos();
sprintf( sMsg, "( %i, %i, %i )",pPos.x,pPos.y,pPos.z);
CRect rectWindow = GetClientRect();
p2DRender->TextOut(rectWindow.left + 18, rectWindow.bottom - 18, sMsg, 0xff000000);
Without Static.
EDIT: void CWndNavigator::OnDraw(C2DRender* p2DRender) is the function.
|
|
|
10/30/2011, 17:20
|
#6
|
elite*gold: 0
Join Date: Oct 2011
Posts: 60
Received Thanks: 0
|
I want this effect
|
|
|
10/30/2011, 17:48
|
#7
|
elite*gold: 0
Join Date: Jun 2008
Posts: 198
Received Thanks: 72
|
i can give you the code later.
|
|
|
10/30/2011, 17:50
|
#8
|
elite*gold: 0
Join Date: Oct 2011
Posts: 60
Received Thanks: 0
|
Quote:
Originally Posted by killerooo
i can give you the code later.
|
Thank you, hope you can guide me to complete, I do not understand C + +
|
|
|
10/30/2011, 17:59
|
#9
|
elite*gold: 20
Join Date: Apr 2009
Posts: 804
Received Thanks: 829
|
Use
Code:
#ifdef __SHOW_POS_ON_NAVIGATER
if( g_pPlayer == NULL ) {
SetTitle( "Navigater" );
return;
}
char szMsg[256] = { 0 };
D3DXVECTOR3 pPos = g_pPlayer->GetPos();
sprintf( szMsg, "Pos: (%i , %i, %i)",pPos.x,pPos.y,pPos.z);
SetTitle( szMsg );
#endif
|
|
|
10/30/2011, 18:14
|
#10
|
elite*gold: 0
Join Date: Oct 2011
Posts: 60
Received Thanks: 0
|
Quote:
Originally Posted by Pumbaaa
Use
Code:
#ifdef __SHOW_POS_ON_NAVIGATER
if( g_pPlayer == NULL ) {
SetTitle( "Navigater" );
return;
}
char szMsg[256] = { 0 };
D3DXVECTOR3 pPos = g_pPlayer->GetPos();
sprintf( szMsg, "Pos: (%d , %d, %d)",pPos.x,pPos.y,pPos.z);
SetTitle( szMsg );
#endif
|
The code to put where?
|
|
|
10/30/2011, 18:39
|
#11
|
elite*gold: 20
Join Date: Apr 2009
Posts: 804
Received Thanks: 829
|
After
Code:
void CWndNavigator::OnDraw(C2DRender* p2DRender)
{
#if __VER >= 13 // __RAINBOW_RACE
// Rainbow Race Time Ãâ·Â
DWORD dwRainbowRaceTime = CRainbowRace::GetInstance()->m_dwRemainTime;
if(dwRainbowRaceTime > 0)
{
char szMsg[256] = { 0 };
CTimeSpan ct( (dwRainbowRaceTime - GetTickCount()) / 1000 );
sprintf( szMsg, "%.2d:%.2d:%.2d", ct.GetHours(), ct.GetMinutes(), ct.GetSeconds() );
CRect rectWindow = GetClientRect();
p2DRender->TextOut(rectWindow.right - 50, rectWindow.bottom - 16, szMsg, 0xffffff00);
}
#endif //__RAINBOW_RACE
|
|
|
10/30/2011, 18:49
|
#12
|
elite*gold: 0
Join Date: Jun 2008
Posts: 198
Received Thanks: 72
|
Pumbaa wieso gibst du den Leuten alles ?
#closerequest
|
|
|
10/30/2011, 18:51
|
#13
|
elite*gold: 0
Join Date: Sep 2011
Posts: 244
Received Thanks: 96
|
Weil er es kann
|
|
|
10/30/2011, 18:53
|
#14
|
elite*gold: 0
Join Date: Jun 2008
Posts: 198
Received Thanks: 72
|
Monster dich hab ich nicht gefragt Pumbaaa hat das nicht gecodet 
er hat paar koreanische Zeichen zu "Pos" gemacht und nen fehlendes %d rangehängt.
Ausserdem die Variablen sNavPos und sPos hättest ja wohl nutzen können 
Man muss eine Variable für y x z erstellen und den char auf die ersten 3 Werte beschränken da ansonsten die Zahlen das Fenster sprengen.
Desweiteren würde ich die Refreshtime der Position auf 1ne Sekunde beschränken da das ansonsten ziemlich unschön aussieht
|
|
|
10/30/2011, 19:02
|
#15
|
elite*gold: 20
Join Date: Apr 2009
Posts: 804
Received Thanks: 829
|
Quote:
Originally Posted by killerooo
Monster dich hab ich nicht gefragt Pumbaaa hat das nicht gecodet 
er hat paar koreanische Zeichen zu "Pos" gemacht und nen fehlendes %d rangehängt.
Ausserdem die Variablen sNavPos,Get2DPos und sPos hättest ja wohl nutzen können 
|
Omg,
1.) der Code stammt aus dem Chinesischen Source
2.) sollte es für niemanden mit halbwegs Ahnung von dem Flyff Source ein Problem darstellen, sowas zu coden.
Es ist nichts besonderes, nur den Titel von einem Fenster auf ein paar Integerwerte zu ändern, sowas solltest sogar du hinbekommen...
PS: Get2DPos ist keine Variable, du Held -.-
|
|
|
 |
|
Similar Threads
|
COnquer coordinate in cartesian coordinate ?
02/07/2011 - CO2 Programming - 5 Replies
i m working on my minimap in pro4never proxy, i cleaning map from coquer site and put in picture box
now i want to locate my char in this minimap likes in game :) but the coordinate in game are different view of classic cartesian coordinate :)
some1 had module to trasform Conquer coordinate in cartesian coordinate ?
or explain me why cood traslation in math not work :// :handsdown:
i m working on this sistem
|
z-coordinate
07/06/2010 - Aion Private Server - 0 Replies
anyone managed to manipulate the in game z-position? (overground, standing above the ground without flying...)
found the value as float via uce but nothing happens when i freeze or change it -.-
greetz
|
z-coordinate
07/06/2010 - Aion - 0 Replies
anyone knows how to manipulate my z-position?
im able to find it via uce as float-value, but nothing happens when i freeze it or change it...
dont realy understand that xD
greetz
|
Coordinate
05/08/2010 - Conquer Online 2 - 16 Replies
I was thinking is there any bot that can search for coordinate in all co map.:handsdown:Like this (Twin City, 387 369)..Is there are someone intelligent enought to create this bot.so with this it will be easier to find coordinate for quest?
|
x y z coordinate?
02/24/2009 - General Gaming Discussion - 3 Replies
Hey,
is there a command ingame to find out x y z coordinate of my char?
I want to search in the memory for such values, so I can create a Bot
|
All times are GMT +1. The time now is 10:59.
|
|