• 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 mod help, please...

CatalinaThePirate

Unholy Terror,
Storm Modder
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> mateys!

Found a chance to work a bit on my Sneaky Trader mod, and came up with a couple of questions with which I would appreciate a bit of help...

<b>Concerning SOUND: </b>I made up some specific soundbytes for the different traders you meet, and I need one edited (just cut, nothing fancy) and saved in the same format that the game uses so I can actually use it in the game. I can edit - but for some weird reason I simply cannot save it the way it should be saved. The game is fussy about it, so if someone could please help me with this, I'd be very grateful...

The soundbyte is <span style='color:darkred'>RESOURCESoundsVOICEDut_m_a_071.wav</span> and says "Keep yer cutlass in yer pants or ye'll visit me gibbet!" I'd like it to simply say "Keep yer cutlass in yer pants!" <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#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" /> Thanks... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />

<b>Concerning ITEMS: </b>

1.) I have a set of items I'd like to have unique to my Sneaky Traders - he sells these, but will not buy them back unless he pays very little for them. I ALSO do not want the regular traders to be able to sell, OR buy these items from the main character. (say the trader will say something like, "Sorry but I cannot buy this from you.")

What do I need to do to accomplish this? I already have the items show up for sale when you talk to the guy, but that's as far as I've gotten with it. Having them exclusive would be a great help...

2.) What document sets the prices and amounts for the items? I've edited initItems.c for the items, but the prices I set seem to be different when they show up in the game. ??? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

3.) What creates the rarity of the item? Again, I set the rarity in initItems.c but because these items are not part of what the regular traders sell, I set the seller list up in the dialogs. I can't seem to get a handle on the item parameters...

I can work with it separately but it would mean creating separate dialogs for each different trader... Again, I think I could do it through the dialogs, but if there's a simpler, cleaner way, I'd like to know what to do. <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" />

<b>Concerning other oddities: </b>I have it set up so that if you threaten the Sneaky Trader (reporting him to the guards or beating him up), he will run away. He runs away and fades out, and will eventually return to his same spot. This works great, and I love it! However an odd thing happens when he returns - he is not the same trader. It (oddly) defaults to the FRENCH ST, and I have NO IDEA WHY. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

I have each town with a different trader with different dialog, and it's interesting to have a FRENCH trader there instead of the regular one, but that's not quite the effect I had in mind... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/urgh.gif" style="vertical-align:middle" emoid=":urgh" border="0" alt="urgh.gif" />

I'd either like the original trader to return, or if we're going to have a different trader, it should be a rotating succession of traders (having different guys showing up is better than the same one, actually). So maybe someone can point me in the right direction with this?

(Code provided if necessary, heh...)

I think that's it for the moment... Thanks for whatever input you would care to give! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
The only bit I think I might comment on is item selling... and the solution I use myself is a bit wanting in panache. I just use dialog interfaces for my own unique items, instead of the graphics screen. This allows you to define the item price as 0, which will prevent you from selling it to regular traders, but you can ask for any price you like in the dialog. You can also keep the items random by using random cases in the dialog. I guess the actual price you pay for something is affected by your money skills, which is why even when tailors list one price I end up paying something else. In dialogs you can set the price as static per item (with repetition of items in random cases if you want a higher or lower price), always removed by "addmoneytochar = negative amount".

This way you can also set all the skiptrade values to true, so the items will only ever come up in your dialogs.

But maybe CCC or someone knows how to tweak items sellable in graphical interfaces, which I'd be happy using myself.
 
Here's how I handled the items in dialog -

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#include "DIALOGSSneaky Trader_dialog.h"

void ProcessDialogEvent()

