• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Console.c

<!--quoteo(post=180082:date=Jan 23 2007, 05:58 PM:name=the pirate)--><div class='quotetop'>QUOTE(the pirate @ Jan 23 2007, 05:58 PM) [snapback]180082[/snapback]</div><div class='quotemain'><!--quotec-->
By the way, Pieter, where did you learn English? You speak (I mean write lol) it perfectly and flawlessly.
<!--QuoteEnd--></div><!--QuoteEEnd-->
I went on holiday to England many, many times. And being an active forum member in English online communities sure helps as well. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
<!--quoteo(post=179810:date=Jan 21 2007, 08:50 PM:name=the pirate)--><div class='quotetop'>QUOTE(the pirate @ Jan 21 2007, 08:50 PM) [snapback]179810[/snapback]</div><div class='quotemain'><!--quotec-->
I want to get some items at the start of the game. I was told to do it in console.c:

Sea_ReloadStart();
LAi_SetCurHPMax(&captiveCharacter);
trace("sea active");
captiveCharacter.ship.type = "Tartane1";
Ship_CreateForCharacter(&captiveCharacter, 0, "Lifeboat") // ccc apr03
dumpattributes(captiveCharacter);
trace("ship created");
string sGName = "releasedprisoner";
ref rGroup = Group_GetGroupByIndex(Group_CreateGroup(sGName));
trace("group created");
float x,z,ay;
ref pch = GetMainCharacter()

Under this? I wrote GiveItem2Character(pchar,"blade25");

It isn't working. PLEASE HELP
<!--QuoteEnd--></div><!--QuoteEEnd-->


How do I open Concole C up is it in game or what?
 
Console.c is a codefile which is being compiled and executed if you press F12 during the game.

You'll find it in the ...\Pirates of the Caribbbean\program folder.

If you open it with notepad you can edit the code.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;
                                            <- Insert additional code here
// ccc Building Kit  ____________________________________________________
// thanks to Nathan Kell the following code is executed during the game if you press F12
<!--c2--></div><!--ec2-->
 
Back
Top