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

Solved How can Import a AOP2 Sword to POTC:NH

BladeC36 and BladeC37 can be sold in stores
That should be the default situation, so no action required there.

and BladeC38 can only be found in any Treasure chest on a ship
Set it to 0.0 for its "rare" value in initItems.c and add it to the "unique" code in that same file.
Then find the Treasure code in PROGRAM\MAXIMUS_functions.c and include a line for it there.
 
@Pieter Boelen
Ok Thanks look
// PB: Unique Blades <--
switch(id)
{
case "blade1" : blade.param.time = 0.05; break; // special case
case "blade24": blade.param.time = 0.05; break; // special case
case "bladeC36": QualitySkipSell = true; break; // special case, PK & JRH (only in stores)
case "bladeC37": QualitySkiySell = true; break; // special case, PK & JRH (only in stores)
case "bladeC38": QualitySkipRand = true; break; // special case, PK & JRH
case "bladeclub": blade.sound = "OBJECTS\DUEL\club2.wav"; break;//JRH
// PB: Who would want to buy this? -->
 
Then find the Treasure code in PROGRAM\MAXIMUS_functions.c and include a line for it there.
Perhaps you mean the function 'FillTreasureChestWithRandomLoot' in "PROGRAM\QUESTS\quests_utils.c"?

The only treasure-related code I can find in "PROGRAM\MAXIMUS_functions.c" is the code to generate a treasure quest. It calls 'FillTreasureChestWithRandomLoot' to put stuff in the chest.

@pirateking: note that this function is only used to put items into a chest which you can find as a result of talking to someone on the street who, if you are lucky, offers to tell you about pirate treasure. Most times these people just give you random advice. If they do tell you about pirate treasure, often the chest is completely empty. In any case, adding code for the sword here will certainly not cause it to appear in random chests such as those you find when boarding enemy ships.

And for "bladeC37", 'QualitySkiySell' still won't work!
 
Perhaps you mean the function 'FillTreasureChestWithRandomLoot' in "PROGRAM\QUESTS\quests_utils.c"?
Yes I do! I forgot @Levis moved that around many months ago. Thanks for catching that. :cheers

In my defence, it was still in "MAXIMUS_functions.c" when I did my "Treasure Quest rewrite"... :unsure

@pirateking: note that this function is only used to put items into a chest which you can find as a result of talking to someone on the street who, if you are lucky, offers to tell you about pirate treasure. Most times these people just give you random advice. If they do tell you about pirate treasure, often the chest is completely empty. In any case, adding code for the sword here will certainly not cause it to appear in random chests such as those you find when boarding enemy ships.
Ah, good point! I missed the "on a ship" bit. :facepalm

Indeed Treasure Chests are the ones in the quests. Chests on ships are just "Chests".
The game doesn't distinguish between "chests on ships" and "chests on shore".
 
Ah ok thanks!

So then i think it is better that i make it to a very Rare Sword (0,05)

Should i use that
// PB: Unique Blades <--
switch(id)
{
case "blade1" : blade.param.time = 0.05; break; // special case
case "blade24": blade.param.time = 0.05; break; // special case
case "bladeC36": QualitySkipSell = true; break; // special case, PK & JRH (only in stores)
case "bladeC37": QualitySkipSell = true; break; // special case, PK & JRH (only in stores)
case "bladeC38": QualitySkipSell = true; break; // special case, PK (very rare)
case "bladeclub": blade.sound = "OBJECTS\DUEL\club2.wav"; break;//JRH
// PB: Who would want to buy this? -->

or should i put BladeC38 in the "IsUnique" List?
 
Remember, "QualitySkipSell" prevents the sword from being sold. With the code shown above, none of the three will ever be available for sale from stores or traders.
 
So then i think it is better that i make it to a very Rare Sword (0,05)
You may have to tweak that number based on gameplay; it could be that "0.05" is even too high and you would need to use "0.01".
Playtesting will tell you.

or should i put BladeC38 in the "IsUnique" List?
If you want it to NEVER EVER show up at random anywhere, then indeed you should add it there. :yes
 
Hello!
@ all Sword Projekt is finish.

But i have a Question:
What causes this code model.period = "" + PERIOD_COLONIAL_POWERS + PERIOD_REVOLUTIONS ; ?

CU
 
That code appears in "initModels.c" and limits the outfit to certain periods. The outfit with that exact line can only appear in the "Colonial Powers" and "Revolutions" periods, i.e. between 1740 and 1789. If you start a game in a year outside those limits, you can not find the outfit.
 
Hello a question to all!

@all
If have me Update finsh and Import all the Files.
I Must i Start a New Game or can i Load me savegame.
 
You're talking about the item, right?
Just load your save and press F11 then.
 
A to @all question:

Is it possible if you in "ItemsDescribe" an item / sword does not enter it then
Does not appear in the stores?
 
Is it possible if you in "ItemsDescribe" an item / sword does not enter it then
Does not appear in the stores?
Not possible. It'll still appear, but without a description.

If you want to stop it from showing in stores, it is initItems.c you have to edit.
 
Oh!

In the Store i only see my first Katana Sword (Bladec36) but
i have two ather Katana Swords (BladeC37 and BladeC38)
that can by bought in Stores.

But i only buy BladeC36 in Stores.
 
Back
Top