Register for your free account! | Forgot your password?

You last visited: Today at 16:03

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

Advertisement



Wall pass Protection

Discussion on Wall pass Protection within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Wall pass Protection

I have code like this:
PHP Code:
 suse.X;
                                            
suse.Y;
                                            
attack.X;
                                            
attack.Y;
                                            for (
int xs 0xs attack.Xxs++)
                                            {
                                                for (
int ys 0ys attack.Yys++)
                                                {
                                                    if (
attacker.Owner.Map.Floor[xsys,MapObjectType.InvalidCast,null])
                                                        break;
                                                }
                                            } 
that thing wont work, I have used it for Dragon Whirl, but still they can pass it in the wall(eg. Guild War Wall) you guys hope good idea how to make it work? thanks ....
marlyandedsel is offline  
Old 08/08/2012, 06:00   #2
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
You're setting the attack.X & Y to the X and Y first, then looping but not changing it.
In the loop set the attack.X & Y to the xs and ys, only if its valid.
Code:
                                            for (int xs = attack.X; xs < X; xs++) 
                                            { 
                                                for (int ys = attack.Y; ys < Y; ys++) 
                                                { 
                                                    if (attacker.Owner.Map.Floor[xs, ys,MapObjectType.InvalidCast,null]) 
                                                        break; 
                                                    else {
                                                        attack.X = xs;
                                                        attack.Y = ys;
                                                    }
                                                } 
                                            }
Something like that, ish.
.Kinshi is offline  
Thanks
1 User
Old 08/09/2012, 15:18   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
@ Kin: What you do there is just get the farthest good coordinates in a radius calculated with the given X and Y.... which is far from right. You should use DDA Line algorithm or Bresenham's algorithm to compute the line where your character should move then get some coordinates that are valid.
-impulse- is offline  
Thanks
1 User
Old 08/09/2012, 16:41   #4
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by -impulse- View Post
@ Kin: What you do there is just get the farthest good coordinates in a radius calculated with the given X and Y.... which is far from right. You should use DDA Line algorithm or Bresenham's algorithm to compute the line where your character should move then get some coordinates that are valid.
Well, yeah.
I just modified what he had to make a bit more sense.
.Kinshi is offline  
Old 08/09/2012, 23:09   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
From a geometry standpoint, this is a fairly simple problem.

#1: Create a line (drop in start x/y, end x/y to produce the line formula)
#2: Run a for loop for the distance traveled iterating along the line
#3: Check each coord generated versus dmap

As soon as an coord iteration hits an invalid coord then you can break the loop and this is the maximum distance you can travel along that direction. Use the coords of previous iteration as your stop location as you've run into something here.
pro4never is offline  
Thanks
1 User
Old 08/11/2012, 13:01   #6
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Quote:
Originally Posted by -impulse- View Post
@ Kin: What you do there is just get the farthest good coordinates in a radius calculated with the given X and Y.... which is far from right. You should use DDA Line algorithm or Bresenham's algorithm to compute the line where your character should move then get some coordinates that are valid.

Thank You Very Much Impulse as always.

@pro4never: Thank You Pro you given me a very good hint.
marlyandedsel is offline  
Old 08/19/2012, 05:49   #7
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
What I have did is like this:

PHP Code:
 aInLineAlgorithm algo = new aInLineAlgorithm(attacker.Xattacker.Yattack.Xattack.Y4aInLineAlgorithm.Algorithm.DDA);
                                            foreach (var 
coord in algo.getCoords)
                                            {
                                                
Console.WriteLine("Coord X and Y: " coord.X.ToString() + " , " coord.Y.ToString());
                                                if (
attacker.Owner.Map.Floor[coord.Xcoord.YMapObjectType.InvalidCastnull])
                                                    break;
                                            } 
I have manage to display the coordinate that will pass thru but idk why still can pass thru it.... is there something to add ? because the checking is not working. Thank You Impulse giving me hint.

Regards
Edsel.
marlyandedsel is offline  
Reply


Similar Threads Similar Threads
[]Release New Wall Hack By Pass Metod
11/08/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 4 Replies
This Is So Very Easy Try This WallHack For Those Who are Expiriencing DC... So Lets Start.... 1. Download All Files Below 2. Open PerX Injector Change Gunz.exe to specialforce.exe then Browse First the Hyperpeer.dll then Second Is the SmartzWhV3.dll 3. Open Specialforce log in Then Play
[]New Release Wall Hack By pass
10/27/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 12 Replies
TUTORIAL 1.FIRST DOWNLOAD THIS LINK.. 2.DOWNLOAD ON THE DESKTOP... 3.CLICK THE INJECTOR AND BROWSE AND CLICK THE ONE FILE... YOUR THAN ENJOY WALLING.....and minimize it and open sf or cf what playing this to gaming play!! LINK: New VersionUSPSFPremium .dll.rar download - Plunder
Can You pass a WALL hACk n hnd detect?
09/06/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 2 Replies
kc ung mga iba dyan may nag papasa ng wall hack na detect nkakainiz ee!:rtfm::mad:wahhhhhhhhhhhhhhhh! BAD3p
[REQUEST] engine /w pk-pass protection
11/18/2007 - Kal Online - 13 Replies
Hi, hat einer von euch zufaellig gerade eine engine die mit pme oder einem anderen tool bearbeitet wurde, welches das pk-passwort "schuetzt"? Wenn ja, koennte er diese dann bitte hochladen, danke. //redox



All times are GMT +1. The time now is 16:05.


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.