• Congratulations to the OTLand January Mapping Competition Winner! The grand prize of Otland Premium goes to Andréew.
  • Sign up for February Mapping Competition! The prize includes Otland Premium time.
  • 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)

Delusion

Divine Intellect
Support Team
Joined
Feb 14, 2015
Messages
5,340
Best answers
528
Reaction score
3,083
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) · delusionx/[email protected] (https://github.com/delusionx/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
 

Ochman

Premium User
Premium User
Joined
Feb 27, 2016
Messages
279
Best answers
3
Reaction score
172
Could you please point me out what's the Guild Emblem?
I am out of the loop for the newest tibia distros.
 
OP
Delusion

Delusion

Divine Intellect
Support Team
Joined
Feb 14, 2015
Messages
5,340
Best answers
528
Reaction score
3,083
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.
 

jel

New Member
Joined
Mar 22, 2014
Messages
102
Best answers
0
Reaction score
2
how can i use this?
 
OP
Delusion

Delusion

Divine Intellect
Support Team
Joined
Feb 14, 2015
Messages
5,340
Best answers
528
Reaction score
3,083
how can i use this?
What do you mean? I provided an example on using both functions in Lua in the main post.
 
OP
Delusion

Delusion

Divine Intellect
Support Team
Joined
Feb 14, 2015
Messages
5,340
Best answers
528
Reaction score
3,083
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.
 
OP
Delusion

Delusion

Divine Intellect
Support Team
Joined
Feb 14, 2015
Messages
5,340
Best answers
528
Reaction score
3,083
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!)
 
Top