XIM Community

Manual Enter Instant OKB Fortnite  (Read 966 times)

Offline MRog40

  • MVP
  • *
  • Posts: 784
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Manual Enter Instant OKB Fortnite
« on: 04:21 PM - 05/23/18 »
This was requested by a bunch of people, so here it is.

It basically does what Alan McGregor's titan 2 script, at least I think.
Manually enter build mode, then press whatever you have set for building keys and it should automatically build it, no preview, no double tapping required.

For this to work you must disable the option Reset building choice. This is enabled in all my other scripts, so that is a change.

v1.0

Please report any bugs you find with the script.

Code: [Select]
#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#InstallKeybdHook
#InstallMouseHook
#UseHook

/*
===================================================================
===============     Manual Build Mode Script      =================
===============            by MRog40              =================
===============               v1.0                =================
===============              5/13/18              =================
===================================================================
*/

;=================== Script Keybinds ==============================
Walls_Key = RButton
Floors_Key = q
Stairs_Key = LButton
Pyramid_Key = Numpad1
Reset_Key = h

;SET RESET BUILDING CHOICE TO OFF IN THE GAME SETTINGS

;=================== Xim Keybinds =================================
Triangle_yButton_Key = 1
Secondary_L2_Key = o
Secondary_R2_Key = p
R1_rBumper_Key = 0
L1_lBumper_Key = 9
Circle_bButton_Key = c

;=================== Global Variables =============================
keyHold := 40
buildMode := false

/*
===================================================================
================= Do Not Edit Code Below ==========================
===================================================================
*/

;HotKeys

#If buildMode
HotKey, If, buildMode
Hotkey, *$%Walls_Key% , Walls_Macro
Hotkey, *$%Floors_Key%, Floors_Macro
Hotkey, *$%Stairs_Key% , Stairs_Macro
Hotkey, *$%Pyramid_Key%, Pyramid_Macro
Hotkey, If
#If
Hotkey, ~*%Reset_Key%, double_Triangle_Macro
HotKey, ~*%Triangle_yButton_Key%, Triangle_yButton_Macro
HotKey, ~*$%Circle_bButton_Key%, Circle_bButton_Macro
Return

;Events
Walls_Macro:
buildPiece(Walls_Key, Secondary_R2_Key)
Return

Floors_Macro:
buildPiece(Floors_Key, R1_rBumper_Key)
Return

Stairs_Macro:
buildPiece(Stairs_Key, Secondary_L2_Key)
Return

Pyramid_Macro:
buildPiece(Pyramid_Key, L1_lBumper_Key)
Return

Triangle_yButton_Macro:
buildMode := false
currentPiece = Secondary_R2_Key
Return

Circle_bButton_Macro:
buildMode := !buildMode
Return

double_Triangle_Macro:
buildMode := false
currentPiece = Secondary_R2_Key
placeTempPiece(Triangle_yButton_Key)
Sleep 40
placeTempPiece(Triangle_yButton_Key)
Return

;Functions
buildPiece(key, piece)
{
global
if(currentPiece != piece)
placeTempPiece(piece)
placePiece(key, piece)
currentPiece = %piece%
}

placePiece(key, button)
{
global
SendInput {%button% DownR}
Sleep keyHold
KeyWait, %key%
SendInput {%button% Up}
}

placeTempPiece(button)
{
global
SendInput {%button% DownR}
Sleep keyHold
SendInput {%button% Up}
Sleep keyHold
}


Someone suggested I have a donation link so here it is: Donate

Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline Voban

  • Member
  • *
  • Posts: 46
    • View Profile
  • Gamertag: Vobam
Re: Manual Enter Instant OKB Fortnite
« Reply #1 on: 08:25 PM - 05/23/18 »
Nice job !! I prefer this one  8)
But you cannot build with Left and Right Mouse ?

Walls_Key = Left
Floors_Key = o
Stairs_Key = Right

