Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Make Guards 1 hit ANY player

Discussion on [Help] Make Guards 1 hit ANY player within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
[Help] Make Guards 1 hit ANY player(FIXED)

How do i make guards 1 hit ANY player...
Ive tried all but are my players to strong ore what xd

97 Crankco 6 2168 250 60000 65000 9000 65000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False

This is my guard...
Whats is the mesh for Normal guard btw xd..
pintser is offline  
Old 04/30/2010, 16:09   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Do it right in the source.

In your mob>player attack code do something like this...


if (Monster.Mesh == 900)
Damage = Attacked.MaxHp;
else
normal damage calculations;

<edit>
normal mesh is 900
pro4never is offline  
Old 05/01/2010, 00:42   #3
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Quote:
if (Monster.Mesh == 900)
Damage = Attacked.MaxHp;
else
normal damage calculations;
isnt it:
if (Mob.Mesh == 900)
Damage = Attacked.MaxHp;
else
normal damage calculations;

xd...

And im not sure where to place, probably character.cs, ore mob.cs...
Could u give me some little (BIG) hints xd...
pintser is offline  
Old 05/01/2010, 04:33   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
My example was very basic. I have no idea what source you are using so the actual variables will be named something different.

I would think you would have a file controling damage calculations (in coemu it's Calculations>Damage.cs)

Then find somewhere that monster->player damage is being handled and do an if statement to handle guards special dmg.
pro4never is offline  
Old 05/01/2010, 04:33   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by pintser View Post
isnt it:
if (Mob.Mesh == 900)
Damage = Attacked.MaxHp;
else
normal damage calculations;

xd...

And im not sure where to place, probably character.cs, ore mob.cs...
Could u give me some little (BIG) hints xd...
He was simply stating an example, and I would GUESS attack.cs. If not that then Mob.cs.
Arcо is offline  
Old 05/01/2010, 10:58   #6
 
elite*gold: 0
Join Date: Mar 2010
Posts: 126
Received Thanks: 14
Lol, it's called "pseudocode". It's just words in replacement of code, not real code. =]
-Spirits- is offline  
Old 05/01/2010, 11:00   #7
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
wow xd...

btw im using 5165...
pintser is offline  
Old 05/06/2010, 10:03   #8
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by pintser View Post
wow xd...

btw im using 5165...
follow this steps..

1. Open Mob.cs and search for this code
Code:
if (MyMath.ChanceSuccess(15) || Type == MobBehaveour.HuntMobsAndBlue)
2. change it with
Code:
else if (MyMath.ChanceSuccess(15) || Type == MobBehaveour.HuntMobsAndBlue)
3. above it add this code
Code:
if (Mesh == 900 && PlayerTarget.BlueName)
                                PlayerTarget.TakeAttack(this, PlayerTarget.MaxHP, AtkType);
thats it... hope it will work...
kamote is offline  
Thanks
1 User
Old 05/06/2010, 12:27   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 33
Received Thanks: 9
why dont you just change the attacktype to 14? ^^
NeoN[PM] is offline  
Old 05/06/2010, 17:57   #10
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
thanks for the try... doesnt work.. it still hits me just 1..

here is what the end of my mob.cs look like..:
(it starts with a little above the code, so u see structure)
pintser is offline  
Old 05/07/2010, 03:09   #11
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by pintser View Post
thanks for the try... doesnt work.. it still hits me just 1..
... hmmm... since like where in the middle of misunderstanding here... would you like to make a guard that would 1 hit a Bluename player or not?
kamote is offline  
Thanks
1 User
Old 05/07/2010, 08:19   #12
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
yes, BleuName player dies in 1 hit...(thats the idea)
but now it just hits players 1(with +12 on etc)
pintser is offline  
Old 05/07/2010, 10:03   #13
 
elite*gold: 0
Join Date: May 2010
Posts: 33
Received Thanks: 9
Quote:
Originally Posted by pintser View Post
yes, BleuName player dies in 1 hit...(thats the idea)
but now it just hits players 1(with +12 on etc)

try this..

Code:
97 Crankco 6 2168 250 60000 65000 9000 65000 0 0 100 70 21 8036 [COLOR="Red"]14[/COLOR] False 18 100000 500000 500 3 False
red marked is atk type 14 = kill
NeoN[PM] is offline  
Thanks
2 Users
Old 05/07/2010, 10:49   #14
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Why don't you just give it 65355 Atk and M-Atk?
Arcо is offline  
Thanks
1 User
Old 05/07/2010, 11:55   #15
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Code:
else
                        {
                            if (Mesh == 900 && PlayerTarget.BlueName)
                                PlayerTarget.CurHP = 0;
                            if (MyMath.ChanceSuccess(15) || Type == MobBehaveour.HuntMobsAndBlue)
                                PlayerTarget.TakeAttack(this, PrepareAttack(), AtkType);
                            else
                                PlayerTarget.TakeAttack(this, 0, AtkType);
                        }
kamote is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[HELP] how to make guards hit monsters
12/09/2009 - CO2 Private Server - 18 Replies
how do i make the Guard1 hit monsters that come nearby? im on 5017 source called COmy v5017 help plz!



All times are GMT +2. The time now is 06:31.


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.