Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 22:16

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

Advertisement



[5165] stop gw winners claiming the halo&cp winnings all day!

Discussion on [5165] stop gw winners claiming the halo&cp winnings all day! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
ASSN9NE's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 52
Received Thanks: 8
[5165] stop gw winners claiming the halo&cp winnings all day!

for those pesky gw winners claiming the halo&cp winnings all day as many times as they want put a 1 time limit
open Character.cs and hit ctrl+f and look for
Code:
        public byte LotteryUsed = 0;
under that line insert this
Code:
        public byte ClaimGWWinnings = 0;
then open your NPCDialog.cs
for the GW winning NPC make your checker for GW winner look like this
Code:
        if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
        if (GC.MyChar.ClaimGWWinnings == 0)
and your done
ASSN9NE is offline  
Thanks
4 Users
Old 01/29/2010, 17:40   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
can't you do something like this for halos? like give them for as much time as u want even when they relog they will still have it if time hasn't run out.
copz1337 is offline  
Old 01/29/2010, 22:30   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
For that you would need to have them saving to a database using date time information. Very possible but I haven't seen it released here yet.

Basically you would want to have the npc giving out the halo (why is it always npcs? why not hand them out right when the guild wins gw?) write to the database how long they have the halo for and then on login load that date time and see if the current one is before it. if it is, give them the halo and continue along as normal. if not, don't give them the halo and problem solved.

As for top guild/dep though, wouldn't you want it to represent current pole holder? I would think you could do something along the same lines except w/o using a date time, just seeing who has the pole currently when the player logs in. (So when they login server checks if they are in the current winning guild. if so checks if they are guild/dep of it and gives halo accordingly)
pro4never is offline  
Thanks
1 User
Old 01/29/2010, 22:57   #4
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by ASSN9NE View Post
for those pesky gw winners claiming the halo&cp winnings all day as many times as they want put a 1 time limit
open Character.cs and hit ctrl+f and look for
Code:
        public byte LotteryUsed = 0;
under that line insert this
Code:
        public byte ClaimGWWinnings = 0;
then open your NPCDialog.cs
for the GW winning NPC make your checker for GW winner look like this
Code:
        if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
        if (GC.MyChar.ClaimGWWinnings == 0)
and your done
This wount work, i had that you neeed to make it save, Relog and u can still keep claiming it,
-Shunsui- is offline  
Old 01/30/2010, 02:56   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Also you need to make sure once the halo/cp is claimed you do Claimgw whatever its called need to equal 1, or you can use a bool to make it true or false.
Arcо is offline  
Old 01/30/2010, 05:26   #6
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
OR you can do like i did

as soon as they win gw they get the halo BUT if they lose the pole they lose the halo

at the end of the day the winner keeps the halo and gets to claim the price
hunterman01 is offline  
Old 01/30/2010, 08:18   #7
 
gulpi_de_gulat's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
you can claim the halo or reward in other day in this figure, correct me if im wrong
gulpi_de_gulat is offline  
Old 02/06/2010, 15:34   #8
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
thx
|xabi| is offline  
Old 02/08/2010, 16:58   #9
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
We dont have a guildwar but i will use this thanks.
salem rey is offline  
Old 07/12/2010, 22:24   #10
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by -Shunsui- View Post
This wount work, i had that you neeed to make it save, Relog and u can still keep claiming it,
or u can do wat he did and do sum shiz like dis lol...

In database.cs search 3 times(no more) for:

Code:
C.LotteryUsed = BR.ReadByte();
add under:

Code:
C.ClaimGWWinnings = BR.ReadByte();
search for:

Code:
C.UniversityPoints = 0;
add under:

Code:
C.ClaimGWWinnings = 0;
search 2 times for:

Code:
C.Spouse = "None";
add under:

Code:
C.ClaimGWWinnings = 0;
that will probably at least save it and load it...well I tried huh xD?
killersub is offline  
Old 02/25/2011, 20:34   #11
 
urbansstyle's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 64
Received Thanks: 2
why my C# says Error 1 'NewestCOServer.Game.Character' does not contain a definition for 'ClaimGWWinnings' and no extension method 'ClaimGWWinnings' accepting a first argument of type 'NewestCOServer.Game.Character' could be found (are you missing a using directive or an assembly reference?) C:\OldCODB\rikardo updated\PacketHandling\NPCDialog.cs 7002 53 NewestCOServer

and same at lottery used happens, how can i fix this
urbansstyle is offline  
Reply


Similar Threads Similar Threads
Trying to stop my server from crashing..5165
03/05/2010 - CO2 Private Server - 0 Replies
im trying to make my server crash so i can make it not crash how can i make it crash from the outside so it crashes like can i overload my own ports? or what idk im confused
[REQUEST]Halo Forever Until /remove Halo [Name]
12/06/2009 - CO2 Private Server - 11 Replies
Right now, if you get Halo it dissapears when you disconnect, how can I make it stay until I remove it by cmd? Btw I haven't made the cmd yet..
Perfect loto winnings
01/07/2009 - CO2 Exploits, Hacks & Tools - 5 Replies
I decided to post some of my beautiful screeny with loto winings in 2009. U have some timing posted there. Even if isnt mine, i posted something beautiful in i.jpg screenshoted earlier in 2008. If u wanna see the loto times winnings and socketing coord screenshots read my other posts related to these. I posted this here bcs i was happy when I won them, and now I'm not bcs noone need them. Merchant life is so boring. ROFL Have fun CO players.
Claiming DB's
05/11/2007 - Conquer Online 2 - 8 Replies
Here is it: I recently claimed 3 DB's codes which I havent bought, and now friends said that i might get a ban for this ? Is this true ? Cuz I just helped him cause he wasn't lvl 50 yet.



All times are GMT +2. The time now is 22:16.


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.