Ok, so i'm playing Eden Eternal again, after my main got banned (suuuucks lol) it's been a while but not much has changed, iv been doing a C# course where i live for about 3 months (2 months ahead of where it says i should be yayy :P) ANYWAY, i'm wanting to do a simple collection script/macro, i got this code from someone on the blue eye macro website (few years old granted) but i thought the variables might be helpful, however i havent gone or done any C# coding for game windows etc, could someone help me translate this or give me tips on how i would implement this in C#?

Note: If someone can help me get this working and or find, show and get new variables etc (if theyre out of date) id be willing to pay aswell!

Code:
begin
     Macro.Pause("3000")
     Memory.Freeze value("_Launcher", "005A16B5", "4", "2341507216")
     Memory.Freeze value("_Launcher", "00582F81", "8", "5515379644243677328")
     Memory.Freeze value("_Launcher", "005A16BE", "4", "2324730000")
     Memory.Freeze value("_Launcher", "00582f97", "8", "-8752586925219475312")
     Function.Execute setting 4 variables("SetCamera", "CamZoom", "1098383360", "CamX", "3205805404", "CamY", "3200873767", "CamZ", "1060530798")
     begin loop("-1")
          // To initial position
          Function.Execute setting 2 variables("RunTo", "XVal", "494", "YVal", "438")
          // Buy from miner
          Macro.Pause("1000")
          Mouse.Click at coordinate("423", "427", "Right")
          Macro.Pause("1000")
          Mouse.Click at coordinate("158", "424", "Left")
          Macro.Pause("1000")
          Mouse.Click at coordinate("382", "148", "Left")
          Macro.Pause("1000")
          // Go to town
          Keyboard.Hold keys("g")
          Macro.Pause("500")
          Keyboard.Release keys("g")
          Macro.Pause("1000")
          Mouse.Click at coordinate("555", "399", "Left")
          Macro.Pause("10000")
          // Go to mine
          Function.Execute setting 2 variables("RunTo", "XVal", "117", "YVal", "26")
          Function.Execute setting 2 variables("RunTo", "XVal", "117", "YVal", "86")
          Function.Execute setting 2 variables("RunTo", "XVal", "50", "YVal", "121")
          Macro.Pause("1000")
          // Start mining
          Keyboard.Hold keys("0")
          Macro.Pause("500")
          Keyboard.Release keys("0")
          begin loop("-1")
               Macro.Pause("5000")
               // Check if Pick axe at '0' is worn out
               if  Color.At coordinate is not (RGB)("175", "170", "175", "833", "997")
                    begin
                         Macro.Break from loop("no")
                    end
          end
          // Warp to town
          Function.Execute setting 2 variables("RunTo", "XVal", "50", "YVal", "121")
          Function.Execute setting 2 variables("RunTo", "XVal", "117", "YVal", "86")
          Function.Execute setting 2 variables("RunTo", "XVal", "117", "YVal", "26")
          Function.Execute setting 2 variables("RunTo", "XVal", "162", "YVal", "32")
          Function.Execute setting 2 variables("RunTo", "XVal", "171", "YVal", "38")
          Function.Execute with timeout setting 2 variables("RunTo", "10000", "XVal", "183", "YVal", "39")
          // To prevent staying still
          Function.Execute setting 2 variables("RunTo", "XVal", "489", "YVal", "435")
     end
 end

function("SetCamera")
     begin
          Memory.Freeze value("_Launcher", "_Launcher.exe+8821BC,7C", "4", "{CamZoom}")
          Memory.Freeze value("_Launcher", "_Launcher.exe+8821BC,2C", "4", "{CamX}")
          Memory.Freeze value("_Launcher", "_Launcher.exe+8821BC,30", "4", "{CamY}")
          Memory.Freeze value("_Launcher", "_Launcher.exe+8821BC,34", "4", "{CamZ}")
     end
function

function("RunTo")
     begin
          Memory.Set value("_Launcher", "{DestXAdd}", "float", "{XVal}")
          Memory.Set value("_Launcher", "{DestYAdd}", "float", "{YVal}")
          begin loop("-1")
               Mouse.Click at coordinate("{ClickX}", "{ClickY}", "left")
               Macro.Pause("{ClickTime}")
               if  Memory.Value is("_Launcher", "{CharXAdd}", "float", "{XVal}")
                    and
                    Memory.Value is("_Launcher", "{CharYAdd}", "float", "{YVal}")
                    begin
                         Macro.Break from loop("yes")
                    end
          end
     end
function