Register for your free account! | Forgot your password?

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

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

Advertisement



Can someone help me with a AFK timer ?

Discussion on Can someone help me with a AFK timer ? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 03/07/2010, 18:39   #16
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
You don't put it anywhere.. its an example.. lol your going to have to find all your spots where they move and whatnot and do something like it.. i mean anyone who sees that should get a spark to get it done.. come on..

this doesn't go with any server its an example.. put character and client just to make it seem like u can relate.
herekorvac is offline  
Old 03/07/2010, 18:40   #17
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
It's its own class.
Arcо is offline  
Old 03/07/2010, 18:52   #18
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
aha k thanks
Paralyzer[GM] is offline  
Old 03/07/2010, 19:27   #19
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by herekorvac View Post
You don't put it anywhere.. its an example.. lol your going to have to find all your spots where they move and whatnot and do something like it.. i mean anyone who sees that should get a spark to get it done.. come on..

this doesn't go with any server its an example.. put character and client just to make it seem like u can relate.
From the bit I glanced at the code it looks like a very valid example but wouldn't making it a single check and then just reset the date time/timer in those specific sections save alot of work/lines of code?
pro4never is offline  
Old 03/07/2010, 19:54   #20
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by herekorvac View Post
I wrote this just now...This could help you a little bit..I hope you continue from what I wrote otherwise it was just a waste of my time.. I thought since no one really is "helping" you , I guess i would...

Code:
codes...
reply also.. want to know if it helped u ><
I don't want them to be kicked though =\
In real CO they have it so after 5 minutes of the mouse not moving it puts " (Away)" in your name. Then when the mouse moves again it takes it away.
-NewDawn- is offline  
Old 03/08/2010, 00:38   #21
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
Quote:
Originally Posted by -NewDawn- View Post
I don't want them to be kicked though =\
In real CO they have it so after 5 minutes of the mouse not moving it puts " (Away)" in your name. Then when the mouse moves again it takes it away.
Entity.Name = Entity.Name + " [AFK] ";
herekorvac is offline  
Thanks
1 User
Old 03/08/2010, 15:32   #22
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by herekorvac View Post
Entity.Name = Entity.Name + " [AFK] ";
I'm taking that that's the display name?

AFK. Class: BB in 8 hours.
-NewDawn- is offline  
Old 03/08/2010, 19:20   #23
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Quote:
Originally Posted by -NewDawn- View Post
I'm taking that that's the display name?

AFK. Class: BB in 8 hours.
Yes, it would do this:

Character -> Character[AFK] or Character(Away)
walmartboi is offline  
Old 03/09/2010, 00:59   #24
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
Name + AFK = new name..

Quote:
Originally Posted by -NewDawn- View Post
I'm taking that that's the display name?

AFK. Class: BB in 8 hours.
here make new proejct in C# and copy paste this for all then press F5

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Quick Preview of Name Changer"; 
            Console.Write("Please type in a name: "); 
            string name = Console.ReadLine();
            Console.WriteLine(); Console.WriteLine(); string newname = name + "(AFK)"; // just to show + ..
            Console.WriteLine("Your new name is: " + newname); Console.ReadLine();
        }
    }
}
just type in a name it will show u what + away does ><
herekorvac is offline  
Old 03/09/2010, 03:39   #25
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by herekorvac View Post
here make new proejct in C# and copy paste this for all then press F5

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Quick Preview of Name Changer"; 
            Console.Write("Please type in a name: "); 
            string name = Console.ReadLine();
            Console.WriteLine(); Console.WriteLine(); string newname = name + "(AFK)"; // just to show + ..
            Console.WriteLine("Your new name is: " + newname); Console.ReadLine();
        }
    }
}
just type in a name it will show u what + away does ><
Well no, I don't want to change the name because what if they log out? then their name is "blah blah(away)" lol =s

EDIT: What about making a StatEffect?
-NewDawn- is offline  
Old 03/09/2010, 12:21   #26
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
Quote:
Originally Posted by -NewDawn- View Post
Well no, I don't want to change the name because what if they log out? then their name is "blah blah(away)" lol =s

EDIT: What about making a StatEffect?
do something like...

if (LastActionTime > 15)

Entity.Name = Entity.Name + "[AFK]";
LastAction = AFK;
// don't do time for a reason because they are still afk...



then find out where they log out and do something like this

if (LastAction = LastAction.AFK)
{

Name = Name.Remove(Name.Length - 5);
}

or if u dont want to do the lastaction thing do something like this

if (Name.Contains("[AFK]")
{
Name = Name.Remove(Name.Length - 5);
}
herekorvac is offline  
Reply


Similar Threads Similar Threads
Help with gw timer
02/10/2010 - CO2 Private Server - 0 Replies
Hey, i am using a timer on my gw and im trying to figure out how to make it that the timer could restart before it ends. if you can help me then reply here or add me on msn [email protected] thx in advance flamers will be reported
Timer
07/08/2009 - CO2 Private Server - 12 Replies
Would thi sbe how i go about making a timer for my server? In General.cs public static System.Timers.Timer Thetimer; //Regular Save Timer Thetimer = new System.Timers.Timer(); Thetimer.Interval = 5000;//5 seconds Thetimer.Elapsed += new ElapsedEventHandler(Thetimer_Elapsed); Thetimer.Start();
[au3]Timer
08/26/2008 - General Coding - 2 Replies
hallo, habe eine frage zu einem timer, undzwar soll es im endeffekt so aussehen das sich ein label auf einer form im sekundentakt von selbst aktualisiert, quasi wie nen timer ;) leider hab ich kein plan wo ich da ansetzen kann. hier mal ein codeausschnitt: $countdown ist die variable die in dem label aktualisiert werden soll. ..... #Region ### START Koda GUI section ### Form=
Timer
06/04/2008 - Metin2 - 13 Replies
Hey leute kann mir jemand bitte eine datei programmiern, die nachdem start den pc in 90 mins herunterfährt. :) ich bräuchte ihn für den angelbot;), damit ich ihn starten kann, wenn ich in der schule bin, ohne das der pc umsonst so lang an bleibt.:D
Timer
01/14/2005 - General Gaming Discussion - 8 Replies
Hi Leutz Dieser Timer is ne gute hilfe fuer alle Klassen die beim OP fight mit machen. Der Timer zeigt euch welcher Buff gerade ausgeht (10min Resistbuff) und wann Shelter/def ausläuft... für das schöne syncgelame ^^... gf and hf ;) http://home.pages.at/smoker/timer/timer.zip mfg das BluB



All times are GMT +1. The time now is 21:20.


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.