Advertisement
jdsd

Dark Souls III Auto Char Creation

Jan 29th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance Force
  2. #MaxHotkeysPerInterval 99999
  3. ; #IfWinActive ahk_class FDPclass
  4.  
  5. IniRead, Name, ds3cc.ini, Settings, CharacterName, Name
  6. IniRead, ChosenHotkey, ds3cc.ini, Settings, Hotkey, F4
  7. IniRead, StartingClass, ds3cc.ini, Settings, StartingClass, 1
  8. IniRead, BurialGift, ds3cc.ini, Settings, BurialGift, 1
  9.  
  10. Gui, Show, w260 h145, Test
  11.  
  12. Gui, Add, Text,   w120 x10, Character name:
  13. Gui, Add, Edit,   w120 x+0 vName, %Name%
  14.  
  15. Gui, Add, Text,   w120 x10, Hotkey:
  16. Gui, Add, Hotkey, w120 x+0 vChosenHotkey, %ChosenHotkey%
  17.  
  18. Gui, Add, Text,         w120 x10, Starting class:
  19. Gui, Add, DropDownList, w120 x+0 vStartingClass AltSubmit Choose%StartingClass%, Knight|Mercenary|Warrior|Herald|Thief|Assassin|Sorcerer|Pyromancer|Cleric|Deprived
  20.  
  21. Gui, Add, Text,         w120 x10, Burial gift:
  22. Gui, Add, DropDownList, w120 x+0 vBurialGift AltSubmit Choose%BurialGift%, Life Ring|Divine Blessing|Hidden Blessing|Black Firebomb|Fire Gem|Sovereignless Soul|Rusted Gold Coin|Cracked Red Eye Orb|Young White Branch
  23.  
  24. Gui, Add, Button, w240 x10 gSetup, OK
  25.  
  26. Return
  27.  
  28. ; InputBox, Name, Enter your character's name, , , 300, 105
  29.  
  30. Sendl(key) {
  31.   Send {%key% down}
  32.   Sleep 10
  33.   Send {%key% up}
  34.   Sleep 5
  35. }
  36.  
  37. SendE() {
  38.   Sendl("e")
  39. }
  40.  
  41. SendName(Name) {
  42.   Loop, Parse, Name
  43.   {
  44.     Sendl(A_LoopField)
  45.   }
  46. }
  47.  
  48. Setup:
  49.  Gui, Submit
  50.  
  51.   IniWrite, %Name%, ds3cc.ini, Settings, CharacterName
  52.   IniWrite, %ChosenHotkey%, ds3cc.ini, Settings, Hotkey
  53.   IniWrite, %StartingClass%, ds3cc.ini, Settings, StartingClass
  54.   IniWrite, %BurialGift%, ds3cc.ini, Settings, BurialGift
  55.  
  56.   StartingClass -= 1
  57.  
  58.   Hotkey, %ChosenHotkey%, ApplyHotkey
  59.   Return
  60.  
  61. ApplyHotkey:
  62.  SendE()
  63.   Sleep 250
  64.   SendName(Name)
  65.   Sendl("Enter")
  66.   Sleep 500
  67.   ; Gender
  68.   Sendl("Down")
  69.   SendE()
  70.   Sleep 250
  71.   Sendl("Left")
  72.   SendE()
  73.   Sleep 500
  74.   Sendl("Down")
  75.   SendE()
  76.   ; Class
  77.   Sendl("Down")
  78.   Sendl("Down")
  79.   SendE()
  80.   Loop %StartingClass% {
  81.     Sendl("Down")
  82.   }
  83.   SendE()
  84.   ; Burial gift
  85.   Sendl("Down")
  86.   SendE()
  87.   Loop %BurialGift% {
  88.     Sendl("Down")
  89.   }
  90.   SendE()
  91.   ; Finalize
  92.   Loop 4 {
  93.     Sendl("Down")
  94.   }
  95.   SendE()
  96.   Sendl("Left")
  97.   Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement