Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:27

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

Advertisement



i need some help in understanding Fly skill

Discussion on i need some help in understanding Fly skill within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
i need some help in understanding Fly skill

i need some help on the fly skill,i am wondering how to make the character come down to earth after using fly skill, i mean after the time expires.Does any one has any idea on that?
mujake is offline  
Old 10/19/2011, 13:53   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
you....

Remove the status effect for fly... and send the screen an update packet for that character using their new status effect pool.

if you mean handling the timeout... well you need some sort of effects thread to deal with all of the status effects that expire (buff skills mostly). When they expire, remove them, update stateff and send to clients nearby.
pro4never is offline  
Old 10/19/2011, 17:28   #3
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
when the counter reaches zero the client will keep flying ,that is my problem,i am using an version of coemu ; i also found that after an monster die character it will keep attack it

I also tried elite coemu video guide u made but ,after i get the source and i open it in Visual studio 2010 i get errors
mujake is offline  
Old 10/19/2011, 17:41   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
then you're not handling the end of the effect properly in the source. I seem to remember the client actually sends a general data requesting to stop flying actually... make sure you handle that properly.

Thing with monsters... just during their attack code check if target is dead and if so clear their target and return.
pro4never is offline  
Old 10/21/2011, 06:33   #5
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
i have this at skill
case 8002:
{

#region XPFly
if (CSocket.Client.XpTime)
{
CSocket.Client.XpTime = false;
CSocket.Client.XpFlying = true;
CSocket.Client.FlyTime = 40;
CSocket.Client.FlyActivated = DateTime.Now;
//DoSpell(CSocket.Client.ID, CSocket.Client.ID, CSocket.Client.X, CSocket.Client.Y, CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, Spell.ID, 0, Spell.Level);
ConquerPacket.ToLocal(ConquerPacket.Status(CSocket , 2, 0, Struct.StatusTypes.StatusEffect), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
DoSpell(CSocket.Client.ID, CSocket.Client.ID, CSocket.Client.X, CSocket.Client.Y, CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, Spell.ID, 0, Spell.Level);
}
else if CSocket.Client.FlyTime = 0;
break;
#endregion

should i try make like
else if
client flytime =0
unspell .....
to unload the skill???
mujake is offline  
Old 10/21/2011, 07:08   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
That's only if they used the skill while already flying which should be impossible and would be wrong.


Right click FlyTime, find all references.

There SHOULD be somewhere in your threading saying something like...

if(DateTime.Now > CSocket.Client.FlyActivate.AddSeconds(CSocket.Clie nt.FlyTime))



By the looks of it though... you aren't even using any sort of status effect pool in that source... which means you're going to get LOTS of bugs.

Good luck with that lol.
pro4never is offline  
Old 10/21/2011, 07:16   #7
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
found it is in client socket.cs
if (Client.Flying)
if (DateTime.Now > Client.FlyActivated.AddSeconds(Client.FlyTime))
EndFly();
now where to put the code to end the skill?


public void EndFly()
{
Client.FlyTime = 0;
Client.Flying = false;
ConquerPacket.ToLocal(ConquerPacket.Status(this, 2, 0, Struct.StatusTypes.StatusEffect), Client.X, Client.Y, (int)Client.Map, 0, 0);
}
found this a bit down from that code

i also found in character.cs

//public int XpToEnd =0;

should i delete the "//"?
mujake is offline  
Old 10/21/2011, 23:08   #8


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
The change to the status effect always used to be handled in the general data packet handler.
Korvacs is offline  
Old 10/21/2011, 23:35   #9
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
Code:
case 8002:
 {

 #region XPFly
 if (CSocket.Client.XpTime)
 {
 CSocket.Client.XpTime = false;
 CSocket.Client.XpFlying = true;
 CSocket.Client.FlyTime = 40;
 CSocket.Client.FlyActivated = DateTime.Now;
 //DoSpell(CSocket.Client.ID, CSocket.Client.ID, CSocket.Client.X, CSocket.Client.Y, CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, Spell.ID, 0, Spell.Level);
 ConquerPacket.ToLocal(ConquerPacket.Status(CSocket , 2, 0, Struct.StatusTypes.StatusEffect), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
 DoSpell(CSocket.Client.ID, CSocket.Client.ID, CSocket.Client.X, CSocket.Client.Y, CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, Spell.ID, 0, Spell.Level);
 }
 else if CSocket.Client.FlyTime = 0;
Client.Flying = false;
 ConquerPacket.ToLocal(ConquerPacket.Status(this, 2, 0, Struct.StatusTypes.StatusEffect), Client.X, Client.Y, (int)Client.Map, 0, 0);
 break;
{
#endregion
will something like this work?
mujake is offline  
Reply


Similar Threads Similar Threads
Lack of Understanding
04/30/2011 - Dekaron - 6 Replies
Over time it has been clearly stated that the goal in this section is to get rid of "leechers" which is seen by the removal of all 1-click hacks. Now, for someone who is new to the whole hacking scheme, what can you do? There are tutorials that help newbies get started up which will allow players to create things by themselves. My concern about this is where do you start when you have no programming experience? Using a tutorial is the question that I imagine, but I have felt that tutorials...
[PSU] p-machinery: understanding and using
10/29/2006 - General Gaming Discussion - 0 Replies
Remember the PETE (robot) in your hostal? It's the PM allow you to used the warehouse, synthesis, and you can even raise it to be stronger, so that you can team up with it. #- Warehouse - This function allow you to move and manage the inventory items. And you will be able to take them out anytime. #- Raise PM - Under P-Machinary menu, select "Present an item" and select the item
Help understanding some ASM
01/18/2006 - General Coding - 0 Replies
I've collected the next batch of stupid questions i hope someone could help me shed some light on. Basicly im trying to enterpret some very helloworld'ish basic code written in c++ code(vs2005, console app). http://www.geocities.com/iamasciiart/hellow.JPG Truth be told, im fiddling with some codeinjection, evaluating different approaches, but i figure i'd get a little better at reading asm first. The idea of this statement "cout<<"address :"<<IAmMethodOne<<endl;" was to print the...



All times are GMT +1. The time now is 16:28.


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.