{

    

    ref NPChar;

    

    DeleteAttribute(&Dialog,"Links");

    aref Link, NextDiag;

    makeref(NPChar,CharacterRef);

    makearef(Link, Dialog.Links);

    makearef(NextDiag, NPChar.Dialog);



    ref PChar;

    PChar = GetMainCharacter();

    

    string NPC_Meeting;



//    makeref(d, Dialog);

    

    string iDay, iMonth;

    iDay = environment.date.day;

    iMonth = environment.date.month;

    string lastspeak_date = iday + " " + iMonth;

    

    switch(Dialog.CurrentNode)

    

    {

 // -----------------------------------Äèàëîã ïåðâûé - ïåðâàÿ âñòðå÷à

 case "exit":

     NextDiag.CurrentNode = NextDiag.TempNode;

     NPChar.quest.meeting = NPC_Meeting;

     DialogExit();

 break;

 

 case "exit2":

//      NextDiag.CurrentNode = NextDiag.TempNode;

     NPChar.quest.meeting = NPC_Meeting;

     NextDiag.TempNode = "Second Time";

     DialogExit();

     

 break;



 case "SItems":

     TakeNItems(Npchar,"75lockpick", Rand(4)+1);  // 10/10

     TakeNItems(Npchar,"75prybar", Rand(4)+1);    // 10/12

     TakeNItems(Npchar,"75compass", Rand(4)+1);   // 10/9

     TakeNItems(Npchar,"75deed", Rand(4)+1);      // 10/8



     TakeNItems(Npchar,"75ship", Rand(4)+1);  // 10/15

     TakeNItems(Npchar,"75idol3", Rand(3)+1);     // 10/14

     TakeNItems(Npchar,"75brooch1", Rand(10)+1);  // 10/2

     TakeNItems(Npchar,"75brooch2", Rand(3)+1);   // 10/3

   

     TakeNItems(Npchar,"75sword", Rand(4)+1);     // 10/1  top left

     TakeNItems(Npchar,"75pistol", Rand(4)+1);    // 10/4  top right

     TakeNItems(Npchar,"75idol1", Rand(4)+1);     // 10/7

     TakeNItems(Npchar,"75idol2", Rand(4)+1);     // 10/11



     TakeNItems(Npchar,"75map1", Rand(4)+1);       // 11/6

     TakeNItems(Npchar,"75keys", Rand(4)+1);      // 10/5

     TakeNItems(Npchar,"75brooch3", Rand(4)+1);   // 10/13 bottom left

     TakeNItems(Npchar,"75necklace", Rand(4)+1);   // 10/16 bottom right



     TakeNItems(Npchar,"75wallet", Rand(4)+1);    // 10/6

     TakeNItems(Npchar,"75map2", Rand(4)+1);      // 11/7

     TakeNItems(Npchar,"75map3", Rand(4)+1);      // 11/10

     TakeNItems(Npchar,"75map4", Rand(4)+1);      // 11/11

     

     NextDiag.CurrentNode = NextDiag.TempNode;

     DialogExit();



     LaunchItemsTrade(NPChar);

 break;



 case "First time":<!--c2--></div><!--ec2-->It's basically just like the ItemTrader dialog - only thing is, ALL the items are there. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" /> The way to handle that is with "if/else" commands to create a more random feel, which is what I want. It's `do-able`, just not <i>elegant.</i> <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" /> There is probably a more streamlined and less awkward way to do it, I just don't know how, YET... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />
 
I'll be happy to edit the sound clip for you. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.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" />
 
Saved this, and I'll see whare I can help <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Thank you, Mad Jack, for the offer on the sound clip!! <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" />

Thank you, CCC, for the perusal, I hope you can give me some ideas... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />

Been noodling a bit today, making what will be a packet of files so this can be tested, but it's all in the very early part of development - I mean, I have them walking around, and you can buy items from them, but the tricky part will be what comes next...

See, my concept is that there is one of these guys for each town - and they all pretty much look the same except they have different names... So you'll see one guy on one island and he'll call himself a different name on a different island... The dialog will reflect this in an ongoing joke - you had a different name last time - Oh, you must have met my cousin! or Me, never seen ye before in my life! (That's my story and I'm sticking to it!) <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

That's one level... Then there will be three different skins in varying conditions - one, he looks relatively normal, maybe a few scars... Later, his jacket will be more torn up, and he'll have bruises and cuts and a black eye... Later, you'll see him and he'll have an eyepatch... BUT there's always the chance you'll see him and he'll look FINE... So it's all going to look like there's a `look-alike` group of brothers/cousins - or is it one guy, just traveling around, getting loved by the ladies and getting beaten up by the men who've been cheated or bilked by him...

See, the ladies all love him. This is another aspect - you talk to a citizen, and they'll make that comment! The men hate him, but the women absolutely love him... Heh... <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 then there's the treasure map - which might lead to a marvelous treasure, :Q or it might be a collection of old boots or rusty swords or dirty rags... You never know what might happen... Same with the other items... If you buy a nice piece of jewelry, it might be stolen, and you'll get in trouble with the guards. If you buy a SHIP from him...

<img src="http://www.ganotherapyusa.com/extras/sneaky3.jpg" border="0" class="linked-image" />
(would you buy a used ship from this man?) <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

Will it be a good ship or a poor one ready to sink and unrepairable? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/boom.gif" style="vertical-align:middle" emoid=":boom" border="0" alt="boom.gif" />

There's even a compass that does not point north - but does it lead to treasure? Maybe we can use Barbossa and some skellies in this one, HA!

You get the idea... There are seventeen possibilities to either get bilked or get the better of the deal... It's going to be a fun mod, but it will take a lot more work... <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" />

Started out with a simple idea to have a lockpick to deal with those exploding chests... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> My problem is, I've got a big imagination... Well, maybe that's not such a problem, haha... But knowing what to do is the key...

Whatever anyone can contribute to this, I'd really appreciate it. <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" />
 
Hm, I smell an opportunity for `evil-geniousry`. But you can already imagine what I'd try and add -- grenades or even swords that will either work or randomly explode in your face. Or Leeches.
 
Hee hee hee, how about exploding cigars? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />

We can always add more items to his list of goods - this is what I have now -

Lockpick
Prybar
Compass (that does not point north!)
Deed to "huge tracts of land" <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" />
A Corvette
An Excellent (maybe) Cardinal's Guard
An Excellent (maybe) Scrapper Pistol
3 different Incan idols (maybe they're gold, maybe not, maybe they're CURSED!!!)
A Thiefbuster [TM] wallet that might keep you from being pickpocketed or it might leak coins out of it...
Four pieces of a treasure map
Three brooches and a necklace (possibly stolen)
Keys (to the prison, the town treasury, or the privy)

I've created Items_10 and an Items_11 textures to house the pics, and on #11 I only filled up the four middle pics, so there are twelve yet to be filled... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> I'm open to suggestion! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />

There are a lot of possibilities. I mean, every one of these could be a side quest to treasure or to ruin. <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#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.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" /> The possibilities are endless! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />
 
How about he sells ye the deed te QC brothel,ladies inclusive.I've always wanted te own a brothel an generates profit <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" /> well ye asked <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />
 
<!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->Hee hee hee, how about exploding cigars?   <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />  

We can always add more items to his list of goods - this is what I have now -  
...

There are a lot of possibilities.  I mean, every one of these could be a side quest to treasure or to ruin.   <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />  ;)  :cheers  The possibilities are endless!   <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />[/quote]HArr! <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" /> Don't now why, but somehow Shaklee vitamins an' Amway products an' udder `pyramidal-type` schemes came floodin' into Fred Bob's `werk-frazzled`, `ale-deprived` mind! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /> Mebbe an opportunity tew work from home usin' yer computer! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
Ooooh, deed to the Brothel, WhooHOO!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />

That's astoundingly good, Skull! <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 mean, I'm doing a play on words with that "huge tracts of land", that was an old Monty Python sketch... "she's got HUGE.... (wait for it) ... TRACTS of LAND!" when of course the inference is that she's got huge tits, LOL! <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#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

Hmm, Fred Bob, let's see... Maybe the Sneaky Trader is part of a pyramid scheme... He and all his cousins/brothers/twins... He could offer a franchise, a cut of the deal, if you promise NOT to turn him in to the guards, hee hee!

"...It's what, you say, a (twitch) pyramid? <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" /> Oh no, the last time I got into one of (twitch) THOSE, it fell down around my ears!!! :bbb That (twitch) darned (twitch) Danielle!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" /> (loud nervous scream, sound of bootsteps running away) Noooooooooooo!!!..."

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
[qoute] she's got huge tits, LOL! <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#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /> :[/quote]

ye can say that on de forum <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/love.gif" style="vertical-align:middle" emoid=":luv" border="0" alt="love.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#>/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#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Well, I don't see the censor around... <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#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" /> Nope... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/diomed.gif" style="vertical-align:middle" emoid=":dio" border="0" alt="diomed.gif" /> I think you folks in the Chain Story scared him away, anyhow... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
Seems like the evil genius virus is spreading here <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#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" /> ( How about Dani in the QC establishment? Clad in black leather and wielding a cat_o_nine_tail ? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" /> )


Well, trading and interfaces is something I have hardly done so far. So I can't give you any hints out of experience, but I can tell you what I would TRY

To keep a sneaky item from being offered by normal traders insert this in itemsinitItems.c:

itm.skiptrade = true;

And to mark it as a sneaky item add an attribute of your own creation, e.g.

itm.sneaky = true;

By checking for that attribute you can always identify and sort out these items elsewhere in the program.


The normal item_trader dialog uses the GiveItemToTrader function to select tradeitems. That one is in quests_reaction.c . The original function, before Nathan changed it, looked like this


void GiveItemToTrader(aref ch)
{
int irand;
ref pchar = GetMainCharacter();

DeleteAttribute(ch, "items");

irand = rand(9);
if (irand == 1) {TakeNItems(ch,"jewelry1", Rand(5)+1);}
irand = rand(9);
if (irand == 1) {TakeNItems(ch,"jewelry2", Rand(5)+1);}
irand = rand(9);
if (irand == 1) {TakeNItems(ch,"jewelry3", Rand(5)+1);}
irand = rand(9);
....
if (irand == 1) {TakeNItems(ch,"indian14", Rand(5)+1);}
irand = rand(9);
if (irand == 1) {TakeNItems(ch,"indian15", Rand(5)+1);}
irand = rand(9);
if (irand == 1) {TakeNItems(ch,"indian16", Rand(5)+1);}
}

So Akella used an "unelegant bunch of if/else statements" as well, and maybe you can use that section in the sneaky dialog as well.

Or you insert a heavily condensed version of Nathan's GiveItemToTrader:


ref itm;
int i;
for(i=0; i<ITEMS_QUANTITY; i++) // this loop cycles through all items
{
makeref(itm,Items);
if(!CheckAttribute(itm,"sneaky")) continue; // if it's no sneaky item it is being skipped
if(rand(100)> 50) // 50 percent chance that...
{
TakeNItems(ch,itm.id, Rand(2)+1); // ... the trader gets up to 3 items
}
}


As I said, just ideas, don't know if it really works.


The pricecalculation etc. seems to take place largely in interfaceitemstrade.c. In there is e.g. the function GetTradeItemPrice. The last line of that

return makeint(makefloat(itmprice)*skillModify);

If you want to add any pricechanges try it there.
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /> That `leather-clad` Danielle sounds like something Alan would enjoy making! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

Thanks for the thoughts, CCC, I'll copy them down and digest them later... I am sure they will help... Just right off the top the suggestion about the
"sneaky" attribute (DOH!!!) is a great idea... I already figured out the "skiptrade" thing - I thought I'd enabled that before, but noooooo... I'd forgotten. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />

Thanks again, this will be a big help! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
Eh, I wonder why you'd say that, Cat? I'm subversive, indeed, but not exactly kinky... Actually, I remember seeing a skin like that in one of the A&M `add-on` files. A fully `leather-clad` Danielle.

Owning the brothel would be fun. (And there're some changes I'd like to make to that whole mod... dialogs need corrected, it needs its own loading screen ) in general the thought of owning something would be great. See, like I say, I keep getting zillions of `pirate-dollars` (Disney Dollars? Oh, hey! Cat, if your ST ever refunds your money for a bad purchase, make sure it's in useless Disney Dollars!), which are useless to me when I'd rather have a rep increase or something (and we've all decided the church has become useless in that respect - last time I tried it literally ïncreased"my rep by a factor of zero)...
So, why don't you buy some piece of property in a town, like a tavern or store... Or open your own store and sell off all the crap you find... and then you'd always be welcome to deal in that town even if you're a Horror.
 
<!--`QuoteBegin-alan_smithee`+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->Eh, I wonder why you'd say that, Cat? I'm subversive, indeed, but not exactly kinky...[/quote]Just a little something to add to your cast of nefarious characters, Alan! <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" /> <!--`QuoteBegin-alan_smithee`+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->Actually, I remember seeing a skin like that in one of the A&M `add-on` files. A fully `leather-clad` Danielle.[/quote]Heh, I'll have to take a peek at that one! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /> That's funny! <!--`QuoteBegin-alan_smithee`+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->Owning the brothel would be fun. (And there're some changes I'd like to make to that whole mod... dialogs need corrected, it needs its own loading screen ) in general the thought of owning something would be great.[/quote]And you say you're NOT kinky??? <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#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /> <!--`QuoteBegin-alan_smithee`+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->Oh, hey! Cat, if your ST ever refunds your money for a bad purchase, make sure it's in useless Disney Dollars![/quote] HAR, that's great!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /> <!--`QuoteBegin-alan_smithee`+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->So, why don't you buy some piece of property in a town, like a tavern or store... Or open your own store and sell off all the crap you find... and then you'd always be welcome to deal in that town even if you're a Horror.[/quote]I think you should be able to BUY the shop keeper or the shipwright - invest in their store... In <i><b>Uncharted Waters, New Horizons</b></i> you could invest money at the port and your reputation would increase - you could in effect "buy" the allegiance of the port for your King (or Sultan) and he'd reward you with titles and perks &tc...

That couldn't really be done in this game because there are so few islands - in UWNH you were sailing the WORLD... But I think you could at least pay them enough to deal with you - perhaps after dark when they're supposed to be closed - and all sorts of other <b><i>interesting</i></b> things could go on in the store at night when no one else could get in there... <i>(Shhh, we've got the windows covered so no one can see, come in, come in, and be quiet!)</i>

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/poet.gif" style="vertical-align:middle" emoid=":hmm" border="0" alt="poet.gif" /> Actually, that's a great way to get new things going on in the town - pay a "fee" or the right amount of money to an agent you might "accidentally" meet in the street after being refused service at stores (say you're a horror of the high seas, or an enemy of the state), and you can deal "after dark" - with a someone *not* the regular proprietor of the store, heh... Maybe by using those trap doors into "secret" rooms... Heh...

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> That actually wouldn't be too difficult to set up... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" /> Given you some ideas? <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" /> Hope so! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
<!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->
Deed to "huge tracts of land" <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" />[/quote]
But faaather ... I don't luuuve her!
<!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->
A Corvette [/quote]

I was thinking a fleut. ("Rum Runner")
Tricked out for extra speed, stripped of cannon.
Fake wooden guns, or perhaps 4 cannon but only able to fire chain shot.
Small crew, Maximum = minimum so boarding is a problem.
Designed for two purposes, carry lots of rum into Douwesen and running away.

<!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->
There are a lot of possibilities.  I mean, every one of these could be a side quest to treasure or to ruin.   <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />  ;)  :cheers  The possibilities are endless!   <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />[/quote]

Yep, a "Rum Runner" could get you into both!
 
I like the rum runner idea, Petros! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" /> That's even better than a (maybe) GREAT Corvette... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Or I could have them both... <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" />
 
Here's what I was going to add to get you past the rep problem and those goody `two-boots` not dealing with your bloody arse: Independant little communities offshore some places, all of the smuggler "nation", basically towns composed of ships lashed together, with `scaled-down` versions of stores and shipyards. Just so you wouldn't always have to haul back to QC, which, after I play about ten minutes, has gone too bankrupt to deal with me.

But an underground, `semi-legal` sort of current through the towns would be neat, and work into the illegal weapons and smuggling strain. I just now noticed that some items have an "item start" feature, like the big gold statue you put down Indiana Jones style in the labyrinth, and these three stone statues Akella designed for the game* but never got to implement (I'm pretty sure they were `re-activated` in A&M).

So, similiar to CCC's buried treasure, some items could be made keys that would activate at, say, trapdoors and gates. They'd work same as the gold statue, which in quest_reactions.c questreloads you to a different location -- just on the other side of a gate (once we enlargen the walkpaths) or in a hidden room full of smuggly goods.

--

Ha, oh yeah, and you want a real devious idea I just had this thought last night: Imagine adapting the `first-person` `cannon-firing` mode so you could, when close enough to the ship, use the crosshairs to snipe the little guys running around on deck. It'd be like aiming for the officers, to create panick and increase your chances of a successful boarding. Plus I adore sniping games - steady, breath, aim, pow! and he goes down.
 
Back
Top