daily pastebin goal
48%
SHARE
TWEET

Bot Creator Source (AutoHotkey)

ProfessorPants Sep 13th, 2012 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance Force
  2. #NoTrayIcon
  3.  
  4. SetWorkingDir %A_ScriptDir%
  5.  
  6. IfNotExist, 7z.exe
  7. {
  8. MsgBox, Error: Couldn't find 7z.exe!
  9. ExitApp
  10. }
  11.  
  12. GUI, -MinimizeBox
  13.  
  14. GUI, Add, Text, xm+41 Section, Name:
  15. GUI, Add, Edit, ys vBotName Limit31
  16.  
  17. GUI, Add, Text, ys x+30, Gender:
  18. GUI, Add, DropDownList, ys vBotGender, Male||Female|Cyborg
  19.  
  20. GUI, Add, Text, xm+48 Section, Skin:
  21. GUI, Add, ComboBox, ys vBotSkin, Base||Base II|Base III|Chaingun Marine|Big Fat Doomguy|Crash|Doom 64 Guy|Illucia|Orion|Phobos|Procyon|Seenas|Strife Guy|Synas
  22.  
  23. GUI, Add, Text, ys x+10, Color (HEX):
  24. GUI, Add, Edit, ys vBotColor UPPERCASE Limit6
  25.  
  26. GUI, Add, Text, xm+42 Section, Script:
  27. GUI, Add, DropDownList, ys vBotScript, DFULTBOT||HUMANBOT|FATBOT|SAUSGBOT|CRASHBOT
  28.  
  29. GUI, Add, Text, xm+24 Section, Accuracy:
  30. GUI, Add, Slider, ys vAccuracy Range-2-6 TickInterval1 ToolTip, 2
  31.  
  32. GUI, Add, Text, ys x+28, Intellect:
  33. GUI, Add, Slider, ys vIntellect Range-2-6 TickInterval1 ToolTip, 2
  34.  
  35. GUI, Add, Text, xm+38 Section, Evade:
  36. GUI, Add, Slider, ys vEvade Range-2-6 TickInterval1 ToolTip, 2
  37.  
  38. GUI, Add, Text, ys, Anticipation:
  39. GUI, Add, Slider, ys vAnticipation Range-2-6 TickInterval1 ToolTip, 2
  40.  
  41. GUI, Add, Text, xm Section, Reaction Time:
  42. GUI, Add, Slider, ys vReactionTime Range-2-6 TickInterval1 ToolTip, 2
  43.  
  44. GUI, Add, Text, ys x+14, Perception:
  45. GUI, Add, Slider, ys vPerception Range-2-6 TickInterval1 ToolTip, 2
  46.  
  47. GUI, Add, Button, xm+10 gCreateBot, Create Bot
  48.  
  49. GUI, Show, , Bot Creator
  50.  
  51. Return
  52.  
  53. GUIClose:
  54. ExitApp
  55.  
  56. CreateBot:
  57. GUI, Submit
  58. BotName=%BotName%
  59. StringReplace, BotName, BotName, |, , A
  60. FileDelete, C:\Temp\BOTINFO.txt
  61. FileSelectFolder, pk3destination, *%A_ScriptDir%, 1, Select a Destination Folder...
  62. if ErrorLevel=1
  63. {
  64. GUI, Show
  65. Return
  66. }
  67. FileAppend,
  68. (
  69. {
  70. Name = "%BotName%"
  71. Skin = "%BotSkin%"
  72. Gender = "%BotGender%"
  73. Color = "%BotColor%"
  74. RailColor = "Blue"
  75. Script = "%BotScript%"
  76. Accuracy = %Accuracy%
  77. Intellect = %Intellect%
  78. Evade = %Evade%
  79. Anticipation = %Anticipation%
  80. ReactionTime = %ReactionTime%
  81. Perception = %Perception%
  82. }
  83. ), C:\Temp\BOTINFO.txt
  84.  
  85. BotName := RegExReplace(BotName,"[ .\/:*?""<>]")
  86. StringLower, BotName, BotName
  87.  
  88. RunWait, 7z.exe a -tzip C:\Temp\%BotName%_bot.pk3 C:\Temp\BOTINFO.txt
  89. FileDelete, C:\Temp\BOTINFO.txt
  90. FileMove, C:\Temp\%BotName%_bot.pk3, %pk3destination%, 1
  91. ExitApp
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top