A very simple creature dummy creator.
This will create (INSERT INTO creature_template) one creature dummy (a creature with the dummy extraflag (128)).
It will then SELECT the newly created creature_template.entry and creature_template.name for futher use.
PLEASE EDIT: dev_world to YOUR [WORLD DATABASE NAME]
You can edit faction to '14' for hostile and '35' for friendly.
MySQL Query:
This will create (INSERT INTO creature_template) one creature dummy (a creature with the dummy extraflag (128)).
It will then SELECT the newly created creature_template.entry and creature_template.name for futher use.
PLEASE EDIT: dev_world to YOUR [WORLD DATABASE NAME]
You can edit faction to '14' for hostile and '35' for friendly.
MySQL Query:
SQL:
-- ########################
-- ### Creature Creator ###
-- ########################
-- This is a simple dummy creature_template
set
@creatureEntry = (select max(dev_world.creature_template.entry) from dev_world.creature_template);
set
@creatureName = '',
@creatureScale = '1',
@creatureFaction = 35;
set
@npcFlags = 0;
INSERT INTO dev_world.`creature_template`
(`entry`, `modelid1`, `name`, `subname`, `minlevel`,
`maxlevel`, `exp`, `faction`, `scale`, `BaseAttackTime`,
`unit_class`, `type`, `AIName`, `flags_extra`, npcflag)
VALUES
(@creatureEntry+1, '40721', @creatureName, 'Dummy',
'100', '100', '2', @creatureFaction, @creatureScale, '2000',
'1', '10', 'SmartAI', '128', @npcFlags);
select creature_template.entry, creature_template.name FROM dev_world.creature_template where entry = (select MAX(dev_world.creature_template.entry) FROM dev_world.creature_template);
Liked By 1 member :