1 local getopt = require('getopt')
3 example = "script run remagic"
8 This is a script that tries to bring back a chinese magic card (1k generation1)
9 from the dead when it's block 0 has been written with bad values.
15 -- A debug printout-function
22 -- This is only meant to be used when errors occur
31 print("Example usage")
36 -- The main entry point
40 -- Read the parameters
41 for o, a in getopt.getopt(args, 'h') do
42 if o == "h" then help() return end
48 [0] = "hf 14a raw -p -a -b 7 40",
49 [1] = "hf 14a raw -p -a 43",
50 [2] = "hf 14a raw -c -p -a A000",
51 [3] = "hf 14a raw -c -p -a 01 02 03 04 04 98 02 00 00 00 00 00 00 00 10 01",
53 core.clearCommandBuffer()
56 --for _,c in pairs(_cmds) do
59 core.console( _cmds[i] )