[Release] Create Monster App

12/13/2016 19:27 Kiseku#1
Hi,

hier ein Bild:
[Only registered and activated users can see links. Click Here To Register...]

WndField.cpp :
Code:
#ifdef __CREATE_MONSTER_APP



CWndCreateMonster::CWndCreateMonster()
{ 

} 
CWndCreateMonster::~CWndCreateMonster() 
{ 
} 
void CWndCreateMonster::OnDraw( C2DRender* p2DRender ) 
{

}

BOOL CWndCreateMonster::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) 
{
	if( nID == WIDC_BUTTON1 )
	{
		CWndListBox* pListbox = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 );
		CWndEdit* pEditCount = (CWndEdit*)GetDlgItem( WIDC_EDIT1 );
		CWndButton* pCheckbox = (CWndButton*)GetDlgItem( WIDC_CHECK1 );
		if( pEditCount && pEditCount->GetString() != "" && atoi(pEditCount->GetString()) > 0  )
		{
			if( pListbox && pCheckbox )
			{
				CString str;
				str.Format("/cn %d %d %d", pListbox->GetItemData( pListbox->GetCurSel() ), atoi(pEditCount->GetString()), pCheckbox->GetCheck() );
				g_DPlay.SendChat( str );
			}
		}
	}
	else if( nID == WIDC_CANCEL )
	{
		Destroy();
	}
	return CWndNeuz::OnChildNotify( message, nID, pLResult ); 
}

BOOL CWndCreateMonster::Initialize( CWndBase* pWndParent, DWORD ) 
{
	return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_CREATE_MONSTER, 0, CPoint( 0, 0 ), pWndParent );
} 

BOOL CWndCreateMonster::OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase ) 
{ 
	return CWndNeuz::OnCommand( nID, dwMessage, pWndBase ); 
} 
void CWndCreateMonster::OnSize( UINT nType, int cx, int cy ) 
{ 
	CWndNeuz::OnSize( nType, cx, cy ); 
} 
void CWndCreateMonster::OnLButtonUp( UINT nFlags, CPoint point ) 
{ 
} 
void CWndCreateMonster::OnLButtonDown( UINT nFlags, CPoint point ) 
{ 
} 
HRESULT CWndCreateMonster::RestoreDeviceObjects()
{
    CWndNeuz::RestoreDeviceObjects();
    return S_OK;
}
HRESULT CWndCreateMonster::InvalidateDeviceObjects()
{
    CWndNeuz::InvalidateDeviceObjects();
    return S_OK;
}
HRESULT CWndCreateMonster::DeleteDeviceObjects()
{
    CWndNeuz::DeleteDeviceObjects();
    InvalidateDeviceObjects();
    return S_OK;
}
void CWndCreateMonster::OnInitialUpdate() 
{ 
	CWndNeuz::OnInitialUpdate(); 

	CWndListBox* pListbox = (CWndListBox*)GetDlgItem( WIDC_LISTBOX1 );

	if( pListbox )
	{
		for( int i = 0; i < prj.m_nMoverPropSize; i++ )
		{
			MoverProp* pMoverProp	= prj.m_pPropMover + i;
			if( pMoverProp->dwID != 0 )
			{
				if( pMoverProp->dwAI != AII_MONSTER
					&& pMoverProp->dwAI != AII_AGGRO_NORMAL
					&& pMoverProp->dwAI != AII_PARTY_AGGRO_SUB
					&& pMoverProp->dwAI != AII_PARTY_AGGRO_LEADER
					&& pMoverProp->dwAI != AII_ARENA_REAPER
					&& pMoverProp->dwAI != AII_CLOCKWORKS
					&& pMoverProp->dwAI != AII_BIGMUSCLE
					&& pMoverProp->dwAI != AII_KRRR
					&& pMoverProp->dwAI != AII_BEAR
					&& pMoverProp->dwAI != AII_METEONYKER
				)
				continue;
				int nIndex = pListbox->AddString( pMoverProp->szName );
				pListbox->SetItemData( nIndex, pMoverProp->dwID );
			}
		}
	}

	MoveParentCenter();	
} 
void CWndCreateMonster::OnDestroy( void )
{
	
}

#endif	//__CREATE_MONSTER_APP
WndField.h :
Code:
#ifdef __CREATE_MONSTER_APP
class CWndCreateMonster : public CWndNeuz
{
public: 

	CWndCreateMonster(); 
	~CWndCreateMonster();

	virtual HRESULT RestoreDeviceObjects();
    virtual HRESULT InvalidateDeviceObjects();
    virtual HRESULT DeleteDeviceObjects();

