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.
34 lines
654 B
Plaintext
34 lines
654 B
Plaintext
|
|
#include "prc_x2_itemprop"
|
|
|
|
int StartingConditional()
|
|
{
|
|
int iResult;
|
|
object oA = GetItemInSlot(INVENTORY_SLOT_LEFTHAND,GetPCSpeaker());
|
|
if (!GetIsObjectValid(oA))
|
|
{
|
|
return FALSE;
|
|
}
|
|
int nBase=GetBaseItemType(oA);
|
|
if ((nBase!=BASE_ITEM_SMALLSHIELD) && (nBase!=BASE_ITEM_LARGESHIELD) && (nBase!=BASE_ITEM_TOWERSHIELD))
|
|
{
|
|
return FALSE;
|
|
}
|
|
if (GetPlotFlag(oA))
|
|
{
|
|
return FALSE;
|
|
}
|
|
if (GetIsDM(GetPCSpeaker())||GetIsDMPossessed(GetPCSpeaker()))
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
if (!GetHasSkill(SKILL_CRAFT_WEAPON,GetPCSpeaker()))
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|