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

TFS 1.x

Itutorial

Board Moderator
Staff member
Board Moderator
Joined
Dec 23, 2014
Messages
2,462
Solutions
68
Reaction score
1,129
How can I set a custom description on a monster with lua?

Someone uses an item on the monster and it sets a new description on the monster.

Appreciate all help, thank you.
 
By changing the source code.
Start by adding a name to each monster (insted of loading it from the MonsterType class) and then adding a function to the Monster class in the Lua interface ex. Monster:setDescription(description).
Remember that you might have to do some changes to ProtocolGame / Game class so the correct description is sent to the client.
 
Back
Top