Old v15 source + Source addons

Re: FlyFF v15 Source Code + Source Edits

Petfilter

The Filter works to 100%

its a fix of the released pet filter.



and



the password is: xXConsXx

i posted befor in an other forum.
so dont say Copy @ Paste -.-

It looks good. Only comment is to re-comment Forcekill in case you have it still in your files.

Will give more insight in a bit.
 
Re: FlyFF v15 Source Code + Source Edits

this "petfilter" isn't fixxed and it have been released already ~.~

I am hoping this is going to fix the logging in issue. Looking into it now.

Update 1: I can login into the game. Next to use the resdata and I'll make another update.

Update 2: Completely works. Tested. It does what its supposed to but needs refined.
 
Last edited:
Re: FlyFF v15 Source Code + Source Edits

this "petfilter" isn't fixxed and it have been released already ~.~

Nope it works

i changed a few things like

else if( !pOwner->IsValidArea( pEatPet, 32 ) )
{
CItemElem* pItemElem = pOwner->GetVisPetItem();
pOwner->InactivateEatPet();
pOwner->ActivateEatPet(pItemElem);
return TRUE;
}

to

else if( !pOwner->IsValidArea( pEatPet, 32 ) )
{
pOwner->InactivateEatPet();
return TRUE;
}

so don´t flame just try it and you´ll see it will work
 
Looking at ProjectCmn

Here's some things I found in:

source/_common/ProjectCmn.h

Code:
#define	MAX_OBJARRAY			8
[COLOR="Cyan"]#define	MAX_QUICKSLOT			21 //I THINK this is the bag.[/COLOR]
#define	MAX_EQUIPMENT			18
[COLOR="Blue"]#define	MAX_INVENTORY			42			[/COLOR]			
[COLOR="Blue"]#define MAX_GUILDBANK			42[/COLOR]			
[COLOR="Blue"]#define	MAX_BANK			42[/COLOR]
#define	MAX_REPAIR			16
[COLOR="Cyan"]#define	MAX_TRADE			25[/COLOR]
#define	MAX_VENDITEM			30
#define	MAX_REPAIRINGITEM		25
[COLOR="Blue"]#define	MAX_VENDORNAME			48[/COLOR]
#define	MAX_EXPLPPOINT			41
#define	MAX_EXPSKILL			21
#define	MAX_EXPCHARACTER		200
#define	MAX_FXPCHARACTER		200
[COLOR="Cyan"]#define	MAX_CHARACTER_LIST		3 [/COLOR]
[COLOR="Lime"]#define	MAX_VENDOR_INVENTORY	        100[/COLOR]
[COLOR="Lime"]#define	MAX_VENDOR_INVENTORY_TAB	4[/COLOR]
#define MAX_PARTYLEVEL			10
#define MAX_ADDEXPPARTY			16
#define	MAX_STUFF		        ( MAX_INVENTORY + MAX_QUICKSLOT )

[COLOR="Red"]#define MAX_QUESTITEM	16 < Not exactly sure what this defines. I'm not counting all the QI's ingame :/:[/COLOR]

The blue highlighted definitions are the things you can safely edit without much trouble.


The lime highlights are things I'm 50/50 on, meaning you may be able to edit them safely without much work... or you'll have to do more editing.


Finally, the cyan highlights are things that can be edited with a bit of effort, if server's are interested.

(You'll need a good understanding of math and PSCS+)


I just wanted to point a couple of these things out, incase anyone was wondering.

source/_common/ProjectCmn.h
 
Last edited:
Re: FlyFF v15 Source Code + Source Edits

Code:
	if( pWorld && pWorld->IsArena() )
	{
/*		
		int dx	= (int)( pMover->GetPos().x - 490 );
		int dy	= (int)( pMover->GetPos().z - 507 );
		int d	= dx * dx + dy * dy;
		if( d > 1246 )
			return FALSE;
		dx	= (int)( GetPos().x - 490 );
		dy	= (int)( GetPos().z - 507 );
		d	= dx * dx + dy * dy;
		if( d > 1246 )
			return FALSE;
		return TRUE;
		//if ( pMover->m_dwRegionAttr )*/
		if (pMover->m_dwRegionAttr);
			switch ( m_dwRegionAttr )
				case RA_FIGHT||RA_PK:
					return TRUE;
			return FALSE;
	}		
	return FALSE;
}
#endif	// __JEFF_11_4

That SHOULD make it so that fighting and PK regions work as PK zones now (MIGHT), haven't tested it yet.
 
Re: FlyFF v15 Source Code + Source Edits

Hey guys,

i have a question.
How can i reactivate, that i can walk with W A S D and Mouse?
I mean, before V15 you can press w and at the same time you can click with the mouse in the way you want walk.

With V15 this was blocked, so when you press w you cannot click with mouse to change the way.

The only thing i found is this here:

#ifdef GCWAR_NOT_CLICK_MODE
 
Re: FlyFF v15 Source Code + Source Edits

Hi all,
How can i create a command for out all people :

/out all

I have found

