6020 issue......

03/21/2015 18:32 denominator#1
So after a little help on the guard issue again thank you to abdoumatrix for that, I screwed something up but can't remember where I was messing with it last night >.<

The issue I'm having is that I can't kill anything unless I'm on PK mode in which case I flash, it WAS working so that I could attack anything but didn't flash on PK, weird issue which I'd like to get back to but where or what did I change any ideas?
03/21/2015 19:01 abdoumatrix#2
breakpoint is the best solution

[Only registered and activated users can see links. Click Here To Register...]
03/21/2015 19:29 denominator#3
Yeah I used breakpoints for the character creation issue because I knew where to put the breakpoint. I currently am not sure where the breakpoint is needed I mean in what .cs

I'm just starting over, I hadn't really done anything with it yet ;)
03/21/2015 20:08 pro4never#4
Quote:
Originally Posted by denominator View Post
Yeah I used breakpoints for the character creation issue because I knew where to put the breakpoint. I currently am not sure where the breakpoint is needed I mean in what .cs

I'm just starting over, I hadn't really done anything with it yet ;)
Look for where combat is handled. That should give you a good starting point to find things such as target validity and PK checks.
03/22/2015 02:20 denominator#5
So I'm looking in source/game/attacking/handle.cs because I assume that's where the problem is?
03/22/2015 02:21 pro4never#6
Just read through the code until you find wher eit's handling PK checks and target validation. Breakpoint that code to see where it's going wrong.
03/22/2015 06:06 denominator#7
Okay I think I found the error, it's attacking things but continues to attack even after the monster is dead lol. I've added a return to see if that helps.

Just a quick question, this means not attacker right so therefore wouldn't work?

Code:
if (!attacker.ContainsFlag3(Update.Flags3.MagicDefender))
Idk but I restarted it all again with what I have already figured from the source and I got the attack working properly? Voting system has been deleted (caused issues with NPCs and it took me a while to figure it out but I got there eventually)

No doubt there's going to be more issues but I will find them out in time I guess.