|
You last visited: Today at 12:32
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.
02/03/2014, 02:31
|
#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
|
|
|
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...
|
|
|
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
|
|
|
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))
|
|
|
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 ?
|
|
|
02/03/2014, 03:05
|
#6
|
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.
|
|
|
02/03/2014, 03:09
|
#7
|
elite*gold: 0
Join Date: Apr 2010
Posts: 16
Received Thanks: 0
|
Quote:
Originally Posted by Spirited Fang
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
|
|
|
02/03/2014, 03:13
|
#8
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
|
Quote:
Originally Posted by elprofessor
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.
|
|
|
02/03/2014, 13:17
|
#9
|
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.
|
|
|
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
|
|
|
02/03/2014, 14:33
|
#11
|
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
|
|
|
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;
|
|
|
02/04/2014, 15:56
|
#13
|
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
|
Quote:
Originally Posted by EgyptianMano
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
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))
|
|
|
|
|
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.
|
|