About PkMode

05/14/2011 19:57 marlyandedsel#1
why this code isn't working I can still pk my guild mate if I use PKMode.Team

Quote:
if (Attacked.EntityFlag != EntityFlag.Monster)
if (Attacker.PKMode == Enums.PKMode.Team || Attacker.PKMode == Enums.PKMode.Peace)
if (Attacker.Guild != null)
if (Attacked.Guild != null)
if (Attacked.GuildID == Attacker.GuildID)
return false;
05/14/2011 20:24 Spirited42#2
Stop asking questions. Just stop. Learn how to code already.
05/14/2011 20:29 marlyandedsel#3
ops! okay... I'm trying... I just want someone to explain.... I know you were like me before asking someone what is this and what is that.....anyway thank you .... I'm trying to learn.....
05/14/2011 20:41 Spirited42#4
Quote:
Originally Posted by marlyandedsel View Post
ops! okay... I'm trying... I just want someone to explain.... I know you were like me before asking someone what is this and what is that.....anyway thank you .... I'm trying to learn.....
No, i wasn't like you. Everyone starts off at a low level, yes- but I didn't ask questions on everything I didn't understand. I actually taught myself HOW to fix my problems by myself. I taught myself C# from NewestCoServer. I worked hard on the worst source there is. There's a difference between what you're doing and what I did. Don't compare me as a noob on my first day of coding with you.
05/14/2011 20:51 marlyandedsel#5
Okay okay.... sorry if I disturb you for asking.... I know we have big different, I'm just a slow learner I admit that... I maybe read text book for this or dummies, anyway thanks for giving ideas....
05/14/2011 21:00 _DreadNought_#6
possibly need to nullify the attackpacket?
05/14/2011 21:32 { Angelius }#7
Quote:
Originally Posted by marlyandedsel View Post
why this code isn't working I can still pk my guild mate if I use PKMode.Team
Quote:
if (Attacked.EntityFlag != EntityFlag.Monster)
if (Attacker.PKMode == Enums.PKMode.Team || Attacker.PKMode == Enums.PKMode.Peace)
if (Attacker.Guild != null)
if (Attacked.Guild != null)
if (Attacked.GuildID == Attacker.GuildID)
return false;
i think it should be something like this ,

Quote:
if (Attacked.EntityFlag != EntityFlag.Monster || Attacker.PKMode == Enums.PKMode.Peace || (Attacker.Guild != null && Attacked.Guild != null && Attacked.GuildID == Attacker.GuildID))
return false;
for the team mode you should be doing a for each to check if the attacker team members contains the target uid or not

or maybe something like that,

if (Attacker.PKMode == Enums.PKMode.Team && attacker.Team != null && attacker.Team.Members.Containskey(Target.UID))
return false;
05/14/2011 22:14 Spirited42#8
Quote:
Originally Posted by { Angelius } View Post
i think it should be something like this ,


for the team mode you should be doing a for each to check if the attacker team members contains the target uid or not

or maybe something like that,

if (Attacker.PKMode == Enums.PKMode.Team && attacker.Team != null && attacker.Team.Members.Containskey(Target.UID))
return false;
That code will bug his source.
You didn't write it correctly.
05/14/2011 23:48 { Angelius }#9
Quote:
Originally Posted by Spirited View Post
That code will bug his source.
You didn't write it correctly.
explain it/come up with something better

idk let me explain it a little bit more this thread was created to get some help/be answered if you know the answer post it even if it wasent the perfect one and someone else/the thread creator might fix it/make it better so in order to replay you need to have something better to help with not a bunch of fail replays that any weirdo might use to prove himself to the others

fail....

have a nice day .
05/15/2011 01:57 Spirited42#10
Quote:
Originally Posted by Yup Stigs View Post
Spirited get the dick out of your ass and quit with your QQ'ing. You may not have asked questions, but you whined like a little bitch about everything. Just because you know c# now gives you no right to insult him. That's what it is here for, to ask questions. So quit acting like God and fuck off
Chill out. How the hell am I insulting him? Stop insulting me- it's not my fault he wrote the code wrong.
I personally do not like marlyandedsel unless he shows some effort, so I won't help him till I see that effort.
05/15/2011 01:58 Korvacs#11
Quote:
Originally Posted by Spirited View Post
Chill out. How the hell am I insulting him? Stop insulting me- it's not my fault he wrote the code wrong.
He did state "something like this", it wasnt exactly compiled and tested code, and im pretty sure that was obvious, you need to chill out >_>"
05/15/2011 02:39 Spirited42#12
Quote:
Originally Posted by Korvacs View Post
He did state "something like this", it wasnt exactly compiled and tested code, and im pretty sure that was obvious, you need to chill out >_>"
No. I don't need to chill out Korvacs. I just got insulted. If you look at his Stig's code, you'll see that his syntax is wrong and it won't check properly. Sorry for caring about someone I don't like? Come on dude. Act like a moderator already. How long has it been of this borderline-mod business?

EDIT: Seriously though, I'm calm. I'm just confused on why you're supporting this trolling behavior.
05/15/2011 07:50 Yup Stigs#13
I wouldn't necessarily call it trolling. I would call it reverse trolling.. You trolled the dude first. Now quit QQ'ing to the mods and stop trying to get me an infraction.
05/15/2011 10:46 Korvacs#14
Quote:
Originally Posted by Spirited View Post
No. I don't need to chill out Korvacs. I just got insulted. If you look at his Stig's code, you'll see that his syntax is wrong and it won't check properly. Sorry for caring about someone I don't like? Come on dude. Act like a moderator already. How long has it been of this borderline-mod business?

EDIT: Seriously though, I'm calm. I'm just confused on why you're supporting this trolling behavior.
Well yeah of course this syntax is wrong he just chucked it togeather in the reply box, if you care why didnt you correct instead of just stating "That code will bug his source. You didn't write it correctly."

Shall i start infracting you for your troll-like behaviour recently? What do you think?
05/15/2011 12:53 { Angelius }#15
the whole thing was about the || && thing lol and i never said that the if statement i posted earlier was a working one :P

@fang you have issues