Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 20:10

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

Advertisement



off the top of your head...

Discussion on off the top of your head... within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Real~Death's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 1,272
Received Thanks: 246
off the top of your head...

anyone got the complete array of packets that are sent/recived when leaving the guild war "it is time for your pardon" release?

I know it was psted or discused before.I had A nice documented file on it,but deleted all my CO stuff years ago :/
the packet reader i been using has a hard time filtering out the junk i don't need.It's just taking me longer then it should.
Real~Death is offline  
Old 02/19/2013, 12:00   #2
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
" complete array of packets" ? i don't really understand what you mean by this
but all i know is that at any threat of your's which is executing by timer
ex. at trinity there is 7-9 threads executing with a timer , you can simply do a check at any of them like that
create datetime variable
if datetime now day is gw day
if datetime now min ( >= 0 and <= 5 ) or ( >= 30 and <= 35)
if last chat packet sent to tell players to get out is .min + 1 is less than now
foreach player online
if map = gw jail
send chat packet tellin them to get out
set a datetime variable = date time now

and do almost the same with npc to release them on time

never knew it got some special packets but that's how i handle it and i don't think it takes much cpu to check for 1 or 2 conditions per second
and i don't think there is a better way to handle it , you will always need to raise an event from a timer which will do that check on the timer

wish that was what you want
go for it is offline  
Old 02/20/2013, 15:00   #3
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by go for it View Post
" complete array of packets" ? i don't really understand what you mean by this
but all i know is that at any threat of your's which is executing by timer
ex. at trinity there is 7-9 threads executing with a timer , you can simply do a check at any of them like that
create datetime variable
if datetime now day is gw day
if datetime now min ( >= 0 and <= 5 ) or ( >= 30 and <= 35)
if last chat packet sent to tell players to get out is .min + 1 is less than now
foreach player online
if map = gw jail
send chat packet tellin them to get out
set a datetime variable = date time now

and do almost the same with npc to release them on time

never knew it got some special packets but that's how i handle it and i don't think it takes much cpu to check for 1 or 2 conditions per second
and i don't think there is a better way to handle it , you will always need to raise an event from a timer which will do that check on the timer

wish that was what you want
A thread running with a loop checking time should never take any memory literally. You could probably run 500 threads doing it and it wouldn't really do a lot.

What you should remember is if your loops are running for quite some time then you should always sleep the thread for minimum 1 millisecond.

A loop like this:
Code:
while (true) { }
Will leak memory like there was no tomorrow.
Super Aids is offline  
Thanks
1 User
Old 02/22/2013, 05:32   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
I've generally preferred a single server thread that handles basic actions (run it once a second for reasonable accuracy with very little overhead) which can handle timed events such as triggering server events and such.


Here's some information..

#1: No packets are sent to the client when you can leave jail except for the message that you can leave (broadcast to the jail map every X minutes)
#2: The npc then checks if it's a valid time to leave when you use it. That changes what options it allows.


That being said... I prefer a system where you are just not allowed back in guild war for X minutes after you revive there (so you can still go play in jail or go farm for the 15 minutes). I feel that forcing ppl into gw jail just forces people to go afk and waste their time when there's better options. If that's the route you wanna take then just do a datetime listing when they can go back into GW (init to DateTime.Now when you login to the server) and when they revive in gw map just set it to DateTime.Now.AddMinutes(X)

pretty simple stuff.
pro4never is offline  
Reply


Similar Threads Similar Threads
[B] Fast First LT mit Pumpkin Head und Witches head [S] Acc
11/23/2012 - CrossFire Trading - 1 Replies
Hallo liebe COM, ich denke das Topic regelt kann auch screens per skype schicken wegen den 2 hüten. Hier der Link: Z8Games Skype:getleft4 MfG
SD head
10/09/2010 - Grand Chase - 6 Replies
I know SD is a Big head but what does the S and D stand for? I never understood this :confused:
Looking For HEAD Dev
05/31/2010 - Dekaron Private Server - 3 Replies
Hey all. Ok got a Beta server up on hamatchie right now it gose live in 7 days onto my dedicated server when i can then run it so much better xD I am in need of devs becasue every one i know has no clue on how to dev a server only GM. and i cant do all this alone to much stuff to fix, Got most of the littlebugs worked out xD I am looking for a HEAD DEV
[Pic TuT] BG head(Bogus Head) bug, wearing but not wearing it... :D
05/24/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 8 Replies
ok i saw a video on youtube doing this bug, GC brazil i think.. credits to him/her... here's a picture of my lire not wearing anything: http://i121.photobucket.com/albums/o207/mecero/Gr andChase20090522_174751.jpg here's what u do, choose the character u want to BUG with and choose a BG head you want to use, in my example, i have chosen my lire and the arme BG head. Wear the chosen BG head to the chosen character:...



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


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.