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

Simple custom skill - Cooking example

kor

PHP ziom
Premium User
Joined
Jul 12, 2008
Messages
252
Solutions
13
Reaction score
410
Location
Bialystok, Poland
GitHub
rookgaard
YouTube
Rookgaard
Hello.

I would like to share my point of view for creating custom skill without touching server engine code. First, here is how it look like in game:

1646141848414.png

and the code:
1. OTClient
Comparing main...feature/cooking · rookgaard/otclient (https://github.com/rookgaard/otclient/compare/main...feature/cooking)
2. Datapack

To increase cooking value you have to call Cooking.add(player, X) in any place of your code.

Enjoy!
 
Last edited:
FYI you can move skills opcode into Lua module in v8 and add new skills there. No need to add some hacky extended opcodes or something.
 
Back
Top