18 lines
457 B
Plaintext
18 lines
457 B
Plaintext
|
//69_hench_eqswap
|
||
|
//Swap equipped melee weapons
|
||
|
//Created By: 69MEH69
|
||
|
//Created On: APR2005
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oRight = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND);
|
||
|
object oLeft = GetItemInSlot(INVENTORY_SLOT_LEFTHAND);
|
||
|
|
||
|
ClearAllActions();
|
||
|
ActionSpeakString("Very well.");
|
||
|
ActionUnequipItem(oRight);
|
||
|
ActionUnequipItem(oLeft);
|
||
|
ActionEquipItem(oLeft,INVENTORY_SLOT_RIGHTHAND);
|
||
|
ActionEquipItem(oRight,INVENTORY_SLOT_LEFTHAND);
|
||
|
}
|