Skip to content

player does not appear in the battle if he is in the same sqm #421

@ericcobblepot

Description

@ericcobblepot

Priority

Low

Area

  • Data
  • Source
  • Docker
  • Other

What happened?

I have this bug
For some reason, if I go up a stairs(both on floor +1 or -1) and there is a player in the square that I go up, he doesn't appear in the battle This bug only occurs in otc (v8, mehah)

I think it's not the client. because it works on other servers but the classic client does work

video is
nekiro 1.5 8.00 clean (edit map add lader) + mehah 2.8 clean (v8 same)

After 3 days trying to fix it, I come to ask for help xd

I have tried several things, I think the solution is in the checkCreatures() function (module / game_battle)

Secuencia.01_3.mp4
if there is player in the same stack then
checkCreatures()
end --xd something very crude xd

additional lursky user information in otland

"Well, server sends the information:"

1676490263641

"otclient:"
1676490294619

"It's most likely:"

https://github.com/mehah/otclient/blob/main/modules/game_battle/battle.lua#L410

local spectators = modules.game_interface.getMapPanel():getSpectators()

src
std::vector<CreaturePtr> getSpectators(const Position& centerPos, bool multiFloor)

What OS are you seeing the problem on?

Windows

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LowMinor impactStatus: Pending TestThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions