Hello. I was playing with my plugin and noticed a bug
if (item.LocationTopLeft.X == OldGrindBotSettings.Instance.IdScrollsCell.X && item.LocationTopLeft.Y == OldGrindBotSettings.Instance.IdScrollsCell.Y)
OldGrindBotSettings.Instance.IdScrollsCell.Y in the settings is set to 5, but item.LocationTopLeft.Y returns 4 and it's still the same item.
Same goes for X
TL;DR:
- OldGrindBotSettings.Instance.IdScrollsCell.X counts from 1 to 12,
- item.LocationTopLeft.X from 0 to 11,
- OldGrindBotSettings.Instance.IdScrollsCell.Y from 1 to 5,
- item.LocationTopLeft.Y from 0 to 4,
Maybe it's indended for average user, IDK. Confused me.
To not create second thread I'll write here. I'm seeing my bots running around Shrines very often. They want to move too close and never reaching the destination causing the Stuck Detection to trigger, wasting the map or dying if there are mobs around. Example of Shrine sent to pushedx via PM. The logs says only
"Now moving towards the Shrine ID"
"Moving towards {X, Y}. [Cansee: false | InDistance: true]
if (item.LocationTopLeft.X == OldGrindBotSettings.Instance.IdScrollsCell.X && item.LocationTopLeft.Y == OldGrindBotSettings.Instance.IdScrollsCell.Y)
OldGrindBotSettings.Instance.IdScrollsCell.Y in the settings is set to 5, but item.LocationTopLeft.Y returns 4 and it's still the same item.
Same goes for X
TL;DR:
- OldGrindBotSettings.Instance.IdScrollsCell.X counts from 1 to 12,
- item.LocationTopLeft.X from 0 to 11,
- OldGrindBotSettings.Instance.IdScrollsCell.Y from 1 to 5,
- item.LocationTopLeft.Y from 0 to 4,
Maybe it's indended for average user, IDK. Confused me.
To not create second thread I'll write here. I'm seeing my bots running around Shrines very often. They want to move too close and never reaching the destination causing the Stuck Detection to trigger, wasting the map or dying if there are mobs around. Example of Shrine sent to pushedx via PM. The logs says only
"Now moving towards the Shrine ID"
"Moving towards {X, Y}. [Cansee: false | InDistance: true]
Last edited: