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

OTClient Center Auras and Wings

Lopaskurwa

Active Member
Joined
Oct 6, 2017
Messages
884
Solutions
2
Reaction score
49
Hello, so im facing a problem that some of my outfits are bigger than others and etc, so for some reason my Auras are centered fine because of g_game.enableFeature(GameBigAurasCenter) and since there is no such thing for wings they are not centered so maybe someone has a module that you could adjust the x,y,z for particular outfit like if outfit id 666 and wing id X offset is 2,1,0
 
Auras and wings are free OTCv8 features ( [OTCv8] Auras and wings (https://otland.net/threads/otcv8-auras-and-wings.284325/) ).
There is a code to read position of each wings from Tibia.dat in OTCv8 (called 'bones'), but there is no available editor for .dat, to set position of wings for each outfit+direction.
I don't think it works for auras, but maybe. For sure 'bones' can be applied for 'auras' with some changes in OTCv8.
@oen432 sells .dat editor with that feature for $$$. It let you set wings center position for each outfit and direction (north, east..).
 
Can you use that alternative proposed by Gesior or an open-source solution, which is quite easy to use, which is Attached Effect by mehah in OTC Redemption - you just need to edit this part.
in lua (IS FREE) . no need for a new dat editor ($$)

Lua:
AttachedEffectManager.register(2, 'Bat Wings', 307, ThingCategoryCreature, {
    speed = 5,
    disableWalkAnimation = true,
    dirOffset = {
        [North] = { 0, -10, true },
        [East] = { 5, -5 },
        [South] = { -5, 0 },
        [West] = { -10, -5, true }
    },
    onAttach = function(effect, owner)
        owner:setBounce(0, 10, 1000)
        effect:setBounce(0, 10, 1000)
    end,
    onDetach = function(effect, oldOwner)
        oldOwner:setBounce(0, 0)
    end
})
example:
320967671-782e0fcf-b1cf-451e-b102-d7e7943bd50b.gif


vertical offset
320977373-107cd718-9706-43db-b08e-ced04f7c2626.gif


horizontal offset

320978104-5ac6aa7d-76a5-4bf9-b9ca-05c55f7f97c5.gif



 
Last edited:
Can you use that alternative proposed by Gesior or an open-source solution, which is quite easy to use, which is Attached Effect by mehah in OTC Redemption - you just need to edit this part.
in lua (IS FREE) . no need for a new dat editor ($$)

Lua:
AttachedEffectManager.register(2, 'Bat Wings', 307, ThingCategoryCreature, {
    speed = 5,
    disableWalkAnimation = true,
    dirOffset = {
        [North] = { 0, -10, true },
        [East] = { 5, -5 },
        [South] = { -5, 0 },
        [West] = { -10, -5, true }
    },
    onAttach = function(effect, owner)
        owner:setBounce(0, 10, 1000)
        effect:setBounce(0, 10, 1000)
    end,
    onDetach = function(effect, oldOwner)
        oldOwner:setBounce(0, 0)
    end
})
example:
320967671-782e0fcf-b1cf-451e-b102-d7e7943bd50b.gif


vertical offset
320977373-107cd718-9706-43db-b08e-ced04f7c2626.gif


horizontal offset

320978104-5ac6aa7d-76a5-4bf9-b9ca-05c55f7f97c5.gif
where do i add this code? And i just need to adjust some of the wings to the west by one square < for some of the outfits and thats it
 
Back
Top