Jump to content

Enable to check map status on Lua side


PePePePePeil

Recommended Posts

I would like to make a mod (Lua) to check if a map is read or not.
Could you please add the following method so that we can check the status of the map on the Lua side?

 

zombie.worldMap.WorldMapVisited#isKnownInCell
zombie.worldMap.WorldMapVisited#isKnownInSquare

Link to comment
Share on other sites

You probably already can do that:

hook ISReadABook:perform()

use self.character:getAlreadyReadBook() array and self.item:getFullType()

At worse, make a static table of all Maps item to link maps items and the fact a zone is known.

But we can probably identify them from category / display category or some Java types or whatever.

Edited by Tchernobill
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...