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

Adding guild wars icons to older tibia version

Kubakos

Well-Known Member
Joined
Mar 3, 2010
Messages
952
Solutions
2
Reaction score
50
Hello, I would like to add guild wars icons to my 8.0 server (based on tfs 1.2) but I don't know where to start, can you guy give me some tips please?

1582114226357.png
 
Solution
Code:
        int healthPercent = msg->getU8();
        Otc::Direction direction = (Otc::Direction)msg->getU8();
        Outfit outfit = getOutfit(msg);

        Light light;
        light.intensity = msg->getU8();
        light.color = msg->getU8();

        int speed = msg->getU16();
        int skull = msg->getU8();
        int shield = msg->getU8();

        // emblem is sent only when the creature is not known
        int8 emblem = -1;
        int8 creatureType = -1;
        int8 icon = -1;
        bool unpass = true;
        uint8 mark;

        if(g_game.getFeature(Otc::GameCreatureEmblems) && !known)
            emblem = msg->getU8();

        if(g_game.getFeature(Otc::GameThingMarks)) {
            creatureType = msg->getU8()...
Yes, pay for it
You will need edit Client and Source (C++), and will take a time insert that system in your server
 
Any other, serious tips?
that was actually a serious tip, and btw you provided no client information, tibia client (will be harder I guess) or OTC

(ot community is kinda funny sometimes, we like to charge players for premium points but we refuse to pay for a coding service 😁 )
 
My bad, the client that I use is the otcv8 2.0
I can edit the client and source I think, just I don't know where to start. I mean for the client, where I can find sprites for these icons, where to export and where to import.
 
Code:
        int healthPercent = msg->getU8();
        Otc::Direction direction = (Otc::Direction)msg->getU8();
        Outfit outfit = getOutfit(msg);

        Light light;
        light.intensity = msg->getU8();
        light.color = msg->getU8();

        int speed = msg->getU16();
        int skull = msg->getU8();
        int shield = msg->getU8();

        // emblem is sent only when the creature is not known
        int8 emblem = -1;
        int8 creatureType = -1;
        int8 icon = -1;
        bool unpass = true;
        uint8 mark;

        if(g_game.getFeature(Otc::GameCreatureEmblems) && !known)
            emblem = msg->getU8();

        if(g_game.getFeature(Otc::GameThingMarks)) {
            creatureType = msg->getU8();
        }

        if(g_game.getFeature(Otc::GameCreatureIcons)) {
            icon = msg->getU8();
        }

        if(g_game.getFeature(Otc::GameThingMarks)) {
            mark = msg->getU8(); // mark
            msg->getU16(); // helpers

            if(creature) {
                if(mark == 0xff)
                    creature->hideStaticSquare();
                else
                    creature->showStaticSquare(Color::from8bit(mark));
            }
        }

        if(g_game.getClientVersion() >= 854 || g_game.getFeature(Otc::GameCreatureWalkthrough))
            unpass = msg->getU8();

enable it in modules/game_features/features.lua, add correct code to your protocolgame.cpp
GameCreatureWalkthrough is new, will work from version 2.1
 
Solution
Back
Top