16 lines
368 B
Plaintext
16 lines
368 B
Plaintext
// "I want you to set a trap here."
|
|
int StartingConditional()
|
|
{
|
|
if (GetSkillRank(SKILL_SET_TRAP, OBJECT_SELF, TRUE) < 1) return FALSE;
|
|
|
|
object oItem = GetFirstItemInInventory();
|
|
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
if (GetBaseItemType(oItem) == BASE_ITEM_TRAPKIT) return TRUE;
|
|
|
|
oItem = GetNextItemInInventory();
|
|
}
|
|
return FALSE;
|
|
}
|