I am trying to add a unique named ship to Age of Pirates: COAS (V1.3.0) game,
which I can buy from the shipyard, but I seem to have missed somthing and need help.
I added the ship to the Ship_init :
///////////////////////////////////////////////////////////////////////////
/// Frigate Grimreaper
///////////////////////////////////////////////////////////////////////////
makeref(refShip,ShipsTypes[SHIP_GRIMREAPER]);
refShip.Name = "Grimreaper";
refship.Soundtype = "frigate";
Gave it a number in the ships H file :
#define SHIP_XebekVML 23
#define SHIP_CORVETTE_QUEST 24
#define SHIP_ARABELLA 25
#define SHIP_FLYINGDUTCHMAN 26
//
#define SHIP_BOAT 27
#define SHIP_FORT 28
#define SHIP_GRIMREAPER 29
Added it to the net/common/Ships C file (because I read this needed to be done for it to appear in shipyard inventory):
///////////////////////////////////////////////////////////////////////////
/// Frigate Grimreaper
///////////////////////////////////////////////////////////////////////////
makeref(refShip, NetShips[n]); n++;
refShip.Name = "Grimreaper";
refship.Soundtype = "frigate";
And I added an entry into the AOP2/Program/battle_interface/Battleinterface C file :
case "Grimreaper":
BI_intNRetValue[0] = 4+3*8;
BI_intNRetValue[1] = 4+3*8 + 1;
BI_intNRetValue[2] = BI_ICONS_TEXTURE_SHIP1;
break;
Any help would be much appreciated.
which I can buy from the shipyard, but I seem to have missed somthing and need help.
I added the ship to the Ship_init :
///////////////////////////////////////////////////////////////////////////
/// Frigate Grimreaper
///////////////////////////////////////////////////////////////////////////
makeref(refShip,ShipsTypes[SHIP_GRIMREAPER]);
refShip.Name = "Grimreaper";
refship.Soundtype = "frigate";
Gave it a number in the ships H file :
#define SHIP_XebekVML 23
#define SHIP_CORVETTE_QUEST 24
#define SHIP_ARABELLA 25
#define SHIP_FLYINGDUTCHMAN 26
//
#define SHIP_BOAT 27
#define SHIP_FORT 28
#define SHIP_GRIMREAPER 29
Added it to the net/common/Ships C file (because I read this needed to be done for it to appear in shipyard inventory):
///////////////////////////////////////////////////////////////////////////
/// Frigate Grimreaper
///////////////////////////////////////////////////////////////////////////
makeref(refShip, NetShips[n]); n++;
refShip.Name = "Grimreaper";
refship.Soundtype = "frigate";
And I added an entry into the AOP2/Program/battle_interface/Battleinterface C file :
case "Grimreaper":
BI_intNRetValue[0] = 4+3*8;
BI_intNRetValue[1] = 4+3*8 + 1;
BI_intNRetValue[2] = BI_ICONS_TEXTURE_SHIP1;
break;
Any help would be much appreciated.
Last edited: