Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » Developer Discussions » Lua/XML Help » Am I in a City (Safe to Logout)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off