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

Cap'n Cornish's First MOD release!

Cap'n Cornish

Landlubber
Avast ye scury curs! I've been creatin me first MOD for ye all to see!

A simple yet effective mod for ye lubers who like extra items that enhance ye skills.

Basically my first MOD be three Chart Journals, Basic, Intermediate & Advanced. What they do is they add 1 to your sailing ability when ye buy each of em. See avin your charts makes it so that ye can sail better as ye now where your goin then.

Basically I used the Great Zen Items MOD and the picture of Rheims Journal for this MOD they are restricted to being bought at shops only, I'm trying to figure how you can restrict them to being bought at stores only, so you do need Great Zens Items MOD which is included in the Build 11 MOD.

So without further adieu heres the bit o'code ye need and instructions on how to make it work.

Firstly find the following initItems file in this directory:

Pirates of the CaribbeanPROGRAMITEMS.

Then at the bottom of the GreatZen Item mod section, (in this file) identified by this phrase about 2 thirds of the way down the file.

// GreatZen Items Mod

You need to add the following code below, between the dotted lines is what ye need to insert!
-------------------------------------------------------------------------------------
makeref(itm,Items[n]);
itm.id = "Chart Journal (Basic)";
itm.name = "itmname_Chart Journal (Basic)";
itm.describe = "itmdescr_Chart Journal (Basic)";
itm.model = "";
itm.picIndex = 8;
itm.picTexture = "ITEMS_4";
itm.skill.sailing = 1; // GreatZen
// NK -->
itm.skiptrade = false; // can only buy
itm.skiprand = true;
itm.skipequip = true;
// NK <--
// itm.shown = false;
itm.price = 500;
itm.minlevel =0;
itm.rare = 0.9;
n++;

makeref(itm,Items[n]);
itm.id = "Chart_Journal (Intermediate)";
itm.name = "itmname_Chart Journal (Intermediate)";
itm.describe = "itmdescr_Chart Journal (intermediate)";
itm.model = "";
itm.picIndex = 8;
itm.picTexture = "ITEMS_4";
itm.skill.sailing = 1; // GreatZen
// NK -->
itm.skiptrade = false; // can only buy
itm.skiprand = true;
itm.skipequip = true;
// NK <--
// itm.shown = false;
itm.price = 1000;
itm.minlevel =5;
itm.rare = 0.45;
n++;

makeref(itm,Items[n]);
itm.id = "Chart Journal (Advanced)";
itm.name = "itmname_Chart Journal (Advanced)";
itm.describe = "itmdescr_Chart Journal (Advanced)";
itm.model = "";
itm.picIndex = 8;
itm.picTexture = "ITEMS_4";
itm.skill.sailing = 1; // GreatZen
// NK -->
itm.skiptrade = false; // can only buy
itm.skiprand = true;
itm.skipequip = true;
// NK <--
// itm.shown = false;
itm.price = 1750;
itm.minlevel =10;
itm.rare = 0.225;
n++;
-------------------------------------------------------------------------------------

Then ye need to go to the ItemsDescribe file in this directory:

Pirates of the CaribbeanRESOURCEINITEXTSENGLISH

and add the code between the dotted lines beneath this entry

; GreatZen <--

itmname_CursedCoin {Aztec Coin}
itmdescr_CursedCoin
{
Large golden coins with a skull depiction. You don't like the look of them.
}

-------------------------------------------------------------------------------------

; GreatZen <--

itmname_Chart Journal (Basic) {Basic Chart Journal}
itmdescr_Chart Journal (Basic)
{
A Journal contain basic charts of the Archipelago, it will allow you to navigate easier.
}

itmname_Chart Journal (Intermediate) {Intermediate Chart Journal}
itmdescr_Chart Journal (Intermediate)
{
A Journal contain slightly more advanced charts of the Archipelago, it will allow you to navigate slightly easier than the basic charts enable you too.
}

itmname_Chart Journal (Advanced) {Advanced Chart Journal}
itmdescr_Chart Journal (Advanced)
{
A Journal contain Advanced charts of the Archipelago, it will allow you to navigate to an advanced standard.
}

-------------------------------------------------------------------------------------

Thats it just nake sure you reinitialise by pressing the I key on your keyboard once you've loaded up a game!

Let me know what ye guys think but remember it is me first MOD that I have released as I know it works, well it does for me any way hehehe!

