Ezzz-dev / OTHire

OpenTibia Server for Tibia 7.72
GNU General Public License v3.0
86 stars 76 forks source link

Invisible bug #78

Open tarantonio opened 8 years ago

tarantonio commented 8 years ago

I found a bug.

You become invisible as a GM. Someone stays in the same tile as you. You become visible.

The other user change their outfit to yours like this: 2016-09-14 10_23_30-otclient

In this shot on the left the GM become invisible again and the user is in the same tile as GM In the right shot you can see the bug, Tarantonio is using a GM outfit and the same name as the GM

I'm using OTCLient.

With the normal Tibia client it's worse, if you do the same, you can't do nothing once you reproduce the bug: 2016-09-14 10_30_51-tibia

It changes the oufits and names, but in the user side you are like paralyzed and can't move. The GM can move but it becomes crazy, you move all two characters.

With two tibia clients, it's crazy: 2016-09-14 10_35_23-tibia

The only solution for user is to relogin.

peonso commented 8 years ago

It can be fixed by changing floor also. It was happening to me with characters that had save set to 0 and were forced to spawn in the same tile, once I logged with 2 at the same time, they spawn in the same tile and the one that logged first bugged the same way you described here. It happened to me with a GM and a normal character also, without using the invisible command, and the bugged character was actually the gamemaster, I don't remember how I made it happen though.

tarantonio commented 8 years ago

It's not invisible related I think now.

babymannen commented 8 years ago

In function: void Tile::internalAddThing(uint32_t, Thing* thing)

Change: creatures->insert(creatures->begin(), creature);

to creatures->insert(creatures->end(), creature);

Credits: Ferrus

https://github.com/TwistedScorpio/OTHire/blob/d82dd2bb7bd88f3f5b0cad9f10548b050ba551c6/source/tile.cpp#L1522

diegorodriguesvieira commented 8 years ago

Then I'll try and make a pull request...thanks a lot @babymannen and Ferrus

peonso commented 8 years ago

Too late!!

peonso commented 5 years ago

BUG

https://otland.net/threads/7-72-othire-0-0-3.246964/page-10#post-2529728 https://otland.net/threads/7-72-othire-0-0-3.246964/page-10#post-2529734

diegorodriguesvieira commented 5 years ago

😞

peonso commented 3 years ago

Try this https://github.com/otland/forgottenserver/blob/00b6a4af50b25c351717e451e308539f43a20d33/src/tile.cpp#L1475 and reverting back https://github.com/TwistedScorpio/OTHire/commit/ea43dec790f4b268b18356cf0ad187ca694d04b4