[Release][FULL]CharStatusInfoPacket

09/24/2011 11:14 BaussHacker#16
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. :rolleyes:
09/25/2011 05:26 AliveVVithoutFeeling#17
Prefect! you're been just like always man of exclusive helpful releases :P , keep it but dude =)
09/25/2011 07:11 !DeX!#18
Nice Work POP ..!!! Keeep it Up +k
09/25/2011 18:46 shadowman123#19
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 ?
09/25/2011 18:52 marlyandedsel#20
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 :D
09/26/2011 01:56 shadowman123#21
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 :D
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 ?
09/26/2011 03:11 marlyandedsel#22
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.
09/26/2011 05:48 Mr_PoP#23
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
10/31/2011 13:13 -Sensei-#24
does not work.

Code:
        public ushort CriticalStrike
        {
            get
            {
                return _criticalstrike
            }
            set
            {
                foreach (var Item in Owner.Equipment.Objects)
                { entity.CriticalStrike += Equipment.criticalstrike; }
            }
        }
10/31/2011 17:04 jackpotsvr#25
Im gonna use it, if you don't mind.. xd
10/31/2011 17:23 -Sensei-#26
it doesnt work i said ^^
10/31/2011 18:15 Mr_PoP#27
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.
11/01/2011 13:14 _DreadNought_#28
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.
11/01/2011 16:22 Mr_PoP#29
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!
11/01/2011 23:38 shadowman123#30
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