NWNDS/nwnds_module/ka_hide_conv_end.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

27 lines
762 B
Plaintext

#include "NW_I0_GENERIC"
string swow_ResRef = "testskin";
void wow_EquipHide(object oPC)
{
object oHide = CreateItemOnObject(swow_ResRef, oPC);
AssignCommand(oPC, ClearAllActions(TRUE));
AssignCommand(oPC, ActionEquipItem(oHide, INVENTORY_SLOT_CARMOUR));
if(GetIsObjectValid(oHide)) SendMessageToPC(oPC, "Hide created, should be equipped");
else SendMessageToPC(oPC, "Hide creation failed");
}
void main()
{
object oPC = GetPCSpeaker();
if(GetLocalInt(oPC, "WOW_EQUIP_HIDE"))
{
DeleteLocalInt(oPC, "WOW_EQUIP_HIDE");
object oHide = GetItemInSlot(INVENTORY_SLOT_CARMOUR, oPC);
if(GetIsObjectValid(oHide)) DestroyObject(oHide);
DelayCommand(1.0, wow_EquipHide(oPC));
}
WalkWayPoints();
}