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

Sneaky Trader turns into a `mini-quest`

Thanks CCC. If I can wrap my mind around it and make something of it I'll be elated... but for now I can suffice to bow to your knowledge.
 
Okay, bit of an update on this mod... I've not been much in the mood to do this lately (overstress, ick!) but I've been trying to get around it and make some progress - and finally I did! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />

It ain't elegant but it works - I got the guys to regenerate the way I want them to return to their posts! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> HOWEVER, odd things are now happening... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

I set some "win conditions" so that presumably the correct character would generate in the correct spot, but they are not behaving the way I think they should.

Case - I tested this on Conceicao - at the port - and things happened just fine except that when he regenerated, he was the Sneaky Trader character from FdF - not Conceicao (yes, there are slight differences)! I don't know why! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />

The others have done the same thing - and the English (Redmond) character does not speak his audible intro line at all. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/urgh.gif" style="vertical-align:middle" emoid=":urgh" border="0" alt="urgh.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />

I'm going to bang on this some more tonight... Hopefully I'll get somewhere with it. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Dunno why it's just not BEHAVING!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" />

And now I'm trying to work out a proximity check for these guys too - I want him to come to you, if you get too close to him, and initiate the conversation... Pesty salesman... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Now if I could only get him to carry his items instead of what every trader carries, I'd be delighted! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" /> <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" />
 
I don't even know what the Sam Hill you'r talking about. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> That code stuff is all gobably gook to me anyway. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

But I have faith in ya Catalina. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" /> Just keep plugin' away gal, you'll get it right. <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" />
 
Ah, thanks, EP... <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" /> A year ago the code was all gobbledegook to me, too! I learned... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> <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" />

I did manage to debug a couple of typos that were causing my items to not show up - but still have not nailed down that weird "French bug". <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Strange.

Now here's a couple of posers for ya -

I have four pieces of a treasure map, which I'd like to use as a treasure hunt generator... I was thinking that there should be some way to enable that nice worldmap compass (perhaps smaller) for walking on land???

And a question about BuildSettings.h and `re-writing` it on the fly. Is it possible? I want to have the lockpick shown here - <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    makeref(itm,Items[n]);

    itm.id = "75lockpick";

    itm.name = "itmname_75lockpick";

    itm.describe = "itmdescr_75lockpick";

    itm.model = "";

    itm.picIndex = 10;

    itm.picTexture = "ITEMS_10";

    itm.skiptrade = true;

    itm.skiprand = true;

    itm.skipequip = true;

    itm.skill.Sneak = "2";

    itm.skill.hidden = 1;

    itm.price = 400;

    itm.minlevel = 0;

    itm.rare = 0.9;

    n++;<!--c2--></div><!--ec2-->to disable the boobytraps on the chests. I don't want it to disable the difficulty of getting into the chests, I just want it to disable the boobytraps. Is there a way to do that, I'm guessing through quests_reaction.c ?

As I have the items set up now, they show in a merchant scroll nicely, but even if it shows there are 5 of one item, I can only buy one. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> I don't understand what command changes that. Anybody???

Also... The way I have the items set up, they generate specifically for each Sneaky Trader (these items are NOT available through regular merchants). I wanted to have them random with rarity like the items you get from the merchant or any item trader. Do I have to write a new items.c for my Sneaky Trader, or perhaps add to items.c so as to designate the Sneaky items as only for the Sneaky Trader? I am lost as to how to do this (I can guess), and would appreciate a push in the right direction.

THANKS for your input! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
I can't help you with the traders, but IIRC the boobytrap code is in itemsitem_logic.c
Will be back with a lockpick code tomorrow.
 
<!--QuoteBegin-Admiral8Q+--><div class='quotetop'>QUOTE(Admiral8Q)</div><div class='quotemain'><!--QuoteEBegin-->The code! All the code! Arrrrgggh!!!
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

You mean
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->The code! It's all in the code! Horrraayy!!!<!--QuoteEnd--></div><!--QuoteEEnd-->
right? <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 I don't post it here to show off but to show how <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

True, it looks very confusing and overwhelming at first sight, and 18 months ago I also felt like <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

But if you start with small files and simple things you must be no Newton to work yourself in.
 
This section in ItemLogic.c explodes the chests if the if(... condition is met:

if(rand(100)+makeint(chr.skill.sneak)+NO_MINES < 20 && chr.location!="Tutorial_Deck")
// bf Scheffnow 08mar
{
Log_SetStringToLog("Boobytrapped !");
Explosion (chr, rand(20)); // ccc 28jan05
}
else
{
PlaySound("AMBIENTJAILjail_door2.wav");
LaunchItemsBox(&ar);
}


To make Cat's lockpick work we must only add a further condition "if the character has NO lockpick" explode. In PotC C this would read:

!CheckCharacterItem(chr,"75lockpick")

(the "!" in front means NO. " CheckCharacterItem(chr,"75lockpick") " would mean "if chr HAS a 75lockpick")
So we add this as third condition to the if check


if(!CheckCharacterItem(chr,"75lockpick")&&rand(100)+makeint(chr.skill.sneak)+NO_MINES<20&&chr.location!="Tutorial_Deck")
// bf Scheffnow 08mar; item check for Sneaky Trader Feb05
{
Log_SetStringToLog("Boobytrapped !");

and the boobytrap explodes only if you have NO lockpick AND the other conditions are met.

The file ItemLogic.c will be in the SWAK anyway, so I'll already include this lockpick check.
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /> Cool, thanks CCC! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" /> Have some rum! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/beer2.gif" style="vertical-align:middle" emoid=":beer" border="0" alt="beer2.gif" /> <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" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
I just asked a similiar question elsewhere... locked doors possible? I can think of a few spots in town that could be little supply sheds, and you'd sneak in and steal some stuff, maybe even cargo goods. And randomly someone could be in there and attack you or lower your rep.

Or, if you're feeling piratical... there are times I find myself needing to spend the night in a place where I'm unpopular, and since the tavernkeeper cowers and the residents yell at me, I hafta wander the streets like a stray dog for hours... I'd rather sneak in some place and sleep even in squalor.
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> Sounds like another mod! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" />

If it was me, I'd go find someone's vegetable garden and help myself to dinner - and breakfast in "bed"! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
I'm thinking about that too... enlargening a few outdoor path patches to get you past `fenced-off` but flat areas. Just haven't gotten around to it; I've been actually playing the game. Haven't gotten this far for nearly a year, honest.
 
There is a lovely patch of flowers & such next to the Townhall on Redmond... I've often taken a look over there and thought, well if they went through the trouble of making the garden, why can't we walk there?

Could be a lovely place to court a young lass, with all the flowers... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/flower.gif" style="vertical-align:middle" emoid=":ty" border="0" alt="flower.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
Ahhh that sounds just the place fer this here pirate. In fact, before I was a pirate, I was a young gardner. Oh those where the days. Back then I planted daiseies for people, now I raise daiseses over people....

*Sits back and drinks his rum.* <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" />
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/beer2.gif" style="vertical-align:middle" emoid=":beer" border="0" alt="beer2.gif" /> Ahhh, the memories! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/duel_pa.gif" style="vertical-align:middle" emoid=":ixi" border="0" alt="duel_pa.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/slap.gif" style="vertical-align:middle" emoid=":slap" border="0" alt="slap.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/poet.gif" style="vertical-align:middle" emoid=":hmm" border="0" alt="poet.gif" /> <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" />
 
Back
Top