I am currently trying to work out what each function in the source code can do to make it possible to make actual mods, rather than small additions in places...
I'll add to this list as i work out what does what......
(Feel free to add on to the list!)
==============================================
<b>Sound functions</b>
==============================================
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PlayStereoSound("notebook");<!--c2--></div><!--ec2-->
Plays the "Logbook Update!" jingle, which is located in AOP2/RESOURCE/Sounds/Interface..
==============================================
<b>Text functions</b>
==============================================
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Log_SetStringToLog(XI_ConvertString("MyMessage"));<!--c2--></div><!--ec2-->
This will show text in the top right corner of the screen, where the Logbook update message shows.. To add your own string, open up;
AOP2/RESOURCE/INI/Texts/russian/common.ini
At the bottom add
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->string = MyMessage,"Hello world! This is a test!"<!--c2--></div><!--ec2-->
===============================================
<b>Item Functions</b>
===============================================
Give an item to the player...
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GiveItem2Character(Pchar, "ITEMREF");<!--c2--></div><!--ec2-->
Change ITEMREF to the id of the item, id's can be found in AOP2/Program/ITEMS/initItems.c
------------------
Check to see if player has an item...
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(CheckCharacterItem(Pchar, "ITEMREF") == 0)
{
// FALSE; Does not have this item.
}
else {
// TRUE; Has 1 or more of this item.
}<!--c2--></div><!--ec2-->
-------------------
Equip an item automatically. (Weapon, Armor, Spyglass ect)
EquipCharacterbyItem(Pchar, "ITEMREF");
==========================================
<b>Money Functions</b>
==========================================
Change money/piasters to specific value..
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.money = 100000;<!--c2--></div><!--ec2-->
--------------
Add onto current money / take away current money..
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.money = pchar.noney + 100;<!--c2--></div><!--ec2-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.money = pchar.noney - 100;<!--c2--></div><!--ec2-->
===========================================
<b>Experience Functions</b>
===========================================
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.rank_exp = 1000000;<!--c2--></div><!--ec2-->
Sets experience to <i>specific</i> value..
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.rank_exp = pchar.rank_exp + 100;
pchar.rank_exp = pchar.rank_exp - 100;<!--c2--></div><!--ec2-->
Add or Take experience from your current exp.
I'll add to this list as i work out what does what......
(Feel free to add on to the list!)
==============================================
<b>Sound functions</b>
==============================================
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PlayStereoSound("notebook");<!--c2--></div><!--ec2-->
Plays the "Logbook Update!" jingle, which is located in AOP2/RESOURCE/Sounds/Interface..
==============================================
<b>Text functions</b>
==============================================
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Log_SetStringToLog(XI_ConvertString("MyMessage"));<!--c2--></div><!--ec2-->
This will show text in the top right corner of the screen, where the Logbook update message shows.. To add your own string, open up;
AOP2/RESOURCE/INI/Texts/russian/common.ini
At the bottom add
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->string = MyMessage,"Hello world! This is a test!"<!--c2--></div><!--ec2-->
===============================================
<b>Item Functions</b>
===============================================
Give an item to the player...
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GiveItem2Character(Pchar, "ITEMREF");<!--c2--></div><!--ec2-->
Change ITEMREF to the id of the item, id's can be found in AOP2/Program/ITEMS/initItems.c
------------------
Check to see if player has an item...
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(CheckCharacterItem(Pchar, "ITEMREF") == 0)
{
// FALSE; Does not have this item.
}
else {
// TRUE; Has 1 or more of this item.
}<!--c2--></div><!--ec2-->
-------------------
Equip an item automatically. (Weapon, Armor, Spyglass ect)
EquipCharacterbyItem(Pchar, "ITEMREF");
==========================================
<b>Money Functions</b>
==========================================
Change money/piasters to specific value..
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.money = 100000;<!--c2--></div><!--ec2-->
--------------
Add onto current money / take away current money..
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.money = pchar.noney + 100;<!--c2--></div><!--ec2-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.money = pchar.noney - 100;<!--c2--></div><!--ec2-->
===========================================
<b>Experience Functions</b>
===========================================
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.rank_exp = 1000000;<!--c2--></div><!--ec2-->
Sets experience to <i>specific</i> value..
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->pchar.rank_exp = pchar.rank_exp + 100;
pchar.rank_exp = pchar.rank_exp - 100;<!--c2--></div><!--ec2-->
Add or Take experience from your current exp.