• 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 TFS1.4.2 Adding new sprites and looktypes

Michcol94

Member
Joined
Sep 2, 2021
Messages
105
Reaction score
18
How to add new sprites and appearance types? I'm using Object Builder and when I add a new outfit I can't change into it with /looktype 904 and I get "Look type with this id does not exist". The old monster outfit 5 works with the new sprites. The new outfit 904 doesn't work. I am using otclient mehah under engine 10.98 TFS 1.4.2
Does anyone know a solution?
Post automatically merged:

Hehe it took me a really long time, it was enough in data/talkactions/scripts/looktype.lua
change a line of code, edit 903 for 906
Lua:
if lookType >= 0 and lookType < 906 and not table.contains(invalidTypes, lookType) then
Post automatically merged:

Also, if someone would be so kind as to tell me how to set the body sprite after death, I'd be grateful.
 
Last edited:
How to add new sprites and appearance types? I'm using Object Builder and when I add a new outfit I can't change into it with /looktype 904 and I get "Look type with this id does not exist". The old monster outfit 5 works with the new sprites. The new outfit 904 doesn't work. I am using otclient mehah under engine 10.98 TFS 1.4.2
Does anyone know a solution?
Post automatically merged:

Hehe it took me a really long time, it was enough in data/talkactions/scripts/looktype.lua
change a line of code, edit 903 for 906
Lua:
if lookType >= 0 and lookType < 906 and not table.contains(invalidTypes, lookType) then
Post automatically merged:

Also, if someone would be so kind as to tell me how to set the body sprite after death, I'd be grateful.
Simply add a body as an item, set is as container and in monster XML file set corpse to your new item id.
 
Back
Top