You last visited: Today at 04:38
Advertisement
Pet Aura
Discussion on Pet Aura within the Flyff Private Server forum part of the Flyff category.
05/22/2017, 06:23
#1
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Pet Aura
Hi guys,
I just wanted to know why I can't put the buff pet or the ordinary pet inside the box of aura change. *Image inserted*
Here's my wndfield.cpp
CWndPetGlowChange::CWndPetGlowChange()
{
m_pTexture = NULL;
m_pItemElem = NULL;
m_pEItemProp = NULL;
m_nSelected = NULL;
}
CWndPetGlowChange::~CWndPetGlowChange()
{
}
void CWndPetGlowChange::OnMouseWndSurface(CPoint point)
{
LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC2 );
CRect DrawRect;
if(wndCtrl->rect.PtInRect(point))
{
DrawRect = wndCtrl->rect;
CPoint point2 = point;
ClientToScreen( &point2 );
ClientToScreen( &DrawRect );
if(m_pItemElem != NULL && m_pTexture != NULL)
g_WndMng.PutToolTip_Item( m_pItemElem, point2, &DrawRect, APP_CHANGE_PETGLOW);
}
CWndNeuz::OnMouseWndSurface(point);
}
void CWndPetGlowChange::OnSize( UINT nType, int cx, int cy )
{
CWndNeuz::OnSize( nType, cx, cy );
}
void CWndPetGlowChange::OnLButtonDblClk( UINT nFlags, CPoint point )
{
}
BOOL CWndPetGlowChange::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )//
{
CItemElem* pTempElem;
pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId );
LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC2 );
if( wndCtrl->rect.PtInRect( point ))
{
if( pTempElem != NULL)
{
if(m_pItemElem) m_pItemElem->SetExtra(0);
m_pItemElem = pTempElem;
m_pEItemProp = m_pItemElem->GetProp();
if(m_pEItemProp != NULL)
{
m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff );
}
m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1);
}
}
return TRUE;
}
BOOL CWndPetGlowChange::Initialize( CWndBase* pWndParent, DWORD nType )
{
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_CHANGE_PETGLOW , 0, CPoint( 0, 0 ), pWndParent );
}
BOOL CWndPetGlowChange::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
if( nID == WIDC_BUTTON1 )
{
CWndListBox* pWndListBox = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 );
m_nSelected = pWndListBox->GetCurSel();
if( !m_pItemElem )
{
g_WndMng.OpenMessageBox("No pick-ups are placed in the window");
}
else if( m_nSelected > 0 || m_nSelected <= 22 )
{
g_DPlay.OnChangePetGlow( m_pItemElem->m_dwObjId, m_nSelected);
m_pItemElem->SetExtra(0);
Destroy();
}
}
if( nID == WIDC_BUTTON2 )
Destroy();
return CWndNeuz::OnChildNotify( message, nID, pLResult );
}
void CWndPetGlowChange::OnDraw( C2DRender* p2DRender )
{
ItemProp* pItemProp;
if(m_pItemElem != NULL)
{
pItemProp = m_pItemElem->GetProp();
LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC2 );
if(m_pTexture != NULL)
m_pTexture->Render( p2DRender, CPoint( wndCtrl->rect.left, wndCtrl->rect.top ) );
}
}
void CWndPetGlowChange::OnDestroy()
{
if(m_pItemElem != NULL)
{
if( !g_pPlayer->m_vtInfo.IsTrading( m_pItemElem ) )
m_pItemElem->SetExtra(0);
}
}
void CWndPetGlowChange::OnInitialUpdate()
{
CWndNeuz::OnInitialUpdate();
CString strDes;
CWndText* pText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
strDes= "#cffC6E2FF#b#uAura of the Collector#nb#nu\nYou can change the aura of your Buff Pet here\n#cffC6E2FF#b#uTo do this, move the icon of your pickup anywhere on the surface of the window#nb#nu\n#cff0099CC#b#u#nb#nu#nc";
pText->SetString( strDes, 0xFF1e90ff );
RestoreDeviceObjects();
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
CPoint point( rectRoot.right - rectWindow.Width(), 110 );
Move( point );
CWndListBox* pListBox = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 );
pListBox->AddString("Rouge");
pListBox->AddString("Blue");
pListBox->AddString("Yellow");
pListBox->AddString("Vert");
pListBox->AddString("Violet");
pListBox->AddString("Noir");
pListBox->AddString("Orange");
pListBox->AddString("Rose");
pListBox->AddString("Multicolor");
pListBox->AddString("Argent eclatant");
pListBox->AddString("Or eclatant");
pListBox->AddString("Dark Violet");
MoveParentCenter();
}
Here's my Resdata.inc
APP_CHANGE_PETGLOW "WndTile00.tga" "" 1 400 336 0x2410000 26
{
// Title String
IDS_PETGLOW_INC_000004
}
{
// Help Key
IDS_PETGLOW_INC_000005
}
{
WTYPE_LISTBOX WIDC_LISTBOX1 "WndEditTile00.tga" 1 18 18 166 278 0x20020000 0 0 0 0 46 112 169
{
// Title String
IDS_PETGLOW_INC_000006
}
{
// ToolTip
IDS_PETGLOW_INC_000007
}
WTYPE_TEXT WIDC_TEXT1 "WndEditTile00.tga" 1 172 22 360 112 0x20020000 0 0 0 0 46 112 169
{
// Title String
IDS_PETGLOW_INC_000008
}
{
// ToolTip
IDS_PETGLOW_INC_000009
}
WTYPE_STATIC WIDC_STATIC1 "" 0 235 127 331 143 0x2220000 0 0 0 0 46 112 169
{
// Title String
IDS_PETGLOW_INC_000010
}
{
// ToolTip
IDS_PETGLOW_INC_000011
}
WTYPE_STATIC WIDC_STATIC2 "back_Slotitem.tga" 0 241 151 273 183 0x2220000 0 0 0 0 46 112 169
{
// Title String
IDS_PETGLOW_INC_000012
}
{
// ToolTip
IDS_PETGLOW_INC_000013
}
WTYPE_BUTTON WIDC_BUTTON1 "ButtNormal01.tga" 0 208 200 314 224 0x220010 0 0 0 0 46 112 169
{
// Title String
IDS_PETGLOW_INC_000014
}
{
// ToolTip
IDS_PETGLOW_INC_000015
}
WTYPE_BUTTON WIDC_BUTTON2 "ButtNormal01.tga" 0 210 240 316 264 0x220010 0 0 0 0 46 112 169
{
// Title String
IDS_PETGLOW_INC_000016
}
{
// ToolTip
IDS_PETGLOW_INC_000017
}
}
Note: Been tested to full the buff pet with beads but still can't change its aura
Hope someone will help me
Also can i have the list of pet aura sfx file?
05/22/2017, 08:33
#2
elite*gold: 0
Join Date: May 2017
Posts: 146
Received Thanks: 31
What sfx Texture you want to use ?
I Check your Code but i don't See any Viewpoint about the sfx Glow Name...
From what Source you got the System?
Maybe Turn Off your pet and try it again if it's inside? xD
05/22/2017, 08:41
#3
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
I don't see anything wrong in code. Check CWndPetGlowChange::OnDropIcon with breakpoints.
05/22/2017, 09:42
#4
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Quote:
Originally Posted by
Xeylou
What sfx Texture you want to use ?
I Check your Code but i don't See any Viewpoint about the sfx Glow Name...
From what Source you got the System?
Maybe Turn Off your pet and try it again if it's inside? xD
I just meant to say. If there's any sfx file that is being needed to me to see of the glows
but my main problem is I can't put my buff pet inside the box
Quote:
Originally Posted by
alfredico
I don't see anything wrong in code. Check CWndPetGlowChange::OnDropIcon with breakpoints.
Same here but I don't know why I can't even put my pet inside the box even thought the code's are putted correctly even on the resource
05/22/2017, 09:52
#5
elite*gold: 0
Join Date: May 2017
Posts: 146
Received Thanks: 31
Error Log?
Server/Client ?
05/22/2017, 12:38
#6
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Quote:
Originally Posted by
Xeylou
Error Log?
Server/Client ?
Oww I forgot to look at my Client Log so here is it
A very huge error on my Client Log but there's no any error in Server
2017/ 5/22 18:26:52 GetModelElem - out of range: type=3, size=3523, index=10240
2017/ 5/22 18:26:52 CModelMng::loadModel objtype=3 index=10240 bpart=0
2017/ 5/22 18:26:52 CreateSfx : 10240 sfxÀÇ m_pModelÀÌ ¾øÀ½
2017/ 5/22 18:26:52 An error occurred with the worldboss function
2017/ 5/22 18:26:52 GetModelElem - out of range: type=3, size=3523, index=10240
2017/ 5/22 18:26:52 CModelMng::loadModel objtype=3 index=10240 bpart=0
I hope you can help me with this. This error occur While opening a Buffed Pet. the error's continue while opening a buff pet.
05/22/2017, 14:19
#7
elite*gold: 0
Join Date: May 2017
Posts: 146
Received Thanks: 31
Quote:
Originally Posted by
Yolo143
2017/ 5/22 18:26:52 GetModelElem - out of range: type=3, size=3523, index=10240
2017/ 5/22 18:26:52 CModelMng::loadModel objtype=3 index=10240 bpart=0
2017/ 5/22 18:26:52 CreateSfx : 10240 sfxÀÇ m_pModelÀÌ ¾øÀ½
2017/ 5/22 18:26:52 An error occurred with the worldboss function
2017/ 5/22 18:26:52 GetModelElem - out of range: type=3, size=3523, index=10240
2017/ 5/22 18:26:52 CModelMng::loadModel objtype=3 index=10240 bpart=0
Now, take a look...
The RED Text is from a Texture/Obj Failure.. (Maybe you added a map with Custom Models you dont have.)
The GREEN Text is from your Pet Glow...
Check the Function
CreateSfx !!
It seems that you are missing the Sfx or your Files have a Problem to read the Sfx correct..
'An error occurred with the worldboss function' i dont know <.<
05/22/2017, 16:04
#8
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Quote:
Originally Posted by
Xeylou
Now, take a look...
The RED Text is from a Texture/Obj Failure.. (Maybe you added a map with Custom Models you dont have.)
The GREEN Text is from your Pet Glow...
Check the Function CreateSfx !!
It seems that you are missing the Sfx or your Files have a Problem to read the Sfx correct..
'An error occurred with the worldboss function' i dont know <.<
No its not on the map. Because the error only comes up everytime I open the buff pet. if its on the map I will going to receive that error immediately right? but its not. so maybe it has something to do with the model of something shit im clueless
This is what I found
under user.cpp
void CUserMng::AddChangePetGlowSfxId( CMover* pMover )
{
try{
CAr ar;
ar << GETID( pMover ) << SNAPSHOTTYPE_PETGLOW_CHANGESFX;
ar << pMover->m_dwPetGlow;
GETBLOCK( ar, lpBuf, nBufSize );
FOR_VISIBILITYRANGE( pMover )
USERPTR->AddBlock( lpBuf, nBufSize );
NEXT_VISIBILITYRANGE( pMover )
}
catch(...)
{
Error("An error occurred with the worldboss function");
}
}
Under Itemupgrade.cpp
try{
DWORD dwPetGlow = pItemElemPet->GetPetGlowChange();
if( pVisPet->m_dwPetGlow != dwPetGlow )
{
pVisPet->m_dwPetGlow = dwPetGlow;
g_UserMng.AddChangePetGlowSfxId( pVisPet );
}
}
catch(...)
{
Error("An error occurred with the worldboss function");
}
Under Mover.cpp
void CMover::SetSfxPetGlow( DWORD dwGlowEffect )
{
try{
if( m_pSfxPetGlow )
{
g_WorldMng.Get()->RemoveObj( m_pSfxPetGlow );
m_pSfxPetGlow = NULL;
}
if( NULL_ID != dwGlowEffect && g_Option.m_nSfxLevel > 2)
{
m_pSfxPetGlow = CreateSfx( g_Neuz.m_pd3dDevice, dwGlowEffect, GetPos(), GetId(), GetPos(), GetId() );
m_pSfxPetGlow->SetScale(D3DXVECTOR3(8.0f,8.0f,8.0f));
}
}
catch(...)
{
Error("An error occurred with the worldboss function");
}
}
What i've found on createsfx
under CreateObj.cpp
case XI_BUFFPET_GRADE1:
case XI_BUFFPET_GRADE2:
case XI_BUFFPET_GRADE3:
pObj = new CSfxLinkMover();
break;
#ifdef __AURA
case XI_GEN_ITEM_SETITEM34:
case XI_GEN_ITEM_BUFF_PETGLOW01:
case XI_GEN_ITEM_BUFF_PETGLOW02:
case XI_GEN_ITEM_BUFF_PETGLOW03:
case XI_GEN_ITEM_BUFF_PETGLOW04:
case XI_GEN_ITEM_BUFF_PETGLOW05:
case XI_GEN_ITEM_BUFF_PETGLOW06:
case XI_GEN_ITEM_BUFF_PETGLOW07:
case XI_GEN_ITEM_BUFF_PETGLOW08:
case XI_GEN_ITEM_BUFF_PETGLOW09:
case XI_GEN_ITEM_BUFF_PETGLOW10:
case XI_GEN_ITEM_BUFF_PETGLOW11:
case XI_GEN_ITEM_BUFF_PETGLOW12:
pObj = new CSfxLinkMover();
break;
#endif
case 0: break;
default: pObj = new CSfx(); break;
}
if( pObj )
{
int bRet = pObj->SetSfx( pd3dDevice, dwSfxObj, vPosSrc, idSrc, vPosDest, idDest, nSec );
if( bRet )
{
if( pObj->GetModel() == NULL )
{
LPCTSTR szErr = Error( "CreateSfx : %d sfx의 m_pModel이 없음", dwSfxObj );
ADDERRORMSG( szErr );
}
if( pObj->GetModel()->m_pModelElem == NULL )
{
LPCTSTR szErr = Error( "CreateSfx : %d sfx의 m_pModelElem이 없음", dwSfxObj );
ADDERRORMSG( szErr );
}
if( pObj->GetModel()->m_pModelElem->m_szPart[0] )
PLAYSND( pObj->GetModel()->m_pModelElem->m_szPart, &vPosSrc );
// 오브젝트 생성후 후처리.
switch( dwSfxObj )
{
/* case XI_SKILL_MAG_ELECTRICITY_LIGHTINGBALL01:
{
CSfxShoot *pSfxShoot = (CSfxShoot *)pObj;
pSfxShoot->SetHitSfx( "sfx_sklmagelelgtbal01", idSrc, idDest, 2.0f );
pSfxShoot->SetDir( TRUE );
pSfxShoot->SetSndHit( SND_PC_SKILLM_FIREBOOMERANG2 );
}
break;*/
case XI_SKILL_MER_ONE_GUILOTIN02: // 필참 - 파워웨이브.
{
CSfxShootWave *pSfxShootWave = (CSfxShootWave *)pObj;
pSfxShootWave->SetHitSfx( XI_SKILL_MER_ONE_GUILOTIN02, idSrc, idDest, 2.0f );
pSfxShootWave->SetDir( TRUE );
// pSfxShoot->SetSndHit( SND_PC_SKILLM_FIREBOOMERANG2 );
}
break;
case XI_SKILL_MAG_FIRE_FIRESTRIKE02:
{
CSfxShoot *pSfxShoot = (CSfxShoot *)pObj;
pSfxShoot->SetDir( TRUE );
}
break;
case XI_SKILL_MER_ONE_SNEAKER02: // 스네어
{
CMover *pDst = prj.GetMover( idDest );
if( IsValidObj( pDst ) )
{
FLOAT fRadius = pDst->GetRadius();
pObj->SetScale( D3DXVECTOR3( fRadius, fRadius, fRadius ) );
}
}
break;
}
// 월드에 오브젝트 추가.
g_WorldMng.Get()->AddObj(pObj);
} else
{
SAFE_DELETE( pObj );
}
}
is it because I don't the sfx files? I'll try to take a look if there's a release sfx file for that Thanks!
05/22/2017, 19:30
#9
elite*gold: 0
Join Date: May 2017
Posts: 146
Received Thanks: 31
Do you add Resources too?
for example -> mdlDyna.inc
Search 4 This :
Code:
"sfx_level10sparklesilver" XI_GEN_ITEM_SETITEM34 MODELTYPE_SFX "" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
Add -> This :
Code:
"sfx_level10red" XI_GEN_ITEM_BUFF_PETGLOW01 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10blue" XI_GEN_ITEM_BUFF_PETGLOW02 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10yellow" XI_GEN_ITEM_BUFF_PETGLOW03 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10green" XI_GEN_ITEM_BUFF_PETGLOW04 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10purple" XI_GEN_ITEM_BUFF_PETGLOW05 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10black" XI_GEN_ITEM_BUFF_PETGLOW06 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10orange" XI_GEN_ITEM_BUFF_PETGLOW07 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10pink" XI_GEN_ITEM_BUFF_PETGLOW08 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10rainbow" XI_GEN_ITEM_BUFF_PETGLOW09 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10sparklesilver" XI_GEN_ITEM_BUFF_PETGLOW10 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10sparklegold" XI_GEN_ITEM_BUFF_PETGLOW11 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
"sfx_level10darkpurple" XI_GEN_ITEM_BUFF_PETGLOW12 MODELTYPE_SFX "" 0 MD_FAR 0 8.0f 0 1 ATEX_NONE 1
05/23/2017, 01:50
#10
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Yup I added that, I manage to remove the errors in client side I just forgot to put the normal color in mdlyna HAHAHA
but until now I can't put the pet inside the box
this code is correct right? Or should I make WIDC_STATIC2 to WIDC_STATIC1? LOL!
void CWndPetGlowChange::OnMouseWndSurface(CPoint point)
{
LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC2 );
CRect DrawRect;
if(wndCtrl->rect.PtInRect(point))
{
DrawRect = wndCtrl->rect;
CPoint point2 = point;
ClientToScreen( &point2 );
ClientToScreen( &DrawRect );
if(m_pItemElem != NULL && m_pTexture != NULL)
g_WndMng.PutToolTip_Item( m_pItemElem, point2, &DrawRect, APP_CHANGE_PETGLOW);
}
CWndNeuz::OnMouseWndSurface(point);
}
void CWndPetGlowChange::OnSize( UINT nType, int cx, int cy )
{
CWndNeuz::OnSize( nType, cx, cy );
}
void CWndPetGlowChange::OnLButtonDblClk( UINT nFlags, CPoint point )
{
}
BOOL CWndPetGlowChange::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )//
{
CItemElem* pTempElem;
pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId );
LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC2 );
if( wndCtrl->rect.PtInRect( point ))
{
if( pTempElem != NULL)
{
if(m_pItemElem) m_pItemElem->SetExtra(0);
m_pItemElem = pTempElem;
m_pEItemProp = m_pItemElem->GetProp();
if(m_pEItemProp != NULL)
{
m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff );
}
m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1);
}
}
return TRUE;
}
Similar Threads
PET FOOD HACK , PET BAR AND PET SKILL
08/11/2009 - Grand Chase Philippines - 6 Replies
DONT KNOW IF I'M THE FIRST ONE TO POST THIS KIND OF HACK
BUT I GIVE MY CREDIT TO THE FIRST ONE WHO POSTED IT.
PET FOOD
1. go to your equip you can see your pet satisfaction there first scan the value of your pet satisfaction scan:(pet satisfaction)|exact value|4bytes
2. feed your pet using crystal or any pet food
3. now scan the new pet satisfaction of your pet after you feed it . |exactvalue|4bytes
All times are GMT +2. The time now is 04:38 .