Register for your free account! | Forgot your password?

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

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

Advertisement



i need help its a hard problem

Discussion on i need help its a hard problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 0
i need help its a hard problem

hey coders

in my server \ rikardo updated , fixed source
problem : trojan can kill a flying archer using scentsword

my goal : cancel that

question : any one have any ideas about how to cancel that ?

regards
elprofessor is offline  
Old 02/03/2014, 02:35   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Add a check when the skill is cast to see if the target has the fly effect

Not so hard...
Aceking is offline  
Thanks
1 User
Old 02/03/2014, 02:49   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 0
can you please explain it more clearly . or just tell me about the place which i will edit .. i have thanked you for your instant respond
elprofessor is offline  
Old 02/03/2014, 02:56   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
When someone casts any kind of physical attack, you need to check that the target isn't flying.

So in your attack processor, you need to add a check to see if the target has the fly effect.

I really can't explain it any further, and if you truly cannot understand that, then I get the feeling nobody will be able to help you.

Example:
Code:
if (!ContainsFlag1(Effect1.Fly))
Aceking is offline  
Thanks
2 Users
Old 02/03/2014, 03:00   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 0
look the Trojan cannot melee attack a flying archer but it can attack a flying archer using scent sword

where to edit that bro where to search and edit where ?
elprofessor is offline  
Old 02/03/2014, 03:05   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
Time for you to check . If you can't add a simple boolean check to your source, then yikes. I will give you a tip though, it's in your attack handler file. Depends on the source you have, which you didn't specify. If you're looking for a specific answer, don't ask a general question.
Spirited is offline  
Old 02/03/2014, 03:09   #7
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 0
Quote:
Originally Posted by Spirited Fang View Post
Time for you to check . If you can't add a simple boolean check to your source, then yikes. I will give you a tip though, it's in your attack handler file. Depends on the source you have, which you didn't specify. If you're looking for a specific answer, don't ask a general question.
cant you give a little help man
elprofessor is offline  
Old 02/03/2014, 03:13   #8
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
Quote:
Originally Posted by elprofessor View Post
cant you give a little help man
No. I'm not going to participate as such a negative influence. I don't mean to be harsh, but nobody can help you without handing you code every time you ask a question. Although we're here to help, what you're trying to take advantage of is not what we're here for. We're here to help and support the talented and not so talented programmers of the Conquer Online development community. If that's sharing code, so be it; however, we're not here to hand you code every time you want to add a conditional statement. A conditional statement is the simplest form of logic in software development - you're expected to understand it from basic algebraic theorems or prior experience in programming. Looking at your small history here, everything you've asked for so far has been adding simple things like a conditional statement or changing a constant. That's just ridiculous. We've given you very helpful advice so far, so please use that to your advantage to learn how to correctly manage your server.
Spirited is offline  
Thanks
2 Users
Old 02/03/2014, 13:17   #9
 
Yupmoh's Avatar
 
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 284
Just add a check to see if its a ground attack or not, also check for the fly status... That's like 2 lines of code.
Yupmoh is offline  
Thanks
1 User
Old 02/03/2014, 14:19   #10
 
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 0
it is rikardo updated fixed source ,,, 5165 ,, i have fixed most bugs but still want to fix the flying archer thing and melee attack for now ,, still testing the source but that's what i need to fix for now ,,, i would be thankful and glad if some body can share me some info
elprofessor is offline  
Old 02/03/2014, 14:33   #11
 
Dr.unreal's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 273
Received Thanks: 85
Okay , let me translate what the people above suggested into your lang .
"We gief you teh codez but the codez no work in your sources . You needs to adjust them to make them work . Use the l33t search functions ! "

Best of luck
Dr.unreal is offline  
Thanks
1 User
Old 02/03/2014, 18:18   #12
 
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
Check your attack handler class , search there for function that checks if can attack, usually it will has the same name "bool CanAttack(" or something like that
when u find it put a check there to c if the target is flying something like
if (Attacked.Fly) return false;
or
if(Attacked.ContainsFlag(the fly flag here)) return false;
EgyptianMano is offline  
Old 02/04/2014, 15:56   #13
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Quote:
Originally Posted by EgyptianMano View Post
Check your attack handler class , search there for function that checks if can attack, usually it will has the same name "bool CanAttack(" or something like that
when u find it put a check there to c if the target is flying something like
if (Attacked.Fly) return false;
or
if(Attacked.ContainsFlag(the fly flag here)) return false;
You just said the same thing as what Aceking said.

Quote:
Originally Posted by Aceking View Post
When someone casts any kind of physical attack, you need to check that the target isn't flying.

So in your attack processor, you need to add a check to see if the target has the fly effect.

I really can't explain it any further, and if you truly cannot understand that, then I get the feeling nobody will be able to help you.

Example:
Code:
if (!ContainsFlag1(Effect1.Fly))
turk55 is offline  
Reply


Similar Threads Similar Threads
Metin2 Login problem HARD PROBLEM!
04/04/2013 - Metin2 Private Server - 0 Replies
Hi im Immortal93 from romania i do not speak deutch , i speak a little english i hope you understand what i will say I downoaded lauling serverfilles from elitepvpers.com and i have a problem with the char... i create a account , i log in , i am making the character and when i log in to the "world" it will not work if the selected region is blue "jinno" if i create jinno account dont works but if i create red or yellow it will work... please help me sorry for my bad english ived changed...
[8 Sloth] Hard Problem..
10/27/2010 - WarRock - 8 Replies
Hi , I have to 8 Sloth .. super Gold Guns (Mp7,M134,Scorpi....) And this is the Problem: I deleted 8 Sloth .... and I cant use my Guns for 8 Sloth... :( ... I tested Sloth Hack , but dont work :(...
problem not hard i need fix it
06/17/2010 - EO PServer Hosting - 4 Replies
hello i have som problem i need all monsters drop eps in inventory 1 monster =20 eps drop in inventory this only and sorry for bad engilsh thx all



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


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