• 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

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.
You sure you set your rare values and your CanBuy/CanTrade values correctly?
I thought you deliberately wanted two of them to be NOT sellable?
 
I think so.
I copy the Codes from BladeC36

Here the codes from initItems and

n = InitBlade(n, "bladeC36","bladeC36", 9, 5, 0.10, 1, 800, 15.0, 30.0, 30, 40, PIRATE, 3, 0, PERIOD_EARLY_EXPLORERS, PERIOD_NAPOLEONIC); // Katana //JRH, fix in items_utilite.c
n = InitBlade(n, "bladeC37", "bladeC37", 9, 6, 0.10, 2, 800, 20.0, 35.0, 30, 60, PIRATE, 0, 0, PERIOD_COLONIAL_POWERS, PERIOD_NAPOLEONIC); // Wado Ichimonji Sabre//BB ( common)
n = InitBlade(n, "bladeC38", "bladeC38", 9, 7, 0.05, 8, 1000, 30.0, 50.0, 40, 60, PIRATE, 0, 0, PERIOD_COLONIAL_POWERS, PERIOD_NAPOLEONIC); // Shusui Sabre//BB (rare+powerfull)

case "bladeC36": QualitySkipRand = true; break; // special case, JRH (only in stores)
case "bladeC37": QualitySkipRand = true; break; // special case, PK (only in stores)
case "bladeC38": QualitySkipRand = true; break; // special case, PK

case "bladeC36": blade.skiprand = true; break; // special case, JRH (only in stores)
case "bladeC37": blade.skiprand = true; break; // special case, PK (only in stores)
case "bladeC38": blade.skiprand = true; break; // special case, PK

--------------------------------------------------------------------------------------
Codes from items_utilite

if(!CheckCharacterItem(ch, "bladeC36")) GiveItem2Character(ch, "bladeC36"); //JRH
if(!CheckCharacterItem(ch, "bladeC37")) GiveItem2Character(ch, "bladeC37"); //PK
if(!CheckCharacterItem(ch, "bladeC38")) GiveItem2Character(ch, "bladeC38"); //PK
 
I think so.
I copy the Codes from BladeC36

Here the codes from initItems and

n = InitBlade(n, "bladeC36","bladeC36", 9, 5, 0.10, 1, 800, 15.0, 30.0, 30, 40, PIRATE, 3, 0, PERIOD_EARLY_EXPLORERS, PERIOD_NAPOLEONIC); // Katana //JRH, fix in items_utilite.c
n = InitBlade(n, "bladeC37", "bladeC37", 9, 6, 0.10, 2, 800, 20.0, 35.0, 30, 60, PIRATE, 0, 0, PERIOD_COLONIAL_POWERS, PERIOD_NAPOLEONIC); // Wado Ichimonji Sabre//BB ( common)
n = InitBlade(n, "bladeC38", "bladeC38", 9, 7, 0.05, 8, 1000, 30.0, 50.0, 40, 60, PIRATE, 0, 0, PERIOD_COLONIAL_POWERS, PERIOD_NAPOLEONIC); // Shusui Sabre//BB (rare+powerfull)[/code]

"bladeC36" is available from PERIOD_EARLY_EXPLORERS to PERIOD_NAPOLEONIC, which is all periods. The other two are only available between PERIOD_COLONIAL_POWERS and PERIOD_NAPOLEONIC.

If your game is set earlier than 1740 then you will not see "bladeC37" or "bladeC38" because PERIOD_COLONIAL_POWERS starts in 1740.

Code:
case "bladeC36":       QualitySkipRand = true;     break;  // special case, JRH (only in stores)
case "bladeC37":       QualitySkipRand = true;     break;  // special case, PK (only in stores)
case "bladeC38":       QualitySkipRand = true;     break;  // special case, PK

case "bladeC36":       blade.skiprand  = true;   break;      // special case, JRH (only in stores)
     case "bladeC37":       blade.skiprand  = true;   break;      // special case, PK (only in stores)
     case "bladeC38":       blade.skiprand  = true;   break;      // special case, PK
Remember, "skiprand" means it can't be found in chests, "skipsell" means it can't be sold. With these lines, "bladeC38" should be available to buy, not to find, the same as the others.

Even if an item is supposed to be available to buy, and you are at a high enough character level, it may not be available in all stores. Books are a good example of this - most of them have fairly low "minlevel", and "rarity" set to 0.10, yet you may have to look in several different stores before you find them.
 
"bladeC36" is available from PERIOD_EARLY_EXPLORERS to PERIOD_NAPOLEONIC, which is all periods. The other two are only available between PERIOD_COLONIAL_POWERS and PERIOD_NAPOLEONIC.

If your game is set earlier than 1740 then you will not see "bladeC37" or "bladeC38" because PERIOD_COLONIAL_POWERS starts in 1740.
Good catch! :onya

Even if an item is supposed to be available to buy, and you are at a high enough character level, it may not be available in all stores. Books are a good example of this - most of them have fairly low "minlevel", and "rarity" set to 0.10, yet you may have to look in several different stores before you find them.
If I recall, I did figure out a trick to make items show up regardless of player level.
I applied that to the buyable maps. Can't remember how that works, but something was done with that.
 
If I recall, I did figure out a trick to make items show up regardless of player level.
I applied that to the buyable maps. Can't remember how that works, but something was done with that.
Maps also don't always appear. They, too, need to be hunted down at various stores and street traders. And for some reason I usually find gold armour only, or mostly, in Spanish colonies. It's not supposed to be limited to Spain, and does sometimes show up in other places too. But once I have both the level and the money, I try to find some excuse to go to San Juan so I can combine some quest action with a shopping trip. :D
 
Maps also don't always appear. They, too, need to be hunted down at various stores and street traders.
True. But their appearance doesn't depend on the player level anymore like with pretty much all other items.
 
"PROGRAM\Periods.c" should tell you everything about periods. But for dates:
PERIOD_EARLY_EXPLORERS: 1500 - 1599
PERIOD_THE_SPANISH_MAIN: 1600 - 1679
PERIOD_GOLDEN_AGE_OF_PIRACY: 1680 - 1739
PERIOD_COLONIAL_POWERS: 1740 - 1769
PERIOD_REVOLUTIONS: 1770 - 1789
PERIOD_NAPOLEONIC: 1790 - 1830

"One Piece" is set in a fictional world, so if you're importing into the Caribbean then you can probably choose whichever date you like. When I wrote up the character definition for Monkey D. Luffy, I gave him a start year of 1720 for no reason other than it's 2017 with the first and last halves swapped round. If you're using that date then you're playing in "Golden Age of Piracy".
 
Cool UpdateV1 Works.
Thanks to @Grey Roger , @Jack Rackham , @Pieter Boelen for your Help!

My next step will be:
* To make BladeC38(Shusui Katana) Rare
* Make BladeC39(Navy Katana) Rare and that the Sword can only be found
and can't be bought in store, an the Sword starts in this periode: PERIOD_GOLDEN_AGE_OF_PIRACY"

I Think i will be finsh next Week!

CU PK
 
Last edited:
Back
Top