[Trinity2] C++ Mob-NPC (unit) script menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    SirRFI's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Trinity2] C++ Mob-NPC (unit) script

    Hello everyone.

    I would like to create my own Mob-NPC that cast some spells and says something when enter combat etc. in Trinity2 core (mangos branch).

    For some days I'm looking for an examples, guides etc. and found practically nothing.

    As far I see, simple mobs like Arcane Wraith (Entry ID: 15273) casts their spells, but there are not any scripts with them, only bosses are scripted in C++. I've noted that this kind mobs, simple units are "scripted in database" I say. Arcane Wraith's arcane bolt is added in creature_ai_scripts table in DB.

    In my opinion there are 2 ways to create my own scripted mob-npc:
    - 1st way: By database like most simple npcs are.
    - 2nd way: By C++ script.



    Ok, and here is the problem:

    - I've found some complicated boss script in C++ that is too complicated for me, beginner.
    - DataBase method is too complicated for me aswell since I can't figure out it in 100%



    And here is what I ask You for:

    - Simple mob-npc (unit) script in C++ as an example that I could modify for my own requiment.
    - Link or what ever to some nice guide about scripting npcs by DataBase method.


    I believe that C++ method would be easier for me since "all is in one" - making npc say something, casting spell, timers etc. and it is easier to figure out, at least for me I guess.



    Thanks in advice, +Rep awaits for helpful post
    Last edited by SirRFI; 09-13-2009 at 04:05 AM.

    [Trinity2] C++ Mob-NPC (unit) script
  2. #2
    blukkiee's Avatar Active Member
    Reputation
    18
    Join Date
    Jun 2007
    Posts
    141
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If C++ boss scripts are too complicated for you, then I suggest you look up some C++ books or look for the online tutorial of the official C++ coding language website.

    Regarding the DB Table, they are most likely explained on the DB Website('s wiki) or any other forum. Google for "creature_ai_scripts" and you're sure to find a website that explains each row.

  3. #3
    SirRFI's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The boss script I've got is too complitated since it's unattack able on first phase etc. or something... It is Razorscale from Ulduar.

    SourceForge.net Repository - [scriptdev2] View of /scripts/examples/example_creature.cpp
    ^- this is useful a bit, maybe helpful. I haven't test my "edition" yet so i dont know if it works...

    But still I would request for an other example than this.

Similar Threads

  1. Will this teleporter npc lua script work?
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-22-2008, 11:50 AM
  2. NPC C++ Scripting HELP :??
    By Joshbb in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-22-2008, 12:05 AM
  3. [Request] Mob/NPC (not vendor) creator & Pre-BC Raid sripts
    By jimmy2222 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-18-2008, 10:08 AM
  4. [Question] Model Editing a specific mob/npc
    By Quafe in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 01-16-2008, 09:48 AM
  5. Replies: 14
    Last Post: 10-31-2007, 01:17 PM
All times are GMT -5. The time now is 09:27 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search