How to add some extra function on Source Code (Newbie Coder)

Status
Not open for further replies.
this is my problem

View attachment 97959
and the movement of the character is always walking sideways T_T

edit:

when character walk , motion if forward, but image is sideward
hard to explain
whats wrong??

i inserted in case GLAT_MOVE:

in GLCharacter.cpp


Note: i already solve the teleport problem this is now my latest problem
ill compile again
hope i think is right

EDIT:

movement solved

now how to fix the many many mouse effect?

mouse effect dont disappear
im closer now..


i cant understand T_T

any idea how to switch off
the effect when char reach the point?


any idea how?
i follow like money glow delete effect as my guide
but cant make it work


edit:
i know all of you know this already

Currently Active Users Viewing This Thread: 6 (6 members and 0 guests)
ranexplorer, zentrixph, sceon+, tobets2000+, IsamaII, PrinceOfPersia2
any hint
i know you all pro

how did you put cp bar? can u share code?
 
yes thats my problem
i less knowledge in coding (newbie)

this correct?
DxEffGroupPlayer::GetInstance().DeleteAllEff ( GLCONST_CHAR::strCLICK_EFFECT.c_str() );


edit:

hmmmm

when i put it before mouse effect starts
the effect show only when character reach the point
>.<
 
i have the same problem also so it has to show before click then after you click it must be gone. i hope sceon helps us with this ^^
 
the only left here is the if statement
means
if char reach the post x Y
delete all effect
but how to code i dunno

can anyone give a sample if statement for this

@ geger009

can i ask for your bug script mouse effect
i coz in your SS u have no problem like mine
your problem is just the coordinates
mine got no problem with coordinates
but, effect bug
 
Last edited:
declared misplaced

can you help us do the right ?

I knowu solve it already. I trade bypass script for full mouse effect with you

I KNOW people will not help without exchange now. Start at this point.
so I trade mine.

Tnx I will not ask anymore thank you
 
Last edited:
i do not need trade ,does not need the money

you code declare GLCharacter.cpp where

i declared the code here

if ( bGoto )
{
TurnAction ( GLAT_MOVE );
m_sTargetID.vPos = vCollPos;

// Note : À̵¿ ¸Þ½ÃÁö Á¤º¸.
GLMSG::SNETPC_GOTO NetMsg;
NetMsg.dwActState = m_dwActState;
NetMsg.vCurPos = m_vPos;
NetMsg.vTarPos = m_sTargetID.vPos;

m_sLastMsgMove = NetMsg;

// Note : ¸Þ¼¼Áö ¹ß»ý. ( Áö¼ÓÀûÀ¸·Î ¹ß»ýÇÏ´Â À̵¿ ÄÜÆ®·ÑÁß ÀϺθ¸ ¸Þ½ÃÁö ¹ß»ý. )
//
if ( bContinue && (m_fLastMsgMoveSend+m_fELAPS_MOVE) > fTime ) return TRUE;

DoPASSIVITY ( bREACT );

if ( m_actorMove.PathIsActive() )
{
m_fLastMsgMoveSend = fTime;
m_sLastMsgMoveSend = NetMsg;
NETSENDTOFIELD ( &NetMsg );
}
D3DXMATRIX matTrans;
D3DXMatrixTranslation ( &matTrans, m_sTargetID.vPos.x, m_sTargetID.vPos.y, m_sTargetID.vPos.z );
STARGETID sTargetID ( CROW_PC, m_dwGaeaID, m_sTargetID.vPos );
DxEffGroupPlayer::GetInstance().DeleteAllEff ( GLCONST_CHAR::strCLICK_EFFECT.c_str() );
DxEffGroupPlayer::GetInstance().NewEffGroup
(
GLCONST_CHAR::strCLICK_EFFECT.c_str(),
matTrans,
&m_sTargetID
);
}

return TRUE;
}

i can get mouse effect but it's not complete when ever i point something it doesnt show, it just shows right after before you clicked and when you reach your place it doesnt disappear.
 
where i will download or find those file like these DxPieceDefine.h and other .cpp i search my full client but nothings found??? :?: sorry for the noob question :(
 
Last edited:
where i will download or find those file like these DxPieceDefine.h and other .cpp i search my full client but nothings found??? :?: sorry for the noob question :(

this thread isn't about client, its about ran source code.
 
hmm..when i add the code here :

Code:
DoPASSIVITY ( bREACT );

if ( m_actorMove.PathIsActive() )
{
     m_fLastMsgMoveSend = fTime;
     m_sLastMsgMoveSend = NetMsg;
     NETSENDTOFIELD ( &NetMsg );

     [COLOR="Red"]D3DXMATRIX matTrans;
     D3DXMatrixTranslation ( &matTrans, m_sTargetID.vPos.x, m_sTargetID.vPos.y, m_sTargetID.vPos.z );
     STARGETID sTargetID ( CROW_PC, m_dwGaeaID, m_sTargetID.vPos );
     DxEffGroupPlayer::GetInstance().DeleteAllEff ( GLCONST_CHAR::strCLICK_EFFECT.c_str() );
     DxEffGroupPlayer::GetInstance().NewEffGroup
     (
          GLCONST_CHAR::strCLICK_EFFECT.c_str(),
          matTrans,
          &m_sTargetID
     );[/COLOR]
}

the effect still show when i hold the left mouse button (not like official but better than before, to know how it looks you must try it and compile)..so i think what we need now is the right target ( vPos ) for the effect in D3DXMatrixTranslation function.
 
thats what i do also
but the mouse still not delete when u reach the position

but now the mouse is not too many as my first post screenshot..
its now better

its same as tobets did
 
another bug, try to hold on the mouse
walk as far as you can, then release the left mouse
your character will go back to an earlier position
like teleport
 
your effect wont stop where the char reach the position??
if like that you must add the delete effect when char stoping..
search it at GLAT_MOVE
there are some code like this :
Code:
if ( !m_ActorMove.PathIsActive() )
{
      m_ActorMove.Stop();
      TurnAction ( GLAT_IDLE );
     [COLOR="Red"] DxEffGroupPlayer::GetInstance().DeleteAllEff ( GLCONST_CHAR::strCLICK_EFFECT.c_str() );[/COLOR]
}

i'm sure if you add this code your effect will gone where char reach the position..
 
Status
Not open for further replies.
Back