Skip to content

Commit

Permalink
v1.4.0 push
Browse files Browse the repository at this point in the history
  • Loading branch information
BuilderDolphin committed May 30, 2024
1 parent a62c3b8 commit a593ccd
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 57 deletions.
76 changes: 40 additions & 36 deletions Main.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (RegExMatch(A_ScriptDir,"\.zip")){

Gdip_Startup()

global version := "v1.4 pre"
global version := "v1.4.0"

global robloxId := 0

Expand Down Expand Up @@ -431,6 +431,8 @@ stop(terminate := 0) {
WinClose, % v
}

removeDim()

liftKeys()

if (camFollowMode){
Expand Down Expand Up @@ -569,9 +571,9 @@ resetZoom(){

rotateCameraMode(){
press("Esc")
Sleep, 250
Sleep, 500
press("Tab")
Sleep, 150
Sleep, 500
press("Down")
Sleep, 150
press("Right")
Expand All @@ -585,6 +587,11 @@ rotateCameraMode(){
}

alignCamera(){
startDim(1,"Aligning Camera, Please wait...")

WinActivate, % "ahk_id " GetRobloxHWND()
Sleep, 500

closeChat()
Sleep, 200

Expand Down Expand Up @@ -629,6 +636,7 @@ alignCamera(){
rotateCameraMode()

reset()
removeDim()
Sleep, 2000
}

Expand Down Expand Up @@ -765,18 +773,8 @@ doObby(){
options.ObbyAttempts += 1
}

walkToObby(){
updateStatus("Walking to Obby")
if(options.ArcanePath){

} else {

}
}

obbyRun(){
global lastObby
walkToObby()
Sleep, 250
doObby()
lastObby := A_TickCount
Expand Down Expand Up @@ -1588,6 +1586,8 @@ mainLoop(){

Menu Tray, Icon, shell32.dll, 3

Gui, Color, 0x000000

Gui mainUI: New, +hWndhGui
Gui Color, 0xDADADA
Gui Add, Button, gStartClick vStartButton x8 y224 w80 h23, F1 - Start
Expand Down Expand Up @@ -1708,7 +1708,7 @@ Gui Font, s10 w600
Gui Add, GroupBox, x16 y40 w467 h65 vGeneralSettingsGroup -Theme +0x50000007, General
Gui Font, s9 norm
Gui Add, CheckBox, vVIPCheckBox x32 y58 w150 h22 +0x2, % " VIP Gamepass Owned"
Gui Add, CheckBox, vArcaneCheckBox gArcaneCheckBoxClick x222 y58 w200 h22 +0x2, % " Arcane Teleport Paths"
Gui Add, CheckBox, vAzertyCheckBox x222 y58 w200 h22 +0x2, % " AZERTY Keyboard Layout"
Gui Add, Text, x222 y82 w200 h18, % "Collection Back Button Y Offset:"
Gui Add, Edit, x396 y81 w50 h18
Gui Add, UpDown, vBackOffsetUpDown Range-500-500, 0
Expand Down Expand Up @@ -1761,7 +1761,7 @@ Gui mainUI:Default


global directValues := {"ObbyCheckBox":"DoingObby"
,"ArcaneCheckBox":"ArcanePath"
,"AzertyCheckBox":"AzertyLayout"
,"ObbyBuffCheckBox":"CheckObbyBuff"
,"CollectCheckBox":"CollectItems"
,"VIPCheckBox":"VIP"
Expand Down Expand Up @@ -2006,6 +2006,29 @@ updateStatus(newStatus){

global selectingAutoEquip := 0

startDim(clickthru := 0,topText := ""){
removeDim()
w:=A_ScreenWidth,h:=A_ScreenHeight-2
if (clickthru){
Gui Dimmer:New,+AlwaysOnTop +ToolWindow -Caption +E0x20 ;Clickthru
} else {
Gui Dimmer:New,+AlwaysOnTop +ToolWindow -Caption
}
Gui Color, 333333
Gui Show,NoActivate x0 y0 w%w% h%h%,Dimmer
WinSet Transparent,% 75,Dimmer
Gui DimmerTop:New,+AlwaysOnTop +ToolWindow -Caption +E0x20
Gui Color, 222222
Gui Font, s13
Gui Add, Text, % "x0 y0 w400 h40 cWhite 0x200 Center", % topText
Gui Show,% "NoActivate x" (A_ScreenWidth/2)-200 " y25 w400 h40"
}

removeDim(){
Gui Dimmer:Destroy
Gui DimmerTop:Destroy
}

startAutoEquipSelection(){
if (selectingAutoEquip || macroStarted){
return
Expand All @@ -2022,16 +2045,7 @@ startAutoEquipSelection(){

selectingAutoEquip := 1

w:=A_ScreenWidth,h:=A_ScreenHeight-2
Gui Dimmer:New,+AlwaysOnTop +ToolWindow -Caption +E0x20 ;Clickthru
Gui Color, 333333
Gui Show,NoActivate x0 y0 w%w% h%h%,Dimmer
WinSet Transparent,% 75,Dimmer
Gui DimmerTop:New,+AlwaysOnTop +ToolWindow -Caption +E0x20
Gui Color, 222222
Gui Font, s13
Gui Add, Text, % "x0 y0 w400 h40 cWhite 0x200 Center", Click the target storage slot (Right-click to cancel)
Gui Show,% "NoActivate x" (A_ScreenWidth/2)-200 " y25 w400 h40"
startDim(1,"Click the target storage slot (Right-click to cancel)")

Gui mainUI:Hide
}
Expand All @@ -2040,8 +2054,7 @@ cancelAutoEquipSelection(){
if (!selectingAutoEquip) {
return
}
Gui Dimmer:Destroy
Gui DimmerTop:Destroy
removeDim()
Gui mainUI:Show
selectingAutoEquip := 0
}
Expand Down Expand Up @@ -2128,7 +2141,6 @@ if (!options.FirstTime){
if (!options.WasRunning){
options.WasRunning := 1
saveOptions()

}

canStart := 1
Expand Down Expand Up @@ -2175,14 +2187,6 @@ WebhookRollImageCheckBoxClick:
}
return

ArcaneCheckBoxClick:
Gui mainUI:Default
GuiControlGet,v,,ArcaneCheckBox
if (v){
MsgBox, 0, Arcane Teleport Notice, % "With the Arcane Teleport option enabled, please ensure that you are auto-equipping any type of Arcane aura at ALL TIMES, otherwise your paths will break.`n`nRemember: It is preferred to select a slot with Arcane in the non-scrolled Aura Storage state (not scrolled down), as reconnecting will reset the scroll upon rejoin, possibly causing you to select a different aura."
}
return

MoreCreditsClick:
creditText =
(
Expand Down
4 changes: 2 additions & 2 deletions lib/pathReference.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ clickMenuButton(num){

rotateCameraMode(){
press("Esc")
Sleep, 250
Sleep, 500
press("Tab")
Sleep, 150
Sleep, 500
press("Down")
Sleep, 150
press("Right")
Expand Down
4 changes: 2 additions & 2 deletions lib/staticData.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
; Retired from use, now using staticData.json

[Options]
latestVersion=v1.3.5
latestVersion=v1.4.0
versionLink=https://github.com/BuilderDolphin/dolphSol-Macro/releases/latest
updateNotes=- Rare biome detection, lots of bug fixes
updateNotes=- Full release of the 1.4.0 version!

; star colors
; 1/10k+
Expand Down
6 changes: 3 additions & 3 deletions lib/staticData.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[{
"announcement":"Please note that in this pre-version, the Obby function does not work currently. Make sure your camera mode is on Default (Classic) before starting the macro!",
"announcement":"v1.4.0 has fully released! Please remember to have your camera mode on the default option before starting the macro.",
"updateInfo": {
"latestVersion":"v1.4 pre",
"latestVersion":"v1.4.0",
"versionLink":"https://github.com/BuilderDolphin/dolphSol-Macro/releases/latest",
"updateNotes":"- Testing version of the new macro, obby is still not functional yet."
"updateNotes":"- Full release of the 1.4.0 version!"
},
"stars": {
"495104": {
Expand Down
6 changes: 6 additions & 0 deletions lib/status.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ commaFormat(num){
FileRead, staticDataContent, % "staticData.json"
global staticData := Jxon_Load(staticDataContent)[1]

for i,v in staticData.stars {
if (v.rarity < 1000000 && !v.mutations){
v.cornerColor := 0
}
}

; CreateFormData() by tmplinshi, AHK Topic: https://autohotkey.com/boards/viewtopic.php?t=7647
; Thanks to Coco: https://autohotkey.com/boards/viewtopic.php?p=41731#p41731
; Modified version by SKAN, 09/May/2016
Expand Down
95 changes: 81 additions & 14 deletions paths/doObby.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,86 @@ CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
#Include ..\lib\pathReference.ahk

; revision by sanji (sir.moxxi) and Flash (drflash55)
walkSend("w","Down")
walkSend("d","Down")
walkSleep(2500)
walkSend("d","Up")
walkSleep(2000)
press("d",500)
walkSleep(1000)
press("d",250)
walkSleep(100)
walkSend("d","Down")
;first jump
jump()

if (options.ArcanePath){
if (options.VIP){

} else {

}
if (options.VIP){
walkSleep(500)
walkSend("d","Up")
walkSleep(200)
jump()
walkSleep(150)
walkSend("w","Up")
Sleep, 500
jump()
press("w",500)
Sleep, 200
jump()
walkSend("w","Down")
walkSleep(600)
walkSend("d","Down")
walkSleep(550)
jump()
walkSleep(250)
walkSend("w","Up")
walkSleep(300)
jump()
walkSend("w","Down")
walkSleep(350)
walkSend("d","Up")
walkSleep(300)
walkSend("d","Down")
jump()
walkSleep(700)
jump()
walkSleep(500)
walkSend("d","Up")
walkSleep(500)
walkSend("w","Up")
} else {
if (options.VIP) ;newest changes done here
{

} else {

}
}
walkSleep(600)
walkSend("d","Up")
walkSleep(150)
jump()
walkSleep(200)
walkSend("w","Up")
Sleep, 500
jump()
press("w",500)
Sleep, 200
jump()
walkSend("w","Down")
walkSleep(600)
walkSend("d","Down")
walkSleep(500)
walkSend("w","Up")
walkSleep(100)
jump()
Sleep, 100
walkSend("w","Down")
Sleep, 500
jump()
walkSend("w","Down")
walkSleep(350)
walkSend("d","Up")
walkSleep(300)
walkSend("d","Down")
jump()
walkSleep(700)
jump()
walkSleep(600)
walkSend("d","Up")
walkSleep(500)
walkSend("w","Up")
}

0 comments on commit a593ccd

Please sign in to comment.