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

Lua Function [TFS 1.3] creature:getEmblem() | creature:setEmblem(emblem)

Infernum

Senator
Joined
Feb 14, 2015
Messages
5,643
Solutions
559
Reaction score
3,948
Since this won't be merged to master branch and I haven't seen any code that does this since 8.6, I'll just release this here.

Code: creature:getEmblem(), creature:setEmblem(emblem) · infernumx/forgottenserver@209fbd5 (https://github.com/infernumx/forgottenserver/commit/209fbd51191ac2def5c9cdc979527278b24edcf9)

Emblem enums:
Code:
GUILDEMBLEM_NONE
GUILDEMBLEM_ALLY
GUILDEMBLEM_ENEMY
GUILDEMBLEM_NEUTRAL
GUILDEMBLEM_MEMBER
GUILDEMBLEM_OTHER

Usage:
Lua:
creature:setEmblem(GUILDEMBLEM_MEMBER)
print(creature:getEmblem()) -- GUILDEMBLEM_MEMBER, aka 4
 
Last edited:
Could you please point me out what's the Guild Emblem?
I am out of the loop for the newest tibia distros.
 
Could you please point me out what's the Guild Emblem?
I am out of the loop for the newest tibia distros.
Just something cool to use like using a skull on a player to mark them as something special for example.
 
I couldn't tell you what to use it for or where to put it, I'm not a mind reader. I'm simply just giving out code and letting people use it as they wish, it's not intended for a specific purpose or intended to be used inside somewhere specific. For example you could think of this code as a hammer, you're asking me what you're going to do with the hammer after I give it to you, but I wouldn't know, would I? It's up to you to use the hammer, not me.
 
I'd love to know if anybody uses this in their server or has tested it extensively and has no crashes, I'd love to submit a PR to add this back into TFS (last time it existed was 0.4!)
 
Back
Top