MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "RuneScript/Commands",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "26": {
                "pageid": 26,
                "ns": 0,
                "title": "Rsync Instructions",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "<code>rsync -raP --exclude '/mirror/' --exclude '/scraped/' --delete rsync://104.167.241.86/archive ./</code>\n\nr: recursive\n\na: preserve timestamps\n\nP: print progress\n\n\nThe mirror directory mirrors other domains and is relatively large.\n\nThe scraped directory is a collection of files automatically downloaded by filtering through old forum threads for links."
                    }
                ]
            },
            "32": {
                "pageid": 32,
                "ns": 0,
                "title": "RuneScript",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "<nowiki>*</nowiki>(this page records known info from https://github.com/RuneStar/leaks<nowiki/>)*\n\n===Extra Resources===\nhttps://osrs-docs.com/ pw: rsps\n\nhttps://neptune-ps.gitlab.io/runescript/index.html\n\nhttps://github.com/data-dependent/osrs-guides/blob/master/skilling.md\n\n===Terminology===\n<code>op</code> = operable interaction (occurs within 1 tile / line of walk)\n\n<code>ap</code> = approachable interaction (occurs within approachable range of up to 10 tiles / line of sight)\n\n<code>cam</code> = camera\n\n<code>if</code> = interface\n\n<code>com</code> = interface component\n\n<code>inv</code> = inventory\n\n<code>loc</code> = \"location\", represents an object in the world e.g. a Tree\n\n<code>obj</code> = \"object\", represents items\n\n<code>p_</code> = protected (not able to access full set of variables)\n\n<code>stat</code> = skill\n\n<code>oc</code> = related to obj config\n\n<code>op____[1-5]</code> = option 1 through 5 used on target\n\n<code>op____u</code> = item used on target\n\n<code>op____t</code> = spell used on target\n\n<code>opobj</code> = interacted item on ground\n\n<code>opheld</code> = interacted with item in inventory\n\n===Constants===\n<syntaxhighlight>\n^lootdrop_duration = 200\n^dm_default = \"Nothing interesting happens.\"\n^max_32bit_int = 0x7FFFFFFF\n</syntaxhighlight>\n\n===Function Signatures===\nFunctions can be registered 3 ways.\n\n<code>[proc,name](params)(return)</code> known as a procedure or subroutine. Called via <code>gosub(name)</code> or by prefixing with <code>~</code>.\n\n<code>[label,name](params)</code> similar to GOTO/LABEL syntax. Called via <code>jump(name)</code> or by prefixing with <code>@</code>.\n\n<code>[trigger,on]</code> contextual function handler registered for a specific action occurring in the engine.\n\n====Triggers====\n<code>opnpc[1-5]</code> / <code>opnpcu</code> / <code>opnpct</code>\n\n<code>apnpc1[1-5]</code>\n\n<code>opplayer[1-5]</code> / <code>opplayeru</code> / <code>opplayert</code>\n\n<code>applayer[1-5]</code>\n\n<code>oploc[1-5]</code> / <code>oplocu</code> / <code>oploct</code>\n\n<code>aploc[1-5]</code>\n\n<code>opobj[1-5]</code> / <code>opobju</code> / <code>opobjt</code>\n\n<code>opheld[1-5]</code> / <code>opheldu</code> / <code>opheldt</code>\n\n<code>if_button[1-10]</code>\n\n<code>ai_queue[1-20]</code>there's different queue types: 1 = retaliation, 2 = damage, 3 = death, 8 = bind effects\n\n<code>ai_conqueue</code> controller queue\n\n===Engine Functions===\nCalling with <code>.</code> or <code>*</code> can change behavior (does not affect procs or labels):\n\nThe character <code>.</code> can precede npc_ function names, indicating it's targeting a secondary NPC.\n\nThe character <code>*</code> can follow queue function names, indicating a second set of arguments are being passed.\n{| class=\"wikitable\"\n!Name\n|-\n|anim\n|-\n|buffer_full\n|-\n|buildappearance\n|-\n|cam_lookat\n|-\n|cam_moveto\n|-\n|cam_reset\n|-\n|clearbit\n|-\n|clearqueue\n|-\n|controller_coord\n|-\n|controller_del\n|-\n|controller_findexact\n|-\n|controller_queue\n|-\n|coord\n|-\n|displayname\n|-\n|enum_getoutputcount\n|-\n|facesquare\n|-\n|finduid\n|-\n|getqueue\n|-\n|healenergy\n|-\n|huntnext\n|-\n|if_close\n|-\n|if_setevents\n|-\n|inarea\n|-\n|inv_add\n|-\n|inv_del\n|-\n|inv_getobj\n|-\n|inv_getvar\n|-\n|inv_itemspace2\n|-\n|inv_moveitem\n|-\n|inv_resendslot\n|-\n|inv_setslot\n|-\n|inv_setvar\n|-\n|inv_size\n|-\n|inv_total\n|-\n|inzone\n|-\n|last_comsubid\n|-\n|last_int\n|-\n|last_slot\n|-\n|last_useitem\n|-\n|last_useslot\n|-\n|last_verifyobj\n|-\n|loc_add\n|-\n|loc_angle\n|-\n|loc_anim\n|-\n|loc_category\n|-\n|loc_coord\n|-\n|loc_del\n|-\n|loc_find\n|-\n|loc_findallzone\n|-\n|loc_findnext\n|-\n|loc_param\n|-\n|loc_type\n|-\n|longqueue\n|-\n|map_clock\n|-\n|map_members\n|-\n|mes\n|-\n|mes_typed\n|-\n|movecoord\n|-\n|name\n|-\n|npc_add\n|-\n|npc_anim\n|-\n|npc_basestat\n|-\n|npc_category\n|-\n|npc_coord\n|-\n|npc_del\n|-\n|npc_delay\n|-\n|npc_facesquare\n|-\n|npc_findexact\n|-\n|npc_param\n|-\n|npc_queue\n|-\n|npc_range\n|-\n|npc_say\n|-\n|npc_sethunt\n|-\n|npc_sethuntmode\n|-\n|npc_setmode\n|-\n|npc_statheal\n|-\n|npc_type\n|-\n|obj_add\n|-\n|obj_add\n|-\n|objectverify\n|-\n|oc_category\n|-\n|oc_desc\n|-\n|oc_members\n|-\n|oc_name\n|-\n|oc_param\n|-\n|p_aprange\n|-\n|p_arrivedelay\n|-\n|p_delay\n|-\n|p_pausebutton\n|-\n|p_telejump\n|-\n|p_transmogrify\n|-\n|random\n|-\n|randominc\n|-\n|region_findbycoord\n|-\n|region_getcoord\n|-\n|runclientscript\n|-\n|scale\n|-\n|seqlength\n|-\n|setbit\n|-\n|softtimer\n|-\n|sound_area\n|-\n|sound_synth\n|-\n|split_init\n|-\n|split_pagecount\n|-\n|staffmodlevel\n|-\n|stat\n|-\n|stat_base\n|-\n|stat_heal\n|-\n|testbit\n|-\n|weakqueue\n|}\n\n===Core Content Functons===\n{| class=\"wikitable\"\n!Name\n|-\n|~mesbox\n|-\n|~objbox\n|-\n|~chatplayer\n|-\n|~chatnpc\n|-\n|~.chatnpc_to_other\n|-\n|~p_choice[1-5]\n|-\n|@multi[1-5]\n|-\n|~p_loaddelay\n|-\n|~p_countdialog\n|-\n|~if_openmain\n|-\n|~npc_death\n|-\n|~npc_meleeattack\n|-\n|~npc_meleedamage\n|-\n|~playerhit\n|-\n|~playerhit_n_melee\n|-\n|~playerwalk3\n|-\n|~givexp\n|}"
                    }
                ]
            }
        }
    }
}