19 lines
958 B
Plaintext
19 lines
958 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
|
||
|
// Have us perform a sequence of actions.
|
||
|
ActionEquipMostDamagingMelee(OBJECT_INVALID, FALSE);
|
||
|
AssignCommand (OBJECT_SELF, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND)));
|
||
|
AssignCommand (OBJECT_SELF, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND)));
|
||
|
object oLeft = GetItemInSlot (INVENTORY_SLOT_CWEAPON_L, OBJECT_SELF);
|
||
|
object oRight = GetItemInSlot (INVENTORY_SLOT_CWEAPON_R, OBJECT_SELF);
|
||
|
object oBite = GetItemInSlot (INVENTORY_SLOT_CWEAPON_B, OBJECT_SELF);
|
||
|
AssignCommand (OBJECT_SELF, ActionEquipItem(GetItemPossessedBy(OBJECT_SELF, "oLeft"), INVENTORY_SLOT_CWEAPON_L));
|
||
|
AssignCommand (OBJECT_SELF, ActionEquipItem(GetItemPossessedBy(OBJECT_SELF, "oRight"), INVENTORY_SLOT_CWEAPON_R));
|
||
|
AssignCommand (OBJECT_SELF, ActionEquipItem(GetItemPossessedBy(OBJECT_SELF, "oBite"), INVENTORY_SLOT_CWEAPON_B));
|
||
|
|
||
|
DelayCommand (0.2, ExecuteScript("usecreatureweap", OBJECT_SELF));
|
||
|
}
|
||
|
|