• 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!

From ground to underground

Serginov

Onkonkoronkonk
Joined
Jun 28, 2008
Messages
1,321
Reaction score
18
Location
Sweden - Dalarna
We all know we cant see from ground floor to underground. All you see is black squares.
Now is there any way to make us see from the ground floor to underground?
 
Maybe make the server send those tiles. but then the clent could be the issue if it doesn't read them
 
[cpp]void ProtocolGame::GetMapDescription(int32_t x, int32_t y, int32_t z,
int32_t width, int32_t height, NetworkMessage_ptr msg)
{
int32_t skip = -1, startz, endz, zstep = 0;
if(z > 7)
{
startz = z - 2;
endz = std::min((int32_t)MAP_MAX_LAYERS - 1, z + 2);
zstep = 1;
}
else
{
startz = 7;
endz = 0;
zstep = -1;
}[/cpp]
not so hard to find
 
Would it just be as easy as this? This would mean you can see all floors from 15 - 0? ;PP
Code:
void ProtocolGame::GetMapDescription(int32_t x, int32_t y, int32_t z,
    int32_t width, int32_t height, NetworkMessage_ptr msg)
{
    int32_t skip = -1, startz, endz, zstep = 0;
    if(z > 7)
    {
        startz = 15;
        endz = 0;
        zstep = 1;
    }
    else
    {
        startz = 15;
        endz = 0;
        zstep = -1;
    }

I havent been doing one single thing in anything else than lua yet and I have changed 1 thing in the source before and compiled once.. I want to learn other languages though, just being very lazy so EXCUSE me if it's totally wrong EUhauehaeuhAeu.
Seriously. I have no clue
 
Back
Top