Skip to content
View in the app

A better way to browse. Learn more.

MagicDuel Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vists At Location

Featured Replies

  • Root Admin

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]

  • 3 years later...

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

Forum Statistics

  • Total Topics 17.5k
  • Total Posts 182.2k

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.