	virtual BOOL Initialize( CWndBase* pWndParent = NULL, DWORD nType = MB_OK ); 
	virtual BOOL OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ); 
	virtual void OnDraw( C2DRender* p2DRender );
	virtual	void OnInitialUpdate(); 
	virtual BOOL OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase ); 
	virtual void OnSize( UINT nType, int cx, int cy ); 
	virtual void OnLButtonUp( UINT nFlags, CPoint point ); 
	virtual void OnLButtonDown( UINT nFlags, CPoint point );
	virtual void OnDestroy( void );

};
#endif // __CREATE_MONSTER_APP
Resdata :
Code:
APP_CREATE_MONSTER "WndTile00.tga" 1 288 336 0x2410000 26
{
// Title String
"Create Monster"
}
{
// ToolTip
""
}
{
    WTYPE_LISTBOX WIDC_LISTBOX1 "WndEditTile00.tga" 1 20 18 254 191 0x20020000 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }
    WTYPE_BUTTON WIDC_BUTTON1 "" 0 30 260 109 284 0x220010 0 0 0 0
    {
    // Title String
    "Create"
    }
    {
    // ToolTip
    ""
    }
    WTYPE_BUTTON WIDC_CANCEL "" 0 128 260 207 284 0x220010 0 0 0 0
    {
    // Title String
    "Cancel"
    }
    {
    // ToolTip
    ""
    }
    WTYPE_STATIC WIDC_STATIC "" 0 20 226 64 245 0x220000 0 0 0 0
    {
    // Title String
    "Count"
    }
    {
    // ToolTip
    ""
    }
    WTYPE_STATIC WIDC_STATIC1 "" 0 20 206 68 225 0x220000 0 0 0 0
    {
    // Title String
    "Search"
    }
    {
    // ToolTip
    ""
    }
    WTYPE_EDITCTRL WIDC_EDIT10 "" 1 76 206 238 225 0x20000 0 0 0 0
    {
    // Title String
    ""
    }
    {
    // ToolTip
    ""
    }
    WTYPE_EDITCTRL WIDC_EDIT1 "" 1 76 230 195 249 0x20000 0 0 0 0
    {
    // Title String
    "1"
    }
    {
    // ToolTip
    ""
    }
    WTYPE_BUTTON WIDC_CHECK1 "" 0 209 232 266 246 0x220008 0 0 0 0
    {
    // Title String
    "Aggro"
    }
    {
    // ToolTip
    ""
    }

}
MfG ^^
12/13/2016 22:45 Reavern#2
Und jetzt nochmal ohne Provokationen, Beleidigungen usw. Danke.
12/14/2016 13:03 Starsky85#3
kleine frage wie bekomme ich das fenster denn ingame auf wenn ich fragen darf ?
habs eingefügt aber irgendwie ralle ich nicht wie ich es hinbekomme das ich das fenster aufbekomme sry wenn die frage doof ankommt bin anfänger ^^
12/14/2016 16:08 Kiseku#4
Du musst noch etwas in der wndmanager.cpp machen und noch in der FuncApplet.cpp ich kann das später mal posten. Bin halt Grad nur am Handy online.
Du kannst aber auch mal von anderen Systemen die einträge übernehmen und das CWNDXYZ zu CWndCreateMonster ändern und natürlich die App iD hinten
Mfg
12/14/2016 19:20 Mike Oxmaul#5
wozu die ganzen virtuellen Methoden die nix tun?
12/15/2016 15:57 Sammyz#6
Quote:
Originally Posted by Starsky85 View Post
kleine frage wie bekomme ich das fenster denn ingame auf wenn ich fragen darf ?
habs eingefügt aber irgendwie ralle ich nicht wie ich es hinbekomme das ich das fenster aufbekomme sry wenn die frage doof ankommt bin anfänger ^^
FuncTextCmd.cpp:
Code:
#ifdef __CREATE_MONSTER_APP
BOOL TextCmd_CreateMonster( CScanner & scanner )
{
#ifdef __CLIENT
	if( !g_WndMng.GetApplet(APP_CREATE_MONSTER) )
		g_WndMng.CreateApplet(APP_CREATE_MONSTER);
#endif //__CLIENT
	return TRUE;
}
#endif //__CREATE_MONSTER_APP
Code:
#ifdef __CREATE_MONSTER_APP
	ON_TEXTCMDFUNC( TextCmd_CreateMonster, "CreateMonster", "cmnst", "", "", TCM_CLIENT, AUTH_ADMINISTRATOR, "" )
#endif //__CREATE_MONSTER_APP
02/01/2017 08:32 elitemember21#7
hi when i type the command it doesn't show a window. Please reply Kiseku
02/01/2017 09:55 Kiseku#8
Check your resdata.Inc
Same app id in Source an Ressource?
02/01/2017 11:12 elitemember21#9
Quote:
Originally Posted by Kiseku View Post
Check your resdata.Inc
Same app id in Source an Ressource?
I have checked already and still the same.
I'm sure all the codes are correct sir.
Any idea?
Thanks in advance
02/01/2017 15:23 JiiGaa#10
if all codes would be correct it would show u the window..
i tested it and it works fine
02/05/2017 08:43 elitemember21#11
Quote:
Originally Posted by sebariio View Post
i prefer my system
[Only registered and activated users can see links. Click Here To Register...]


It would be awesome if you'd let us use that thanks.
02/05/2017 09:27 Drabur#12
Quote:
Originally Posted by elitemember21 View Post
It would be awesome if you'd let us use that thanks.
this is 5 min work pls dont buy something like that
02/05/2017 11:11 sebariio#13
Quote:
Originally Posted by Drabur View Post
this is 5 min work pls dont buy something like that
10mn pls, there's a hide secret inside my application hahaha

Quote:
Originally Posted by Drabur View Post
this is 5 min work pls dont buy something like that
but when we "sell" codes from others, i think we're not allowed to say that
02/05/2017 11:26 Drabur#14
I will Release the Same Like yours

Noone cares your secret
02/05/2017 11:35 sebariio#15
Quote:
Originally Posted by Drabur View Post
I will Release the Same Like yours

Noone cares your secret
go i don't care XD

i can release more things about you than you can about me