Code:
BOOL TextCmd_Out( CScanner& scanner )              
{ 
#ifdef __WORLDSERVER
//	TCHAR lpszPlayer[MAX_PLAYER];
	scanner.GetToken();

	CUser* pUser	= (CUser*)scanner.dwValue;
	if( strcmp( pUser->GetName(), scanner.Token) )
	{	
#if __VER >= 11 // __SYS_PLAYER_DATA
		u_long idPlayer		= CPlayerDataCenter::GetInstance()->GetPlayerId( scanner.token );
#else	// __SYS_PLAYER_DATA
		u_long idPlayer		= prj.GetPlayerID( scanner.Token );
#endif	// __SYS_PLAYER_DATA
		if( idPlayer > 0 ) {
			g_DPCoreClient.SendKillPlayer( pUser->m_idPlayer, idPlayer );
		}
		else {
//			scanner.Token¶ó´Â À̸§À» °¡Áø »ç¿ëÀÚ´Â ÀÌ °ÔÀÓ¿¡ Á¸ÀçÇÏÁö ¾Ê´Â´Ù.
			pUser->AddReturnSay( 3, scanner.Token );
		}
	}
	else
	{
		pUser->AddReturnSay( 2, " " );  		// ÀÚ±â Àڽſ¡°Ô ¸í·ÉÇß´Ù.
	}
#endif	// __WORLDSERVER
	return TRUE;
}

Thanks
 
Re: FlyFF v15 Source Code + Source Edits

If you want to add the outall command use this:
FuncTextCmd.cpp
BOOL TextCmd_outall( CScanner& scanner )
{
#ifdef __WORLDSERVER
g_UserMng.RemoveAllUsers();
#endif // __WORLDSERVER
return TRUE;
}

and this:
ON_TEXTCMDFUNC( TextCmd_outall, "outall", "outall", "Á¢¼ÓÀÚ¼ö", "Á¢¼ÓÀÚ¼ö",TCM_BOTH, AUTH_ADMINISTRATOR , "Á¢¼ÓÀÚ Ä«¿îÆ®" )

Now we need a message for the outall function.
BOOL TextCmd_outall( CScanner& scanner )
{
#ifdef __WORLDSERVER
g_DPCoreClient.SendSystem( "You got kicked from the Server" );
g_UserMng.RemoveAllUsers();
#endif // __WORLDSERVER
return TRUE;
}

that was it by sedrika :) .
 
Last edited:
Re: FlyFF v15 Source Code + Source Edits

I have an error :

WorldServer_2011.4.26_2.51.35.rpt
Code:
==================   logged at 2011/4/26 02:51:36    ==========================

Exception code : C0000005 ACCESS_VIOLATION
Fault address :0052F678 01:0012E678 C:\Users\Administrator\Desktop\v16\Resource\WorldServer.exe

Registers:
EAX:00000000
EBX:00000000
ECX:2567E670
EDX:00000000
ESI:2567E670
EDI:00000000
CS:EIP:0023:0052F678
SS:ESP:002B:092DFD54  EBP:2567E670
DS:002B  ES:002B  FS:0053  GS:002B
Flags:00010212

Call stack:
Address   Frame
0052F678  092DFD54  0001:0012E678 C:\Users\Administrator\Desktop\v16\Resource\WorldServer.exe


===== [end of file] =====

An idea ?
 
Re: FlyFF v15 Source Code + Source Edits

I have a question.
How can i create a command for summon all currently online players to me?

I mean like it was in Caali times, .telealltome or so.
 
Enlable duels

WndWorld.cpp -> void CWndWorld::ShowMoverMenu( CMover* pTarget )

Code:
m_wndMenuMover.AppendMenu( 0,  MMI_TRADE        , prj.GetText( TID_MMI_TRADE ) );
m_wndMenuMover.AppendMenu( 0,  MMI_ADD_MESSENGER, prj.GetText( TID_MMI_ADD_MESSENGER ) );
m_wndMenuMover.AppendMenu( 0,  MMI_FIGHT , prj.GetText( TID_MMI_FIGHT  ) );	// Duel
m_wndMenuMover.AppendMenu( 0,  MMI_MESSAGE, prj.GetText( TID_MMI_MESSAGE ) );
m_wndMenuMover.AppendMenu( 0,  MMI_INVITE_PARTY , prj.GetText( TID_MMI_INVITE_PARTY ) );
 
Last edited:
Block MootiHack Item creation

open DPSrvr.cpp and search :

Code:
void CDPSrvr::OnBuyingInfo( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )

now comment the code inside this function.

You can disconnect any player that use this hack with replacing the code inside the function by :

Code:
g_dpDBClient.DestroyPlayer( dpidUser );
return;
 
Re: Block MootiHack Item creation

You may think your post has nothing to do with the flame war but the little "Your doing blah blah" or "If you don't understand this your just stupid" counts as flame baiting even though you've surrounded it by "positive" feedback.

If mootie had even a shred of protection here he wouldn't be infraction banned.
 
Last edited:
Back