Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP]How to make char stop move?

Discussion on [HELP]How to make char stop move? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
pwerty's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 55
Received Thanks: 11
[HELP]How to make char stop move?

walk/run/jump .. how to disable client/char to do it? [5165]
pwerty is offline  
Old 10/19/2010, 01:13   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
To make an object stop moving - do work ( ).
_tao4229_ is offline  
Thanks
1 User
Old 10/19/2010, 04:53   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Status effects.

Run through the possible status effects and you will notice that there are a BUNCH that disable client movement. At least on current tq patch there's something like 5-10 that do that.
pro4never is offline  
Old 10/19/2010, 14:51   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by pro4never View Post
Status effects.

Run through the possible status effects and you will notice that there are a BUNCH that disable client movement. At least on current tq patch there's something like 5-10 that do that.
Im pretty sure in the older clients there is hardly anything like that. Then again i havent really gone through and checked it out. But i know they used something like this in the recent patch for the recently released SnowBanshee he uses an attack like freeze or some **** it turns you into a ice cube and you cant move its crazy
hunterman01 is offline  
Old 10/19/2010, 20:45   #5
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
for 5180, I found that the status effect 59 ***** the character but still can see objects moving around him, I use the type 0 to restore the character to normal however this will remove all the status effect (TopWarrior, TopTrojan etc...)
_DreadNought_ is offline  
Old 10/20/2010, 06:05   #6
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Make a bool that equals true... and when it walks, make it check that bool. Then when u don't want it to move... make the bool false and it won't walk. Same with jumping! It's that easy. lol =]
FuriousFang is offline  
Thanks
1 User
Old 10/20/2010, 07:24   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by FuriousFang View Post
Make a bool that equals true... and when it walks, make it check that bool. Then when u don't want it to move... make the bool false and it won't walk. Same with jumping! It's that easy. lol =]
or just use the status effect
Arcо is offline  
Old 10/20/2010, 07:28   #8
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by WTFIDKBBQ View Post
or just use the status effect
Not everyone knows what you're talking about when you say that Arco. Using a bool is a simple fix for people that don't know how to do that. Hint, why i'm suggesting it. =]
FuriousFang is offline  
Thanks
1 User
Old 10/20/2010, 07:52   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by FuriousFang View Post
Not everyone knows what you're talking about when you say that Arco. Using a bool is a simple fix for people that don't know how to do that. Hint, why i'm suggesting it. =]
That also will not stop the client from sending the movement packets. Thus they will still move on their screen and you will then have to send a packet back 'correcting' their position.

A simple status effect combined with checks on movement to see if they are frozen is the best way to handle this.


@Dread: Status effects COMBINE

Eg: 1 is bluename 2 is poison... 3 is therefor bluename AND poison.

Due to this they follow a pattern of growth because you must account for all combination possible.

So lets say for example top tro has a value of 100 (it's not... I'm just using as an example)

When you add your freeze effect (which you are claiming to be 59, not sure on that... doesn't seem to follow the pattern but w/e) you would actually use a value of 159 (top tro PLUS freeze effect)

Personally I use a add/remove system for my effects where I have a character dictionary where... Key = the status effect and Value = the date time added, a bool for if it should be removed and a value for how long it should last.

Then in my character update thread I run through characters and their active status effect values and check time started, duration, should be removed vs current datetime and if so I remove it from the client effect bools and as such update the client at the same time (any time my status effect pool is altered it will update the client, YAY use of accessors (get/set))

It's rather simple to do and lets you do something like...

if(Client.ActiveEffects.ContainsKey(StatusEnums.Fr ozen))
return;

There is no duplication or accidental double removal of effects due to it being a dictionary key value (if you try it will fuck up.. and personally my add/remove effect code checks for it)


<edit>

posted my codes I use for it... not that most ppl will bother

pro4never is offline  
Thanks
1 User
Old 10/20/2010, 08:22   #10
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Quote:
Originally Posted by pro4never View Post
That also will not stop the client from sending the movement packets. Thus they will still move on their screen and you will then have to send a packet back 'correcting' their position.

A simple status effect combined with checks on movement to see if they are frozen is the best way to handle this.

That's a good explanation. I thought by checking before it sends the packet it would be fine though? I guess you're right though. Using both methods would be the best way to do it. Thank you.
FuriousFang is offline  
Thanks
1 User
Old 10/20/2010, 08:54   #11
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
The client will still send the walk packet though... the client does NOT wait for a response in order to move itself. The server simply confirms the movement. If you don't respond the client will continue moving all on its own unless you send back a correct coords packet to teleport them back to their old location which is... not fun.

It's so much easier to simply send a locked status effect so they can't, by legitimate means move their character. You should still place checks server side though as they could easily be using a bot or some other method of attempting movement.

One should NEVER assume the information that the client sends to be valid. it should always be checked and corrections made.
pro4never is offline  
Old 10/20/2010, 13:42   #12
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
You guys really need to learn what a Bit field - Wikipedia, the free encyclopedia is


Don't use dictionaries, etc, you can use simple bitwise logic to do everything you need.

Code:
void setFlag(uint flag) {
    status |= flag;
}
void removeFlag(uint flag) {
    status &= ~flag;
}
bool checkFlag(uint flag) {
    return (status & flag) == flag;
}
_tao4229_ is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Step Up 3D [Make your Move]
10/03/2010 - Movies & Series - 14 Replies
http://images2.fanpop.com/image/photos/13300000/St ep-Up-3D-2010-upcoming-movies-13396732-1280-1024.j pg Es ist endlich soweit seit dem 26.08.10 ist er raus der 1. Tanz Film in Realem 3D Der Film ist eine Produktion von Constantin Film Die Offizielle hompage findet ihr unter Step Up 3D - ab 26. August im Kino Offizieler HQ Trailer: YouTube - Step Up 3D (Trailer in Deutsch)
please how can me make Grotto mobs that move
03/28/2010 - CO2 Private Server - 9 Replies
please how can me make Grotto mobs that move
how can i make the boss stop move?
09/01/2009 - Dekaron - 8 Replies
when i repsawn the boss in space he all time moving to me... i tried make the time delay spawn lower and he still move.. so how can i make him stop move?
how do i make mobs move ?
01/02/2009 - CO2 Private Server - 16 Replies
i have a non loft source (kos source ) and its with inis can someone teach me how to make mobs move and also how to add what they drop but make it so they dont always drop it.
char no move
08/07/2008 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 0 Replies
my problem is that I have installed ig l2walker in a server, but when I enter and so that hunt, only kills during two minutes and soon it falls of the server. there am leido in alguns forums that are because of certain paks to l2walker if somebody could help or give information me. i play in private server



All times are GMT +1. The time now is 12:51.


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.