Jump to content
Sign in to follow this  
Chewett

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:
[code]mds_location_visits('1_0x1_1')[/code]

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

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

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

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

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.

Guest
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.

Loading...
Sign in to follow this  

  • Forum Statistics

    15,832
    Total Topics
    173,490
    Total Posts
  • Recently Browsing

    No registered users viewing this page.

  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...