Eventually if I can get someone to add the interior to a town for me in one of the buildings I will try and create a Chandlers with more items like this in, for example a compass, my chart journals, flint locks for the cannons to upgrade cannon skill, varying quality grappling hooks for uping grappling ability. New lenses for your spyglasses to upgrade your accuracy, doctors medical kits for uping defence ability, carpenters kits for uping repair ability and sail makers kits. An accounts book (maybe available from the loan shark? if this is possible?) for uping your commerce ability. New cannon equipment for uping your cannons and acuracy abilities.

Please could someone tell me how to add new pictures for these different items and explain or even help me make a Chandlers on Redmond.

Perhaps the guy that made the swordsmith MOD is interested in helping me make this possible as he already has experience of doing this?

I would really like some assistance in making this possible though.

Please lemme know if you'd like to help me,

regards,

Cap'n Cornish
 
It sounds like a great idea, but I have one question. Is there a safeguard to prevent someone from buying the Intermediate or Advanced charts <i>before</i> they've purchased the Basic charts? Like a prerequisite of some sort, that kind of thing.

Either way, it's a great addition. Keep up the good work, mate! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/pirate2.gif" style="vertical-align:middle" emoid=":p:" border="0" alt="pirate2.gif" />
 
hey cap'n cornish,

the item pictures are stored in RESOURCETexturesINTERFACES. items8.tga.tx has some free slots on it, you could put your new item pictures in there? (use txconverter, dowloadable from the "tools of the trade" thread, to convert between .tga.tx and .tga formats; .tga format can be edited in many graphics programs, such as adobe photoshop.)

then have a quick look at RESOURCEINIINTERFACESpictures.ini; find
<b>[ITEMS_8]</b> and you see that the coordinates of all 16 of the slots in the items_8 file are listed there, itm1, itm2, itm3 etc., going left to right, top to bottom, so work out which one refers to where you put your new image.

then in your item definitions, edit the following:
itm.picIndex = 3;
itm.picTexture = "ITEMS_4";

change the bottom line to "ITEMS_8", and change the top to whichever slot you used to put your new images in.

mmkay?
 
Kieron - I've looked at these image grids before, for a failed attempt at my own new weapons... We could add more grids, right? Start with a whole new blank one, theoretically keep adding dozens, and they'll work so long as the image and slot references for individual items are correct?

Cap'n - I could help you design and place a store somewhere, and design a shopkeep skin, if you have some ideas how you want them all to look and where you want them to be.
 
Alan_smithee, thanx for your offer please I would be greatful for your help. Theres a place in Redmond, that has the same entrance to that of the dungeon somewhere else on the redmond town thats locked i assume with the right tinkering it can be adjusted to be unlocked and named something like Redmond Chandlers, and have the interior of another store like the one on douwesen maybe? then i suppose we wud av to decide on the shop keepers dialogue but it more or less be the same as any other store keeper i assume?

pm me if ye want to help out with a list of details you need from me.
 
Hey iamthejarha My fail safe is the fact that you have to be of certain higher levels to buy the advanced than that for the intermediate and higher for the intermediate than the basic so yea if you cant buy it before you at a certain level.
 
Sent you a PM, Cap'n.

Oh, and are you thinking of a dialog or graphical interface for buying from him? Not that I could do a lot to help, either way, but it's good to know.
 
<!--`QuoteBegin-alan_smithee`+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->Kieron - I've looked at these image grids before, for a failed attempt at my own new weapons... We could add more grids, right? Start with a whole new blank one, theoretically keep adding dozens, and they'll work so long as the image and slot references for individual items are correct?[/quote]

yeh, they should work just fine if you keep adding more and more. whenever the game wants to display an image, it always needs the 'group' name (in this case [IMAGE_8]) and the image name (in this case the image name is constructed automatically from "itm" + the picture number). as long as those two are defined in pictures.ini it should come out fine... (then again, that seems way too easy... potc always seems to try to make it difficult for you <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> )
 
No kidding. It all seems so simple, till you foul it all up with one bad line of code and hafta reinstall.

Say, could the ModHelper be made to scan code before using it in the game, to check for potential errors ahead of time?
 
Rite okies I was thinking maybe have him in a store but use the tent merchants interface for buying the objects but only the chandlers stuff shows up in it, e.g. you cant buy and sell your swords and jewels from him. If this is not possible then I assume that the store interface would have to be used and altered?

I've got my new pics working I will attempt to pack them all up in a POTC file, if only I knew how to host it on the web cud someone please explain how i cud upload it here please?
 
Also I've managed to bump up the skills amount so that the items still work in adding extra skill, e.g. the charts now make my sailing ability 13 if i have all 3 charts, but i cant manually add more skills to each section of skill if i have extra skills at the bottom of the screen???

how do i get around this?
 
Back
Top