Register for your free account! | Forgot your password?

You last visited: Today at 18:11

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


iam need some advices

Discussion on iam need some advices within the CO2 PServer - Discussions / Questions forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 24
Received Thanks: 1
Cool iam need some advices

all look for this pic
i try to make this skill
when i make it attack for monster in spawn
it's attack the monster but i can't attack again
must wait for the next xp full
can anyone advice me what i can do





asdalhog is offline  
Old 09/21/2011, 04:50   #2
 
elite*gold: 0
Join Date: Jan 2010
Posts: 117
Received Thanks: 30
first of all put code here -.- no one can help you with out of basic source of the skill


PsiKiller is offline  
Old 09/21/2011, 04:58   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by PsiKiller View Post
first of all put code here -.- no one can help you with out of basic source of the skill
here the code
Code:
  //ChainBolt
                                case 10309:
                                    {
                                        if (attacked == null)
                                            return;
                                        

                                        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);
                                            for (int c = 0; c < attacker.Owner.Screen.Objects.Count; c++)
                                            {
                                                //For a multi threaded application, while we go through the collection
                                                //the collection might change. We will make sure that we wont go off  
                                                //the limits with a check.
                                                if (c >= attacker.Owner.Screen.Objects.Count)
                                                    break;
                                                Interfaces.IMapObject _obj = attacker.Owner.Screen.Objects[c];
                                                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))
                                                        {
                                                            uint damage = Game.Attacking.Calculate.Magic(attacker, attacked, spell);

                                                            damage = ReceiveAttack(suse, 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))
                                                        {
                                                            uint damage = Game.Attacking.Calculate.Magic(attacker, attackedsob, spell);

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

                                                            suse.Targets.Add(attackedsob.UID, damage);
                                                        }
                                                    }
                                                }
                                            }
                                            attacker.Owner.Screen.SendScreen(suse, true);
                                        }
                                        break;
                                    }
asdalhog is offline  
Old 09/21/2011, 05:21   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,320
Check your PrepareSpell.

I can guarantee you that it's removing your startXP flag which is required for the spell to be able to cast.


Think of it like superman.

The client uses the skill, the server checks if you have xp mode ready and if so removes it and performs skill activation.

That's EXACTLY what's happening here but because you've already used it, and the xp flag has been removed you cannot use it again.


pro4never is offline  
Old 09/21/2011, 05:45   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by pro4never View Post
Check your PrepareSpell.

I can guarantee you that it's removing your startXP flag which is required for the spell to be able to cast.


Think of it like superman.

The client uses the skill, the server checks if you have xp mode ready and if so removes it and performs skill activation.

That's EXACTLY what's happening here but because you've already used it, and the xp flag has been removed you cannot use it again.
i know that but i need to make it time like cycolne

but when i make it's attack one time

i have idea if i can make this skill take from stamina not xp
.......lol i can't thinking

Quote:
Originally Posted by pro4never View Post
Check your PrepareSpell.

I can guarantee you that it's removing your startXP flag which is required for the spell to be able to cast.


Think of it like superman.

The client uses the skill, the server checks if you have xp mode ready and if so removes it and performs skill activation.

That's EXACTLY what's happening here but because you've already used it, and the xp flag has been removed you cannot use it again.
rely big thank for ur helpful the skill work now
thank u pro4never
now i can attack but i have another
Problem
i add time falg but when time end flag dosnt remov
Code:
attacked.AddFlag2(Update.Flags2.ChainBoltActive);


the skill done thanks for help


asdalhog is offline  
Reply



« VPS hosting | Hmm packet writer question. »

Similar Threads
The Advices from bestbots
07/01/2011 - DarkOrbit - 4 Replies
Can someone really give all the advices and trick that bestbots give when you buy, because not all of us have bought from there, some bought from Ivan directly (incl. me) :D Thanks in advance.
Need some advices
07/22/2010 - SRO Foreign - Discussions / Questions - 8 Replies
Hello mates... I have one really big problem... Right now iv got 2 bans on my main character 86 lvl xbower... I dont want to lost him forever.. So what would u do, if u would at the same situation .... (handgrinding isnt for me, i dont have so much time)
need advices to Hack well ^^
07/09/2008 - Cabal Main - Discussions / Questions - 4 Replies
Hi all,i searched for speedhack,no cooldown and no delay hack,but i didnt find anything working... except bots. can someone help me to create some nice hacks thx to CE? I can pay Alz on Mars serv EU for explainations, I hope for a positive answer,Thanks in advance
i need some help and advices
04/23/2007 - CO2 Main - Discussions / Questions - 3 Replies
Hey guys :) I wana ask what do you think from your own expirience...when sould i try upgrade my equipments and hope for 1 sock or 2 sock item? sinc ei speended more than 500+ mets on items and no socket....and no luck...so tell me how do you getting 2 sock items from your own expirience write ... tnx
Advices for gamehacking
08/10/2005 - CO2 Main - Discussions / Questions - 5 Replies
well, i wanna start creating some hacks.. etc, i wanna knwo the basic tools(that use), and some tutorials... someone can tell me where can i find?



All times are GMT +2. The time now is 18:11.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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