[Release] Reflect Code (5165 LOTF)

02/19/2010 16:00 12tails#1
Maybe isn't very right but it works....

at Character.cs more ore less at line 1711 add this:

Code:
public bool CanReflect = false;
Now you have to make a check for the CanReflect become true....

go to LoadCharacter void at database.cs and add this after the load for skills:

Code:
if(Skill.ID == 3060)
C.CanReflect = true;
mine one has become like this... but i use mysql database : D so i can't post it because shoudn't work for some people.... : X

Code:
Game.Skill Skill = new Game.Skill();
                        Skill.ID = Convert.ToUInt16(DR["id"]);
                        Skill.Lvl = Convert.ToByte(DR["level"]);
                        Skill.Exp = Convert.ToUInt32(DR["experience"]);

                        if (!C.Skills.ContainsKey(Skill.ID))
                        {
                            C.Skills.Add(Skill.ID, Skill);
                        }

                      >>  if (Skill.ID == 3060)
                       >> {
                           >> C.CanReflect = true;// by the way you need to use only this last 3 lines!!
                       >> }
Reflect for Mobs:

Reflect for Players:

if u get a problem feel free to post or add me at msn.... : D
02/19/2010 16:17 ArtOfWar#2
Amazing some one coded in reflect :)
Thanks buddy

Can you tell me the exact place i add this code

if(Skill.ID == 3060)
C.CanReflect = true;
02/19/2010 16:39 salem rey#3
Thanks :D 10000x
02/19/2010 16:39 12tails#4
go to LoadCharacter void at Database.cs ... and search for C.Skills.Add(S.ID, S);
after it add if (S.ID == 3060) C.CanReflect = true; than just follow the thread that will work : D
02/19/2010 16:41 Decker_#5
Good job 12tails!
02/19/2010 16:49 ArtOfWar#6
Quote:
Originally Posted by 12tails View Post
go to LoadCharacter void at Database.cs ... and search for C.Skills.Add(S.ID, S);
after it add if (S.ID == 3060) C.CanReflect = true; than just follow the thread that will work : D
Thanks it worked now
02/19/2010 16:53 QuickCo#7
Thanks 12tails is not perfectly reflect but is a good for start:> !! good luck :P
02/19/2010 17:00 12tails#8
i know... but it works... somethings are missing but this will at last send the damage back and the effect...

for example... you don't get reflect activated if you don't save and re-login

... but the reflect is working : D
02/19/2010 17:03 QuickCo#9
yea I see that but is good:> for start :) I will work on it and I post my progress here
02/19/2010 17:15 12tails#10
okay... thanks : D
02/19/2010 17:16 salem rey#11
Quote:
Originally Posted by QuickCo View Post
Thanks 12tails is not perfectly reflect but is a good for start:> !! good luck :P
its fully working nice one 12tails
02/20/2010 04:17 [GM]#12
Quote:
Originally Posted by QuickCo View Post
Thanks 12tails is not perfectly reflect but is a good for start:> !! good luck :P

y the balloon of the reflect comes on the monster not me? look

[Only registered and activated users can see links. Click Here To Register...]
02/20/2010 04:38 Arcо#13
Quote:
Originally Posted by [GM] View Post
y the ballon of the reflect comes on the monster not me? look

[Only registered and activated users can see links. Click Here To Register...]
Apparently your mobs know that skill lmao.
02/20/2010 04:39 NukingFuts#14
lol nice job 0.o monsters get ur balloon lolz
02/20/2010 04:46 [GM]#15
Quote:
Originally Posted by .Arco View Post
Apparently your mobs know that skill lmao.
anyone got this problem too or its just me?
and how can i fix this shit:confused: