rendered paste bodyif ${POI.NeedMailbox}
{
if ${POI.Type.Equal[MAILBOX]} && !${POI.IsBlacklisted}
{
if ${POI.InUseRange}
{
if ${WoWScript[MailFrame:IsVisible()]}
{
This.NPCState_NPC_Wait_Until:Set[${Math.Calc[${LavishScript.RunningTime}+(${This.NPCState_Interact_Wait_Until_Timeout} * ${Bot.GlobalCooldown})]}]
return OB_MULE
}
else
{
This.NPCState_NPC_Wait_Until:Set[${Math.Calc[${LavishScript.RunningTime}+(${This.NPCState_Interact_Wait_Until_Timeout} * ${Bot.GlobalCooldown})]}]
return OB_USE_NPC
}
}
else
{
if !${WoWScript["GetContainerItemCooldown(${Item[Hearthstone].Bag.Number}, ${Item[Hearthstone].Slot})", 2]}
{
Move -stop
Bot.ForcedStateWait et[${This.InTenths[010]}]
Item[Hearthstone]:Use
Bot.ForcedStateWait et[${This.InTenths[120]}]
}
return OB_NPC_MOVE
}
}
else
{
if ${POI.SetNearestPOI[MAILBOX]}
{
if !${WoWScript["GetContainerItemCooldown(${Item[Hearthstone].Bag.Number}, ${Item[Hearthstone].Slot})", 2]}
{
Move -stop
Bot.ForcedStateWait et[${This.InTenths[010]}]
Item[Hearthstone]:Use
Bot.ForcedStateWait et[${This.InTenths[120]}]
}
return OB_NPC_MOVE
}
else
{
This:Output[Not enough mapping data to MAILBOX POI !]
;no return here try other NPC
POI.NeedMailbox:Set[FALSE]
}
}
}