Jaysyn904 7b9e44ebbb Initial upload
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.
2024-03-11 23:44:08 -04:00

19 lines
456 B
Plaintext

void main()
{
object oObject = GetEnteringObject();
if (GetIsObjectValid(oObject))
{
object oLeft = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oObject);
object oRight = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oObject);
if (GetIsObjectValid(oLeft))
AssignCommand(oObject, ActionUnequipItem(oLeft));
if (GetIsObjectValid(oRight))
AssignCommand(oObject, ActionUnequipItem(oRight));
}
}