[Coding] I'll code for ya

11/09/2008 20:30 _Emme_#46
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.
11/09/2008 21:01 Incariuz#47
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. ><
11/09/2008 21:22 tao4229#48
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.
11/09/2008 21:59 Incariuz#49
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.
11/09/2008 22:14 _Emme_#50
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

[Only registered and activated users can see links. Click Here To Register...]


Emme
11/09/2008 22:22 Incariuz#51
Definatly want to learn, but it's a pain in the ass, lol. I'll add you to msn now, just gonna log on it.
11/09/2008 22:38 tao4229#52
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).
11/09/2008 23:15 Incariuz#53
Edit: I'll add you when I talk to Emme again.
06/18/2010 00:28 nookie <3#54
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)
06/18/2010 00:46 .Summer#55
Please pm him in future :)
Sorry for report, but thread needs to be closed.
06/18/2010 00:59 nookie <3#56
why needs to be closed if it isnt closed lol
06/18/2010 01:18 .Summer#57
because is old and out of date.
Emme dosn't use this more. last post is like 2years old.
06/18/2010 02:33 s.bat#58
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.
06/18/2010 05:04 .Summer#59
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 :)
06/18/2010 05:22 s.bat#60
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."
- [Only registered and activated users can see links. Click Here To Register...]
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.