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

Blacksmith mod v0.1

RobC

Landlubber
Well, it's done (for now). A functional version of the blacksmith. Note that it's functional, not pretty or great <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />.

Only problem is, how can I upload it? I went to mods.piratesahoy.net and signed up there, then signed in, but it doesn't seem to have any links that allow you to upload a file...

Once I get it uploaded, you can find the blacksmith in the port of Douwesen, he currently has the blaze skin.
Prices are calculated by adding the retail prices of the blades from the current quality to the desired quality. Thus when you have a blade that is badly worn and repair it to good, you pay worn price + average price + good price. This is to make sure a newly starting player can't just go and get himself the greatest sword.

I'll continue on this later on, first I have some other business to attend to... Any feedback is greatly appreciated!
 
you can upload your mod at <a href="ftp://ftp.piratesahoy.net" target="_blank">ftp://ftp.piratesahoy.net</a>. the login and password are in a topic at the top of this forum <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

i don't understand about the prices; does that mean that to upgrade to the next level, you have to pay the price of a whole new sword? but why wouldn't you just buy a new sword?! shouldn't it work out the difference between the prices ((buying price of desired level of sword) minus (selling price of current level of sword)), maybe with some profit for the blacksmith too?
 
I just tried (sorry, missed it at first), but at least through the windows xp ftp function it won't let me upload. Doesn't show any errors, it tells me it's calculating the time needed, and then nothing... I'll try some ftp client before making a fuss over that <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />

And about the price... I've given that some thought before. But seeing that a starting player shouldn't wave a kickass sword I kind of have to make it like this. And I wanted to have a penalty, say I got the level to wave an average flamigera around, I really shouldn't have an excellent one, unless I got tons of money... Through this blacksmith you can get your hands on swords that you won't get as a random or a trade item until ten or so levels up.

[fictive example]
PlayerA starts with an average rapier, which is worth 500 gold pieces. A fine rapier costs 2000 gold pieces, a good one 1000. He walks up to a blacksmith and pays 1500 gold, and is waving around a fine rapier, doing 10x as much damage as any of his opponents as he's a level 1 player. Normally he wouldn't get a fine rapier until he was at least level 10 or 11 or so.

See the disturbance in game balance you got here? In my case he'd have to pay 1000 + 2000 = 3000 to repair it, causing less disturbance. I see the blacksmith as a novelty for the rich, not an easy cheat for the starters.

But if people agree on the fact that it should be like you say (which I agree is the common sense way to go) then ofcourse it can be easily changed.

Thanks for you feedback! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Yours,
Rob
 
nono, the selling price of a rapier is lower. would be paying the difference between the selling price of your sword versus the buying price of the upgraded sword.

plus, don't forget, a level one player, just `brand-new` started out the game, is <i>entirely</i> welcome to go to the shop, sell his average rapier and buy a fine rapier, paying the difference between the selling price of his sword and the buying price of the sword he wants.

in fact, when i used to play potc `pre-build`, i would *always* sell my basic sword for a schiavona in oxbay port - well worth it - and of course i would always trade in my basic sword against the price of the schiavona.

so by adding in the blacksmith you're really not upsetting the balance of the game, the player can already `part-exchange` average swords for good swords and good swords for fine swords, etc. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

and i disagree that he wouldn't get a fine rapier till level 10 or 11... by level 10 or 11 i reckon the player is coming to the end of the 'normal' swords and beginning to consider rare swords... depends how you play i suppose <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Umm... ok, I'm convinced <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />. You're right when you say that. I was scared that it would allow the user to get swords he really shouldn't get yet for a far too low price. I'll change that.

I also noticed a bug... you don't have to pay yet! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/blush.gif" style="vertical-align:middle" emoid=":eek:ops" border="0" alt="blush.gif" />:

Anyways, I uploaded it for what it is now, so if Keith will add it to the files list on the website (it's in the gameplay mods folder) <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />.

I'll continue working on this, in the mean time, let me know what you guys think!

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Ehh, so how does `potc-c` work with reference pointers?

What I want to do is have one function that searches for a blade in the BladeItems array. When it finds it, I want to return a reference to that blade item.

bool GetItemRefByID(string BladeID, ref BladeRef)
{
makeref(BladeRef, BladeItems[x]);
return true;
}

ref refBlade;
if (GetItemRefByID(BladeID, refBlade))
{
trace (refBlade.price);
}

It always tells me that I'm using an uninitialised reference. How do you specify that the ref parameter is output? I already tried "out", but that doesn't seem to work.
 
Ok, solved that with a workaround. But now I've stumbled upon a problem I really don't know a solution to.

When my script reads the value of a worn dagger, it returns 500. When I go to a trader, he tells me the price of a worn dagger is 24.
Is my script getting the incorrect price or is there a conversion of the price in the trading scripts or something?

I now get the price property of an element in the BladeItems array.
 
I uploaded a new version of the mod, which fixes all known bugs.

Note to Keith (or any mods admin), I uploaded it in the following folder:
/`Upload-Download` Folder/POTC MOD'S/Gameplay/RobC - BlacksmithMod.zip

If you could link it from the site that would be great <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />.

Any feedback is welcome. I'll continue working on it tomorrow... if I have the time. I'll try to get him his very own blacksmith's workshop!

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/cheers.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="cheers.gif" />:
 
Back
Top