|
You last visited: Today at 16:59
Advertisement
[Release] Create Monster App
Discussion on [Release] Create Monster App within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.
12/13/2016, 19:27
|
#1
|
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
|
[Release] Create Monster App
Hi,
hier ein Bild:
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
|
#2
|
elite*gold: 15
Join Date: May 2010
Posts: 5,996
Received Thanks: 2,283
|
Und jetzt nochmal ohne Provokationen, Beleidigungen usw. Danke.
|
|
|
12/14/2016, 13:03
|
#3
|
elite*gold: 0
Join Date: Jun 2016
Posts: 41
Received Thanks: 6
|
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
|
#4
|
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
|
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
|
#5
|
elite*gold: 50
Join Date: Feb 2014
Posts: 288
Received Thanks: 245
|
wozu die ganzen virtuellen Methoden die nix tun?
|
|
|
12/15/2016, 15:57
|
#6
|
elite*gold: 0
Join Date: Jan 2008
Posts: 130
Received Thanks: 78
|
Quote:
Originally Posted by Starsky85
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
|
#7
|
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
|
hi when i type the command it doesn't show a window. Please reply Kiseku
|
|
|
02/01/2017, 09:55
|
#8
|
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
|
Check your resdata.Inc
Same app id in Source an Ressource?
|
|
|
02/01/2017, 11:12
|
#9
|
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
|
Quote:
Originally Posted by Kiseku
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
|
#10
|
elite*gold: 0
Join Date: Jan 2012
Posts: 55
Received Thanks: 40
|
if all codes would be correct it would show u the window..
i tested it and it works fine
|
|
|
02/05/2017, 08:43
|
#11
|
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
|
Quote:
Originally Posted by sebariio
i prefer my system
|
It would be awesome if you'd let us use that thanks.
|
|
|
02/05/2017, 09:27
|
#12
|
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 373
|
Quote:
Originally Posted by elitemember21
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
|
#13
|
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 75
|
Quote:
Originally Posted by Drabur
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
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
|
#14
|
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 373
|
I will Release the Same Like yours
Noone cares your secret
|
|
|
02/05/2017, 11:35
|
#15
|
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 75
|
Quote:
Originally Posted by Drabur
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
|
|
|
|
|
Similar Threads
|
[Tutorial] How to create Custom Monster AI
05/24/2023 - Shaiya PServer Guides & Releases - 40 Replies
Hello guys,
I planned on doing this for a while now, but I was delayed with a permanent ban, thanks to someone who recently left the Shaiya Section.
Anyway, here we are, a short tutorial on how to create custom monster AI, AI standing for artificial intelligence.
First of all, what does AI in Shaiya mean, and what can you do with it ?
Spawn multiple monsters when some event is triggered on a monster. For example: When a mob reaches 80% of its full HP, you can make it duplicate itself. You...
|
I need help to create a npc to summon a monster.
03/30/2013 - CO2 Private Server - 2 Replies
My problem is this, the monster q invoke only get one life only of accs.
What do I do? help me please!
And excuse my bad english.
|
Create Folder and monster.csv
01/22/2013 - Dekaron Private Server - 2 Replies
Hey i am playing server with csv files but i cant see creautre folder in data/share
any suggestion?
|
Create monster
09/20/2010 - EO PServer Hosting - 5 Replies
To generate a monster he is born only once, when dead not coming back?
|
All times are GMT +2. The time now is 16:59.
|
|