Offline MRog40

  • MVP
  • *
  • Posts: 784
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Re: Manual Enter Instant OKB Fortnite
« Reply #2 on: 08:39 PM - 05/23/18 »
Nice job !! I prefer this one  8)
But you cannot build with Left and Right Mouse ?

Walls_Key = Left
Floors_Key = o
Stairs_Key = Right

Try LButton RButton
Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline tysms1651

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #3 on: 06:45 AM - 05/24/18 »
Thank you MRog!

Question(s) - on the below portion

;=================== Script Keybinds ==============================
Walls_Key = RButton (is this preset to the right mouse Button?)
Floors_Key = q (i want to use one of my mouse side buttons what would i input here?)
Stairs_Key = LButton (is this preset to the leftmouse Button?)
Pyramid_Key = Numpad1 (i want to use one of my mouse side buttons what would i input here?)
Reset_Key = h (can the reset key be the same as enter build mode key? or does this need to be assigned separate? If so when would you use the reset key and would i just be able to exit build mode with my original key?)

;SET RESET BUILDING CHOICE TO OFF IN THE GAME SETTINGS

;=================== Xim Keybinds =================================
Triangle_yButton_Key = 1
Secondary_L2_Key = o
Secondary_R2_Key = p
R1_rBumper_Key = 0
L1_lBumper_Key = 9
Circle_bButton_Key = c

What is the point of this section? Also i use a xbox controller so does anything need to be adjusted here?

Thanks

Offline am0b

  • Member
  • *
  • Posts: 59
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #4 on: 11:08 AM - 05/24/18 »
It works good, can it place pieces faster upon press?

Offline MRog40

  • MVP
  • *
  • Posts: 784
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Re: Manual Enter Instant OKB Fortnite
« Reply #5 on: 11:09 AM - 05/24/18 »
;=================== Script Keybinds ==============================
Walls_Key = RButton (is this preset to the right mouse Button?)
Yes, but you caan change it if you'd like.

Quote
Floors_Key = q (i want to use one of my mouse side buttons what would i input here?)
That depends on your mouse. On a logitech g502 the back button is XButton1 and the front button is XButton2. If you have a different mouse, google "my mouse autohotkey side buttons" or something.

Quote
Stairs_Key = LButton (is this preset to the leftmouse Button?)
Same as RButton.

Quote
Pyramid_Key = Numpad1 (i want to use one of my mouse side buttons what would i input here?)
Same as floors_key

Quote
Reset_Key = h (can the reset key be the same as enter build mode key? or does this need to be assigned separate? If so when would you use the reset key and would i just be able to exit build mode with my original key?)
No, it cannot be the same key as the circle key. This key is simply to reset the script if you ever have an error, and it can be whatever key you would like but it has to be the sole purpose of that key.

Quote
;=================== Xim Keybinds =================================
Triangle_yButton_Key = 1
Secondary_L2_Key = o
Secondary_R2_Key = p
R1_rBumper_Key = 0
L1_lBumper_Key = 9
Circle_bButton_Key = c

What is the point of this section? Also i use a xbox controller so does anything need to be adjusted here?

Thanks
If only this section had, oh I don't know, some sort of title to describe its purpose.

It is the Xim Keybinds section. You put your xim keybinds here. I'm not sure what else to say. What key on your keyboard is your pickaxe key? Put that next to the key that has yButton in the name. Same for the other keys. Since you use the inferior console you can look up what all the buttons translate to on xbox.
Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline MRog40

  • MVP
  • *
  • Posts: 784
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Re: Manual Enter Instant OKB Fortnite
« Reply #6 on: 11:10 AM - 05/24/18 »
It works good, can it place pieces faster upon press?
Feel free to turn down the delays as you see fit. There are game limitations as to how fast anything can be done.
Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline tysms1651

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #7 on: 11:57 AM - 05/24/18 »
;=================== Script Keybinds ==============================
Walls_Key = RButton (is this preset to the right mouse Button?)
Yes, but you caan change it if you'd like.

