What is the correct of this code

05/28/2011 07:45 marlyandedsel#1
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
05/28/2011 07:58 { Angelius }#2
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 .
05/28/2011 11:55 pro4never#3
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.
05/28/2011 15:47 marlyandedsel#4
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.
05/28/2011 16:00 { Angelius }#5
GuildWar.PoleKeeper.PoleKeeper

it dident sound like a class/struct name lol
05/29/2011 04:31 marlyandedsel#6
also how to check if your the only one in the map?