Network.Writer.WriteUInt32((uint)client.Entity.EarthResist, 132, buffersend);
well what i exactly did isnt {get; Set;} i did it like thatQuote:
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
public uint EarthResist { get { return _EarthResist; } set { _EarthResist = value; } } private uint _EarthResist
so likeQuote:
well what i exactly did isnt {get; Set;} i did it like that
So it that Wrong too ?Code:public uint EarthResist { get { return _EarthResist; } set { _EarthResist = value; } } private uint _EarthResist
foreach(var item in hero.Equipment){ hero.WaterResist+= item.waterResist; }
public ushort CriticalStrike { get { return _criticalstrike } set { foreach (var Item in Owner.Equipment.Objects) { entity.CriticalStrike += Equipment.criticalstrike; } } }
Quote:
does not work.
Code:public ushort CriticalStrike { get { return _criticalstrike } set { foreach (var Item in Owner.Equipment.Objects) { entity.CriticalStrike += Equipment.criticalstrike; } } }
yes it wont work lol , the way your doing is wrongQuote:
it doesnt work i said ^^
public ushort CriticalStrike { get { _criticalstrike = 0; foreach (var Item in Owner.Equipment.Objects) { entity._criticalstrike += Equipment.criticalstrike; } return _criticalstrike; } }
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!Quote:
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.
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 HintsQuote:
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!