|
You last visited: Today at 21:01
Advertisement
About PkMode
Discussion on About PkMode within the CO2 Private Server forum part of the Conquer Online 2 category.
05/14/2011, 19:57
|
#1
|
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;
|
|
|
|
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.
|
|
|
05/14/2011, 20:29
|
#3
|
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.....
|
|
|
05/14/2011, 20:41
|
#4
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
Quote:
Originally Posted by marlyandedsel
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
|
#5
|
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....
|
|
|
05/14/2011, 21:00
|
#6
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
|
possibly need to nullify the attackpacket?
|
|
|
05/14/2011, 21:32
|
#7
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
Quote:
Originally Posted by marlyandedsel
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
|
#8
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
Quote:
Originally Posted by { Angelius }
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
|
#9
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
Quote:
Originally Posted by Spirited
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
|
#10
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
Quote:
Originally Posted by Yup Stigs
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.
|
|
|
05/15/2011, 01:58
|
#11
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by Spirited
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
|
#12
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
Quote:
Originally Posted by Korvacs
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
|
#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.
|
|
|
05/15/2011, 10:46
|
#14
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by Spirited
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
|
#15
|
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
|
|
|
 |
|
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.
|
|