// Jerry-rigged console file.
//put code under ExecuteConsole() below.
//NK 04-08-28
// not needed I think extern void InitShips();
#include "SDK\LocatorWrite.c"
#include "Upgrade.c";
extern void InitItems();
extern void InitCannons();
void ExecuteConsole()
{
ref pchar = GetMainCharacter();
if (!bSeaActive) ref lcn = &Locations[FindLocation(pchar.location)];
ref ch;
int i;
int limit;
switch(0) // Case 0 = Various test and cheat codes
{ // Case 1 = Location coordinate information
case 0: // Case 2 = Automatic instant cheats in port
// LAi_EnableReload();
// Give ship
// ------------------
// GiveShip2Character(pchar,pchar.ship.type,pchar.ship.name,-1,PIRATE,true,true);
// GiveShip2Character(pchar,"NL_Amsterdam","Amsterdam",-1,HOLLAND,true,true);
// GiveShip2Character(pchar,"CursedDutchman","Flying Dutchman",-1,PIRATE,true,true);
// GiveShip2Character(pchar,"QueenAnnesRevenge","Queen Anne's Revenge",-1,PIRATE,true,true);
// GiveShip2Character(pchar,"RN_SteamFrigate","HMS Astrea",-1,ENGLAND,true,true);
// GiveShip2Character(pchar,SHIP_CURSED,"Black Pearl",-1,PIRATE,true,true);
/*
CursedShip = "Crimson Blood";
ShipsInit();
Preprocessor_Init();
GiveShip2Character(pchar,SHIP_CURSED,CursedShip,-1,PIRATE,true,true);
*/
/*
if(!Checkattribute(pchar,"cheatship")) Pchar.cheatship = 0;
int con = sti(Pchar.cheatship);
if(con<SHIP_TYPES_QUANTITY)
{
GiveShip2Character(pchar,ShipsTypes[con].id,"Test Ship",-1,ENGLAND,true,true);
Pchar.cheatship = con +1;
}
TraceAndLog("*************************** Ship : " + ShipsTypes[con].id + " , Index : " + con + " ");
*/