Hello, this tutorial wasn't made by me but after finding this I thought I would translate it and edit it so I could share it with you! This is a tutorial on how to create your own ships.
Accepted Versions
2Moons 1.5
xNova Revolution - Requires the "norio" space
2Moons 1.4
2Moons 1.3.5
Try to found in $resource = array(
And Add
Try to Found in $requeriments = array(
And Add
There is the Requirements of Ships... Legend:
The common requires is :
Try to found in $pricelist = array(
And Add:
There is the price of Ships ... Legend:
Try to found in $CombatCaps = array(
And add :
There is Combat Skills of ships ... Legend :
For the last try to found this :
And replace to:
Don't forget to add a query into the database.
85% - QwataKayean from 2Moons.
15% - Me, for translating, editing and sharing.
Thank you for reading, if you have any issues with this tutorial or anything else either post a reply or pm me with the issue.
WARNING - This requires some knowledge of PHP and how to work yourself around the 2Moons files, if you mess this up then you could prevent the system from working correctly, so always make a backup.
Good luck.
Accepted Versions
2Moons 1.5
xNova Revolution - Requires the "norio" space
2Moons 1.4
2Moons 1.3.5
Try to found in $resource = array(
PHP:
202 => "small_ship_cargo",
203 => "big_ship_cargo",
204 => "light_hunter",
205 => "heavy_hunter",
206 => "crusher",
207 => "battle_ship",
208 => "colonizer",
209 => "recycler",
210 => "spy_sonde",
211 => "bomber_ship",
212 => "solar_satelit",
213 => "destructor",
214 => "dearth_star",
215 => "battleship",
216 => "lune_noir",
217 => "ev_transporter",
218 => "star_crasher",
219 => "giga_recykler",
220 => "dm_ship",
And Add
PHP:
221 => "ship",
Try to Found in $requeriments = array(
PHP:
202 => array( 21 => 2, 115 => 2),
203 => array( 21 => 4, 115 => 6),
204 => array( 21 => 1, 115 => 1),
205 => array( 21 => 3, 111 => 2, 117 => 2),
206 => array( 21 => 5, 117 => 4, 121 => 2),
207 => array( 21 => 7, 118 => 4),
208 => array( 21 => 4, 117 => 3),
209 => array( 21 => 4, 115 => 6, 110 => 2),
210 => array( 21 => 3, 115 => 3, 106 => 2),
211 => array( 117 => 6, 21 => 8, 122 => 5),
212 => array( 21 => 1),
213 => array( 21 => 9, 118 => 6, 114 => 5),
214 => array( 21 => 12, 118 => 7, 114 => 6, 199 => 1),
215 => array( 114 => 5, 120 => 12, 118 => 5, 21 => 8),
216 => array( 106 => 12, 21 => 15, 109 => 14, 110 => 14, 111 => 15, 114 => 10, 120 => 20, 199 => 3),
217 => array( 111 => 10, 21 => 14, 114 => 10, 110 => 14, 117 => 15),
218 => array( 21 => 18, 109 => 20, 110 => 20, 111 => 20, 114 => 15, 118 => 20, 120 => 25, 199 => 8),
219 => array( 21 => 15, 109 => 15, 110 => 15, 111 => 15, 118 => 8),
220 => array( 21 => 9, 114 => 5, 118 => 6),
And Add
PHP:
221 => array( 21 => 20),
There is the Requirements of Ships... Legend:
The common requires is :
PHP:
21 => "hangar",
106 => "spy_tech",
108 => "computer_tech",
109 => "military_tech",
110 => "defence_tech",
111 => "shield_tech",
113 => "energy_tech",
114 => "hyperspace_tech",
115 => "combustion_tech",
117 => "impulse_motor_tech",
118 => "hyperspace_motor_tech",
120 => "laser_tech",
121 => "ionic_tech",
122 => "buster_tech",
123 => "intergalactic_tech",
124 => "expedition_tech",
131 => "metal_proc_tech",
132 => "crystal_proc_tech",
133 => "deuterium_proc_tech",
199 => "graviton_tech",
Try to found in $pricelist = array(
PHP:
202 => array('metal' => 2000, 'crystal' => 2000, 'deuterium' => 0, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 10, 'consumption2' => 20 , 'speed' => 5000, 'speed2' => 10000, 'capacity' => 5000, 'tech' => 4),
203 => array('metal' => 6000, 'crystal' => 6000, 'deuterium' => 0, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 50, 'consumption2' => 50 , 'speed' => 7500, 'speed2' => 7500, 'capacity' => 25000, 'tech' => 1),
204 => array('metal' => 3000, 'crystal' => 1000, 'deuterium' => 0, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 20, 'consumption2' => 20 , 'speed' => 12500, 'speed2' => 12500, 'capacity' => 50, 'tech' => 1),
205 => array('metal' => 6000, 'crystal' => 4000, 'deuterium' => 0, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 75, 'consumption2' => 75 , 'speed' => 10000, 'speed2' => 15000, 'capacity' => 100, 'tech' => 2),
206 => array('metal' => 20000, 'crystal' => 7000, 'deuterium' => 2000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 300, 'consumption2' => 300 , 'speed' => 15000, 'speed2' => 15000, 'capacity' => 800, 'tech' => 2),
207 => array('metal' => 45000, 'crystal' => 15000, 'deuterium' => 0, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 250, 'consumption2' => 250 , 'speed' => 10000, 'speed2' => 10000, 'capacity' => 1500, 'tech' => 3),
208 => array('metal' => 10000, 'crystal' => 20000, 'deuterium' => 10000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 1000, 'consumption2' => 1000, 'speed' => 2500, 'speed2' => 2500, 'capacity' => 7500, 'tech' => 2),
209 => array('metal' => 10000, 'crystal' => 6000, 'deuterium' => 2000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 300, 'consumption2' => 300 , 'speed' => 2000, 'speed2' => 2000, 'capacity' => 20000, 'tech' => 1),
210 => array('metal' => 0, 'crystal' => 1000, 'deuterium' => 0, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 1, 'consumption2' => 1 , 'speed' => 100000000, 'speed2' => 100000000, 'capacity' => 5, 'tech' => 1),
211 => array('metal' => 50000, 'crystal' => 25000, 'deuterium' => 15000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 1000, 'consumption2' => 1000, 'speed' => 4000, 'speed2' => 5000, 'capacity' => 500, 'tech' => 5),
212 => array('metal' => 0, 'crystal' => 2000, 'deuterium' => 500, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 0, 'consumption2' => 0 , 'speed' => 0, 'speed2' => 0, 'capacity' => 0, 'tech' => 0),
213 => array('metal' => 60000, 'crystal' => 50000, 'deuterium' => 15000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 1000, 'consumption2' => 1000, 'speed' => 5000, 'speed2' => 5000, 'capacity' => 2000, 'tech' => 3),
214 => array('metal' => 5000000, 'crystal' => 4000000, 'deuterium' => 1000000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 1, 'consumption2' => 1 , 'speed' => 200, 'speed2' => 200, 'capacity' => 1000000, 'tech' => 3),
215 => array('metal' => 30000, 'crystal' => 40000, 'deuterium' => 15000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 250, 'consumption2' => 250 , 'speed' => 10000, 'speed2' => 10000, 'capacity' => 750, 'tech' => 3),
216 => array('metal' => 8000000, 'crystal' => 2000000, 'deuterium' => 1500000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 250, 'consumption2' => 250 , 'speed' => 900, 'speed2' => 900, 'capacity' => 15000000, 'tech' => 3),
217 => array('metal' => 35000, 'crystal' => 20000, 'deuterium' => 1500, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 90, 'consumption2' => 90, 'speed' => 6000, 'speed2' => 6000, 'capacity' => 400000000, 'tech' => 3),
218 => array('metal' => 275000000, 'crystal' => 130000000, 'deuterium' => 60000000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 10000, 'consumption2' => 10000, 'speed' => 10, 'speed2' => 10, 'capacity' => 50000000, 'tech' => 3),
219 => array('metal' => 1000000, 'crystal' => 600000, 'deuterium' => 200000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 300, 'consumption2' => 300, 'speed' => 7500, 'speed2' => 7500, 'capacity' => 200000000, 'tech' => 3),
220 => array('metal' => 6000000, 'crystal' => 7000000, 'deuterium' => 3000000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 100000, 'consumption2' => 100000, 'speed' => 100, 'speed2' => 100, 'capacity' => 6000000, 'tech' => 3),
And Add:
PHP:
221 => array('metal' => 1000000, 'crystal' => 1000000, 'deuterium' => 1000000, 'energy_max' => 0, 'darkmatter' => 0, 'factor' => 1, 'consumption' => 100000, 'consumption2' => 100000, 'speed' => 100, 'speed2' => 100, 'capacity' => 6000000, 'tech' => 3),
There is the price of Ships ... Legend:
PHP:
You can change this!
Factor = nº of multiplication of prices... When is 2 or + , every building of this ship is 2x like buildings (or +)
Consumption = Dark Matter Spends
Speed = Fleet Speed
Speed2 = Minimum Fleet Speed
Capacity = The Resources can transport
Try to found in $CombatCaps = array(
PHP:
202 => array('shield' => 10, 'attack' => 5, 'sd' => array (210 => 5, 212 => 5)),
203 => array('shield' => 25, 'attack' => 5, 'sd' => array (210 => 5, 212 => 5)),
204 => array('shield' => 10, 'attack' => 50, 'sd' => array (210 => 5, 212 => 5)),
205 => array('shield' => 25, 'attack' => 150, 'sd' => array (202 => 3, 210 => 5, 212 => 5)),
206 => array('shield' => 50, 'attack' => 400, 'sd' => array (204 => 6, 401 => 10, 210 => 5, 212 => 5)),
207 => array('shield' => 200, 'attack' => 1000, 'sd' => array (210 => 5, 212 => 5)),
208 => array('shield' => 100, 'attack' => 50, 'sd' => array (210 => 5, 212 => 5)),
209 => array('shield' => 10, 'attack' => 1, 'sd' => array (210 => 5, 212 => 5)),
210 => array('shield' => .001, 'attack' => .001, 'sd' => array ()),
211 => array('shield' => 500, 'attack' => 1000, 'sd' => array (210 => 5, 212 => 5, 401 => 20, 402 => 20, 403 => 10, 405 => 10)),
212 => array('shield' => .001, 'attack' => .001, 'sd' => array ()),
213 => array('shield' => 500, 'attack' => 2000, 'sd' => array (210 => 5, 212 => 5, 215 => 2, 402 => 10)),
214 => array('shield' => 50000, 'attack' => 200000, 'sd' => array (210 => 1250, 212 => 1250, 202 => 250, 203 => 250, 208 => 250, 209 => 250, 204 => 200, 205 => 100, 206 => 33, 207 => 30, 211 => 25, 215 => 15, 213 => 5, 401 => 200, 402 => 200, 403 => 100, 404 => 50, 405 => 100)),
215 => array('shield' => 400, 'attack' => 700, 'sd' => array (202 => 3, 203 => 3, 205 => 4, 206 => 4, 207 => 10, 210 => 5, 212 => 5)),
216 => array('shield' => 70000, 'attack' => 150000, 'sd' => array (210 => 1250, 212 => 1250, 202 => 250, 203 => 250, 204 => 200, 205 => 100, 206 => 33, 207 => 30, 208 => 250, 209 => 250, 211 => 25, 213 => 5, 214 => 1, 215 => 15, 401 => 400, 402 => 200, 403 => 100, 404 => 50, 405 => 100)),
217 => array('shield' => 120, 'attack' => 50, 'sd' => array (210 => 5, 212 => 5)),
218 => array('shield' => 2000000, 'attack' => 35000000, 'sd' => array (210 => 1250, 212 => 1250, 202 => 250, 203 => 250, 204 => 200, 205 => 100, 206 => 33, 207 => 30, 208 => 250, 209 => 250, 211 => 25, 213 => 5, 215 => 15, 401 => 400, 402 => 200, 403 => 100, 404 => 50, 405 => 100)),
219 => array('shield' => 1000, 'attack' => 1, 'sd' => array (210 => 5, 212 => 5)),
220 => array('shield' => 50000, 'attack' => 5, 'sd' => array (210 => 5, 212 => 5)),
And add :
PHP:
221 => array('shield' => 1000000, 'attack' => 1000000, 'sd' => array ()),
There is Combat Skills of ships ... Legend :
PHP:
You can change this!
Shield = Shield Power
Attack = Attack Power
sd => array ())) = The Rapid Fire of the ships
For the last try to found this :
PHP:
$reslist['fleet'] = array(202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220);
And replace to:
PHP:
$reslist['fleet'] = array(202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221);
Don't forget to add a query into the database.
PHP:
ALTER TABLE `(your game database prefix)_planets` ADD `ship` bigint(20) unsigned NOT NULL DEFAULT '0';
85% - QwataKayean from 2Moons.
15% - Me, for translating, editing and sharing.
Thank you for reading, if you have any issues with this tutorial or anything else either post a reply or pm me with the issue.
WARNING - This requires some knowledge of PHP and how to work yourself around the 2Moons files, if you mess this up then you could prevent the system from working correctly, so always make a backup.
Good luck.
Last edited: