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

Adding Item

Raze

Landlubber
Hi again <img src="style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />

How can i get like spyglass 4 and diff weapons???
What do I need to modify or write??

TY <img src="style_emoticons/<#EMO_DIR#>/duel_pa.gif" style="vertical-align:middle" emoid=":ixi" border="0" alt="duel_pa.gif" />
 
Open PROGRAM\ITEMS\initItems.c and see which items there are available in the game.
Assuming you have a Build mod installed, open PROGRAM\console.c and below <i>ref pchar = MainCharacterIndex();</i>, add a line <i>GiveItem2Character(pchar,"[itemID]");</i>
[itemID] is the ID of the item that you find in initModels.c.

Add a seperate line for all the items you want, each time changing the itemID. Then load up your game, press F12 and you should get those items.

Note: Since I am not near my game right now, the above is written from memory. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
<!--quoteo(post=307187:date=Mar 17 2009, 02:38 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 17 2009, 02:38 PM) <a href="index.php?act=findpost&pid=307187"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Open PROGRAM\ITEMS\initItems.c and see which items there are available in the game.
Assuming you have a Build mod installed, open PROGRAM\console.c and below <i>ref pchar = MainCharacterIndex();</i>, add a line <i>GiveItem2Character(pchar,"[itemID]");</i>
[itemID] is the ID of the item that you find in initModels.c.

Add a seperate line for all the items you want, each time changing the itemID. Then load up your game, press F12 and you should get those items.

Note: Since I am not near my game right now, the above is written from memory. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

So its like this:

void ExecuteConsole()
{
ref pchar = GetMainCharacter();
ref ch;
int i;
int limit;
<b>GiveItem2Character(pchar,"[itemID]");</b>
 
Yes, that should work. When you add the itemIDs in the function, be sure to keep the ""'s.
So it'd look something like this: <i>GiveItem2Character(pchar,"blade6");</i>
 
<!--quoteo(post=307194:date=Mar 17 2009, 03:04 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 17 2009, 03:04 PM) <a href="index.php?act=findpost&pid=307194"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Yes, that should work. When you add the itemIDs in the function, be sure to keep the ""'s.
So it'd look something like this: <i>GiveItem2Character(pchar,"blade6");</i><!--QuoteEnd--></div><!--QuoteEEnd-->


Ok!

Thx!!! <img src="style_emoticons/<#EMO_DIR#>/bow.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="bow.gif" />
 
Back
Top