[RELEASE] Perin inventory Count

05/27/2015 19:27 - DK#16
Quote:
Originally Posted by Tobi95as View Post
Weezy can you reupload the inventory?
you was blind ? XD
Check this bra .. : [Only registered and activated users can see links. Click Here To Register...]
05/28/2015 17:12 Tobi95as#17
/edit

Works done!
06/08/2015 23:08 adeilson123#18
nos temos isso..so que no meu o perin "não aparece no inventario" igual a penya
07/09/2015 20:29 Spraystar#19
Füge es immer in der resdata.inc rein aber klappt nicht weiß einer wieso?in der source ging es mit dem compielen benutze die files von arma
07/11/2015 06:37 Spraystar#20
Habe es bis jetzt hinbekommen ich will aber das der Red Chips anzeigt weiß einer wie?
07/12/2015 19:36 Spraystar#21
Push weiß keiner wie ich das komplett mit red chip ändern muss?
Quote:
#ifdef __PERIN_TO_INVENTORY
CString strPerinNum;
CWndStatic* pPerinNum = (CWndStatic*) GetDlgItem( WIDC_PERIN_NUM );
strPerinNum.Format( _T( "%d" ), g_pPlayer->GetPerinNum() );
pPerinNum->SetTitle( strPerinNum );
#endif //__PERIN_TO_INVENTORY
07/12/2015 23:15 Drabur#22
Naja du musst halt g_pPlayer->GetPerinNum() ändern und dir eine Funktion machen die dir die anzahl der Red chips gibt.
07/13/2015 06:21 Spraystar#23
Quote:
Originally Posted by Drabur View Post
Naja du musst halt g_pPlayer->GetPerinNum() ändern und dir eine Funktion machen die dir die anzahl der Red chips gibt.
Das Problem ist was soll ich reinschreiben, weil wenn ich da redchip oder so rein schreibe klappt das alles nicht :(
07/13/2015 13:38 raventh1984#24
WndField.cpp

Code:
char szRedChip[64];

	sprintf( szRedChip, "%d", g_pPlayer->GetChipNum() );

	CWndStatic* pRedChipNum = (CWndStatic*) GetDlgItem( WIDC_RED_NUM );
	pRedChipNum->SetTitle( GetNumberFormatEx(szRedChip) );
Mover.cpp
Code:
int CMover::GetChipNum()
{
	int nCount	= 0;
	for( int i = 0; i < m_Inventory.GetMax(); i++ )
	{
		CItemElem* pItem	= static_cast<CItemElem*>( GetItemId( i ) );
		if( pItem && ::IsUsableItem( pItem ) )
		{
			if( pItem->GetProp()->dwID == II_CHP_RED )
				nCount	+= pItem->m_nItemNum;
		}
	}
	return nCount;
}
Mover.h
Code:
int   GetChipNum();
Preview
[Only registered and activated users can see links. Click Here To Register...]
07/13/2015 19:01 Spraystar#25
Ich spiel wird es im Inventar angezeigt aber immer nur 0 und habe im inventar die red chips weiß einer wieso?
07/13/2015 19:53 raventh1984#26
I have made the WndInventory with photoshop.

Be sure to check your resdata.
11/19/2015 20:09 guiieduardo#27
I change the ResData.inc
yet the error of Neuz
When I open the game I try to open the inventory the game closes
11/20/2015 13:24 Rhyder`#28
useless!

what if you make your perin like penya? it counts.. without showing in your inventory slot?

a blind kid can do this..
11/20/2015 15:52 guiieduardo#29
Code:
2015/11/20   12:33:56   FileName ResData.inc(22123) : APP_EVT_PVPMEMBERS Not Found. : APP_EVT_PVPMEMBERS "WndTile00.tga" 1 208 304 0x2410000 26

{

// Title String



2015/11/20   12:34:17   g_pPlayer is ready

2015/11/20   12:34:20   CWndTaskBar::SetTaskBarTexture : Leles 2010

2015/11/20   12:34:20   CWndTaskBar::SetTaskBarTexture : Leles 581

2015/11/20   12:34:29   Flyff v1.0.0 Nov 20 2015 rCnt=1

Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:0056F0E4, CWndInventory::OnInitialUpdate()+0292 byte(s), c:\flyff\source\_interface\wndfield.cpp, line 2749+0017 byte(s)

 - Registers

EAX=123E7270  EBX=7EFDE000  ECX=0C78B0DC  EDX=00000020  ESI=00000000
EDI=75031245  EBP=00187B68  ESP=00187AB0  EIP=0056F0E4  FLG=00210212
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B

0023:0056F0E4 Neuz.exe, CWndInventory::OnInitialUpdate()+0292 byte(s)
0023:0051193D Neuz.exe, CWndBase::Create()+0413 byte(s)
0023:004DB3BF Neuz.exe, CWndNeuz::InitDialog()+0335 byte(s)
0023:0056F915 Neuz.exe, CWndInventory::Initialize()+0133 byte(s)
0023:004C52F9 Neuz.exe, CWndMgr::CreateApplet()+0297 byte(s)
0023:0041565B Neuz.exe, CDPClient::OnOpenShopWnd()+0299 byte(s)
0023:0040EE39 Neuz.exe, CDPClient::OnSnapshot()+2921 byte(s)
0023:0040E210 Neuz.exe, CDPClient::UserMessageHandler()+0176 byte(s)
0023:007D115B Neuz.exe, CDPMng::ReceiveMessage()+0219 byte(s)
0023:00470D7A Neuz.exe, CNeuzApp::FrameMove()+0106 byte(s)
0023:00492A50 Neuz.exe, CD3DApplication::Render3DEnvironment()+0384 byte(s)
0023:00492891 Neuz.exe, CD3DApplication::Run()+0305 byte(s)
0023:0047886C Neuz.exe, WinMain()+0332 byte(s)
0023:0092892C Neuz.exe, WinMainCRTStartup()+0388 byte(s)
0023:750333CA kernel32.dll, BaseThreadInitThunk()+0018 byte(s)
0023:770D9ED2 ntdll.dll, RtlInitializeExceptionChain()+0099 byte(s)
0023:770D9EA5 ntdll.dll, RtlInitializeExceptionChain()+0054 byte(s)

Code:
void CWndInventory::OnInitialUpdate()
{
	CWndNeuz::OnInitialUpdate();

	m_bLButtonDownRot = FALSE;
	m_fRot = 0.0f;

	LPWNDCTRL lpWndCtrl1 = GetWndCtrl( WIDC_CUSTOM1 );
	LPWNDCTRL lpWndCtrl2 = GetWndCtrl( WIDC_CUSTOM2 );
	LPWNDCTRL lpWndCtrl3 = GetWndCtrl( WIDC_CUSTOM3 );
	LPWNDCTRL lpWndCtrl4 = GetWndCtrl( WIDC_CUSTOM4 );
	LPWNDCTRL lpWndCtrl5 = GetWndCtrl( WIDC_CUSTOM5 );
	LPWNDCTRL lpWndCtrl6 = GetWndCtrl( WIDC_CUSTOM6 );
	LPWNDCTRL lpWndCtrl7 = GetWndCtrl( WIDC_CUSTOM7 );
	LPWNDCTRL lpWndCtrl8 = GetWndCtrl( WIDC_CUSTOM8 );
	LPWNDCTRL lpWndCtrl9 = GetWndCtrl( WIDC_CUSTOM9 );
	LPWNDCTRL lpWndCtrl10 = GetWndCtrl( WIDC_CUSTOM10 );
	
	m_InvenRect[6] = m_InvenRect[14] = lpWndCtrl1->rect;
	m_InvenRect[2] = m_InvenRect[15] = lpWndCtrl2->rect;
	m_InvenRect[4] = m_InvenRect[17] = lpWndCtrl3->rect;
	m_InvenRect[5] = m_InvenRect[18] = lpWndCtrl4->rect;

	m_InvenRect[10] = lpWndCtrl5->rect;
	m_InvenRect[9] = m_InvenRect[11] = lpWndCtrl6->rect;
	m_InvenRect[25] = lpWndCtrl7->rect;
	m_InvenRect[8] = lpWndCtrl8->rect;
	m_InvenRect[12] = lpWndCtrl9->rect;
	m_InvenRect[13] = lpWndCtrl10->rect;

	lpWndCtrl1 = GetWndCtrl( WIDC_CUSTOM11 );
	lpWndCtrl2 = GetWndCtrl( WIDC_CUSTOM12 );
	lpWndCtrl3 = GetWndCtrl( WIDC_CUSTOM13 );
	lpWndCtrl4 = GetWndCtrl( WIDC_CUSTOM14 );
	lpWndCtrl5 = GetWndCtrl( WIDC_CUSTOM15 );
	lpWndCtrl6 = GetWndCtrl( WIDC_CUSTOM16 );
	lpWndCtrl7 = GetWndCtrl( WIDC_CUSTOM17 );
	lpWndCtrl8 = GetWndCtrl( WIDC_CUSTOM18 );
	lpWndCtrl9 = GetWndCtrl( WIDC_CUSTOM19 );
	
	m_InvenRect[20] = lpWndCtrl1->rect;
	m_InvenRect[22] = lpWndCtrl2->rect;
	m_InvenRect[19] = lpWndCtrl3->rect;
	m_InvenRect[23] = lpWndCtrl4->rect;
	m_InvenRect[21] = lpWndCtrl5->rect;

	m_InvenRect[26] = lpWndCtrl6->rect;
	m_InvenRect[27] = lpWndCtrl7->rect;
	m_InvenRect[28] = lpWndCtrl8->rect;
	m_InvenRect[29] = lpWndCtrl9->rect;

	SAFE_DELETE( m_pModel );

	int nMover = (g_pPlayer->GetSex() == SEX_MALE ? MI_MALE : MI_FEMALE);
	m_pModel = (CModelObject*)prj.m_modelMng.LoadModel( g_Neuz.m_pd3dDevice, OT_MOVER, nMover, TRUE );
	prj.m_modelMng.LoadMotion( m_pModel,  OT_MOVER, nMover, MTI_STAND );
	UpdateParts();
	m_pModel->InitDeviceObjects( g_Neuz.GetDevice() );

	CWndTabCtrl* pTabCtrl = (CWndTabCtrl*) GetDlgItem( WIDC_INVENTORY );
	m_wndItemCtrl.Create( WLVS_ICON, CRect( 0, 0, 250, 250 ), pTabCtrl, 11 );
	m_wndItemCtrl.InitItem( &g_pPlayer->m_Inventory, APP_INVENTORY );

	WTCITEM tabTabItem;
	tabTabItem.mask = WTCIF_TEXT | WTCIF_PARAM;
	tabTabItem.pszText = GETTEXT( TID_GAME_ITEM );//"아이템";
	tabTabItem.pWndBase = &m_wndItemCtrl;
	pTabCtrl->InsertItem( 0, &tabTabItem );

	LPWNDCTRL lpWndCtrl = GetWndCtrl( WIDC_GOLD );
	m_wndGold.Create( "g", WBS_NODRAWFRAME, lpWndCtrl->rect, this, WIDC_GOLD );
	m_wndGold.AddWndStyle( WBS_NODRAWFRAME );

	CWndStatic* pGoldNum = (CWndStatic*) GetDlgItem( WIDC_GOLD_NUM );
	pGoldNum->AddWndStyle(WSS_MONEY);

	m_pUpgradeItem = NULL;
	m_pUpgradeMaterialItem = NULL;
	m_bIsUpgradeMode = FALSE;
	m_dwEnchantWaitTime = 0xffffffff;

	m_TexRemoveItem = m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "WndInventoryGarbage.dds" ), 0xffff00ff );
	
	CRect rectRoot = m_pWndRoot->GetLayoutRect();
	CRect rectWindow = GetWindowRect();
	CPoint point( rectRoot.right - rectWindow.Width(), 112 + 48 );
	Move( point );
}
I do not know but might be some lacking in this part and I can not solve
Help me pls :(
11/21/2015 23:46 Wharsh#30
Quote:
Originally Posted by jayjei14 View Post
useless!

what if you make your perin like penya? it counts.. without showing in your inventory slot?

a blind kid can do this..
code it like penya then.