Exeus
Advanced OT User
- Joined
- Oct 8, 2012
- Messages
- 859
- Reaction score
- 198
Hola
I'd want to add new skull which looks like black skull, but has no behaviour at all
I tried some reverse engineering current cpp code but I have no idea how to connect tibia client's skull id (look) with new skull in TFS
When I assumed that
(quite expectable?)
Now I'm trying to give it totally different id, but probably tibia client will not recognize it?
const.h:399
luascript.cpp:1518
tools.cpp:722
Any tips on how I can get it?
I'd want to add new skull which looks like black skull, but has no behaviour at all
I tried some reverse engineering current cpp code but I have no idea how to connect tibia client's skull id (look) with new skull in TFS
When I assumed that
Skulls_t
has id of skull for tibia client's display and added new SKULL_BLACK_2 = 5,
then it worked as real black skull(quite expectable?)
Now I'm trying to give it totally different id, but probably tibia client will not recognize it?
const.h:399
Code:
enum Skulls_t : uint8_t {
SKULL_NONE = 0,
SKULL_YELLOW = 1,
SKULL_GREEN = 2,
SKULL_WHITE = 3,
SKULL_RED = 4,
SKULL_BLACK = 5,
SKULL_ORANGE = 6,
SKULL_BLACK_2 = 7,
};
luascript.cpp:1518
Code:
registerEnum(SKULL_NONE)
registerEnum(SKULL_YELLOW)
registerEnum(SKULL_GREEN)
registerEnum(SKULL_WHITE)
registerEnum(SKULL_RED)
registerEnum(SKULL_BLACK)
registerEnum(SKULL_BLACK_2)
registerEnum(SKULL_ORANGE)
tools.cpp:722
Code:
SkullNames skullNames[] = {
{"none", SKULL_NONE},
{"yellow", SKULL_YELLOW},
{"green", SKULL_GREEN},
{"white", SKULL_WHITE},
{"red", SKULL_RED},
{"black", SKULL_BLACK},
{"orange", SKULL_ORANGE},
{"black2", SKULL_BLACK_2},
};
Any tips on how I can get it?