Hi elitepvpers,
I am trying to add an premium system.
To test if the name tag is changing i only added 2 things
MoverSkill.cpp
PHP Code:
#ifdef __PREMIUM
case II_SYS_SYS_SCR_PREMIUM:
{
if( HasBuff( BUFF_ITEM, (WORD) ( pItemProp->dwID ) ) )
{
nResult = 2;
}
else
{
DoApplySkill( (CCtrl*)this, pItemProp, NULL );
}
}
break;
#endif
MoverRender.cpp
PHP Code:
#ifdef __PREMIUM
if( HasBuff( BUFF_ITEM, II_SYS_SYS_SCR_PREMIUM ) )
{
strcat( szName, " [Premium]" );
}
#endif
However when i click on the Scroll the neuz will crash with this error code
2014/ 1/21 16:42:34 Jan 21 2014 15:56:13 1 rCnt=1
Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:004FC140, CWndWorld::RenderBuff()+0448 byte(s), e:\pandoraflyff\source\_interface\wndworld.cpp, line 10966+0003 byte(s)
- Registers
EAX=00000000 EBX=7EFDE000 ECX=00006EE9 EDX=00000000 ESI=00CEA958
EDI=00AABF14 EBP=0018F50C ESP=0018F490 EIP=004FC140 FLG=00210297
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
0023:004FC140 Neuz.exe, CWndWorld::RenderBuff()+0448 byte(s)
0023:004E1F75 Neuz.exe, CWndWorld::OnEraseBkgnd()+2613 byte(s)
0023:0050F60C Neuz.exe, CWndBase::Paint()+0284 byte(s)
0023:0050F3EE Neuz.exe, CWndBase::PaintRoot()+0574 byte(s)
0023:0046DDD6 Neuz.exe, CNeuzApp::Render()+0614 byte(s)
0023:0048FA8F Neuz.exe, CD3DApplication::Render3DEnvironment()+0431 byte(s)
0023:0048F8A1 Neuz.exe, CD3DApplication::Run()+0305 byte(s)
0023:0047537C Neuz.exe, WinMain()+0332 byte(s)
0023:0091EBCC Neuz.exe, WinMainCRTStartup()+0388 byte(s)
0023:76FD339A kernel32.dll, BaseThreadInitThunk()+0018 byte(s)
0023:779C9ED2 ntdll.dll, RtlInitializeExceptionChain()+0099 byte(s)
0023:779C9EA5 ntdll.dll, RtlInitializeExceptionChain()+0054 byte(s)
Its pointing to this line inside WndWorld.cpp
if( pItemProp->dwItemKind3 == IK3_EXP_RATE )
Uppon debugging it would not show me the excact line instead its putting on Break Lines inside WndField.cpp
if( message == WIN_DBLCLK )
{
if( nID == 11 ) // item
{
#if __VER >= 14 // __SMELT_SAFETY
if( m_dwEnchantWaitTime != 0xffffffff || GetWndBase(APP_SMELT_SAFETY_CONFIRM) != NULL ) <----BREAK LINE
#else //__SMELT_SAFETY
if( m_dwEnchantWaitTime != 0xffffffff )
#endif //__SMELT_SAFETY
{
g_WndMng.PutString( prj.GetText(TID_MMI_NOTUPGRADE), NULL, prj.GetTextColor(TID_MMI_NOTUPGRADE) );
return 0;
}
#if __VER >= 14 // __EQUIP_BIND
if( GetWndBase(APP_EQUIP_BIND_CONFIRM) != NULL )
{
g_WndMng.PutString( prj.GetText(TID_TOOLTIP_EQUIPBIND_ERROR01), NULL, prj.GetTextColor(TID_TOOLTIP_EQUIPBIND_ERROR01) );
return 0;
}
#endif // __EQUIP_BIND
I also experience this with Tickets.
I simply copy an existing Scroll and only change the Name Nothing more.
This is also with tickets
I copy an Ticket Change the Name etc but it also crash with the same error code.
Does anyone has experience this problem to and is willing to share the fix.
With kind regards.