Need some help with reflect

08/31/2008 11:26 KraHen#1
Well, this is what i did so far :

Added the ReflectOn = false; line where it belongs in the character.cs

Reflect code :
Quote:
if (SkillId == 3060)
{
ReflectOn = true;
}
This is in the Database.cs - note: I`m not sure about the activation rates
Quote:
SkillAttributes[3060] = new ushort[5][];
SkillAttributes[3060][0] = new ushort[6] { 7, 0, 0, 0, 0, 15 };
SkillAttributes[3060][1] = new ushort[6] { 7, 0, 0, 0, 0, 30 };
SkillAttributes[3060][2] = new ushort[6] { 7, 0, 0, 0, 0, 50 };
SkillsDone.Add(3060, 2);
This in other.cs (melee attack part)

Quote:
if (Attacked.ReflectOn)
Damage -= Attacker.CurHP;
What did I do wrong? Or what should be done?

Cheers,
ElDeRnEcRo
08/31/2008 11:59 keving#2
You sure that the ID is 3060 ?
08/31/2008 12:00 _Emme_#3
keving,psssh..

The problem is the code,which is wrong, ( we already tested it,me and eldernecro ).

I'll help him as soon as he get teamviewer -.-

Emme
08/31/2008 12:07 KraHen#4
Thanks^^

Btw anyone knows the Bless SkillID? I couldn`t find it anywhere.
08/31/2008 12:07 YukiXian#5
Quote:
Originally Posted by emildayan1 View Post
keving,psssh..

The problem is the code,which is wrong, ( we already tested it,me and eldernecro ).

I'll help him as soon as he get teamviewer -.-

Emme

Can't wait till someone knows how it works!
08/31/2008 12:24 KraHen#6
I know how it works :P If I`m right we only need to change the last part, and add some extra things.

Anyone the Bless SkillID? xD
08/31/2008 13:20 YukiXian#7
Quote:
Originally Posted by ElDeRnEcRo View Post
I know how it works :P If I`m right we only need to change the last part, and add some extra things.

Anyone the Bless SkillID? xD
U mean Lucky Time?
Who knows that skill?
08/31/2008 13:39 KraHen#8
I meant reflect, but if you think for like... 5minutes? You`ll figure out how things work, like LuckyTime. The harder part is coding it.
08/31/2008 14:32 ~Yuki~#9
Hmm... last part CANT be right...

if (Attacked.ReflectOn)
Damage -= Attacker.CurHP;

maybe..

if (Attacked.ReflectOn)
extra.defense += 100;

Dont know variables now iŽll check^^
08/31/2008 15:43 YukiXian#10
Quote:
Originally Posted by lolmaster123 View Post
Hmm... last part CANT be right...

if (Attacked.ReflectOn)
Damage -= Attacker.CurHP;

maybe..

if (Attacked.ReflectOn)
extra.defense += 100;

Dont know variables now iŽll check^^
No, I don't think that... That will only gives you +100 Defence
Cud be this : ( I don't know it its right... )

Quote:
if (Attacked.ReflectOn)
string Damage = Attacker;
Attacker.Damage -= Attacker.CurHP;
Something like that...
08/31/2008 15:43 _Emme_#11
reflect dosnt add extra defense? lol

at my new server,i will be coding new awesome xp skills,one will work as reflect,but for 60 seconds.. all the damage you get,goes right back to the attacker,only for 60 seconds tho :P
08/31/2008 16:08 MushyPeas#12
Quote:
Originally Posted by ElDeRnEcRo View Post
This in other.cs (melee attack part)
Quote:
if (Attacked.ReflectOn)
Damage -= Attacker.CurHP;
Well I haven't coded in quite some time but wouldn't your code imply reducing the damage done by the attacker's current HP amount?

To me it seems it should be the other way around: Attacker.CurHP -= Damage;

From the way the variables are named anyway.
08/31/2008 17:25 tao4229#13
Quote:
Originally Posted by emildayan1 View Post
reflect dosnt add extra defense? lol

at my new server,i will be coding new awesome xp skills,one will work as reflect,but for 60 seconds.. all the damage you get,goes right back to the attacker,only for 60 seconds tho :P
Better than my idea.. I turned restore into a suicide-bomb. <3(Kills you and surounding players)
08/31/2008 18:10 _Emme_#14
LOL! Maybe you could make a new class with all these fuckt up skills,like suicide,murderer and shit :P

Like,
suicide - kills you and everyone around you. ( xp skill )

Murderer - rightclick the target and it die instantly ( xp skill )

Jew - Steal 5kk from the target you rightclick ( xp skill )

Failure bomb - Removes 500 HP from everyone around you ( stamina skill )

City bomb - Kill everyone at your map ( can only be cast 3 times a day )

World bomb - Kill everyone at the server ( can only be cast once a day )


Haha,im bored so I come up with this shit stuffs =P

Emme
08/31/2008 19:26 ~Yuki~#15
Rofl really nice but i just like the one spell of CoEMU ... Random Teleport^^