Initial Upload
Initial Upload
This commit is contained in:
17
_module/nss/unequip_onenter2.nss
Normal file
17
_module/nss/unequip_onenter2.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "nw_i0_generic"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
AssignCommand(oPC, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC)));
|
||||
AssignCommand(oPC, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)));
|
||||
AssignCommand(oPC, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_HEAD, oPC)));
|
||||
}
|
||||
{
|
||||
string oRemove= "All weapons are to be sheathed and helms removed on entry!";
|
||||
SendMessageToPC(oPC, oRemove);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user