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

Swords?

fudge dragon

Landlubber
Storm Modder
Is there a way to mod the build mod so that all the swords that were there before are the same and only in the new locations are they random

for example falcinon in oxbay cave, dragons tongue in oxbay dungeon and highlander in redmond dungeon but a random sword/pistol under the tree in oxbay

also is there a way to upgrade those useless pistols i keep finding i have like three badly worn scrapper pistols and realy want to upgrade them
 
oh and another thing how do I change what ships appear at the shipyard

i.e. the dialog shipyard settings

because they are so different from before the build

theres not even an entery for 1 ship let-alone that mile long list i want to shorten somewhat (by putting all the luggers in one random lot, all the xbecks in another and so-on and so-forth
 
<!--QuoteBegin-fudge dragon+--><div class='quotetop'>QUOTE(fudge dragon)</div><div class='quotemain'><!--QuoteEBegin-->also is there a way to upgrade those useless pistols i keep finding i have like three badly worn scrapper pistols and realy want to upgrade them<!--QuoteEnd--></div><!--QuoteEEnd-->There's no such feature yet, but it is soon to come. I already made some working code for a gunsmith; it only need to be fixed and implemented.
 
You mean <i>damn</i>, matey? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Why did ya say that? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/huh.gif" style="vertical-align:middle" emoid=":huh" border="0" alt="huh.gif" /> You seem to be very impatient. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />

I don't think that creating a gunsmith should be as hard as creating the blackmsith was, (from scratch!) so maybe you could have a go at it at home! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" /> Modding is not the knowledge of a select few, anyone can try! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
The fill ship list code is now at the bottom of ships.c and it tests each ship individually.

For items, open itemLogic.c
Find
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(checkattribute(_location,"randitemsstay") && sti(_location.randitemsstay))<!--c2--></div><!--ec2-->
replace with if(true)
 
is there a way to move it back

because i liked the fact that you could not get anything like a battleship in oxbay

because it is not a capital is it
 
It is already like that. Town population is checked, and max class is set accordingly.
Did you see a Battleship availabe at Oxbay? That'd be a bug then. :]
 
<!--QuoteBegin-NathanKell+May 11 2005, 08:18 PM--><div class='quotetop'>QUOTE(NathanKell @ May 11 2005, 08:18 PM)</div><div class='quotemain'><!--QuoteEBegin-->For items, open itemLogic.c
Find
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(checkattribute(_location,"randitemsstay") && sti(_location.randitemsstay))<!--c2--></div><!--ec2-->
replace with if(true)
<div align="right">[snapback]104906[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->

will this still allow me to find random swords in the new random locations
 
Try typing part of that line into the search function. For example "sti(_location.randitemsstay))". Because maybe there is two spaces or a tab used in the file, while the line here on the forum only has one space.
 
Hmm. You're quite right. I can't find it either. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
It wouldent have anything to do with having done what nathenkell said would fix the invisible swords proplem on the bugs post

would it
 
<!--QuoteBegin-Inez Dias+May 14 2005, 07:05 PM--><div class='quotetop'>QUOTE(Inez Dias @ May 14 2005, 07:05 PM)</div><div class='quotemain'><!--QuoteEBegin-->Do you have a line with the word RandItems_SpawnRandItem
in the file itemLogic.c ?
<div align="right">[snapback]105340[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->

that line appears 4 times throughout the file
 
The 4th one should be
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void RandItems_SpanwnRandItem(int _index, aref _location, aref a)<!--c2--></div><!--ec2-->
from there move 13 lines down and you should have
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(checkattribute(_location,"randitemsstay") && sti(_location.randitemsstay))<!--c2--></div><!--ec2-->
if not, post the 20 lines starting with
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void RandItems_SpanwnRandItem(int _index, aref _location, aref a)<!--c2--></div><!--ec2-->
 
Back
Top