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:
32
_module/nss/x2_im_setrobe_3.nss
Normal file
32
_module/nss/x2_im_setrobe_3.nss
Normal 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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user