Cómo Crear un Portal Personalizado en TrinityCore

Desde
1 Oct 2019
Mensajes
2,361
Reacciones
2,150
Honor
664
Creador del tema
Crear un portal personalizado en Trinity core es una tarea simple, con las herramientas y el conocimiento correctos ...
En lugar de explicar qué define cada valor su edición, les voy a dar a todos 'un código SQL de plantilla que pueden completar para adaptarse;

Edite los valores resaltados en ROJO en consecuencia...
Rich (BB code):
Necesitas, Acceder o Registrarse para ver el contenido.
A continuación se muestra un ejemplo del portal ya configurado...
SQL:
Necesitas, Acceder o Registrarse para ver el contenido.

Espero que alguien encuentre esto útil.

Créditos: 214siobrien
Traducción: @WoWCreador
 
Buen aporte.
Sin embargo, así como lo dices Es posible que los nuevos empiezan a depender de [RELEASE] en lugar de entender cómo funcionan y aprender a crear los suyos...
 
SET @entry := xxx; -- New game object id for the portal object
SET @text := 'xxx'; -- Tooltip to show when hovering over portal
SET @display := 1327; -- Display id to use for the portal

-- Coordinates to port to:
SET @map := xxx; -- Map id
SET @x := xxx;
SET @y := xxx;
SET @z := xxx;
SET @o := xxx; -- Orientation in radians, 0 is north

INSERT INTO `gameobject_template`
(`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`,
`Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`,
`Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`,
`Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`,
`AIName`, `ScriptName`, `VerifiedBuild`)

VALUES (@entry, 10, @display, @text, '', '', 0, 1.75,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
'SmartGameObjectAI', '', 13623);

INSERT INTO `smart_scripts` VALUES (@entry, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 62, @map, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, @x, @y, @z, @o, CONCAT(@text, ' - On click - Teleport'));

this script for last ver Trinitycore 3.3.5
 
SET @entry := 250002; -- ID вашего портала
SET @text := 'Dire maul ARENA'; -- Текст при наведении
SET @display := 1327; -- Моделька портала

-- Координаты Забытого Города (Калимдор, Арена):
SET @map := 1;
SET @x := -3769.156250;
SET @y := 1135.335815;
SET @z := 159.590057;
SET @o := 4.773662;

-- 1. Очистка старых записей
DELETE FROM `gameobject_template` WHERE `entry` = @entry;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @entry AND `source_type` = 1;

-- 2. Вставка шаблона ГО
INSERT INTO `gameobject_template`
(`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `size`, `AIName`, `ScriptName`, `VerifiedBuild`)
VALUES
(@entry, 10, @display, @text, '', '', 1.75, 'SmartGameObjectAI', '', 13623);

-- 3. Вставка логики клика и телепортации (Универсальная структура для AC)
INSERT INTO `smart_scripts`
(`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(@entry, 1, 0, 0, 64, 0, 100, 0, 62, @map, 0, 0, 0, 0, 0, 7, @x, @y, @z, @o, CONCAT(@text, ' - On click - Teleport'));







For Azerothcore 3.3.5
 
Back
Top