44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
//69_hench_hasdual
|
|
//Swap equipped melee weapons
|
|
//Created By: 69MEH69
|
|
//Created On: APR2005
|
|
|
|
|
|
int MatchSingleHandedWeapon(object oItem)
|
|
{
|
|
switch(GetBaseItemType(oItem))
|
|
{
|
|
case BASE_ITEM_BATTLEAXE:
|
|
case BASE_ITEM_CLUB:
|
|
case BASE_ITEM_DAGGER:
|
|
case BASE_ITEM_HANDAXE:
|
|
case BASE_ITEM_KAMA:
|
|
case BASE_ITEM_KATANA:
|
|
case BASE_ITEM_KUKRI:
|
|
case BASE_ITEM_LIGHTFLAIL:
|
|
case BASE_ITEM_HEAVYFLAIL:
|
|
case BASE_ITEM_LIGHTHAMMER:
|
|
case BASE_ITEM_LIGHTMACE:
|
|
case BASE_ITEM_LONGSWORD:
|
|
case BASE_ITEM_MORNINGSTAR:
|
|
case BASE_ITEM_RAPIER:
|
|
case BASE_ITEM_SICKLE:
|
|
case BASE_ITEM_SCIMITAR:
|
|
case BASE_ITEM_SHORTSWORD:
|
|
case BASE_ITEM_WARHAMMER: return TRUE;
|
|
break;
|
|
|
|
default: break;
|
|
}
|
|
return FALSE;
|
|
}
|
|
int StartingConditional()
|
|
{
|
|
|
|
if (MatchSingleHandedWeapon(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, OBJECT_SELF)) &&
|
|
MatchSingleHandedWeapon(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, OBJECT_SELF)))
|
|
return TRUE;
|
|
|
|
return FALSE;
|
|
}
|