Register for your free account! | Forgot your password?

You last visited: Today at 21:01

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

Advertisement



About PkMode

Discussion on About PkMode within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
About PkMode

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;
marlyandedsel is offline  
Old 05/14/2011, 20:24   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Stop asking questions. Just stop. Learn how to code already.
Spirited42 is offline  
Old 05/14/2011, 20:29   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
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.....
marlyandedsel is offline  
Thanks
1 User
Old 05/14/2011, 20:41   #4
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
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.
Spirited42 is offline  
Old 05/14/2011, 20:51   #5
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
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....
marlyandedsel is offline  
Old 05/14/2011, 21:00   #6
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
possibly need to nullify the attackpacket?
_DreadNought_ is offline  
Old 05/14/2011, 21:32   #7
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
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;
{ Angelius } is offline  
Old 05/14/2011, 22:14   #8
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
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.
Spirited42 is offline  
Old 05/14/2011, 23:48   #9
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
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 .
{ Angelius } is offline  
Thanks
2 Users
Old 05/15/2011, 01:57   #10
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Yup Stigs View Post
Spirited get the **** out of your *** and quit with your QQ'ing. You may not have asked questions, but you whined like a little ***** 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 *** and **** 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.
Spirited42 is offline  
Old 05/15/2011, 01:58   #11


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
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 >_>"
Korvacs is offline  
Thanks
1 User
Old 05/15/2011, 02:39   #12
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
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.
Spirited42 is offline  
Old 05/15/2011, 07:50   #13
 
elite*gold: 0
Join Date: Feb 2011
Posts: 185
Received Thanks: 55
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.
Yup Stigs is offline  
Old 05/15/2011, 10:46   #14


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
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?
Korvacs is offline  
Thanks
1 User
Old 05/15/2011, 12:53   #15
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
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
{ Angelius } is offline  
Reply


Similar Threads Similar Threads
pkmode 771 Hilfe
06/06/2010 - Metin2 - 14 Replies
Also habe hier eine kleine Frage. Mein lieber Bruder hat irgendwo gelesen das jemand mir kein dmg macht wen ich agro bin und hat es auf meinen agrofarmer ausprobiert. Leider wird man dafuer gebant und hier die frage - wie mache ich das aus ????? pkmode 771 geht nich fuers ausschalten
/pkmode
03/14/2010 - Metin2 - 7 Replies
was ist /pkmode? hat ein gm auf finalmt2 geschrieben, dass das ban gibt
pkmode 771?
03/02/2010 - Metin2 - 14 Replies
Hi ich wollt nur mal fragen was der code /pkmode 771 nützt ,also ich glaub das ist so:pk=playerkill mode=Modus 771=ID Also heißt das doch ,dass es den PvP-Modus umstellt.Hab gelesen ,dass man als Aggro dadurch nicht mehr von Spielern angegriffen werden kann ,aber das wär ,dann doch PvP-Schutz und das funtzt doch nur unter lvl15!Oder ist der PvP-Schutz immer da ,aber man muss den manuell umstellen?(Über den Command)
Pkmode Verboten?!?!!*HOT*
02/24/2010 - Metin2 - 16 Replies
Huhu Com, ich wurde gerade in Mt2 von einem Bob angeschrieben,das ich einen Bann kriege weil ich pkmode 771 angwendet habe(PvP-Schutz) Nun zu meiner Frage: Kann ich einen Bann kriegen,weil der Typ meinte,dass wäre Bugusing!? Danke im vorraus
PKMode sperren
02/21/2010 - Metin2 Private Server - 3 Replies
Hallo liebe User, auf meinem Server benutzen nun viele den pkmode Befehl, was dazu führt, dass sie andere angreifen können, die Anderen aber nicht den User dieses Befehls. Durch banwords lässt sich der Befehl natürlich nicht verbieten, weiß wer wie man ihn sonst unschädlich macht?



All times are GMT +1. The time now is 21:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.