Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 06:03

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

Advertisement



Making an Packet

Discussion on Making an Packet within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Making an Packet

Hi elitepvpers,

I am strungeling on how to create an new packet.

This is what i have so far

MsgHdr.h
#define PACKETTYPE_UPDATETEST (WORD)0xDD000012

inside
DPClient.cpp
PHP Code:
void CDPClient::SendTestu_long idPlayerint IsRaven)
{
    
BEFORESENDSOLEarPACKETTYPE_UPDATETESTDPID_UNKNOWN );
    
ar << idPlayer << IsRaven;
    
SENDarthisDPID_SERVERPLAYER )

inside DPClient.h
PHP Code:
void    SendTestu_long idPlayerint IsRaven); 
now inside MoverRender.cpp i need to let it work
PHP Code:
if( IsRaven //I thought it has to be something like this however its not not sure what to add here then
        
{
            
CString strName;
            
strName szName;
            
strName += " [Bird]";
            
strcpyszName, (LPCTSTR)strName );
        } 
Maybe you can give me some pointers in this situation so i can learn on how to create it.

With kind regards
raventh1984 is offline  
Old 11/28/2013, 21:48   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
First you should start by learning C/C++.
alfredico is offline  
Thanks
1 User
Old 11/28/2013, 21:58   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Best answer i ever heard.

I am learning and developing my skills in this matter. I dont ask for the whole solution but i only ask for tips. And yes you have given an tip but that is not the tip i was looking for xD.

I always say practice is the best learning way.
raventh1984 is offline  
Old 11/29/2013, 13:42   #4
 
Ryunat's Avatar
 
elite*gold: 320
Join Date: Jan 2012
Posts: 1,032
Received Thanks: 573
Function call:

SendTest(idPlayer, IsRaven);
Ryunat is offline  
Old 11/29/2013, 18:20   #5
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
Well, IsBird seems to be an boolean (is or is not), so try is with TRUE, FALSE.

SendTest( 1337, true );
xTwiLightx is offline  
Old 11/29/2013, 19:38   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Thank you both i will see what i can do. I have only 1 question left about this.

Since its conserning MoverRender.cpp
Do i need to have it only in DPClient

Cause when i use SetSMMode inside DPClient its giving me the error that its not an Mover class. But its inside Mover.cpp/h And when i do it inside MoverSkill.cpp its working like it should be.

So again thank you for the tips i will see what i can do about it.
raventh1984 is offline  
Old 11/29/2013, 19:47   #7
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
Maybe if you explain what are you trying to do, we may be able to help.
alfredico is offline  
Old 11/29/2013, 19:53   #8
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Ok i am using this

To make an Premium system i like the way how sMMode functions.

So the TAG of the player is updated when ever the player is using the II_PREMIUM scroll
However there needs to be an packet sended so that its visible for evey other player.

Once i get the hang on how to create an packet and offcourse calling it the correct way. Then i can work on the rest of the script and also other futures.

I get the hang of c++ but i never experience on making and handeling packets. So thats way i am asking so i can learn it an bit faster. Then instead of 2 days of trying and mess more up then anything else.
raventh1984 is offline  
Old 11/29/2013, 20:16   #9
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
Quote:
Originally Posted by raventh1984 View Post
Ok i am using this

To make an Premium system i like the way how sMMode functions.

So the TAG of the player is updated when ever the player is using the II_PREMIUM scroll
However there needs to be an packet sended so that its visible for evey other player.

Once i get the hang on how to create an packet and offcourse calling it the correct way. Then i can work on the rest of the script and also other futures.

I get the hang of c++ but i never experience on making and handeling packets. So thats way i am asking so i can learn it an bit faster. Then instead of 2 days of trying and mess more up then anything else.
You dont need it.. SM Mode sucks..

Use this..
Quote:
#ifdef __PREMIUM
if( HasBuff( BUFF_ITEM, II_PREMIUM ) )
{
CString strName;
strName = szName;
strName += " [Premium]";
strcpy( szName, (LPCTSTR)strName );
}
#endif
.SnoX is offline  
Old 11/29/2013, 20:41   #10
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
You don't need to create a new function or "packet" to do this. There is already a function in MoverRender to render name CMover::RenderName and it's update in server somewhere, just by edit the function you can do the same without a new function.
The SnoX code should work.
alfredico is offline  
Reply


Similar Threads Similar Threads
Need help making a packet bot
07/22/2011 - General Coding - 3 Replies
Hello, I recently started programming in vb 2010 and i have made simple programs such as a youtube bot, but i cannot seem to find any tutorials on how to make a packet bot for browser games(darkorbit). Can someone please give me a detailed guide or link to a tutorial. Thanks
[Request] Packet for making a link pop out!
02/01/2010 - CO2 Private Server - 1 Replies
For lotf 5017, example, voting npc. Thanks!



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.