Quote
Floors_Key = q (i want to use one of my mouse side buttons what would i input here?)
That depends on your mouse. On a logitech g502 the back button is XButton1 and the front button is XButton2. If you have a different mouse, google "my mouse autohotkey side buttons" or something.

Quote
Stairs_Key = LButton (is this preset to the leftmouse Button?)
Same as RButton.

Quote
Pyramid_Key = Numpad1 (i want to use one of my mouse side buttons what would i input here?)
Same as floors_key

Quote
Reset_Key = h (can the reset key be the same as enter build mode key? or does this need to be assigned separate? If so when would you use the reset key and would i just be able to exit build mode with my original key?)
No, it cannot be the same key as the circle key. This key is simply to reset the script if you ever have an error, and it can be whatever key you would like but it has to be the sole purpose of that key.

Quote
;=================== Xim Keybinds =================================
Triangle_yButton_Key = 1
Secondary_L2_Key = o
Secondary_R2_Key = p
R1_rBumper_Key = 0
L1_lBumper_Key = 9
Circle_bButton_Key = c

What is the point of this section? Also i use a xbox controller so does anything need to be adjusted here?

Thanks
If only this section had, oh I don't know, some sort of title to describe its purpose.

It is the Xim Keybinds section. You put your xim keybinds here. I'm not sure what else to say. What key on your keyboard is your pickaxe key? Put that next to the key that has yButton in the name. Same for the other keys. Since you use the inferior console you can look up what all the buttons translate to on xbox.

Thank you for listing that all out really appreciate it. True the title is pretty self explanatory i just didn't want to assume something so i figured i would ask thanks for still going through it with me. Haha i will see what i can find for xbox binds then

Offline am0b

  • Member
  • *
  • Posts: 59
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #8 on: 05:34 AM - 05/25/18 »
Feel free to turn down the delays as you see fit. There are game limitations as to how fast anything can be done.

Is that the KeyHold figure?

Offline MRog40

  • MVP
  • *
  • Posts: 784
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Re: Manual Enter Instant OKB Fortnite
« Reply #9 on: 12:04 PM - 05/25/18 »
Feel free to turn down the delays as you see fit. There are game limitations as to how fast anything can be done.
Is that the KeyHold figure?
There are other delays hard coded into the script. Anything that says Sleep x can be changed, x is in milliseconds
Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline HypeR

  • Member
  • *
  • Posts: 108
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #10 on: 06:44 AM - 05/26/18 »
for me floors and pyramide didnt work :/ ... any help? walls and stairs works well

Offline Voban

  • Member
  • *
  • Posts: 46
    • View Profile
  • Gamertag: Vobam
Re: Manual Enter Instant OKB Fortnite
« Reply #11 on: 10:27 AM - 05/26/18 »
for me floors and pyramide didnt work :/ ... any help? walls and stairs works well

Try different keys

Offline HypeR

  • Member
  • *
  • Posts: 108
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #12 on: 11:37 AM - 05/26/18 »
Didnt work :( i tested different keys

Offline Voban

  • Member
  • *
  • Posts: 46
    • View Profile
  • Gamertag: Vobam
Re: Manual Enter Instant OKB Fortnite
« Reply #13 on: 09:58 PM - 05/26/18 »
Didnt work :( i tested different keys

I dont know what to say :/
Maby you have erase something in the script, but anyway the script is broken. Sometime my fire key is reversed when i exit the build mode  >:(

Edit: The script is out of sync, not cool when you are in a big battle lol
« Last Edit: 02:53 PM - 05/27/18 by Voban »

Offline am0b

  • Member
  • *
  • Posts: 59
    • View Profile
Re: Manual Enter Instant OKB Fortnite
« Reply #14 on: 06:14 AM - 05/28/18 »
The script works fine, only issues I've had have been resolved by using the reset key.
If you are having issues with it, you either need to check your bindings, or use the reset key when out of sync.