Code snippet for extracting weapon stats: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

15 September 2022

12 September 2022

  • curprev 15:0315:03, 12 September 2022Lopez talk contribs 3,023 bytes +3,023 Created page with "Code snippet which might be used to extract weapon stats: <syntaxhighlight lang="lua"> count = 22 statid = 3 addCommandHandler("dump", function () while (count < 33) do hFile = fileOpen ( "dump.txt" ) fileSetPos(hFile, fileGetSize ( hFile )) i = count fileWrite(hFile, "// " .. i .. " - " .. getWeaponNameFromID( i ) .. " Stat: " .. statid ) fileWrite(hFile, "\r\n") for k,v in ipairs(props) do outputChatBox(..."