Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:56

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

Advertisement



[Question] Change the PKP for killing an Enemy

Discussion on [Question] Change the PKP for killing an Enemy within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
[Question] Change the PKP for killing an Enemy

Good morning Community

i think the threadname says everything.
I want to change the values of Pk points you get by killing some1 of enemy guild.

that's what i tried by now:


And i'm getting this error:
Code:
Eine implizite Konvertierung vom Typ "NewestCOServer.Features.Guild" in "System.Collections.Generic.Dictionary<uint,string>" ist nicht möglich.
Someone could help me?
2087 is offline  
Old 08/30/2010, 14:38   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
MyGuild = a guild structure... not a player..


if

MyGuild.Enemies.Contains(Attacker.Owner.MyGuild)

or something along those lines would be the more likely solution.
pro4never is offline  
Old 08/30/2010, 16:22   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
tried that already - didnt work
2087 is offline  
Old 08/30/2010, 16:25   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
then you're doing it wrong... you need to run a check on your enemy guilds uid's and the guild uid of the player being killed... My example is simply an example as I don't use lotf and don't know how things are named/setup... but it is the way things need to be done.
pro4never is offline  
Old 08/30/2010, 16:51   #5
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
shouldent it be if (Attacker.Owner.MyGuild.Enemies == MyGuild.Members)
or something
-Shunsui- is offline  
Old 08/30/2010, 17:02   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by -Shunsui- View Post
shouldent it be if (Attacker.Owner.MyGuild.Enemies == MyGuild.Members)
or something
<_<... enemies = list of enemy guilds (unless lotf is super messed up) and members is list of guild members... so no.


Grrr this is bugging me, opening lotf.


Ok: first problem. Lotf doesn't have allies/enemies coded (at least in the old shitty version I have)

For the random crap source I have here, under character.cs there is

Code:
if (!BlueName)
                        {
                            Attacker.BlueNameLasts += 45;
                            if (Attacker.Enemies.Contains(EntityID))
                                Attacker.PKPoints += 5;                           
                            else
                                Attacker.PKPoints += 10;
                        }
what you SHOULD be able to do (if allies/enemies were coded properly) is

Code:
if (!BlueName)
                        {
                            Attacker.BlueNameLasts += 45;
                            if (Attacker.Enemies.Contains(EntityID))
                                Attacker.PKPoints += 5;
                            else if (Attacker.MyGuild.Enemies.ContainsKey(MyGuild.GuildID))
                                Attacker.PKPoints += 3;
                            else
                                Attacker.PKPoints += 10;
                        }

This is using a dictionary to store int/guild structure for enemies where the int key is the guild id.
pro4never is offline  
Thanks
1 User
Old 08/31/2010, 01:20   #7
 
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
thanks pro4never, it worked

& i wondered why it didn't work when i was trying it with
Code:
Attacker.MyGuild.Enemies.Contains(MyGuild.GuildID)
>.<
2087 is offline  
Reply


Similar Threads Similar Threads
[QUESTION]How to change eud *?
10/29/2012 - EO PServer Hosting - 5 Replies
How to change eudemons star in navicat?
[QUESTION]how to change price to change character??
07/08/2010 - EO PServer Hosting - 8 Replies
hi all..can help me?to change price to change character...:handsdown:
Question about killing XTrap Help pls
09/07/2009 - Cabal Online - 1 Replies
Is there any program, aside from cabal rider and things like that, like an external program that kills off xtrap? Kinda like a game guard killer?? I'm wasteing countless hours trying to get around the xtrap, when i just need to destroy it, can someone please help me out, i'm goin crazy.... thanks guys
Question about Gaining Exp from killing Mentor BUG
04/05/2009 - Conquer Online 2 - 8 Replies
I heard that there is a Bug where you kill your Mentor and you gain exp and then your mentor gets back the same exp by mentor reward? I am not sure about this its just that few people have told me that there is a trick to do it. I have already used search and well couldnt find anything to be honest or maybe if there was a thread about it alread, oops. thanks for your time guys.



All times are GMT +1. The time now is 16:58.


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.