Skip to content

Commit 373cc5c

Browse files
committed
Upload v1.0.0.1
1 parent 15ee9c4 commit 373cc5c

File tree

3 files changed

+43
-16
lines changed

3 files changed

+43
-16
lines changed

‎submacros/StatMonitor.ahk‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ OnMessage(0x5557, SetBackpack, 255)
260260

261261
; OBTAIN DATA
262262
; detect OS version
263+
os_version := "cant detect os"
263264
for objItem in ComObjGet("winmgmts:").ExecQuery("SELECT * FROM Win32_OperatingSystem")
264265
os_version := Trim(StrReplace(StrReplace(StrReplace(StrReplace(objItem.Caption, "Microsoft"), "Майкрософт"), "مايكروسوفت"), "微软"))
265266

@@ -1026,7 +1027,7 @@ SendHourlyReport()
10261027
10271028
case "honey12h":
10281029
Loop 5
1029-
Gdip_TextToGraphics(G, FormatNumber(max_12h-(range_12h*(A_Index-1))//4), "s28 Right Bold cffffffff x" v[1]-310 " y" v[2]+v[4]*(A_Index-1)//4-20, "Segoe UI", 240)
1030+
Gdip_TextToGraphics(G, FormatNumber(max_12h-Floor((range_12h*(A_Index-1))/4)), "s28 Right Bold cffffffff x" v[1]-310 " y" v[2]+v[4]*(A_Index-1)//4-20, "Segoe UI", 240)
10301031
10311032
points := []
10321033
honey_12h.__Enum().Call(&x), points.Push([4+v[3]*x/180, 4+v[4]])

‎submacros/Status.ahk‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ nm_status(status)
714714
}
715715

716716
status_buffer.RemoveAt(1)
717-
discord.SendEmbed(message, color, content, pBM?, channel?), IsSet(pBM) && Gdip_DisposeImage(pBM)
717+
discord.SendEmbed(message, color, content, pBM?, channel?), IsSet(pBM) && pBM > 0 && Gdip_DisposeImage(pBM)
718718

719719
; extra: honey update
720720
if (ssCheck = 1)
@@ -766,6 +766,8 @@ nm_honey()
766766
discord.CreateFormData(&postdata, &contentType
767767
, [Map("name","payload_json", "content-type","application/json", "content",payload_json)
768768
, Map("name","files[0]", "filename","honey.png", "content-type","image/png", "pBitmap",pBM:=CreateHoneyBitmap())])
769+
if pBM <= 0
770+
return
769771
Gdip_DisposeImage(pBM)
770772
try id ? discord.EditMessageAPI(id, postdata, contentType) : ((message := JSON.parse(discord.SendMessageAPI(postdata, contentType))).Has("id") && (id := message["id"]))
771773
}

‎submacros/natro_macro.ahk‎

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ nm_importPatterns()
180180
Loop Files A_WorkingDir "\patterns\*.ahk"
181181
{
182182
file := FileOpen(A_LoopFilePath, "r"), pattern := file.Read(), file.Close()
183+
if RegexMatch(pattern, "im)patterns\[")
184+
MsgBox
185+
(
186+
"Pattern '" A_LoopFileName "' seems to be deprecated!
187+
This means the pattern will NOT work!
188+
Check for an updated version of the pattern
189+
or ask the creator to update it"
190+
), "Error", 0x40010 " T60"
183191
if !InStr(imported, imported_pattern := '("' (pattern_name := StrReplace(A_LoopFileName, "." A_LoopFileExt)) '")`r`n' pattern '`r`n`r`n')
184192
{
185193
script :=
@@ -256,8 +264,17 @@ nm_importPaths()
256264
(paths[k] := Map()).CaseSense := 0
257265
for v in list
258266
{
259-
try
267+
try {
260268
file := FileOpen(A_WorkingDir "\paths\" k "-" v ".ahk", "r"), paths[k][v] := file.Read(), file.Close()
269+
if regexMatch(paths[k][v], "im)paths\[")
270+
MsgBox
271+
(
272+
"Path '" k '-' v "' seems to be deprecated!
273+
This means the macro will NOT work correctly!
274+
Check for an updated version of the path or
275+
restore the default path"
276+
), "Error", 0x40010 " T60"
277+
}
261278
catch
262279
MsgBox
263280
(
@@ -8010,7 +8027,7 @@ nm_BondCalculatorButton(*)
80108027
nm_AutoClickerButton(*)
80118028
{
80128029
global
8013-
local GuiCtrl
8030+
local GuiCtrl,GuiCtrlDuration, GuiCtrlDelay
80148031
GuiClose(*){
80158032
if (IsSet(AutoClickerGui) && IsObject(AutoClickerGui))
80168033
AutoClickerGui.Destroy(), AutoClickerGui := ""
@@ -8027,11 +8044,11 @@ nm_AutoClickerButton(*)
80278044
(GuiCtrl := AutoClickerGui.Add("UpDown", "vClickCount Range0-9999999 Disabled" ClickMode, ClickCount)).Section := "Settings", GuiCtrl.OnEvent("Change", nm_saveConfig)
80288045
AutoClickerGui.Add("Text", "x133 y21", "times")
80298046
AutoClickerGui.Add("Text", "x10 y41", "Click Interval (ms):")
8030-
AutoClickerGui.Add("Edit", "x100 y39 w61 h18 Number Limit5", ClickDelay)
8031-
(GuiCtrl := AutoClickerGui.Add("UpDown", "vClickDelay Range0-99999", ClickDelay)).Section := "Settings", GuiCtrl.OnEvent("Change", nm_saveConfig)
8047+
AutoClickerGui.Add("Edit", "x100 y39 w61 h18 Number Limit5", ClickDelay).OnEvent("Change", (*) => nm_saveConfig(GuiCtrlDelay))
8048+
(GuiCtrlDelay := AutoClickerGui.Add("UpDown", "vClickDelay Range0-99999", ClickDelay)).Section := "Settings", GuiCtrlDelay.OnEvent("Change", nm_saveConfig)
80328049
AutoClickerGui.Add("Text", "x10 y61", "Click Duration (ms):")
8033-
AutoClickerGui.Add("Edit", "x104 y59 w57 h18 Number Limit4", ClickDuration)
8034-
(GuiCtrl := AutoClickerGui.Add("UpDown", "vClickDuration Range0-9999", ClickDuration)).Section := "Settings", GuiCtrl.OnEvent("Change", nm_saveConfig)
8050+
AutoClickerGui.Add("Edit", "x104 y59 w57 h18 Number Limit4", ClickDuration).OnEvent("Change", (*) => nm_saveConfig(GuiCtrlDuration))
8051+
(GuiCtrlDuration := AutoClickerGui.Add("UpDown", "vClickDuration Range0-9999", ClickDuration)).Section := "Settings", GuiCtrlDuration.OnEvent("Change", nm_saveConfig)
80358052
AutoClickerGui.Add("Button", "x45 y88 w80 h20", "Start (" AutoClickerHotkey ")").OnEvent("Click", nm_StartAutoClicker)
80368053
AutoClickerGui.Show("w160 h104")
80378054
nm_StartAutoClicker(*){
@@ -14555,7 +14572,8 @@ nm_GoGather(){
1455514572
nm_setShiftLock(1)
1455614573
}
1455714574
while(((nowUnix()-gatherStart)<(FieldUntilMins*60)) || (PFieldBoosted && (nowUnix()-GatherFieldBoostedStart)<840) || (PFieldBoostExtend && (nowUnix()-GatherFieldBoostedStart)<1800 && (nowUnix()-LastGlitter)<900) || (PFieldGuidExtend && FieldGuidDetected && (nowUnix()-gatherStart)<(FieldUntilMins*60+PFieldGuidExtend*60) && (nowUnix()-GatherFieldBoostedStart)>900 && (nowUnix()-LastGlitter)>900) || (PPopStarExtend && HasPopStar && PopStarActive)){
14558-
MouseMove windowX+350, windowY+GetYOffset()+100
14575+
if !fieldPatternShift
14576+
MouseMove windowX+350, windowY+GetYOffset()+100
1455914577
if(!DisableToolUse)
1456014578
Click "Down"
1456114579
nm_gather(FieldPattern, A_Index, FieldPatternSize, FieldPatternReps, FacingFieldCorner)
@@ -15058,7 +15076,14 @@ nm_createWalk(movement, name:="", vars:="") ; this function generates the 'walk'
1505815076
gifted_hasty := ((Mod(base_movespeed*10, 12) = 0) && base_movespeed != 18 && base_movespeed != 24 && base_movespeed != 30) ? 1 : 0
1505915077
base_movespeed /= (gifted_hasty ? 1.2 : 1)
1506015078
'
15061-
) : '(bitmaps := Map()).CaseSense := 0')
15079+
) :
15080+
(
15081+
'
15082+
(bitmaps := Map()).CaseSense := 0
15083+
pToken := Gdip_Startup()
15084+
Walk(param, *) => HyperSleep(4000/' MoveSpeedNum '*param)
15085+
'
15086+
))
1506215087

1506315088
. (
1506415089
(
@@ -15074,15 +15099,15 @@ nm_createWalk(movement, name:="", vars:="") ; this function generates the 'walk'
1507415099
nm_Walk(tiles, MoveKey1, MoveKey2:=0)
1507515100
{
1507615101
Send "{" MoveKey1 " down}" (MoveKey2 ? "{" MoveKey2 " down}" : "")
15077-
' (NewWalk ? 'Walk(tiles)' : ('HyperSleep(4000/' MoveSpeedNum '*tiles')) '
15102+
' (NewWalk ? 'Walk(tiles)' : ('HyperSleep(4000/' MoveSpeedNum '*tiles)')) '
1507815103
Send "{" MoveKey1 " up}" (MoveKey2 ? "{" MoveKey2 " up}" : "")
1507915104
}
1508015105

1508115106
F13::
1508215107
start(hk?)
1508315108
{
1508415109
Send "{F14 down}"
15085-
' (NewWalk ? movement : RegExReplace(movement, "im)Walk\((?<param>.+?)(?:\,|\)(?=[^()]*(?:\(|$)))(?:.*\))?", "HyperSleep(4000/" MoveSpeedNum "*(${param}))")) '
15110+
' movement '
1508615111
Send "{F14 up}"
1508715112
}
1508815113

@@ -18581,10 +18606,9 @@ nm_PathVars(){
1858118606
Send "{" SC_Space " down}{" RightKey " down}"
1858218607
Sleep 100
1858318608
Send "{" SC_Space " up}"
18584-
Walk(2)
18585-
Send "{" FwdKey " down}"
18586-
Walk(1.5)
18587-
Send "{" FwdKey " up}"
18609+
nm_Walk(2, RightKey)
18610+
nm_Walk(1.5, FwdKey, RightKey)
18611+
Send "{" RightKey " down}"
1858818612

1858918613
DllCall("GetSystemTimeAsFileTime","int64p",&s:=0)
1859018614
n := s, f := s+100000000

0 commit comments

Comments
 (0)