Jump to content
Sign in to follow this  

Vists At Location

Recommended Posts

You can check the amount of times that a player has visited a location, This can be used to check if a player has visted certain locations if you are showing content that would be a spoiler if the user had not visited the location.

This would be needed to comply with the new rules for MDscript.

The function is:

If you assign that function to a variable you can use it to display the amount of visits for example

@va = mds_location_visits('1_0x1_1');
echo "Total visits here: " . @va;

you can use any location id in the format as above, but you can also use 'current' to display the visits to the location you are currently in

@va = mds_location_visits('current');
echo "Total visits here: " . @va;

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Forum Statistics

    Total Topics
    Total Posts
  • Recently Browsing

    No registered users viewing this page.

  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

  • Create New...