Register for your free account! | Forgot your password?

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

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

Advertisement



Some albetros source's bug .. help me fixed?

Discussion on Some albetros source's bug .. help me fixed? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
Some albetros source's bug .. help me fixed?

first:
when the player died , client's mouse is show the player still can attack。
Second:
when the player died , a monk use skill lock the ghost , but Client show he still can use the PathFinding
Third:
when the player use any skill .have some delay
Fourth:
some skill can't use...
somecode is offline  
Old 03/07/2012, 16:11   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
1: Not sure, possible not all death flags were sent. Never noticed it though

2: Code soul shackle, I never guarenteed it was fully working.

3: Not sure, I didn't have delay on skills but could be the source lagging... again there's a number of things needing to be fixed in the source to make it properly efficient. Recoding the skill system was actually on my list of things to do at some point.

4: Not all skills are coded, code them and they will work.
pro4never is offline  
Thanks
1 User
Old 03/08/2012, 00:15   #3
 
elite*gold: 0
Join Date: Jan 2012
Posts: 164
Received Thanks: 22
as pro said , update deathflags properly about soul lock simply try to add it as flag for the pathfinding , aka if(plapla.flags.soullock) break or return without executing the pathfinding

about the first problem u can simply make 2 methods of CanAttack , Can'tAttack
add to the first that u can attack monsters , pole if it's war and if u r not polekeeper , whatever works for it and for can'tattack add pole while not war , add if ghost it can't attack

here is an example

Code:
public static bool CanAttack(Game.Entity attacker, Game.Entity attacked, Database.SpellInformation spell, bool melee)
        {
            if (spell != null)
                if (spell.CanKill && attacker.EntityFlag == EntityFlag.Player && ServerBase.Constants.PKForbiddenMaps.Contains(attacker.Owner.Map.ID) && attacked.EntityFlag == EntityFlag.Player)
                    return false;
            if (attacker.EntityFlag == EntityFlag.Player)
                if (attacker.Owner.WatchingGroup != null)
                    return false;
            if (attacked == null)
                return false;
            if (attacked.Dead)
            {
                attacker.AttackPacket = null;
                return false;
            }
injection illusion logic is offline  
Old 03/08/2012, 15:32   #4
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
Quote:
Originally Posted by injection illusion logic View Post
as pro said , update deathflags properly about soul lock simply try to add it as flag for the pathfinding , aka if(plapla.flags.soullock) break or return without executing the pathfinding

about the first problem u can simply make 2 methods of CanAttack , Can'tAttack
add to the first that u can attack monsters , pole if it's war and if u r not polekeeper , whatever works for it and for can'tattack add pole while not war , add if ghost it can't attack

here is an example

Code:
public static bool CanAttack(Game.Entity attacker, Game.Entity attacked, Database.SpellInformation spell, bool melee)
        {
            if (spell != null)
                if (spell.CanKill && attacker.EntityFlag == EntityFlag.Player && ServerBase.Constants.PKForbiddenMaps.Contains(attacker.Owner.Map.ID) && attacked.EntityFlag == EntityFlag.Player)
                    return false;
            if (attacker.EntityFlag == EntityFlag.Player)
                if (attacker.Owner.WatchingGroup != null)
                    return false;
            if (attacked == null)
                return false;
            if (attacked.Dead)
            {
                attacker.AttackPacket = null;
                return false;
            }
i said .. client show another player ..he can attack..

didn't said server can execute another player's attack

you take the wrong mean
somecode is offline  
Old 03/08/2012, 17:46   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 164
Received Thanks: 22
-.- it's the flags bro -.-
injection illusion logic is offline  
Old 03/08/2012, 20:58   #6
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 9
Quote:
Originally Posted by injection illusion logic View Post
-.- it's the flags bro -.-
i add the flags ... like the code

PHP Code:

RemoveFlag1
(Effect1.Fly);
            
RemoveFlag1(Effect1.Riding);
            
RemoveFlag1(Effect1.StartXp);
            
RemoveFlag1(Effect1.Cyclone);
            
RemoveFlag1(Effect1.Superman);
            
RemoveFlag1(Effect1.FatalStrike);
            
RemoveFlag1(Effect1.BlueName);
            
RemoveFlag1(Effect1.Vortex);
            
RemoveFlag2(Effect2.AzureShield);
            
RemoveFlag2(Effect2.CaryingFlag);
            
RemoveFlag2(Effect2.Oblivion);
            
AttackPacket null;
            
KilledAt DateTime.Now;
            
AddFlag1(Effect1.Dead);
            
AddFlag1(Effect1.Ghost);
            
DelayedActions.RemoveAction(DelayedActionType.ToGhost);
            
DelayedActions.AddAction(DelayedActionType.ToGhost, new Action(() => ToGhost()), 2000);
            
XP 0;
            
Stamina 0
somecode is offline  
Reply


Similar Threads Similar Threads
albetros use cpu 100%
03/07/2012 - CO2 Private Server - 9 Replies
when the player up 50 +........ when the server run three hours ... or a limit time ... the cpu is use 100%,,, player's ping is 100000+... why did that
albetros Big BUG in EffectThread
03/04/2012 - CO2 Private Server - 5 Replies
while (true) { if (Kernel.Clients > 0) { foreach (Player role in Kernel.Clients.Values) { ..... } } }
How do i change source's
11/07/2009 - CO2 Private Server - 0 Replies
hii i am a new owner of a conquer private server and i wanted to know how do i change source's for conquer and well i need some help with my server..... like to add npc's and more monsters and also move npc's around. thank you. Also howdo i change the rates im using powersource contact my on my msn : [email protected]
Guides+Source's+Codes+Downloads
10/17/2009 - CO2 Private Server - 11 Replies
Every codes, guides, downloads, and sources you need is at this site. Remember to press thanks.
[REQUEST] v5017 Source's!
09/07/2009 - CO2 Private Server - 14 Replies
Can people post source's so I can try them out for my server. If someone is gonna flame me, please don't reply...



All times are GMT +2. The time now is 02:15.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.