Initial upload

Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
Jaysyn904
2024-03-11 23:44:08 -04:00
parent c4b5794c59
commit 7b9e44ebbb
11454 changed files with 10436475 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#include "prc_x2_craft"
void main()
{
object oPC=GetPCSpeaker();
object oItem = CIGetCurrentModItem(GetPCSpeaker());
// object oNew = IPCreateAndModifyArmorRobe(oItem,1 );
// if (oItem != oNew)
// {
// DestroyObject(oItem);
// AssignCommand(GetPCSpeaker(),ActionEquipItem(oNew,INVENTORY_SLOT_CHEST));
// CISetCurrentModItem(GetPCSpeaker(),oNew);
// }
// show a casual robe
object oNew = IPCreateAndModifyArmorRobe(oItem,3);
CISetCurrentModItem(oPC,oNew);
AssignCommand(oPC, ActionEquipItem(oNew, INVENTORY_SLOT_CHEST));
int nCost = 3000;
int nDC =30;
if (GetIsDM(GetPCSpeaker())||GetIsDMPossessed(GetPCSpeaker()))
{
nCost=0;
nDC=0;
}
CIUpdateModItemCostDC(oPC, nDC, nCost);
}