To understand what the script does watch this video :
It isnt best quality, but it shows you what it does.
The vehicles from the video arent included in this script, they are custom creatures.
This script works with a worlddatabase-table, you should add this table to your database before using the script
Code:
CREATE TABLE `vehicle_powerup` (
`gameobject_entry` INT(10) NOT NULL,
`creature_entry` INT(10) NOT NULL,
`vehicle_time` INT(10) NOT NULL,
`respawn_time` INT(10) NOT NULL,
PRIMARY KEY (`gameobject_entry`)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB
ROW_FORMAT=DEFAULT
Description of the fields:
gameobject_entry : entry id of the gameobject ( you should be able to walk trough it)
creature_entry : entry id of the creature ( it should have vehicle flags)
vehicle_time : how long is the player supposed to use the vehicle?
respawn_time : how long does it take until players are able to collect the powerup again?
That's it, you can't make anything false and if you do, the script will tell you what you did false
Now here's the link to the script:
[C++] Arcemu Vehicle PowerUps v3 - Code by Nirual - Pastebin.com
have fun and give me some ideas for making it better