Register for your free account! | Forgot your password?

You last visited: Today at 21:39

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


[Coding] I'll code for ya

Discussion on [Coding] I'll code for ya within the CO2 PServer - Discussions / Questions forum part of the Conquer Online 2 category.

Closed Thread
 
Old 11/09/2008, 20:30   #46
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,160
I actually finished arrows like 50%

Made it appear as 500 instead,that is not like you think,like:

Arrows = 100;

its a hella complication calculution,so hard ..

And you cant do scatter / normal shooting if you have no arrows | 2 arrows if ur trying to scatter.

Only thing left is to withdraw arrows.



_Emme_ is offline  
Old 11/09/2008, 21:01   #47
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Well arrows work on my source in the sense that you can't attack or scatter without them. It's just the basic issue of the amount not reducing with each attack. I'll look into the section you mentioned though tao, see what I can figure out.

As for the mana thing. It's simply messing with my head right now because a lot of the spells work ingame, but I can't find a code segment that makes sense for them. for instance, for thunder, this is all I find.

Code:
            else if (SkillId == 1000)
            {
                if (Level == 0)
                    return 2000;
                if (Level == 1)
                    return 113060;
                if (Level == 2)
                    return 326107;
                if (Level == 3)
                    return 777950;
                else return 0;
under the public static uint NeededSkillExp(short SkillId, byte Level) in the DB.

and
Code:
            SkillAttributes[1000] = new ushort[5][];
            SkillAttributes[1000][0] = new ushort[6] { 2, 0, 0, 7, 0, 0 };
            SkillAttributes[1000][1] = new ushort[6] { 2, 0, 0, 16, 0, 0 };
            SkillAttributes[1000][2] = new ushort[6] { 2, 0, 0, 32, 0, 0 };
            SkillAttributes[1000][3] = new ushort[6] { 2, 0, 0, 57, 0, 0 };
            SkillAttributes[1000][4] = new ushort[6] { 2, 0, 0, 86, 0, 0 };
            SkillsDone.Add(1000, 4);
(I know how this second code operates. I can change the info to make it function, alter damage, w/e. But for stamina/mana, it consumes mana)

But nothing in any of the #region SkillAttributes of the character.cs as I'm assuming there should be.

So to be honest... I don't even know how the skill is hurting anything ingame seeing as there is nothing in the character.cs to do such.

So... Am I right? Is something missing? Or do I just not understand how the magic skills work on here? lol. If I'm way off on my thoughts, please tell me, and explain to me what I should be looking for. In the mean time, I'm going to try something, doubt it will work, but worth a try.

And feel free to laugh if I'm wrong, lol. I'm still a noob, won't take offence. ><


Incariuz is offline  
Old 11/09/2008, 21:22   #48
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
Its in Character.UseSkill
See the first number in the array for SkillAttributes(it's 2 in thunders case) look in UseSkill and you'll find how it handles it.
*Look in region skillattributes2n6n12* or whatever.
tao4229 is offline  
Old 11/09/2008, 21:59   #49
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Ah, ok, I get it now, thanks a bunch.

So let me think here. Create the variable, then add a line something like...

Code:
MyClient.SendPacket(General.MyPackets.Vital(UID, 2, Mana));
after...

Code:
if (SkillAttributes[0] == 2)
    NPCTargets.Add(Target, Other.CalculateDamage(this, Target, 3, SkillId, SkillLvl));
In order to read the variable and consume mana off that type of skill?

Well... I'm going to see about doing something like that now, might as well test and see. Thanks for the help, wish me luck.


Incariuz is offline  
Old 11/09/2008, 22:14   #50
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,160
Incariuz, MSN? You seem like a guy who actually wants to learn,and I'd love to help them,plus your English isnt awful like everyone elses :P




Emme
_Emme_ is offline  
Old 11/09/2008, 22:22   #51
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Definatly want to learn, but it's a pain in the ***, lol. I'll add you to msn now, just gonna log on it.
Incariuz is offline  
Old 11/09/2008, 22:38   #52
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
You can also add me, ask emme for my email, I got enough noobs on my MSN already(don't want others to get it D=, not you).
tao4229 is offline  
Old 11/09/2008, 23:15   #53
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Edit: I'll add you when I talk to Emme again.
Incariuz is offline  
Old 06/18/2010, 00:28   #54
 
elite*gold: 0
Join Date: Aug 2009
Posts: 95
Received Thanks: 6
puhh the last post is now long ago and my question is if u emme are still helping ppls with coding =) would be nice because i need help with market vending (5017)
nookie <3 is offline  
Old 06/18/2010, 00:46   #55
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Please pm him in future
Sorry for report, but thread needs to be closed.
.Summer is offline  
Old 06/18/2010, 00:59   #56
 
elite*gold: 0
Join Date: Aug 2009
Posts: 95
Received Thanks: 6
why needs to be closed if it isnt closed lol
nookie <3 is offline  
Old 06/18/2010, 01:18   #57
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
because is old and out of date.
Emme dosn't use this more. last post is like 2years old.
.Summer is offline  
Old 06/18/2010, 02:33   #58
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
Quote:
Originally Posted by .Summer View Post
because is old and out of date.
Emme dosn't use this more. last post is like 2years old.
nookie <3 already acknowledged that he was bumping an old thread, but his post serves the purpose of asking an important and relevant question that could help others continue to be lazy. None of which are against the rules, AFAIK.
s.bat is offline  
Old 06/18/2010, 05:04   #59
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Quote:
Originally Posted by s.bat View Post
nookie <3 already acknowledged that he was bumping an old thread, but his post serves the purpose of asking an important and relevant question that could help others continue to be lazy. None of which are against the rules, AFAIK.
Äctually it is.
If he wanted to know he could have used the PM button
.Summer is offline  
Old 06/18/2010, 05:22   #60
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
Quote:
Originally Posted by .Summer View Post
Äctually it is.
If he wanted to know he could have used the PM button
Bumping is not against the rules, as long as it's not done "for fun."
-
However, some moderators tend to find clever reasons to move around rules like those, and close threads like this anyways. It's just as fine that they posted instead of sending a PM to the OP in my opinion, because someone may reply with an alternative, or with the wish to take over if the OP does not want to continue coding for people. In that case, it's important that those who are interested know, so that there is no need for this question to be asked in the future. It's already here, and in the public, for everyone else that is curious.


s.bat is offline  
Thanks
1 User
Closed Thread



« a few questions will be decided for TQ | GM/PM protection »



All times are GMT +2. The time now is 21:39.


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.