[Question] Custom "Vehicle" with Custom Spells menu

User Tag List

Results 1 to 7 of 7
  1. #1
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Custom "Vehicle" with Custom Spells

    Hey there. I just decided I wanted to get back to private servers coding to learn more about C++ and make some personal scripts. The first script I decided to create is a custom "boss" fight (more like an event players could encounter in a raid) where you have 3 phases with one in which one or two players will have to get on some kind of cannons to shoot the the proper targets when they take a certain colour (I already found how those targets will look like, look at the below picture to see what I mean). I found some cannon creatures that are already coded and looked a bit at the database and I'm unsure how it works. Is it possible to code custom vehicles via the database? Does it require custom core coding? I'd like my vehicle to not move (I can handle this part) and to contain custom spells that player can use, I'll probably just find some already used spell and add it to the vehicle and make my own code for it (I already started working on the custom spell, that's not a problem).

    I use Trinity Core for 3.3.5a.

    Thanks for any help, DrakeFish


    Here's the screenshot of the targets the player(s) will have to shoot on with the vehicles. There are 4 of those beams and each of them will have to be shot for a different reason, I haven't yet think about it completely but that's the base idea.
    [spoiler]

    [/spoiler]



    Edit:
    I got able to modify the vehicles spells, it was actually the spells in the creature_template table. But I have another problem now. As a test I copied every info from a Wintergrasp Siege Turret that does work to my custom NPC I created (with the same model, just to test it) and it doesn't work. It shows the icon just well, it feels like it's a vehicle but I can't get inside of it when right-clicking it. If anyone else tried this before and have an idea on how to fix it, thanks for any info! If I really can't get it to work, I'll try to make a custom script that when I right click some object it teleports me in the vehicle. It's not the best way to do it but it would still make sense.
    Last edited by DrakeFish; 07-28-2011 at 01:00 PM.

    [Question] Custom "Vehicle" with Custom Spells
  2. #2
    MuffinVendor's Avatar Active Member
    Reputation
    47
    Join Date
    Jun 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    About to Wintergrasp Siege Turret - I believe that it has a custom script already built-in - which matches that NPC's GUID or Entry ID - which is why when you duplicate that row in the DB it won't communicate with the script.

    I am dumb as f**k with those things but in my head it made sense.
    Don't take life too serious - you'll never escape it alive anyway.

  3. #3
    Terrorblade's Avatar Contributor I spent 5k CC and all I got was this user title
    CoreCoins Purchaser
    Reputation
    153
    Join Date
    Oct 2010
    Posts
    312
    Thanks G/R
    6/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    custom vehicles, you can create a completly new one by dbc editing or by creating an npc with a vehicle id of an existing one and add your spells to them. Also trinitycore's spell system allows you to filter targets with scripts. Also your problem is that you didn't give it spellclick flags.
    Stuff & Things

  4. #4
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Terrorblade View Post
    custom vehicles, you can create a completly new one by dbc editing or by creating an npc with a vehicle id of an existing one and add your spells to them. Also trinitycore's spell system allows you to filter targets with scripts. Also your problem is that you didn't give it spellclick flags.
    I completely copied all the values in creatures_template from a vehicle to my custom vehicle and it doesn't seem to work. I can see that the unit is clickable but it won't let me get on it. What's that spellclick flag you're talking about?
    Last edited by DrakeFish; 07-29-2011 at 10:46 AM.

  5. #5
    xyzhacker's Avatar Sergeant
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice Idea, and awesome you wanna learn more C++ scripting

    +rep

    ---------- Post added at 10:12 AM ---------- Previous post was at 10:09 AM ----------

    edit, i aint got no rep xD

  6. #6
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DrakeFish View Post
    I completely copied all the values in creatures_template from a vehicle to my custom vehicle and it doesn't seem to work. I can see that the unit is clickable but it won't let me get on it. What's that spellclick flag you're talking about?
    Npc spellclick spells tc2 - TrinityCore Wiki
    copy the turret's entry from here and that might work (As Terrorblade said). I've never messed with custom vehicles before.

  7. #7
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by myran2 View Post
    Npc spellclick spells tc2 - TrinityCore Wiki
    copy the turret's entry from here and that might work (As Terrorblade said). I've never messed with custom vehicles before.
    Oh wow, I didn't see this table, thanks for pointing it out.

Similar Threads

  1. [Question] Custom Spells?
    By gotiefan in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 07-18-2009, 09:52 AM
  2. [Question] Custom Container Filled with Items
    By haphaz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-01-2008, 09:05 PM
  3. [Question]Custom model error with Model viewer
    By Alexei in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 03-09-2008, 01:21 PM
  4. Custom Spell Question
    By SectorSeven in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-23-2007, 09:51 AM
  5. [QUESTION]Custom Mount Spell
    By EmiloZ in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 12-12-2007, 10:41 AM
All times are GMT -5. The time now is 03:13 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