Custom NPC Mob CASTING [Azerothcore] menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Corelith's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom NPC Mob CASTING [Azerothcore]

    HEy folks,

    another question for my Quest-line:

    Got one quest in this line, where the player has to fight 'Magic Dwarfs' for a drop...
    The 'Magic Dwarfs' ar already spawnable an look, as the schould do, but my problem: a magic creature should just at least could cast one spell, no?

    So how do i get my dwarfs to cast some spellt, when they are fighting (at this point they're working melee...)

    So i triedt 'till now this:

    Code:
    for the creature:
    
    INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
    (80003, 0, 0, 0, 0, 0, 11053, 3085, 7805, 0, 'Uldamane', 'Mystischer Zwergenorden', '', 0, 80, 83, 2, 0, 0, 1, 1.99206, 1, 0, 520, 581, 0, 390, 2, 2000, 2000, 2, 32768, 2048, 0, 0, 0, 0, 0, 0, 393, 486, 53, 7, 0, 80003, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1299, 2165, 'SmartAI', 0, 3, 1, 1, 1, 1, 0, 0, 1, 0, 0, '', 12340);
    
    Try for the Spellcasting:
    INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
    (80003, 0, 0, 0, 8, 0, 100, 0, 0, 4, 12000, 15000, 0, 11, 51758, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nFeuerreflektion'),
    (80003, 0, 1, 0, 8, 0, 100, 0, 0, 4, 12000, 15000, 0, 11, 7101, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nFeuerstoß'),
    (80003, 0, 2, 0, 8, 0, 100, 0, 0, 16, 12000, 15000, 0, 11, 51763, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nFrostrelektion'),
    (80003, 0, 3, 0, 8, 0, 100, 0, 0, 16, 12000, 15000, 0, 11, 8085, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nFrostschock'),
    (80003, 0, 4, 0, 8, 0, 100, 0, 0, 32, 12000, 15000, 0, 11, 51764, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nSchattenreflektion'),
    (80003, 0, 5, 0, 8, 0, 100, 0, 0, 32, 12000, 15000, 0, 11, 9613, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nSchattenblitz'),
    (80003, 0, 6, 0, 8, 0, 100, 0, 0, 64, 12000, 15000, 0, 11, 51766, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nArkanreflektion');
    (80003, 0, 7, 0, 8, 0, 100, 0, 0, 64, 12000, 15000, 0, 11, 10274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nArkane Geschosse');
    Last edited by Corelith; 03-30-2021 at 09:45 AM.

    Custom NPC Mob CASTING [Azerothcore]
  2. #2
    Corelith's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So got the solution - perhaps it's interesting for someone else:

    So for the creature
    Code:
    INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
    (80003, 0, 0, 0, 0, 0, 11053, 3085, 7805, 3598, 'Uldamane', 'Mystischer Zwergenorden', '', 0, 80, 83, 2, 0, 0, 1, 1.99206, 1, 0, 920, 1581, 0, 590, 2, 2000, 2000, 8, 0, 2048, 0, 0, 0, 0, 0, 0, 393, 486, 53, 7, 0, 80003, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1299, 2165, 'SmartAI', 0, 3, 1, 1, 1, 1, 0, 0, 1, 0, 0, '', 12340);
    So herefore it's important, if you want the npc to cast, that you put the column 'unit_class' on '8' <--- MAGE

    after that, you need the magic:
    Code:
    INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
    (80003, 0, 0, 0, 0, 0, 100, 0, 0, 0, 1200, 1500, 0, 11, 42891, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\nPyroschlag'),
    (80003, 0, 1, 0, 0, 0, 100, 0, 0, 0, 1200, 1500, 0, 11, 43524, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nFrostschock'),
    (80003, 0, 2, 0, 0, 0, 100, 0, 0, 0, 1200, 1500, 0, 11, 12471, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nSchattenblitz'),
    (80003, 0, 3, 0, 0, 0, 100, 0, 0, 0, 1200, 1500, 0, 11, 49198, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Uldamanen - Zwerg\r\nArkane Geschosse');
    Here we got 4 attack-spells, ist important, that we put the 'phase_mask' on '0' <-- all phases, and the 'target_type' on '2' <- for fighting against the player


    As I told, it works... so this threat can be closed for now

Similar Threads

  1. [LUA] Custom NPC's don't cast spells or talk
    By Evilbuffy in forum WoW EMU Questions & Requests
    Replies: 15
    Last Post: 04-07-2009, 06:59 AM
  2. Adding custom items/npcs/mobs
    By ArcticdeathSR in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 01-07-2009, 06:08 PM
  3. Custom mobs cast spell
    By Royalaty in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-02-2008, 01:48 PM
  4. [question] how to make an custom npc cast spells?
    By INS4N3K1LL in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 07:45 AM
  5. Get Custom Npc/Mob for your server
    By Acespades in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 09-23-2007, 02:24 PM
All times are GMT -5. The time now is 04:39 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search