Root Admin Chewett Posted May 29, 2010 Root Admin Report Share Posted May 29, 2010 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] Quote Link to comment Share on other sites More sharing options...
Maebius Posted June 11, 2013 Report Share Posted June 11, 2013 duplicate of: http://magicduel.invisionzone.com/topic/7579-function-mds-location-visits/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.