Restart Order Mission Script
-
So i have written a quick script designed to be used as a /restart.
It’s my intention to try help and try get people interested in mission scripts.What it does:
As a player that has used the /restart command, you are aboard an Order Battleship thats travelling to Planet Manhatten.
Once you hit undock, the battleship will uncloak itself and after a short period re-cloak.
As a new order pilot the mission script will give the player little “perks” such as unlocked jumpholes and reputation changes.I will include a user guide and FAQ’s at the end of this post.
Ok, so heres what you need…
C:\Program Files\Microsoft Games\Freelancer\EXE\Freelancer.ini
add this line:
[Initial MP DLLs]
path = …\dlls\bin
DLL = Content.dll, GameSupport, HIGHEST
; required to operate gates and docks
; required to create ships in space
DLL = Content.dll, SpaceSupport, NORMAL
DLL = Content.dll, BaseSupport, NORMAL
DLL = Content.dll, StoryLauncher, BELOW_NORMAL ;story/static missions <–—
DLL = Content.dll, SpacePop, LOWEST ;populator
DLL = Content.dll, AISandbox, BELOW_NORMAL
DLL = Content.dll, TestAutomation, BELOW_NORMAL
DLL = Content.dll, BasePop, LOWESTC:\Program Files\Microsoft Games\Freelancer\DATA\SHIPS\loadouts.ini :
add this:
[Loadout]
nickname = MP_or_fighter
archetype = or_elite
equip = ge_oe_engine_01
equip = order_shield, HpShield01
equip = or_elite_power01
equip = ge_s_scanner_01
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = fc_or_gun01_mark01, HpWeapon01
equip = fc_or_gun01_mark01, HpWeapon02
equip = fc_or_gun01_mark01, HpWeapon03
equip = fc_or_gun01_mark01, HpWeapon04
equip = fc_or_gun01_mark01, HpWeapon05
equip = fc_or_gun01_mark01, HpWeapon06
equip = fc_or_turret01_mark01, HpTurret01
equip = mine01_mark05, HpMine01
cargo = mine01_mark05_ammo, 20
equip = ge_s_cm_03, HpCM01
cargo = ge_s_cm_03_ammo, 20
equip = LargeWhiteSpecial, HpHeadlight
equip = SlowSmallYellow, HpRunningLight01
equip = SlowSmallYellow, HpRunningLight02
equip = SlowSmallYellow, HpRunningLight03
equip = SlowSmallYellow, HpRunningLight04
equip = SlowSmallYellow, HpRunningLight05
equip = SlowSmallYellow, HpRunningLight06
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02[Loadout]
nickname = or_osiris_cloak
archetype = or_osiris
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_lb_engine_01
equip = sfx_rumble_battleship
equip = cloak_osiris, HpCloak01
equip = li_battleship_turret01, HpTurret_O1_01
equip = li_battleship_turret02, HpTurret_O2_01
equip = li_battleship_turret03, HpTurret_O3_01
equip = li_battleship_turret03, HpTurret_O3_02
equip = li_battleship_turret04, HpTurret_O4_01
equip = li_battleship_turret04, HpTurret_O4_02
equip = li_battleship_turret04, HpTurret_O4_03
equip = li_battleship_turret04, HpTurret_O4_04I use flhook plugin for /restarts… but the file should look like this:
C:\Program Files\Microsoft Games\Freelancer\EXE\flhook_plugins\restart\order.fl
[Player]
name = 004f00720069006c006c0069006f006e
rank = 0
money = 2000
voice = trent_voice
costume = trent
com_costume = trent
system = Li01
base = Li01_15_Base
house = 0.91, li_n_grp
house = 0.91, li_lsf_grp
house = 0.65, li_p_grp
house = 0, br_n_grp
house = 0, br_p_grp
house = 0, ku_n_grp
house = 0, ku_p_grp
house = 0, rh_n_grp
house = 0, rh_p_grp
house = 0, co_alg_grp
house = 0, co_be_grp
house = 0, br_m_grp
house = 0, co_nws_grp
house = 0, co_hsp_grp
house = 0.65, co_ic_grp
house = -0.3, co_khc_grp
house = -0.3, co_kt_grp
house = 0, rh_m_grp
house = 0.65, co_me_grp
house = 0.65, co_ni_grp
house = 0, co_os_grp
house = -0.3, co_rs_grp
house = -0.3, co_shi_grp
house = 0.65, co_ss_grp
house = 0, co_ti_grp
house = 0.65, co_vr_grp
house = -0.3, fc_bd_grp
house = -0.3, fc_b_grp
house = -0.65, fc_c_grp
house = -0.3, fc_fa_grp
house = -0.3, fc_g_grp
house = -0.3, fc_gc_grp
house = -0.3, fc_h_grp
house = -0.3, fc_j_grp
house = -0.65, fc_lh_grp
house = -0.65, fc_lr_grp
house = -0.3, fc_lwb_grp
house = -0.65, fc_m_grp
house = -0.65, fc_ou_grp
house = -0.65, fc_rh_grp
house = 0.91, fc_or_grp
house = -0.65, fc_u_grp
house = -0.65, fc_x_grp
house = 0, gd_gm_grp
house = 0, fc_uk_grp
house = -0.65, fc_n_grp
house = -0.65, fc_ln_grp
house = -0.65, fc_kn_grp
house = -0.65, fc_rn_grp
house = 0, fc_ouk_grp
house = 0, fc_q_grp
house = -0.65, fc_f_grp
house = 0, gd_im_grp
house = 0, gd_z_grp
house = -0.3, gd_bh_grp
visit = 2745692751, 1
visit = 2208818767, 1
visit = 2745633359, 1
visit = 2945966082, 1
visit = 2409077762, 1
visit = 2945943554, 1
visit = 2409063426, 1
visit = 2945937410, 1
visit = 2409040898, 1
visit = 2281145474, 1
visit = 2818046082, 1
visit = 2281172098, 1
visit = 2817982594, 1
visit = 2281116802, 1
visit = 3013596745, 1
visit = 2476714569, 1
Visit = 3013590601, 1
visit = 2476692041, 1
visit = 3013559881, 1
visit = 3146760779, 1
visit = 2609888843, 1
visit = 3146754635, 1
visit = 2609858123, 1
visit = 3146732107, 1
visit = 2609851979, 1
ship_archetype = or_elite
equip = 3166825668, BAY
equip = 2261435786, HpShield01
equip = 3077351812, BAY
equip = 2723858309, BAY
equip = 2799531210, BAY
equip = 2314753344, HpThruster01
equip = 2523073857, HpWeapon01
equip = 2523073857, HpWeapon02
equip = 2523073857, HpWeapon03
equip = 2523073857, HpWeapon04
equip = 2523073857, HpWeapon05
equip = 2523073857, HpWeapon06
equip = 2896229966, HpTurret01
equip = 2300052746, HpMine01
cargo = 2492716687, 20
equip = 2736156677, HpCM01
cargo = 2211307011, 20
equip = 2265531853, HpHeadlight
equip = 2525110029, HpRunningLight01
equip = 2525110029, HpRunningLight02
equip = 2525110029, HpRunningLight03
equip = 2525110029, HpRunningLight04
equip = 2525110029, HpRunningLight05
equip = 2525110029, HpRunningLight06
equip = 2500775748, HpContrail01
equip = 2500775748, HpContrail02
equip = 2500775748, HpContrail03
equip = 2494027655, HpDockLight01
equip = 2494027655, HpDockLight02[StoryInfo]
ship_bought = false
Mission = Mission_13
MissionNum = 0
delta_worth = -1.000000
debug = 0And now just add the mission: (you need an empty mission.ini and npcships.ini in the mission13 folder)
C:\Program Files\Microsoft Games\Freelancer\DATA\MISSIONS\M13
NPCSHIPS.ini :
[NPCShipArch]
nickname = MSN11_Osirus
loadout = MSN11_Osirus
level = d20
ship_archetype = or_osiris
pilot = MSN11_Osirus
state_graph = CRUISER
npc_class = lawful, CRUISERM13.ini :
[Mission]
npc_ship_file = missions\npcships.ini[NPC]
nickname = osiris
affiliation = fc_or_grp
npc_ship_arch = MSN13_Osirus
space_costume = li_captain_head, li_male_elite_body, comm_ge_generic1
individual_name = 217306[MsnSolar]
nickname = osiris2
system = Li01
position = -31155, 300, -26059
orientation = 0.850000, 0, 0.350000, 0
string_id = 217010
faction = fc_or_grp
archetype = o_osiris
loadout = or_osiris_cloak
label = osiris
base = Li01_15_base
voice = orillion
pilot = MSN11_Osirus[Trigger]
nickname = INIT_ALL
system = ANY
InitState = ACTIVE
Cnd_True = no_params
Act_ForceLand = Li01_15_base
Cnd_BaseEnter = Li01_15_base
Cnd_SpaceExit = no_params
Act_SetShipAndLoadout = or_elite, MP_or_fighter
Act_ActTrig = INIT_NEWPLAYER
Act_ActTrig = start_init[Trigger]
nickname = INIT_NEWPLAYER
system = Li01
Cnd_BaseEnter = Li01_15_base
Act_ActTrig = welcome_to_missions
Act_LockDock = Player, Li01_to_Li05, unlock
Act_LockDock = Player, Li05_to_Li01, unlock
Act_LockDock = Player, Li01_to_IW03, unlock
Act_LockDock = Player, IW03_to_Li01, unlock
Act_LockDock = Player, Iw03_to_Br04_hole, unlock
Act_LockDock = Player, Br04_to_Iw03_hole, unlock
Act_LockDock = Player, Bw05_to_rh01_hole, unlock
Act_LockDock = Player, Rh01_to_Bw05_hole, unlock
Act_LockDock = Player, BR04_to_BR05_hole, unlock
Act_LockDock = Player, BR05_to_BR04_hole, unlock
Act_SetRep = Player, li_n_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, li_lsf_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, li_p_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, br_n_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, br_p_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, ku_n_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, ku_p_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, rh_n_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, rh_p_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, fc_or_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, fc_f_grp, REP_HOSTILE_MAXIMUM
Act_SetRep = Player, fc_kn_grp, REP_FRIEND_THRESHOLD
Act_SetRep = Player, fc_rn_grp, REP_FRIEND_THRESHOLD
Act_SpawnSolar = osiris2[Trigger]
nickname = welcome_to_missions
system = Li01
Cnd_SystemEnter = Li01
Act_ActTrig = start_init[Trigger]
nickname = start_init
system = Li01
Cnd_BaseExit = Li01_15
Act_RpopTLAttacksEnabled = false
Act_ActTrig = phase_in
Act_ActTrig = music_timer[Trigger]
system = ANY
nickname = phase_in
Cnd_Timer = 10
Act_Cloak = osiris2, false[Trigger]
nickname = music_timer
system = Li01
Cnd_Timer = 20
;Act_AdjAcct = 2000000
Act_ActTrig = phase_out[Trigger]
system = ANY
nickname = phase_out
Cnd_Timer = 10
Act_Cloak = osiris2, true
Act_ActTrig = end[Trigger]
nickname = end
system = Li01
Cnd_Timer = 10
Act_Destroy = osiris2, silent
Act_ActTrig = end2[Trigger]
nickname = end2
system = Li01
Cnd_Timer = 10
Act_Destroy = osiris2, silentGUIDE:
Start up your server, create a character and use the /restart command. (whatever name of the .fl file you used)
Anyone and everyone can use this script for whatever purpose they wish, all i ask for is a little feed back on the post.FAQ’S
Q:Should i be worried about multi spawning?
A:Well i cant really say for sure, But the script only uncloaks one battleship that the player undocks from. And once they have undocked and the battleship re-cloaks, the script destroys any and all unused objects etc. So hopefully not.Q: The battleship doesnt uncloak when i undock!
A: Try extending the time of the phase_in trigger in the mission.ini (as your screens shows loading the timer is counting).[Trigger]
system = ANY
nickname = phase_in
Cnd_Timer = 7 <–----------------------
Act_Cloak = osiris2, falseQ:How do i change the name of the battleship?
A:Edit this part of the mission.ini[MsnSolar]
nickname = osiris2
system = Li01
position = -31155, 300, -26059
orientation = 0.850000, 0, 0.350000, 0
string_id = 217010 <–-------------
faction = fc_or_grp
archetype = o_osiris
loadout = or_osiris_cloak
label = osiris
base = Li01_15_base
voice = orillion
pilot = MSN11_OsirusKNOWN ISSUES:
If you dont dock anywhere after the battleship has disapeared and then die, Your character may become corrupt. (just dock somewhere near, i have flhook set so players cant kill eachother in NY.)TESTING CONDITIONS
This was tested with the 1.1 server patch, 1.3SDKfull and FLHook plugin version with the following plugins:
Condata by w0dk4
Tempban by w0dk4
Cloak plugin by M0tah|Based on code by w0dk4
DockRestrict by M0tah
FlakCommon by M0tah
lzcompat by Cannon
playercntl by CannonI’ll have to update this post with more as or if it develops.
Its not perfected… far from it, but i hope a helping hand to anyone starting out. enjoyKhayman.