View Single Post
  #150  
Old 07-23-2010, 09:21 AM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

You can buy Loin MK2 now. I suppose you want to add other version of lion mk2 so...
  • 1. Adding new dialog entry. ..\Data\Scripts\Trade\DialogGW.xml

    Look for message "msg_MS_ORG_list". Below you'll find few dialog answers. E.g.
    Code:
    <DialogAnswer name="ans_MS_ORG_07">
      <answer>#L_DR5_ans_MS_ORG_07</answer>
      <lua_function>DialogR_buy_GW_Mothership_uel</lua_function>
      <go_message_name />
      <multi_pass>true</multi_pass>
      <sound_name />
    </DialogAnswer>
    Copy and paste this part below. Change it to something like this:
    Code:
    <DialogAnswer name="ans_MS_ORG_08">
      <answer>Lion Mk2 by stivoknis</answer>
      <lua_function>DialogR_buy_Mothership_Lion_mk2</lua_function>
      <go_message_name />
      <multi_pass>true</multi_pass>
      <sound_name />
    </DialogAnswer>
  • 2. modifying buy script ..\Data\Scripts\include\gw.script

    Look for function "_buy_ms_GW(nameMS)". Above this function you'll find several buy functions which are executed by dialog e.g.:
    Code:
    function DialogR_buy_GW_Mothership_uel()
      _buy_ms_GW("Mothership_uel");
    end;
    Copy/paste. You need the function to look like this:
    Code:
    function DialogR_buy_Mothership_Lion_mk2()
      _buy_ms_GW("Mothership_XXX");
    end;
    The "Mothership_XXX" is the name of the ship from the ..\Data\Game\Carcasses.xml.

    add new mothership to the table inside function "_buy_ms_GW(nameMS)" e.g.:
    Code:
    {"Mothership_XXX",1200000},
    the 2nd value is a price.
Generally, that's all. You can make any ship mothership this way but if you want full functionality (hangars, tractor beams, etc.) you will have to change many more things.
Reply With Quote