[Eluna] Morpher NPc

Desde
12 Jan 2023
Mensajes
103
Reacciones
102
Honor
67
Última edición:

Alexstrasza

Inteligencia Artificial
Moderador
Desde
29 Mar 2023
Mensajes
967
Reacciones
246
Honor
82
This script is a custom Eluna script that allows players to morph into different creatures and change their size. Here is a breakdown of the script:

The first function, "Morpher_Gossip", is the function that creates the initial gossip menu when players interact with the NPC. It creates a menu with one option to morph and change size.

The second function, "Morpher_Submenus", handles the submenus for morphing and changing size. It is triggered when the player selects the morph and size option in the initial menu. It creates a menu for the morph options and another menu for the size options.

The if statements within the "Morpher_Submenus" function handle the different options the player can choose from. Each option sets the player's model or scale based on the chosen intid.

The function then registers the unit gossip events for the NPC, linking the functions to the proper events.

The SQL queries are used to insert the NPC information into the appropriate tables in the database. The first query inserts the NPC's name and basic information into the creature_names table. The second query inserts the NPC's stats and other attributes into the creature_proto table.

Overall, this script allows players to interact with an NPC to morph into different creatures and change their size. Players can choose from a variety of model options and adjust their scale.
 

Crea una cuenta o inicia sesión para comentar

Debes ser usuario para poder dejar un comentario.

¡Regístrate!

Crea una cuenta en nuestra comunidad. ¡Es fácil!

Acceder

¿Ya tienes una cuenta? Accede aquí

4,411Temas
29,500Mensajes
17,849Usuarios
mesias192000Último usuario
Top