Register for your free account! | Forgot your password?

You last visited: Today at 22:22

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

Advertisement



Scatter

Discussion on Scatter within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
Scatter

Hello pvpers

Can someone englighten me here about the scatter issue. When i scatter on huge spawn i get dced..

Heres the code:

Code:
                                case 8001:
                                    {
                                        if (CanUseSpell(spell, attacker.Owner))
                                        {
                                            PrepareSpell(spell, attacker.Owner);

                                            SpellUse suse = new SpellUse(true);
                                            suse.Attacker = attacker.UID;
                                            suse.SpellID = spell.ID;
                                            suse.SpellLevel = spell.Level;
                                            suse.X = X;
                                            suse.Y = Y;
                                            Sector sector = new Sector(attacker.X, attacker.Y, X, Y);
                                            sector.Arrange(spell.Sector, spell.Distance);
                                            foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                            {
                                                if (_obj == null)
                                                    continue;
                                                if (_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Player)
                                                {
                                                    attacked = _obj as Entity;

                                                    if (sector.Inside(attacked.X, attacked.Y))
                                                    {
                                                        if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                        {
                                                            attack.Effect1 = Attack.AttackEffects1.None;
                                                            uint damage = Game.Attacking.Calculate.Ranged(attacker, attacked, spell, ref attack);
                                                            suse.Effect1 = attack.Effect1;
                                                            ReceiveAttack(attacker, attacked, attack, damage, spell);

                                                            suse.Targets.Add(attacked.UID, damage);
                                                        }
                                                    }
                                                }
                                                else if (_obj.MapObjType == MapObjectType.SobNpc)
                                                {
                                                    attackedsob = _obj as SobNpcSpawn;

                                                    if (sector.Inside(attackedsob.X, attackedsob.Y))
                                                    {
                                                        if (CanAttack(attacker, attackedsob, spell))
                                                        {
                                                            attack.Effect1 = Attack.AttackEffects1.None;
                                                            uint damage = Game.Attacking.Calculate.Ranged(attacker, attackedsob, ref attack);
                                                            suse.Effect1 = attack.Effect1;
                                                            if (damage == 0)
                                                                damage = 1;
                                                            damage = Game.Attacking.Calculate.Percent((int)damage, spell.PowerPercent);

                                                            ReceiveAttack(attacker, attackedsob, attack, damage, null);

                                                            suse.Targets.Add(attackedsob.UID, damage);
                                                        }
                                                    }
                                                }
                                            }
                                            attacker.Owner.SendScreen(suse, true);
                                        }
                                        break;
                                    }
agathom is offline  
Old 03/10/2013, 04:43   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You're overloading the packet buffer in the client.

If it receives a packet over 1024 bytes it will crash. That's why you must be keeping track of how many targets are hit with an AOE spell and break them into multiple packets as needed.
pro4never is offline  
Reply


Similar Threads Similar Threads
scatter bug
01/09/2011 - CO2 Private Server - 9 Replies
im using 5165 NewestCoServer source. i fixed the damage bug with regualar archer attacks, but ive been trying to fix the damage bug when they use scatter. at the moment i hit 210kk from people when i scatter. ive tried differrent things to fix this bug now idk what to do. any ideas?
TG Scatter & Bow LVL
06/02/2008 - CO2 Bots & Macros - 24 Replies
Hello Every1. I think this is my 1 post on this acc ;) and my 1 home made macro :) I dunno if any1 already made a macro for TG scatter+bow lvler, but here is mine hope it will be usefull. U will need: 1. MacroScheduler (google it :D) 2. To have CO 1024- 768 FULL Screen 3. Use PEACE mode in tg 4. Download the Macro (its rar. u will also have the EXE for the macro in it) 5. Have Fun
Scatter With Bot
08/08/2007 - CO2 Guides & Templates - 5 Replies
Um ok I know most people might know this who arent noobs....but i am a noob and i had a few problems with this my self.....after playing around with bot and going through the ReadMe and stuff....i found out how to scatter in bot, which i had a problem with. Just simply set the scatter on an F key (mines is on f2 since u have a choice of how many times you want to click per seconds) and then leave ur acc to bot...and it should scatter if im correct...it did for me and i hope it will help for...
were to scatter for archer
06/30/2007 - CO2 Guides & Templates - 2 Replies
Archer: how to hit 9 stakes/scarecrows with lvl 3 scatter: X X X X X X X X - - X X X X^ X X X X - - - - - - - the ^ is were u stand, the X's r stakes/scarecrows top one for lvl 3 scatter i dunno about lower...
Auto Scatter Help
05/21/2006 - Conquer Online 2 - 1 Replies
can someone post a auto scatter here plz...I tried CoPartner but it scatters and doesnt jump around :( bad for balisticks



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


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