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.
33 lines
815 B
Plaintext
33 lines
815 B
Plaintext
#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,1);
|
|
CISetCurrentModItem(oPC,oNew);
|
|
AssignCommand(oPC, ActionEquipItem(oNew, INVENTORY_SLOT_CHEST));
|
|
|
|
int nCost = 500;
|
|
|
|
int nDC =20;
|
|
|
|
if (GetIsDM(GetPCSpeaker())||GetIsDMPossessed(GetPCSpeaker()))
|
|
{
|
|
nCost=0;
|
|
nDC=0;
|
|
}
|
|
CIUpdateModItemCostDC(oPC, nDC, nCost);
|
|
|
|
}
|