Register for your free account! | Forgot your password?

You last visited: Today at 15:55

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

Advertisement



[Release] Reflect Code (5165 LOTF)

Discussion on [Release] Reflect Code (5165 LOTF) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
[Release] Reflect Code (5165 LOTF)

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
12tails is offline  
Thanks
20 Users
Old 02/19/2010, 16:17   #2
 
elite*gold: 40
Join Date: Feb 2010
Posts: 78
Received Thanks: 17
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;
ArtOfWar is offline  
Old 02/19/2010, 16:39   #3
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
Thanks 10000x
salem rey is offline  
Thanks
1 User
Old 02/19/2010, 16:39   #4
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
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
12tails is offline  
Thanks
6 Users
Old 02/19/2010, 16:41   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Good job 12tails!
Decker_ is offline  
Old 02/19/2010, 16:49   #6
 
elite*gold: 40
Join Date: Feb 2010
Posts: 78
Received Thanks: 17
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
ArtOfWar is offline  
Old 02/19/2010, 16:53   #7
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Thanks 12tails is not perfectly reflect but is a good for start:> !! good luck :P
QuickCo is offline  
Old 02/19/2010, 17:00   #8
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
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
12tails is offline  
Old 02/19/2010, 17:03   #9
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
yea I see that but is good:> for start I will work on it and I post my progress here
QuickCo is offline  
Old 02/19/2010, 17:15   #10
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
okay... thanks : D
12tails is offline  
Old 02/19/2010, 17:16   #11
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
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
salem rey is offline  
Old 02/20/2010, 04:17   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
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

[GM] is offline  
Old 02/20/2010, 04:38   #13
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by [GM] View Post
y the ballon of the reflect comes on the monster not me? look

Apparently your mobs know that skill lmao.
Arcо is offline  
Thanks
4 Users
Old 02/20/2010, 04:39   #14
 
NukingFuts's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 480
Received Thanks: 112
lol nice job 0.o monsters get ur balloon lolz
NukingFuts is offline  
Old 02/20/2010, 04:46   #15
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
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 ****
[GM] is offline  
Reply


Similar Threads Similar Threads
[Release] Durability remove (5165 LOTF)
07/23/2010 - CO2 PServer Guides & Releases - 13 Replies
Hi hi! maybe isn't a good code... but it works... i tested : D if you wan't to change the chance to reduce ... be free for say if is there something wrong..... : D make a new class at Extra folder and name it Durability.cs... the copy and paste : using System; using System.Collections.Generic;
[Release] Durability Repair (5165 Lotf)
02/19/2010 - CO2 PServer Guides & Releases - 8 Replies
Hi hi! this is the semi-code for repair.... not fully made but works... i'm working on it.... if someone want to help ... would be great.... make a new class at PacketHandling.ItemPacket folder and paste this there: using System; using System.Collections.Generic;
[Help] Reflect on 5165
12/19/2009 - CO2 Private Server - 1 Replies
anyone know how to add reflect? i found reflect on skilladder.cs Reflect = 3060 and i edit the 2nd rb code found in character.cs with this code.. if (Reborns == 2) {
[Request] Reflect, RB Guards, LOTF
04/15/2009 - CO2 Private Server - 15 Replies
Ok, guys I need your help, There is only one guide on RB guards which doesn't work. And 2 Releases on Reflect, which were deleted, any help please.
[Release] Reflect Code
12/04/2008 - CO2 PServer Guides & Releases - 5 Replies
#Deleted Sorry



All times are GMT +1. The time now is 15:57.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.