Aantioch_Infernum/_module/nss/unequip_onenter2.nss

18 lines
533 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
#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;
}
}