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

Modding question

freaker

Landlubber
I tried to add a function to the console, which gives me all the totems. So I made it, but the totems are useless. No icon appears when I pass through the sacrificial stone. How to made it work?

PS: I tried to get the items with two different functions: TakeNItems and GiveItem2Character

The result was the same
 
I haven't tested it, but you can try activate betatestmode in the debug window (bottom right), and buy the totems from a shop, see if that works.
 
<!--quoteo(post=328690:date=Jun 14 2009, 04:44 PM:name=freaker)--><div class='quotetop'>QUOTE (freaker @ Jun 14 2009, 04:44 PM) <a href="index.php?act=findpost&pid=328690"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->what does this betatestmode exactly do?<!--QuoteEnd--></div><!--QuoteEEnd-->

Well....you have DEV-Mode, you can work like a GM, godmode, get items, toggle on/off sea-encounters and many more.

If you have betatestmode on, hit F11 ingame to see all commands, but NEVER hit "OK" or you port instant to CoAS.
Use X to close.

To aktivate betatestmode go to: c/program/playlogic/AoP2/program open "_mod_on_off" textfile with editor and set "#define MOD_BETTATESTMODE" to "on"

Mfg
Caduryn
 
that's the console <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> but in there u can find installation menu;) there's also betatestmode option.
 
There's no difference between TakeNItems and GiveItem2Character, except that the first you can use to give you several items.
 
Ok <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> I made a small change in Program/scripts/utils.c and made the merchants to sell you all the totems you don't have <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Later I'll upload the file if someone want it <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

But the question still remains: why the hell the totems added by giveitem2character function are useless?

Pieter, where can I find these functions?(which file?)

Can someone give me documentation of the game functions, cause I'm interested in modding and want to add some quests to the game <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

PS: Is there a walkthrough about "how to add a quest"?
PS2: For 13 of the totems the chance to be found by merchant is 1:200 <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /><img src="style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />D:D for the rest the chance is 1:10 :p
 
<!--quoteo(post=328690:date=Jun 14 2009, 10:44 PM:name=freaker)--><div class='quotetop'>QUOTE (freaker @ Jun 14 2009, 10:44 PM) <a href="index.php?act=findpost&pid=328690"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->what does this betatestmode exactly do?<!--QuoteEnd--></div><!--QuoteEEnd-->

Not sure what it does exactly, but with betatestmode on, you can buy every item available in the game at the store, and every ship available at the shipyard.
So it might work for the totems, I haven't tested it.
 
didn't know that... I guess my eforts in modding the game were in vain <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

anyway, here's the "hack" -> <a href="http://forum.piratesahoy.net//index.php?showtopic=13725" target="_blank">http://forum.piratesahoy.net//index.php?showtopic=13725</a>
 
<!--quoteo(post=328735:date=Jun 14 2009, 08:16 PM:name=freaker)--><div class='quotetop'>QUOTE (freaker @ Jun 14 2009, 08:16 PM) <a href="index.php?act=findpost&pid=328735"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Pieter, where can I find these functions?(which file?)<!--QuoteEnd--></div><!--QuoteEEnd-->I don't even have the game. <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
I can't seem to find the function itself in PotC either; maybe it's one of those base functions established in the MODULES folder?
 
Back
Top