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.

MD Script Manual

Offical threads that document MD script

  1. Started by Rendril,

    [b]null[/b] mds_creature_icon(int|string $id, string $attributes); Will echo an image icon of the creature matching the ID if it is valid otherwise it will give a missing creature message. The image is echoed directly by the function, there is only a null value returned. Since it is a direct echo rather than a string, your HTML code will need ot be wraped around it. The paramter sent is the creature ID, not the CTC. It can be found under the creature in the creature menu. Example: HTML[code] <form method="post" action=""> Enter CTC to see the creature's day of birth<br /> <input name="ctc" type="text" /><br /> <br /> <inpu…

  2. Started by Chewett,

    Copied From Murs initial Post (no code changed) [b]Key Control[/b] Keys are what decide what users can access in game. They are like flags to indicate all sorts of things and to track what player did and achieved. A special category of keys are the ones that you can set from the MDScript. They are just like the keys used to setup the entire realm, just that they have a prefix "rpcq-". You might notice that the same prefix is set on the Clickable items, well its no coincidence. Clickable items run as clickables if you don't have the key to access them and run as something else if you do have the key. Currently there are no clickables that have something behind them to r…

    • 0 replies
    • 1.5k views
  3. Started by Chewett,

    Copied From Murs initial Post (no code changed) Templates Function: mds_template(template,data,return,columns,attributes); Parameters: template = template to use for each data displayed. Variables in this template should be noted as [[somename]] where 'somename' can be anything data = can be an array with keys named like the strings enclosed in [[...]] in the template or a multidimensional array for more records. Such an array has each of its items as an array with values return = if its true, function will return the string so it can be used in the script, if its false, it will display the result directly. columns = for multidimensional arrays, this paramete…

    • 0 replies
    • 1.4k views
  4. Started by Chewett,

    Copied From Murs initial Post (no code changed) [b]Variables[/b] Variables are what store data. In normal PHP language they are almost any string that starts with a dollar sign $. In MD script i had to change that for security reasons and make variables start with @ and have a predefined na,e. You can use only a few predefined variable names, use them wisely and they will be sufficient. You can use arrays too so you could fit an unlimited number of keys into one array if you are realy in big need of a large number of variables. 26 general use variables @va to @vz 3 dedicated variables named more conveniently so you have things easyer to follow They are tehnicaly …

    • 0 replies
    • 1.5k views
  5. Started by Chewett,

    Copied From Murs initial Post (no code changed) [b]Restrictions and Errors[/b] There are a lot of usual words that you are not allowed to use in your scripts. Try to rename them and avoid warnings. It is not a syntax check, its a broad check over what you type there in your little green scripting box to avoid exploits. Most red errors mean your script was not parsed because it did not pass the security checks. If your script gets parsed but you run into a nasty fatal error that stops loading the page, you will have a blue "edit in case of error" link so you can edit and fix the script. [b][STRICT RESTRICTION] Errors[/b] You used words or signs that are not allowed, …

    • 0 replies
    • 1.2k views

Member Statistics

  • 4582 Total Members
  • 936 Most Online
  • services Newest Member ·

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.