Register for your free account! | Forgot your password?

You last visited: Today at 06:56

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

Advertisement



Question

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

Reply
 
Old   #1
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Question Question

I know it's somewhere in Entites, but where exactly do i add the code that prevents GMs from being attacked by guards? Haven't look at code in months, it all looks like chicken scraths lol.

I'm back btw ^^. TY in advanced.
Exia13 is offline  
Old 01/16/2009, 16:03   #2
 
Hoven's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 456
Received Thanks: 128
search for
if status 8

it should be there(not 100% sure, just guessing i would look in my C# but i dont have a computer working with it :P)
Hoven is offline  
Old 01/16/2009, 19:16   #3
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
search for this
-----------------------
public void GetTarget()
{
-----------------------
and ad this

-----------------------
if (MType == 1)//this is for the guard type
if (Target != null)
if (Target.MyClient.Status >= 7)//the character status
Target = null;
------------------------
yuko is offline  
Old 01/16/2009, 22:14   #4
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Thanks for the advice but for some reason it didnt work lol. Don't worry, i'll figure it out later.
Exia13 is offline  
Old 01/17/2009, 04:10   #5
 
Hoven's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 456
Received Thanks: 128
if (Target.MyClient.Status >= 7) should be
if (Target.MyClient.Status >= 8)

and it will work 7 is pm, 8 is gm
Hoven is offline  
Old 01/18/2009, 13:25   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
hey hoven befor correcting lean some stuff
>=7 // if is = to 7 and higher
>=8 // same as 7 but then higher then 8 aswell and as fare as i know there is no higher status then 8 exept when you make one.
if you onely want to make it so that gms can attack guards and others can't you just do
== wich means exacly like

sorry for bad english
yuko is offline  
Old 06/12/2009, 15:32   #7
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
public void TriggerMove()
{
int Distance = Info.AggroRange;
int CharToAttack = -1;
if(Distance > 14)
Distance = 14;
try
{
Monitor.Enter(Nano.ClientPool);
foreach(KeyValuePair<int, ClientSocket> Clients in Nano.ClientPool)
{
ClientSocket Client = Clients.Value;
if((int)Client.Client.Map == Map)
{
if(Calculation.InRange(Client.Client.X, Client.Client.Y, X, Y, Distance))
{
if(Info.Name == "Guard")
{
if(Client.Client.Flashing)
{
CharToAttack = Client.Client.ID;
break;
}
}
else if(Info.Name == "Patrol")
{
if(Client.Client.PkPoints > 100)
{
CharToAttack = Client.Client.ID;
break;
}
}
else if(Info.Name == "Piglet")
{
//Nothing
}
else
{
CharToAttack = Client.Client.ID;
break;
}
}
}
}
}
catch(Exception e)

That`s what I have so how do I stop Guards from killing me when I revive?
WHITELIONX is offline  
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/12/2009 - Cabal Online - 3 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts Bump.
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



All times are GMT +1. The time now is 06:57.


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.