All pastes #962148 Raw Edit

Miscellany

public text v1 · immutable
#962148 ·published 2008-03-29 15:15 UTC
rendered paste body
if ${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]}
					{
						return OB_NPC_MOVE
					}
					else
					{
						This:Output[Not enough mapping data to MAILBOX POI !]
						;no return here try other NPC
						POI.NeedMailbox:Set[FALSE]
					}
				}
			}