Register for your free account! | Forgot your password?

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

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

Advertisement



Individual quest timers help needed

Discussion on Individual quest timers help needed within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2006
Posts: 41
Received Thanks: 2
Individual quest timers help needed

Can someone give me just a basic example of how you would do an individual timer for a quest pls, Say when the person accepts the quest they have 10 minutes to complete or they fail, Using trinity source.

Also is it possible to show a timer on screen say in the bottom corner like when you use a transformation skill counting down the 10minutes?

Thanks
hacksaw is offline  
Old 03/29/2013, 15:01   #2
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
There is Thread checker for that inside Entity.cs ( as i remember ) called Timercallback ..code smthing like

if (Now >= client.JoinedQuestTime.AddMinutes(10)) { // ur cases }
Note : JoinedQuestTime is Time32 Instance and dont forget to set it to Time32.Now when player join
shadowman123 is offline  
Thanks
1 User
Old 03/29/2013, 23:33   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
The most scalable method would be a single thread which handles client timeouts.

The thread code would look a little something like


while(ServerRunning)
{
Foreach(Player p in Players)
Foreach(Timout e in p.TimedEvents)
if(Now > e.ExpiresAt)
p.TimedEvents.Remove(e);
}


Something like that would be scalable (obviously requiring thread safe dictionaries so you can iterate on a copy of the collection while modifying the original copy) and work just fine. Creating a timer for every event for every client quickly starts to eat up memory for not much added benefit IMO.
pro4never is offline  
Thanks
1 User
Old 03/30/2013, 15:49   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 41
Received Thanks: 2
Cool thanks guys, Any ideas on if its possible to show a countdown timer on screen also so they can see how long they have left?
hacksaw is offline  
Old 03/30/2013, 16:26   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You can display specific numbers as an effect for sure but I also seem to remember a countdown packet that I used at one point.


I honestly cannot remember what the packet type was though so maybe someone else can be of more use :S

That being said... none of the countdown effects I've come across will be close to what you want. It would look clunky and bad (huge numbers in the center of the screen ticking down each and every second)

Timed quests + conquer = clunky IMO
pro4never is offline  
Reply


Similar Threads Similar Threads
help with a quest needed
10/30/2012 - Metin2 Private Server - 2 Replies
hello all i have been trying to get this quest to work so that when you have the quest (kill 100 giants) that you will be given a armour that is suited to the class of player (assassin,warrior etc) any help would be appreciated OldFart
Quest Needed for M,G,P Skills
10/28/2012 - Metin2 Private Server - 1 Replies
hello all i have been searching for a quest and cant find one here that will enable players to get there M G P Skills from a NPC As i have seen this on other P Servers thanks for any help OldFart
help with a quest needed
10/20/2012 - Metin2 Private Server - 0 Replies
hello all this time im looking for a quest that will be able to kill 3 mobs then you will be teleported to the next map similair to what the catacombs this time i have no idea where to start thanks OldFart
help needed to complete a quest, please look
10/20/2009 - Conquer Online 2 - 0 Replies
ok heres the question. Does ATTACK increase if i add strength? like i add 50+ attribute points
Quest list needed?
10/15/2009 - C9 - Continent of the Ninth - 8 Replies
Hi fans x), me and a friend maybe want to make an english quest list with all quests. You will be able to see all quests from level 1-50 with screens of the mobs to hunt or the NPCs to run to. First: IF you want to, we won't do it on one day. So, do you want/need it?



All times are GMT +1. The time now is 10: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.