Atacking

09/04/2009 06:24 -Shunsui-#1
Can Anyone take the mooment to help me with this Bug
the bug is when a Player Gets Killed they Die and you can keep attacking them when they are dead Only with 2 Handed Weapon or with a Bow you can do it,
The bug is weird but yeah I tested it so far With Wand/Spear/And Bow if anyone can help Me Please!:handsdown:
09/04/2009 06:26 © Haydz#2
Does your attack function modify the alive boolean to false upon death?
09/04/2009 06:59 -Shunsui-#3
Nope it dosent cause the packets are basicly still saying iam alive so people can keep atackin me when im dead .. Where do i find the attack function?
09/04/2009 10:21 ~Yuki~#4
Are u on my msn? if so i offered u to fix it just gimme a nudge
09/04/2009 18:53 -Shunsui-#5
#Bump Still Need Help
Ty Yuki For trying ;P
09/04/2009 23:56 samehvan#6
seems all melee attack have this bug , so i think u need to check if Target.alive or Target.Current Hp is more than 0 then attack else return
09/05/2009 01:23 ~Yuki~#7
I tried that on his source but seems it doest work
@Haydz: Yes
09/05/2009 02:11 -Shunsui-#8
=\
09/05/2009 02:53 samehvan#9
Quote:
Originally Posted by ~Yuki~ View Post
I tried that on his source but seems it doest work
@Haydz: Yes
@flako27
tell me then what source u use or if u can give me a copy or link for the base source and i'll try to have a look
09/05/2009 03:16 -Shunsui-#10
Alright u sec ill post cheacter.cs here, k thats were the bug is i think if not tell me wat u need or add my msn [Only registered and activated users can see links. Click Here To Register...]
09/05/2009 04:16 samehvan#11
Quote:
Originally Posted by flako27 View Post
Alright u sec ill post cheacter.cs here, k thats were the bug is i think if not tell me wat u need or add my msn [Only registered and activated users can see links. Click Here To Register...]
you should send the attack.cs , anyway i think the main problem is at your

public void Die()

coz the whole code u put in there is for other characters online not for the dead player :p , u put all the code in the foreach statements and u just need this code in it

Code:
Character Target = (Character)DE.Value;
                    if (Target.TargetUID == UID)
                    {
                        Target.TargetUID = 0;
                        Target.PTarget = null;
                        Target.Attacking = false;
                        SkillLoopingTarget = 0;

                    }
the rest of the code suppose to be outside the foreach statements ,and don't forget to add

Code:
Alive=false;
hope this will fix it
09/05/2009 04:51 -Shunsui-#12
alrite ill try it now
09/05/2009 11:34 ~Yuki~#13
SameHvan Everytime Awesome to see you back on epvp :)
Thanks for the code idk if it works now but thanks :D
09/05/2009 13:42 ftplayer#14
Try this character.cs if u still having troubles... it should be fixed now for melee for players and monsters.
09/05/2009 19:29 -Shunsui-#15
Nope its not fixed @_@