• 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!

Officer creation

Mudd

Sailor Apprentice
Storm Modder
Hey all,

This forum is an awesome source of information....Thank you all!!!!!! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
Is it possible to create a specific officer to hire at a given tavern? Or, can you create an officer using 'console.c' ? Sory if the questions sound silly <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
For in console.c:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->            ch = CreateOfficer_Cheat(OFFIC_TYPE_NAVIGATOR, "Dan_TG3", 0, ENGLAND, false);
            SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));<!--c2--></div><!--ec2-->
Press F12 to get the officer.
 
<!--quoteo(post=244427:date=Mar 12 2008, 11:56 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 12 2008, 11:56 AM) <a href="index.php?act=findpost&pid=244427"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->For in console.c:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->            ch = CreateOfficer_Cheat(OFFIC_TYPE_NAVIGATOR, "Dan_TG3", 0, ENGLAND, false);
            SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));<!--c2--></div><!--ec2-->
Press F12 to get the officer.<!--QuoteEnd--></div><!--QuoteEEnd-->

Thank you Pieter! Where do I enter that code?
 
Below<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;<!--c2--></div><!--ec2-->in PROGRAM\console.c.
 
<!--quoteo(post=244449:date=Mar 12 2008, 12:24 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 12 2008, 12:24 PM) <a href="index.php?act=findpost&pid=244449"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Below<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;<!--c2--></div><!--ec2-->in PROGRAM\console.c.<!--QuoteEnd--></div><!--QuoteEEnd-->


Hmmmmmmm...I tried that but it didn't work.. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> I must have done something wrong. Unfortunately I can't try again til later....
 
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;

    ch = CreateOfficer_Cheat(OFFIC_TYPE_NAVIGATOR, "Dan_TG3", 0, ENGLAND, false);
    SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));<!--c2--></div><!--ec2-->This doesn't work? Do you see the "Console executed" message on your screen after pressing F12? If not, <a href="http://forum.piratesahoy.net//index.php?showtopic=9234" target="_blank">enable error logging</a> and tell me what's in the possible error.log file.
 
<!--quoteo(post=244636:date=Mar 13 2008, 12:51 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 13 2008, 12:51 AM) <a href="index.php?act=findpost&pid=244636"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;

    ch = CreateOfficer_Cheat(OFFIC_TYPE_NAVIGATOR, "Dan_TG3", 0, ENGLAND, false);
    SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));<!--c2--></div><!--ec2-->This doesn't work? Do you see the "Console executed" message on your screen after pressing F12? If not, <a href="http://forum.piratesahoy.net//index.php?showtopic=9234" target="_blank">enable error logging</a> and tell me what's in the possible error.log file.<!--QuoteEnd--></div><!--QuoteEEnd-->

Nope, it doesn't work. And, when I press F12 it does not say "console executed". Maybe something wrong with my console file...I don't think I changed anything, but maybe I did. Is there a way to re-install that file, or return it to its original state?

BTW thanks for all your help Pieter!!!!
 
What game version are you using?
Please <a href="http://forum.piratesahoy.net//index.php?showtopic=9234" target="_blank">enable error logging</a> as I suggested before and tell me what's in the error.log file in your main directory after pressing the F12 button in your savegame with those lines of code in the console.
 
<!--quoteo(post=244803:date=Mar 13 2008, 11:11 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 13 2008, 11:11 AM) <a href="index.php?act=findpost&pid=244803"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->What game version are you using?
Please <a href="http://forum.piratesahoy.net//index.php?showtopic=9234" target="_blank">enable error logging</a> as I suggested before and tell me what's in the error.log file in your main directory after pressing the F12 button in your savegame with those lines of code in the console.<!--QuoteEnd--></div><!--QuoteEEnd-->

You were right Pieter, I wasn't entering the text properly <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" /> Everything works perfectly now!

Thankd for all your help
 
You're welcome. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
Back
Top