Register for your free account! | Forgot your password?

You last visited: Today at 17:08

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

Advertisement



[Release][FULL]CharStatusInfoPacket

Discussion on [Release][FULL]CharStatusInfoPacket within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 09/24/2011, 11:14   #16
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by florin2012 View Post
where add this?
I thought you wasn't a noob. According to my ban I was the noob and not you.
BaussHacker is offline  
Thanks
1 User
Old 09/25/2011, 05:26   #17
 
AliveVVithoutFeeling's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 74
Received Thanks: 46
Prefect! you're been just like always man of exclusive helpful releases :P , keep it but dude =)
AliveVVithoutFeeling is offline  
Thanks
1 User
Old 09/25/2011, 07:11   #18
 
elite*gold: 0
Join Date: Sep 2008
Posts: 348
Received Thanks: 141
Nice Work POP ..!!! Keeep it Up +k
!DeX! is offline  
Old 09/25/2011, 18:46   #19
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
i added some ..but i couldnt add All Auras and detoxation and refinaries what did i do wrong Auras was written like that
Code:
Network.Writer.WriteUInt32((uint)client.Entity.EarthResist, 132, buffersend);
and added in Entity.cs publice uint EarthResist and using get , Sets to get value ...what did i do wrong ?
shadowman123 is offline  
Old 09/25/2011, 18:52   #20
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
you cant just make public uint EarthResist {get; set;} to get value of them lol, you have to get those value from the items that EarthResist exist
marlyandedsel is offline  
Old 09/26/2011, 01:56   #21
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by marlyandedsel View Post
you cant just make public uint EarthResist {get; set;} to get value of them lol, you have to get those value from the items that EarthResist exist
well what i exactly did isnt {get; Set;} i did it like that
Code:
public uint EarthResist
        {
            get
            {
                return _EarthResist;
            }
            set { _EarthResist = value; }
        }
private uint _EarthResist
So it that Wrong too ?
shadowman123 is offline  
Old 09/26/2011, 03:11   #22
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
You have to make code that take the value of earth resist from the Item, and what i see in that code is nothing to do with getting the value earthresist from the item.

You can take sample from getting the attack value of the item.
marlyandedsel is offline  
Old 09/26/2011, 05:48   #23
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by shadowman123 View Post
well what i exactly did isnt {get; Set;} i did it like that
Code:
public uint EarthResist
        {
            get
            {
                return _EarthResist;
            }
            set { _EarthResist = value; }
        }
private uint _EarthResist
So it that Wrong too ?
so like

Code:
foreach(var item in hero.Equipment){
	hero.WaterResist+= item.waterResist;
}
so hero.WaterResist it's the percent you got from each item your wearing , then you send it through the packet that's it
Mr_PoP is offline  
Thanks
1 User
Old 10/31/2011, 13:13   #24
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
does not work.

Code:
        public ushort CriticalStrike
        {
            get
            {
                return _criticalstrike
            }
            set
            {
                foreach (var Item in Owner.Equipment.Objects)
                { entity.CriticalStrike += Equipment.criticalstrike; }
            }
        }
-Sensei- is offline  
Old 10/31/2011, 17:04   #25

 
jackpotsvr's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 328
Received Thanks: 43
Im gonna use it, if you don't mind.. xd
jackpotsvr is offline  
Old 10/31/2011, 17:23   #26
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
it doesnt work i said ^^
-Sensei- is offline  
Old 10/31/2011, 18:15   #27
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by -Sensei- View Post
does not work.

Code:
        public ushort CriticalStrike
        {
            get
            {
                return _criticalstrike
            }
            set
            {
                foreach (var Item in Owner.Equipment.Objects)
                { entity.CriticalStrike += Equipment.criticalstrike; }
            }
        }
Quote:
Originally Posted by -Sensei- View Post
it doesnt work i said ^^
yes it wont work lol , the way your doing is wrong
your setting CriticalStrike while your returning _criticalstrike !

instead of doing get;set just do get so it will be like this

Code:
public ushort CriticalStrike
{
	get
	{
                 _criticalstrike = 0;
		 foreach (var Item in Owner.Equipment.Objects)
                	{ entity._criticalstrike += Equipment.criticalstrike; }
		return _criticalstrike;
	}
}
you will never need to set it your way.
Mr_PoP is offline  
Old 11/01/2011, 13:14   #28
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
The amount of times ive set it to what im returning.

And regards to your code, that isnt very efficient, You only want to set it when its being changes, not resetting it every single time its accessed. no need, 1000 players all getting the criticalstrike info at the same time will cause cpu to 1 or 2 higher then it would be if you wasnt setting it everytime your only asking for what it is.
_DreadNought_ is offline  
Old 11/01/2011, 16:22   #29
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by _DreadNought_ View Post
The amount of times ive set it to what im returning.

And regards to your code, that isnt very efficient, You only want to set it when its being changes, not resetting it every single time its accessed. no need, 1000 players all getting the criticalstrike info at the same time will cause cpu to 1 or 2 higher then it would be if you wasnt setting it everytime your only asking for what it is.
Totally agree! in my source i only set it when i Equip/En-equip item , but -Sensei- i though he wants to set/get it everytime he wants to use it , so i just showed him how , he is free to choose how to use it!
Mr_PoP is offline  
Old 11/01/2011, 23:38   #30
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by Mr_PoP View Post
Totally agree! in my source i only set it when i Equip/En-equip item , but -Sensei- i though he wants to set/get it everytime he wants to use it , so i just showed him how , he is free to choose how to use it!
dude i Tried To make the Equipped item that is Purified with Dragonsoul which incrase Critical Strike been Read And i failed..could u Gimme lil bit of explaination ? or Hints
shadowman123 is offline  
Reply


Similar Threads Similar Threads
[RELEASE]Full Fairys+SQl
05/27/2011 - EO PServer Guides & Releases - 5 Replies
Hey guys i just wanna release White Fairy and pink Fairy any problem can post here.. :D White Fairy IDS: 815240 1082240 1072240 1072241
WTS MYSro 91 Glavier Full STR+73 S/S Full INT+38 Blade Full STR same account
04/24/2011 - Silkroad Online Trading - 6 Replies
And the account have again many items, silks, pet, and reverse scroll I sell because i don't play it anymore, i don't have time... 30$ or 40$, i accept only Paypal. (No trade) If u want can contact me via PM on forum or found me at MSN [email protected] It's 125 screenshot :) I have post for momently the download .rar MEGAUPLOAD - The leading online storage and file delivery service
[RELEASE] FULL WEBSITE *HOT*
12/11/2010 - Metin2 PServer Designs, Websites & Scripts - 61 Replies
Hello,i have released this bechause i don't use it anymore! it's Metin2 Bucuresti official webpage,as you can see in the screen,is the official modified webpage,it looks cool,i think ;p You have Item Shop incorpored... All you have to do is to change the ip from user/config.php No more specifications! SCREENSHOT: http://b.imagehost.org/t/0391/webinfo.jpg



All times are GMT +1. The time now is 17:08.


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