[Help] Make Guards 1 hit ANY player

04/30/2010 14:12 pintser#1
How do i make guards 1 hit ANY player...
Ive tried all but are my players to strong ore what xd:p

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 pro4never#2
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 pintser#3
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 pro4never#4
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 Arcо#5
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.
05/01/2010 10:58 -Spirits-#6
Lol, it's called "pseudocode". It's just words in replacement of code, not real code. =]
05/01/2010 11:00 pintser#7
wow xd...

btw im using 5165...
05/06/2010 10:03 kamote#8
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...
05/06/2010 12:27 NeoN[PM]#9
why dont you just change the attacktype to 14? ^^
05/06/2010 17:57 pintser#10
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)
05/07/2010 03:09 kamote#11
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?
05/07/2010 08:19 pintser#12
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 NeoN[PM]#13
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
05/07/2010 10:49 Arcо#14
Why don't you just give it 65355 Atk and M-Atk?
05/07/2010 11:55 kamote#15
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);
                        }