• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

TFS 1.X+ problem in walls tfs 1.5 nekiro 7.72

OP
OP
bpm91

bpm91

Well-Known Member
Joined
May 23, 2019
Messages
657
Solutions
7
Reaction score
77
Location
Brazil
the problem comes down to the player's position with the wall. depending on the position you can't take the items off the wall or light a lamp.
Post automatically merged:

one person told me it could be an isSightClear function, which would be something diagonal. Does anyone here know about this function?
 
Last edited:

Diarreamental

Banned User
Joined
Jul 6, 2015
Messages
450
Solutions
1
Reaction score
80
the problem comes down to the player's position with the wall. depending on the position you can't take the items off the wall or light a lamp.
Post automatically merged:

one person told me it could be an isSightClear function, which would be something diagonal. Does anyone here know about this function?
i think the same gonna do a research the only codes related to sight is in map.cpp
 
OP
OP
bpm91

bpm91

Well-Known Member
Joined
May 23, 2019
Messages
657
Solutions
7
Reaction score
77
Location
Brazil
creature.cpp
Linha 185: if (g_game.isSightClear(getPosition(), attackedCreature->getPosition(), true)) {
Linha 1604: if (fpp.clearSight && !g_game.isSightClear(testPos, targetPos, true)) {

game.cpp
Linha 3758: bool Game::isSightClear(const Position& fromPos, const Position& toPos, bool sameFloor /= false/) const
Linha 3760: return map.isSightClear(fromPos, toPos, sameFloor);
game.h
Linha 458: bool isSightClear(const Position& fromPos, const Position& toPos, bool sameFloor = false) const;

luascript.cpp
Linha 2124: registerMethod("Position", "isSightClear", LuaScriptInterface::luaPositionIsSightClear);
Linha 2124: registerMethod("Position", "isSightClear", LuaScriptInterface::luaPositionIsSightClear);
Linha 4903: int LuaScriptInterface::luaPositionIsSightClear(lua_State* L)
Linha 4905: // position:isSightClear(positionEx[, sameFloor = true])
Linha 4909: pushBoolean(L, g_game.isSightClear(position, positionEx, sameFloor));
luascrip.h
Linha 600: static int luaPositionIsSightClear(lua_State* L);
 
Last edited:

Diarreamental

Banned User
Joined
Jul 6, 2015
Messages
450
Solutions
1
Reaction score
80
upup this is not in the main tfs repository does anybody knows is the bug was in there too and where could be the commit to fix it? pleasee
 

Diarreamental

Banned User
Joined
Jul 6, 2015
Messages
450
Solutions
1
Reaction score
80
could it be related to your otc? i did not have this issue
no it's not i have tested with normal client + ipchanger and im using nekiro's 8.0 downgrade @bpm91 is using 7.72 i think , so the bug must be in the whole branches
@bolibompa @jestem pro
 
OP
OP
bpm91

bpm91

Well-Known Member
Joined
May 23, 2019
Messages
657
Solutions
7
Reaction score
77
Location
Brazil
good I managed to find out the reason for the bug, but I didn't find out how to solve it.
It turns out that version 7.72 of Nekiro is a very difficult version to find compatible programs.
it happens that when I save it in the object builder I save it as 7.6 because the map editor and the item editor only exist in that version. version 7.72 doesn't exist at all, just for Nekiro. so for that reason the walls bugam.
If anyone knows how to fix this. I would appreciate it. pay for the service if necessary.
 
Last edited:
OP
OP
bpm91

bpm91

Well-Known Member
Joined
May 23, 2019
Messages
657
Solutions
7
Reaction score
77
Location
Brazil
no, I believe it has to do with the source, because nekiro's new source doesn't have the hangables like the old sourcers. so I think this should influence, because the old editor item is different from the new one. I think the problem is there, but I don't know if anyone knows how to solve it
Post automatically merged:

I really wanted to know how to fix this, I've tried everything, I've changed the otb items, but it doesn't work, my xml and otb items were original from nekiro 7.72 and my sprites were taken from the original tibia on the tibiabr website. so I believe that the source would be the place to fix it
 
Last edited:
Top