A solution to this is to track pc presence in the OnEnter event of each dungeon area, as well as flagging the PC as in the dungeon. When a PC that has the "dungeon flag" triggers the OnEnter event in an area other than the dungeon, you can clear the dungeon that flagged him of its "pc present flag"
Does this make sense?
Dungeon OnEnter
SetLocalInt on PC with Dungeon's unique ID
SetLocalInt on Dungeon as TRUE for occupied
Everywhere else OnEnter
Check to see if a PC has a special flag,
if TRUE, lookup a list for which dungeon needs to be set as "available", and erase the flag on the PC.
Small problem...
I forgot to track module exit. You'll need to run the same check as on "Everwhere else OnEnter"
Modifié par henesua, 25 octobre 2012 - 08:16 .