Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
#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();
}