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 05:07

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

Advertisement



[Very Small/Simple Release] Power Booster

Discussion on [Very Small/Simple Release] Power Booster within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
[Very Small/Simple Release] Power Booster

This is for NewestCOServer (****** yes I know. I am still learning my way up though.)

I would like to thank Arco for giving me this idea. He gave me this idea about a year ago, although I wouldn't have been able to code it then; as for now, I can/did.

So basically what this item does is levels you up to 137 for 3 minutes, then you turn back to your previous level.

Code:
 #region Power Booster
                    [I]case #:[/I]
                        {
                            byte iLevel = Level;

                            Level = 137;
                            byte countDown = 180;
                            while (countDown >= 1)
                            {
                                Thread.Sleep(1000);
                                countDown--;
                            }

                            Level = iLevel;

                            RemoveItem(I);
                            break;
                        }
                    #endregion
As you can see I didn't put a case number. The reason so is because I was to lazy to make a custom item for it. So just go to your itemtype and use one of them item ID's.
zTek is offline  
Old 06/30/2011, 10:23   #2
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
I feel like that is going to freeze up that thread for 3 minutes.
Santa is offline  
Old 06/30/2011, 10:26   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Yeah thats going to cause major issues on whichever thread its called on, i suspect packet handling, which will probably disconnect the client.
Korvacs is offline  
Old 07/01/2011, 12:41   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
I know I responded to this a few days ago privately, but I guess I should respect the community and share my opinion (for people that actually might want to implement this).
Spirited is offline  
Old 07/01/2011, 12:44   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Something like a timer would be ideal for something like this... but yah if they disconnect during that you will be saving their level as 137...

use item

/dc

Boom, 137.
pro4never is offline  
Thanks
1 User
Old 07/01/2011, 13:14   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by pro4never View Post
Something like a timer would be ideal for something like this... but yah if they disconnect during that you will be saving their level as 137...

use item

/dc

Boom, 137.
Timer from the System.Threading class?
I should use it more often... it sounds like a good idea.
It wouldn't put the thread to sleep. It would be like a timed action right?
Spirited is offline  
Old 07/01/2011, 14:16   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Yah timers run separate from the thread they are called on.

You can easily write a few layers ontop of the threading class to keep track of delayed actions (modify the delay, end action or null it out if it's no longer needed) to make it more useful but even without, it would work just fine for something simple like this.
pro4never is offline  
Thanks
1 User
Old 07/01/2011, 14:42   #8


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Timers use .Nets Threadpool class to register and perform their tasks
Korvacs is offline  
Thanks
1 User
Old 07/01/2011, 22:10   #9
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
if you manage a event pool to the character it would be easier than that... and wont take more than 2 lines...
12tails is offline  
Old 07/01/2011, 22:15   #10
 
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
Quote:
Originally Posted by Korvacs View Post
Timers use .Nets Threadpool class to register and perform their tasks
Hey, I was wondering if you can PM me your MSN. I was needing to talk to you about some things.
zTek is offline  
Old 07/01/2011, 22:17   #11
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by 12tails View Post
if you manage a event pool to the character it would be easier than that... and wont take more than 2 lines...
Jack and Chris are right: a timer would work perfectly in this case. Event pools aren't good ideas... or.. I don't think they are at least. That would be an extra worker for each client.
Spirited is offline  
Old 07/02/2011, 06:49   #12
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by Y u k i View Post
Just because a eventsystem is more work, it doesnt mean its worse. Im quite sure a eventpool would be better. Threads use much ram and "split" the CPU.
No, I mean the system would use more worker threads- and in the long run, that's bad. It's like loading maps with threads for each map. It'll slow down the process because there are too many threads. I would just stick with a timer. Then it's just one thread working when it needs to.

PS: I guess I can see how it could work. It's basically the same thing, as long as you don't overuse it and keep it assigned doing things. In the long run, it would be faster- as long as you manage things properly with the thread.
Spirited is offline  
Old 07/02/2011, 08:44   #13
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
lol? why?

xD

level = 138;
and finish all .-. :P
thesamuraivega is offline  
Old 07/02/2011, 14:03   #14
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by Y u k i View Post
The ****? Why would you use a eventpool to load DMAPs and also, A Thread for each event? What? Non Blocking threadpool with lets say 5 Threads is enough for 100īs of players
o.o That's the point I was trying to make. Why the hell would you do something like that? lol- I see part of your point now though. You wouldn't have the threads actively executing things.
Spirited is offline  
Reply


Similar Threads Similar Threads
[Release] Special Force FPS Booster.
02/22/2013 - Soldier Front Hacks, Bots, Cheats & Exploits - 21 Replies
Connection Booster is another application which speeds up your internet connection. It prevents automatic disconnection and keeps your connection secure. First it detects your operating system and indicates the best settings for your system. After that Connection Booster adjusts MTU (Maximum Transmission Unit) & MSS (Maximum Segment Size). Features: - Automatically detect the MTU for all networks along the path to a remote host (MTU discovery procedure). - Detecting bad routers ( Black hole...
[RELEASE] XP Booster and PK Dropper Items
01/16/2011 - EO PServer Guides & Releases - 11 Replies
XP_BOOSTER: INSERT INTO `cq_action` VALUES ('100000010', '100000011', '0000', '0502', '1021082', '0'); INSERT INTO `cq_action` VALUES ('100000011', '0000', '0000', '1001', '0', 'xp += 100'); INSERT INTO `cq_itemtype` VALUES ('1021082', 'XP_Booster', '0', '0', '0', '0', '0', '0', '0', '0', '28', '0', '30000000', '100000010', '0', '0', '0', '0', '0', '0', '0', '1', '300', '0', '0', '0', '0', '0', '0', '0', '0', '00', '00', '00', '0000', '0000', '0', '0', '20000', '0', '0', '0', '0', '0',...
[Release] Game Booster
06/20/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 2 Replies
Why use Game Booster? plus you can use this program to completely boost your game play in other online games such as Grand Chase , Rakion , Cabal , etc etc ;) Key Benefits
Simple autologin with a small menu
04/13/2009 - SRO PServer Guides & Releases - 3 Replies
EDIT: noone seems to be intrested in this, so ill just use it for myself. CLOSE and sry



All times are GMT +2. The time now is 05:07.


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.