Sorry I'm just throwing this out untested but on my way out the door to work.
'>
Try this and see what happens:
void main()
{
if (GetIsDay()&& GetLocalInt(OBJECT_SELF, "post")==2)
{
ClearAllActions();
ActionEquipItem(GetItemPossessedBy(OBJECT_SELF, GetTag(GetLocalObject(OBJECT_SELF, "oldobject"))), INVENTORY_SLOT_LEFTHAND);
SetLocalInt(OBJECT_SELF, "post", 1);
}
if (GetIsNight()&& GetLocalInt(OBJECT_SELF, "post")==1)
{
ClearAllActions();
SetLocalObject(OBJECT_SELF, "oldobject", GetItemInSlot(INVENTORY_SLOT_LEFTHAND));
ActionEquipItem(GetItemPossessedBy(OBJECT_SELF, "NW_IT_TORCH001"), INVENTORY_SLOT_LEFTHAND);
SetLocalInt(OBJECT_SELF, "post", 2);
}
ExecuteScript("nw_c2_default1", OBJECT_SELF);
}
I slapped in a couple "ClearAllActions" to interupt his current action. Not tested but hope that is the problem. Good luck.
Modifié par GhostOfGod, 04 septembre 2010 - 05:14 .