|
You last visited: Today at 06:31
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.
04/30/2010, 14:12
|
#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..
|
|
|
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
|
|
|
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...
|
|
|
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.
|
|
|
05/01/2010, 04:33
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by pintser
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.
|
|
|
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. =]
|
|
|
05/01/2010, 11:00
|
#7
|
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
|
wow xd...
btw im using 5165...
|
|
|
05/06/2010, 10:03
|
#8
|
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
|
Quote:
Originally Posted by pintser
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...
|
|
|
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? ^^
|
|
|
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)
if (PlaceFree)
{
World.Action(this, Packets.Movement(EntityID, Direction).Get);
World.Spawn(this, true);
Loc.Walk(Direction);
break;
}
}
}
}
else
{
if (Mesh == 900 && PlayerTarget.BlueName)
PlayerTarget.TakeAttack(this, PlayerTarget.MaxHP, AtkType);
else if (MyMath.ChanceSuccess(15) || Type == MobBehaveour.HuntMobsAndBlue)
PlayerTarget.TakeAttack(this, PrepareAttack(), AtkType);
else
PlayerTarget.TakeAttack(this, 0, AtkType);
}
}
else PlayerTarget = null;
#endregion
|
|
|
05/07/2010, 03:09
|
#11
|
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
|
Quote:
Originally Posted by pintser
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?
|
|
|
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)
|
|
|
05/07/2010, 10:03
|
#13
|
elite*gold: 0
Join Date: May 2010
Posts: 33
Received Thanks: 9
|
Quote:
Originally Posted by pintser
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
|
|
|
05/07/2010, 10:49
|
#14
|
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?
|
|
|
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);
}
|
|
|
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.
|
|