Dura issues

04/15/2021 16:37 denominator#1
In the source that I have the Dura is off, I was told to find another source that was the same patch so I did (6711) Both sources contain

Code:
public ushort Durability
        {
            get { return BitConverter.ToUInt16(Buffer, 12); } 
            set { WriteUInt16(value, 12, Buffer); }
        }
        public ushort MaximDurability
        {
            get { return BitConverter.ToUInt16(Buffer, 14); } 
            set { WriteUInt16(value, 14, Buffer); }
        }
First part is from MsgItemInfo.cs and below is from MsgItemInfoEx.cs

Code:
 public UInt16 Durability
        {
            get { return BitConverter.ToUInt16(mData, 24); } 
            set { Writer.WriteUInt16(value, 24, mData); }
        }
        public UInt16 MaxDurability
        {
            get { return BitConverter.ToUInt16(mData, 26); }  
            set { Writer.WriteUInt16(value, 26, mData); }
        }
Basically items are showing as 37/35
01/14/2022 21:22 asanamorbisto#2
Since dura can cause many damage bug, i try this code to send them jail eveytime they lost dura to Zero 0. but i need help this can cause their character in jail cannot un equipe or move, like client are damage.

else if (I.CurDur == 0 && Equip)
{
BOTJailed = true;
MyClient.MyChar.BOTJailedDays = 3;
MyClient.MyChar.Teleport(6003, 38, 77);
Game.World.SendMsgToAll("SYSTEM", MyClient.MyChar.Name + " was jailed for equiping a broken items that can cause bug damage! ", 2005, 0);
01/18/2022 05:07 Asphy×ia#3
Quote:
Originally Posted by asanamorbisto View Post
Since dura can cause many damage bug, i try this code to send them jail eveytime they lost dura to Zero 0. but i need help this can cause their character in jail cannot un equipe or move, like client are damage.

else if (I.CurDur == 0 && Equip)
{
BOTJailed = true;
MyClient.MyChar.BOTJailedDays = 3;
MyClient.MyChar.Teleport(6003, 38, 77);
Game.World.SendMsgToAll("SYSTEM", MyClient.MyChar.Name + " was jailed for equiping a broken items that can cause bug damage! ", 2005, 0);
Why not just fix durability lmfao
01/18/2022 05:47 Spirited#4
Quote:
Originally Posted by Asphy×ia View Post
Why not just fix durability lmfao
I wasn't going to say anything, but yah. This. Fixing a durability bug by jailing anyone who exploits it is crazy anti-player. Players play games to have fun. Once your game starts punishing players for playing the game, you've failed.
01/18/2022 23:06 pintinho12#5
Quote:
Originally Posted by Spirited View Post
I wasn't going to say anything, but yah. This. Fixing a durability bug by jailing anyone who exploits it is crazy anti-player. Players play games to have fun. Once your game starts punishing players for playing the game, you've failed.
This, also Durability causing Damages bug is pretty stupid
01/19/2022 15:46 Soulfly25#6
Why not just add some stuff in the Damage System when the Durability = 0 then Damage = 1?
01/19/2022 18:53 Spirited#7
Normally in games, having equipment that's zero durability means the stats of that item aren't taken into account when doing attack and defense calculations. That check is obviously not happening here, so why is durability even being factored into that server's current attack calculations? That makes no sense.

Quote:
Originally Posted by Soulfly25 View Post
Why not just add some stuff in the Damage System when the Durability = 0 then Damage = 1?
If that happened to me in a game and I figured out I was doing 1 damage because I equipped an item with zero durability (which isn't even clear), then I'd bring it up as a new bug. I wouldn't imagine the server owner put that in on purpose to punish players. That's daft.
01/19/2022 20:32 Latyos#8
Imagine you are playing a private server, chilling. Completely minding your own business, killing some monsters, getting some good loot and having a good time. You are thinking to yourself, "well, this server isn't too bad, is it?"

Then all of a sudden, you are teleported to jail with a message:

Quote:
Latyos was jailed for equiping a broken items that can cause bug damage!
Not long after, you find out that you are jailed for 3 FUCKING DAYS because you forgot to repair your fucking ring.

Or, you suddenly start hitting for 1 for no apparent reason.

All because owner of the server is not capable of writing a really simple damage update routine that will pretty much run on few occasions (Equip/Unequip items, durability going 0, Stat change to name a few) so he has to send you to jail for 3 days or set your damage to 1.