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.
This commit is contained in:
18
_module/nss/sc_disarm.nss
Normal file
18
_module/nss/sc_disarm.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user