• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Member
Jan
Threads
0
14
0
1
Hello everyone

My Discord is: caanmasu

I bring you my second quest tutorial where you can improve your quest/lua skills (a bit of SQL too) until you become a real expert.

Note: in the link is the first and second tutorial (Spanish and English language)

This tutorial is about an infinity Dungeon.

The dynamic of my tutorials is to make a quest where I show point by point how I would do it, and I explain it in detail.

If you want to skip the tutorial and just use the quest, you are free to do so, I left a folder with the files to install.

I must warn that I only provide code, not models. I use already existing models from the game, specifically, demon tower map, Reaper as boss, dogs as monsters to destroy, etc. You can use the dungeon with the models you want, this way you improve the user experience. The dungeon is customizable, you only have to change numbers.

I must also warn that the dungeon has not been tested with several players, although I did good tests with several of my characters, the best tests are done with real players. In case you find bugs, report them to my Discord.

Another important note, if you don't read the tutorial, there are additional data that you can't miss, they are really mandatory. You must go to the tutorial and at the end you will find a section called 'Additional data:'. Really, you can't miss it.

The content of this tutorial is as follows:

1. Show a button on the NPC
2. Show the NPC button only when we are in the map outside the dungeon.
3. Create the first dungeon jump
4. Create group mode
5. Add some restrictions for entry
6. Create two room mechanics and run them so that they are chosen randomly.
7. Take the character out of the dungeon when player die.
8. Create the ranking log
9. Add dungeon rejoin
10. Display the ranking
11. Add an announcement when someone breaks a floor record.
12. Create spectator mode
13. Increase the difficulty for each floor
14. Add logs
15. Create rewards
16. Create 5 dungeon mechanics
17. Dynamize the base coordinates
18. Add remaining time on each floor
19. Facilitate entry into GMs characters
20. Convert texts to variables

Some gifs:




















Number of lines of code:

translate.lua: 48
questlib.lua: 76
quest_infinity_dungeon.sql: 9
infinity_dungeon.quest: 167
infinity_dungeon_lib.lua: 408
infinity_dungeon_mission_lib.lua: 287
infinity_dungeon_rewards.lua: 26

Total: 1021 lines


If you liked the intention of this post you can help me with a reaction, so you can give more popularity to this post and make it more visited so that more people can access to the knowledge of free quest/lua of the highest quality ever seen.

Una vez un conocido me dijo que no había suficiente documentación de quest para Metin2 y estuve de acuerdo con él. En ese momento sabía un poco sobre quest/lua pero me dije 'el conocimiento debería ser gratuito pero alguien debería brindarlo, no con fines de lucro' y no esperaba que lo fuera a hacer. No quería quedarme solo con lo que sabía, tenía la necesidad de compartirlo para todos.

Sobre mi conocimiento de quest/lua:
Cuando aprendí quest/lua por primera vez, ya tenía experiencia básica en programación en general. Aprendí quest/lua empíricamente viendo quest de otras personas, el código fuente de LUA en C++ sobre funciones y el código fuente binario relacionado con tokens RAW TEXT, en ese orden. Podría decir que he visto y revisado miles de quests escritos por alemanes, españoles, ingleses, rumanos, turcos y otras nacionalidades. También he visto todos los niveles de quests escritos por otros. He creado muchas quests para clientes, de todo tipo de nacionalidades para todo tipo de servidores.
En total he acumulado más de 10 mil horas de programación en quest/lua. He dedicado mucho tiempo de mi vida a esto. Soy una persona que no se queda con lo que sabe, sino que quiere extenderse más, por lo que investigué durante mucho tiempo cómo mejorar la calidad de mi código y al día de hoy lo pongo en práctica y es el pilar más importante de toda mi programación: la calidad del código.
Aprendí muchas estructuras de código en muchas misiones hasta que creé mi propia estructura y también mis propias bibliotecas. Cuando Quest/LUA se limita a lo que necesito, no tengo dificultad en modificar o crear funciones LUA en C++ ya que esto también es parte de Quest.

Hay mucho más sobre esto pero creo que es suficiente en este post.

El día que me vaya, quedará para siempre (o hasta que Metin2 muera por completo) este conocimiento que será útil para mejorar la experiencia de los jugadores en los servidores privados de Metin2. Si son servidores de mierda o no, no me importa.

Si necesitas ayuda puedes contactarme. Mi Discord es 'caanmasu'.

Saludos a todos.

Descargar: [Contenido oculto]
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock