Register for your free account! | Forgot your password?

You last visited: Today at 06:39

  • Please register to post and access all features, it's quick, easy and FREE!


Source : Spawn mob

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 77
Received Thanks: 13
Source : Spawn mob

I would like to make a spawn on a map from the source, but I can not seem to do so: s


My code :
balala.cpp


Code:
void CChallengeMng::Spawnmob( void )
{
	CMover* pMover	= (CMover*)CreateObj( D3DDEVICE, OT_MOVER, MI_AIBATT1 );

	pMover->SetPos( D3DXVECTOR3(1296, 100, 1228) );
	pMover->InitMotion( MTI_STAND );
	pMover->UpdateLocalMatrix();
	CWorld* pWorld	= g_WorldMng.GetWorld( WI_WORLD_CHALLENGE  );
	if( pWorld )
		pWorld->ADDOBJ( pMover, TRUE, nDefaultLayer );

}

baalal.h

Code:
 void	Spawnmob( void );

I would like there was 20 monster spawn


I need help

Soory for my bad English :s , I'am french



Teresaty is offline  
Old 08/29/2012, 19:11   #2
 
elite*gold: 0
Join Date: Jun 2012
Posts: 194
Received Thanks: 417
Quote:
Originally Posted by Teresaty View Post
I would like to make a spawn on a map from the source, but I can not seem to do so: s


My code :
balala.cpp


Code:
void CChallengeMng::Spawnmob( void )
{
	CMover* pMover	= (CMover*)CreateObj( D3DDEVICE, OT_MOVER, MI_AIBATT1 );

	pMover->SetPos( D3DXVECTOR3(1296, 100, 1228) );
	pMover->InitMotion( MTI_STAND );
	pMover->UpdateLocalMatrix();
	CWorld* pWorld	= g_WorldMng.GetWorld( WI_WORLD_CHALLENGE  );
	if( pWorld )
		pWorld->ADDOBJ( pMover, TRUE, nDefaultLayer );

}

baalal.h

Code:
 void	Spawnmob( void );

I would like there was 20 monster spawn


I need help

Soory for my bad English :s , I'am french
Try it as CObj, if CMover wont work.

PHP Code:
        CObjpObj    CreateObjD3DDEVICEOT_MOVERMI_AIBATT1 ); 
        
CWorldpWorld    g_WorldMng.GetWorldWI_WORLD_CHALLENGE  ); 
        for( 
int i 020i++ ) 
        { 
            if( 
pObj != NULL )     
            { 
                
pObj->SetPos12961001228 ); 
                
pObj->InitMotionMTI_STAND ); 
                
pObj->UpdateLocalMatrix(); 
                if( 
pWorld 
                    
pWorld->ADDOBJpObjTRUEnDefaultLayer ); 
            } 
        } 


Aspectus is offline  
Thanks
2 Users
Old 08/29/2012, 19:57   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 77
Received Thanks: 13
Thx goood

No :

Code:
pObj->SetPos( 1296, 100, 1228 );

Yes :

Code:
pObj->SetPos( D3DXVECTOR3(1296, 100, 1228) );
Or :

Code:
D3DXVECTOR3 vPos( 1296.0F, 100.0F, 1228.0F );
pObj->SetPos( vPos );
Teresaty is offline  
Thanks
2 Users
Reply



« P-Server lvl Bot?! | Flyff P server »

Similar Threads
i need help plz source 5520 need spawn packet
10/02/2011 - CO2 PServer - Discussions / Questions - 7 Replies
i need help plz source 5520 need spawn packet
12talis source spawn monsters to another map
05/30/2011 - CO2 PServer - Discussions / Questions - 2 Replies
can someone give me a tip on how to add monsters to a map, for example i want them spawn in Training Ground (the id of the map is 1039), and how to make them drop some items i want? i am using 12talis source Ty just give me a tip , where should i go in project files to make it work.
Trying to fix this mob spawn,but it ends up with errors [Chris's Source]
03/17/2011 - CO2 PServer - Discussions / Questions - 6 Replies
Well,I'm getting those errors while trying to fix mob spawns: http://img35.imageshack.us/img35/475/errorxx.jpg
warhammer source and spawn updates
11/16/2010 - General Gaming Discussion - 1 Replies
hi guys alterd emu removed french data and added more spawns adding more spawns soon :) feel free to update the source
Monster Spawn impluse Source
05/13/2010 - CO2 PServer - Discussions / Questions - 9 Replies
can someone explain to me how to create Monsters spawn cuze thier r no monsters if you really wanted to help just give a pic or add me at yahoo to explain that with team viewer hoppe someone will do :)



All times are GMT +1. The time now is 06:39.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.