Register for your free account! | Forgot your password?

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

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

Advertisement



What is the correct of this code

Discussion on What is the correct of this code 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
What is the correct of this code

Im checking the for the guild whos holding the pole

if (client.Guild.PoleKeeper == GuildWar.PoleKeeper.PoleKeeper)


Edit: close this one I solved it my self
marlyandedsel is offline  
Old 05/28/2011, 07:58   #2
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
why dont you use the unique key that you have which is the player UID .

it could be something like
GuildWar.PoleKeeper.PoleKeeper = Client.UID ;

and on check

if (Client.UID == GuildWar.PoleKeeper.PoleKeeper)
do something .

good luck .
{ Angelius } is offline  
Old 05/28/2011, 11:55   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
What type of value is PoleKeeper?

The entire GUILD owns the pole not just one client...and seeing as it's part of the guild class (according to your example) it's not a guild... is it a bool or something?


For my system I'm having the guildwar class hold a guild structure which is the 'current pole owner' which by default is null...

Then in the sob attack checks or w/e I simply do...


if(GuildWar.WinningGuild != null && GuildWar.WinningGuild == user.Guild)
Do action check is needed for.


Handling who is winning is not a complex thing to do but I've seen it done so very many ways in different servers.
pro4never is offline  
Old 05/28/2011, 15:47   #4
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Here is mine.

here is mine....


if (client.Guild != null) <-- check if the client have guild
if (client.Guild.PoleKeeper) <--check if the guild of this client hold the pole
if (client.Entity.GuildRank == 1000)<-- check if guild leader
if (client.Entity.topguildleader != 1) <--check if he already claim or not.
marlyandedsel is offline  
Old 05/28/2011, 16:00   #5
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
GuildWar.PoleKeeper.PoleKeeper

it dident sound like a class/struct name lol
{ Angelius } is offline  
Old 05/29/2011, 04:31   #6
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
also how to check if your the only one in the map?
marlyandedsel is offline  
Reply


Similar Threads Similar Threads
Correct way to do a speedhack.
06/27/2010 - CO2 Programming - 7 Replies
Heya, I was wondering what changed recently? Because in the earlier patches, this could be done the following way; if (Client.AutoBot != null) { data.TimeStamp = client.LastJump + 900; } Done from TQServer->Proxy and TQClient->Proxy
[ADVISE]Is this a correct start for NPC code?
12/05/2009 - CO2 Private Server - 4 Replies
The point of the NPC: If you have 40 Bronze Prizes, it takes them away, and then gives you Silver Prize. Is this a good start? I know it may not be and yes I know some stuffs missing, but can anyone finish it or tell me what do to next? I'm so tired 2 am I will check tomorrow sorry if this didn't make sense. #region case 300009: { if (Control == 0) ...
Porting from the North Dock to Roc Mountain. I TYPED THE CORRECT CODE!
03/09/2009 - Silkroad Online - 1 Replies
Hey guys, This is the code i pasted in the script. It´s only the "portpart": "-2625","379","1" "cmd","","" "Inject","745A","6802000 0" "Inject","7495","6802000 00216000000"
autoit code für correct facing
02/20/2009 - World of Warcraft - 3 Replies
ich suche ein autoit source code beispiel für "ausrichtung des spielers zum gegner (drehen)" danke
Pa Correct nmn toh~
08/18/2008 - RF Online - 9 Replies
Sir..pa correct nmn sa makakabasa n2.. ung sinasabi po ng iba na sa Search lng mahahanap ung mga hacks na gusto ko... san ako mag Search d2 sa forums na toh oh sa iba?? pa correct ^^



All times are GMT +2. The time now is 23:52.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.