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.