Register for your free account! | Forgot your password?

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

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

Advertisement



[Request/HELP] no pk points in pka

Discussion on [Request/HELP] no pk points in pka within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
[Request/HELP] no pk points in pka

Hi,

Anyone can help me out here for no pk points and no flashing in pk arena?

If someone can guide, then maybe i can make the rest of it like jail, Guild Area, or anywhere else i can specify on the code...

Thanks. thanks. thanks.
editor05 is offline  
Old 06/13/2009, 04:12   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Code:
if (CSocket.Client.Map == Struct.Maps.Arena)
    break;
Zeroxelli is offline  
Thanks
1 User
Old 06/13/2009, 04:27   #3
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
Thanks Zeroxelli...

What .cs should i mess with that?
editor05 is offline  
Old 06/13/2009, 04:31   #4
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Calculations/doMonsterPlayer.cs I believe.
Zeroxelli is offline  
Thanks
1 User
Old 06/13/2009, 15:36   #5
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
Quote:
Originally Posted by Zeroxelli View Post
Calculations/doMonsterPlayer.cs I believe.
Honestly... im lost... don't know how and where to add.. maybe you can start me more then i take the rest of it... maybe a template... Pls?
editor05 is offline  
Old 06/13/2009, 21:38   #6
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
CTRL + F

Search for
Code:
CSocket.Client.PkPoints += 10;
Zeroxelli is offline  
Thanks
3 Users
Old 06/14/2009, 00:12   #7
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
No enclosing loop out of which to break or continue o.0
WHITELIONX is offline  
Old 06/14/2009, 00:40   #8
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Replace 'break;' with 'return;' then, I haven't checked the code in some time now.
Zeroxelli is offline  
Thanks
4 Users
Old 06/14/2009, 01:09   #9
 
mejo33's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 370
Received Thanks: 117
Quote:
Originally Posted by WHITELIONX View Post
No enclosing loop out of which to break or continue o.0
search:
Quote:
CSocket.Client.PkPoints += 10;
add under it:
Quote:
if (CSocket.Client.Map == Struct.Maps.Arena)
return true;
mejo33 is offline  
Thanks
3 Users
Old 06/14/2009, 05:11   #10
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
thanks to you guys.. but i got a problem, once killed in pka, can't revive anymore, or the revive button is gone...

the code below i have.

if(AType != 21)
ConquerPacket.ToLocal(ConquerPacket.Attack(Attacke r.ID, AttackedChar.ID, Attacker.X, Attacker.Y, Damage, AType), Attacker.X, Attacker.Y, (int)Attacker.Map, 0, 0);
ConquerPacket.ToLocal(ConquerPacket.Attack(Attacke r.ID, AttackedChar.ID, AttackedChar.X, AttackedChar.Y, Damage, 14), Attacker.X, Attacker.Y, (int)Attacker.Map, 0, 0);
ConquerPacket.ToLocal(ConquerPacket.Status(ASocket , 2, AttackedChar.GhostModel, Struct.StatusTypes.Model), AttackedChar.X, AttackedChar.Y, (int)AttackedChar.Map, 0, 0);
CSocket.Client.PkPoints += 10;
if (CSocket.Client.Map == Struct.Maps.Arena)
return false;
if(ASocket.Client.Flashing)
ASocket.Client.Flashing = false;

am i missing somethin?

thanks again...
editor05 is offline  
Old 06/14/2009, 05:58   #11
 
elite*gold: 0
Join Date: Jan 2006
Posts: 50
Received Thanks: 69
Forgive me for being so noobish, but C isn't one of my native languages xD

How would you make multiple declarations in the same statement?
So say, I want to remove penalties in PKA, jail, and the Guild area - Is that coded as:
Code:
if (CSocket.Client.Map != Struct.Maps.Arena||CSocket.Client.Map != Struct.Maps.prison||CSocket.Client.Map != Struct.Maps.faction)
CSocket.Client.PkPoints += 10;
else.......
velorian is offline  
Old 06/14/2009, 06:05   #12
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Yeah, you got it right.
Zeroxelli is offline  
Old 06/14/2009, 06:58   #13
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
Code:
if (CSocket.Client.Map != Struct.Maps.Arena||CSocket.Client.Map != Struct.Maps.prison||CSocket.Client.Map != Struct.Maps.faction)
CSocket.Client.PkPoints += 10;
Just a noob question.... I was wondering if there are any other .cs files to messed with except from the doMonsterPlayer.cs

Cause revive button is missing with above code and also no flash too and no pk points but when you log out and log back in... the pk points is posted...

any help... pls... thanks
editor05 is offline  
Old 06/17/2009, 14:20   #14
 
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
anyone help here?
editor05 is offline  
Old 06/18/2009, 22:08   #15
 
elite*gold: 0
Join Date: Mar 2008
Posts: 83
Received Thanks: 10
.
dextercsar is offline  
Reply


Similar Threads Similar Threads
[Request] How Change Mode Stat Points and Skill Points?
05/09/2013 - Shaiya - 49 Replies
How do i change MODE Stat Points and Skill Points per level? Ex.: Ultimate Mode: 7 Stat Points - want to change it to 14 Stat Points 4 Skill Points - want to change it to 8 Skill Points Thanks for your attention.
[Request] NPC that Reallot Points
07/22/2009 - CO2 Private Server - 8 Replies
Can someone post a code with guide for NPC that reallot attribute points.. Please. Thanks.
[Request]Revive points
06/14/2009 - CO2 Private Server - 18 Replies
Hello everyone...does someone have all revive points? If so, can you post them?
[Request] How to add revive points?
11/06/2008 - CO2 Private Server - 4 Replies
Hi everyone, I would like to know how to add/change revive points. If anyone knows how please post it here.



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


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.