32 lines
556 B
Plaintext
32 lines
556 B
Plaintext
|
#include "prc_x2_itemprop"
|
||
|
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
int iResult;
|
||
|
object oA = GetItemInSlot(INVENTORY_SLOT_CHEST,GetPCSpeaker());
|
||
|
if (!GetIsObjectValid(oA))
|
||
|
{
|
||
|
return FALSE;
|
||
|
}
|
||
|
|
||
|
if (GetIsDM(GetPCSpeaker())||GetIsDMPossessed(GetPCSpeaker()))
|
||
|
{
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
if (!GetHasSkill(SKILL_CRAFT_WEAPON,GetPCSpeaker()))
|
||
|
{
|
||
|
return FALSE;
|
||
|
}
|
||
|
if (GetPlotFlag(oA))
|
||
|
{
|
||
|
return FALSE;
|
||
|
}
|
||
|
if (!GetHasSkill(SKILL_CRAFT_ARMOR,GetPCSpeaker()))
|
||
|
{
|
||
|
return FALSE;
|
||
|
}
|
||
|
|
||
|
return TRUE;
|
||
|
}
|