View Single Post
08/01/14, 04:45 PM   #1
unLeashed3k
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 33
Am I in a City (Safe to Logout)

Anyone know of a function that checks if the unit ("player") is safe to log out or an event that fires that toggles the state. Specifically I'm looking for something that returns true if I'm in a City or Town and the best way, perhaps, is to check if the character can logout *without* a timer.

Searched for hundreds of keywords in the hope of finding something, like, IsMapSafeZone(mapIndex), IsUnitSafe('player'), IsHostileNearby(mapIndex), IsTargetHostile('ret'), EVENT_SAFE_AREA|ZONE, EVENT_(anything dealing with logout functions).


The /logout and /quit commands know it needs to either run a timer (not in a safe area) or not run a timer, to logout.



Thanks,
Matt
  Reply With Quote