PersonsadminTeam

Polaris's Dinosaur Simulator Script Leaked

Apr 1st, 2017
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.38 KB | None | 0 0
  1. Dino Script Created by POLARIS
  2. ____________
  3. 2017 edition
  4. ____________
  5.  
  6. ; DO NOT RESELL UNDER TOS CONDITION. MADE BY POLARIS AND ARCTURUS
  7. open
  8. user.select.humanoid{"Username.[value]}
  9. value = game.Workspace.GameEvents.addThirst:FireServer("100")
  10. for i in b {
  11. game.Workspace.GameFunctions.ClientEvents.addThirst:FireServer(100)
  12.  
  13. game.Workspace.GameFunctions.ClientEvents.EatPlant:FireServer("Fern",100)
  14.  
  15. game.Workspace.GameFunctions.UpdateDinoDNADS:InvokeServer(50)
  16.  
  17. while wait() do
  18. game.Workspace.GameFunctions.AddHealth:InvokeServer(21e8)
  19. end
  20.  
  21. game.Workspace.GameFunctions.GrowPlayer:InvokeServer()
  22.  
  23. after:
  24. invoke.server.xml{}
  25. -- Var scripper thanks to Jackal
  26. game.Workspace.GameFunctions.GiveForceField:FireServer(10)
  27.  
  28.  
  29. child = game.Workspace:GetChildren()
  30. mods = {}
  31. count = 0
  32. for i, v in pairs (child) do
  33.  
  34. OPEN GUI;
  35. using namespace std;
  36.  
  37. void init();
  38. void ShowWindowForm();
  39.  
  40.  
  41.  
  42.  
  43. void Print(HWND hWndEdit, std::string pszText)
  44. {
  45. int nLength = GetWindowTextLength(hWndEdit);
  46. SendMessage(hWndEdit, EM_SETSEL, (WPARAM)nLength, (LPARAM)nLength);
  47. SendMessage(hWndEdit, EM_REPLACESEL, (WPARAM)FALSE, (LPARAM)pszText.c_str());
  48. }
  49.  
  50. #define INPUT_CHAR_LIMIT 500
  51.  
  52. #define ALX_CONSOLE_WINDOW (WM_APP + 500)
  53. #define ALX_INPUT_FIELD (WM_APP + 501)
  54. #define ALX_WAYPOINT_BOX (WM_APP + 502)
  55.  
  56. #define MALX_EXIT (WM_APP + 600)
  57. #define MALX_RESTART (WM_APP + 601)
  58. #define MALX_ABOUT (WM_APP + 602)
  59. #define MALX_CREDITS (WM_APP + 603)
  60. #define MALX_COMMANDS (WM_APP + 604)
  61.  
  62.  
  63.  
  64. HWND ParentWindow = NULL;
  65. HWND MainWindow = NULL;
  66. HMENU WindowMenu = NULL;
  67. HMODULE HInstance = NULL;
  68.  
  69. HWND InputField = NULL;
  70. HWND txtbox = NULL;
  71. HWND WaypointBox = NULL;
  72.  
  73. LRESULT CALLBACK DLLWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
  74. {
  75. switch (message)
  76. {
  77. case WM_CTLCOLORSTATIC:
  78. {
  79. HDC hEdit = (HDC)wParam;
  80. SetTextColor(hEdit, RGB(0, 0, 0));
  81. SetBkColor(hEdit, RGB(255, 255, 255));
  82. return (LRESULT)GetStockObject(WHITE_BRUSH);
  83. }
  84. case WM_COMMAND:
  85. switch (LOWORD(wParam))
  86. {
  87. case MALX_EXIT:
  88. if (MessageBox(hwnd, "Are you sure you want to exit?", "Exit", MB_YESNOCANCEL) == IDYES)
  89. ExitThread(0);
  90. break;
  91. case MALX_CREDITS:
  92. MessageBox(hwnd, "SevenV2 Credits/n/r Script() - Main Coder/n/r AzuLX - Coder/n/r DionRBLX - Making Seven UI/n/r mrjoshy12 - Testing and Feedback/n/r Team AzuL - everything!!! ", "Credits", MB_OKCANCEL);
  93. break;
  94.  
  95. case MALX_COMMANDS:
  96. // Startt("cmds");
  97. break;
  98. case ALX_INPUT_FIELD:
  99. if (HIWORD(wParam) == EN_MAXTEXT) {
  100. char cText[INPUT_CHAR_LIMIT];
  101. SendMessage((HWND)lParam, WM_GETTEXT, INPUT_CHAR_LIMIT, (LPARAM)cText);
  102.  
  103. if (strcmp(cText, "") == 0)
  104. break;
  105.  
  106. SendMessage((HWND)lParam, WM_SETTEXT, NULL, (LPARAM)"");
  107.  
  108. //std::string command = cText;
  109. //Startt(cText);
  110. }
  111.  
  112. break;
  113. }
  114. break;
  115. case WM_DESTROY:
  116. ExitThread(0);
  117. break;
  118.  
  119. case WM_QUIT:
  120. ExitThread(0);
  121. break;
  122. default:
  123. return DefWindowProc(hwnd, message, wParam, lParam);
  124. }
  125. return 0;
  126. }
  127.  
  128. BOOL RegisterWindowClass(const char* wClassName) {
  129. WNDCLASSEX nClass;
  130.  
  131. nClass.cbSize = sizeof(WNDCLASSEX);
  132. nClass.style = CS_DBLCLKS;
  133. nClass.lpfnWndProc = DLLWindowProc;
  134. nClass.cbClsExtra = 0;
  135. nClass.cbWndExtra = 0;
  136. nClass.hInstance = GetModuleHandle(NULL);
  137. nClass.hIcon = LoadIcon(NULL, IDI_APPLICATION); // TODO: make an icon for alx?
  138. nClass.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
  139. nClass.hCursor = LoadCursor(NULL, IDC_ARROW);
  140. nClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
  141. nClass.lpszMenuName = "what";
  142. nClass.lpszClassName = wClassName;
  143.  
  144. if (!RegisterClassEx(&nClass))
  145. return 0;
  146.  
  147. return 1;
  148. }
  149.  
  150. BOOL StartMessageLoop() {
  151. MSG msg;
  152. BOOL bRet;
  153.  
  154. while ((bRet = GetMessage(&msg, NULL, 0, 0)) != 0)
  155. {
  156. if (bRet == 0) {
  157. return 0;
  158. }
  159. else if (bRet == -1)
  160. {
  161. // handle the error and possibly exit
  162. //return msg.wParam;
  163. return 0;
  164. }
  165. else
  166. {
  167. TranslateMessage(&msg);
  168. DispatchMessage(&msg);
  169. }
  170. }
  171. }
  172.  
  173. BOOL CreateSubwindows() {
  174. //HINSTANCE hInstance = GetModuleHandle(NULL);
  175. txtbox = CreateWindowEx(NULL, "EDIT", "", WS_CHILD | WS_BORDER | WS_VSCROLL | ES_MULTILINE | WS_VISIBLE | ES_READONLY | ES_AUTOVSCROLL, 1, 20, 450, 234, MainWindow, (HMENU)ALX_CONSOLE_WINDOW, HInstance, 0);
  176. //HWND consoleFieldLabel = CreateWindowEx(NULL, "STATIC", "", WS_CHILD | WS_VISIBLE, 10, 0, 100, 20, MainWindow, NULL, HInstance, NULL);
  177. InputField = CreateWindowEx(NULL, "EDIT", "", WS_CHILD | WS_BORDER | ES_MULTILINE | WS_VISIBLE, 1, 284, 420, 100, MainWindow, (HMENU)ALX_INPUT_FIELD, HInstance, 0);
  178. HWND execute = CreateWindowEx(NULL, "button", "Execute", WS_CHILD | WS_VISIBLE | WS_BORDER, 1, 253, 100, 32, MainWindow, NULL, NULL, NULL);
  179. HWND openfile = CreateWindowEx(NULL, "button", "Open file", WS_CHILD | WS_VISIBLE | WS_BORDER, 100, 253, 220, 32, MainWindow, NULL, NULL, NULL);
  180. HWND clear = CreateWindowEx(NULL, "button", "Clear", WS_CHILD | WS_VISIBLE | WS_BORDER, 320, 253, 100, 32, MainWindow, NULL, NULL, NULL);
  181.  
  182.  
  183.  
  184.  
  185. //HWND inputFieldLabel = CreateWindowEx(NULL, "STATIC", "", WS_CHILD | WS_VISIBLE, 10, 230, 100, 20, MainWindow, NULL, HInstance, NULL);
  186. //SendMessage(inputFieldLabel, WM_SETTEXT, NULL, (LPARAM)"Input");
  187. //SendMessage(consoleFieldLabel, WM_SETTEXT, NULL, (LPARAM)"Console");
  188. SendMessage(InputField, EM_SETLIMITTEXT, INPUT_CHAR_LIMIT, NULL);
  189.  
  190. //WaypointBox = CreateWindowEx(NULL, "LISTBOX", "", WS_CHILD | WS_BORDER | WS_VSCROLL | WS_VISIBLE, 10, 280, 520, 100, MainWindow, (HMENU)ALX_WAYPOINT_BOX, HInstance, 0);
  191. //SendMessage(WaypointBox, LVM_SETITEMTEXT, )
  192.  
  193. HFONT textFont = CreateFont(18, 0, 0, 0, FW_LIGHT, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_OUTLINE_PRECIS, CLIP_DEFAULT_PRECIS, CLEARTYPE_QUALITY, VARIABLE_PITCH, TEXT("Segoe UI"));
  194.  
  195. //SendMessage(inputFieldLabel, WM_SETFONT, (WPARAM)textFont, MAKELPARAM(TRUE, 0));
  196. //SendMessage(consoleFieldLabel, WM_SETFONT, (WPARAM)textFont, MAKELPARAM(TRUE, 0));
  197. SendMessage(txtbox, WM_SETFONT, (WPARAM)textFont, MAKELPARAM(TRUE, 0));
  198. SendMessage(InputField, WM_SETFONT, (WPARAM)textFont, MAKELPARAM(TRUE, 0));
  199.  
  200. UpdateWindow(MainWindow);
  201.  
  202. return 1;
  203. }
  204.  
  205. BOOL CreateWindowMenu() {
  206. WindowMenu = CreateMenu();
  207. if (!WindowMenu)
  208. return 0;
  209.  
  210. HMENU mainDropdown = CreatePopupMenu();
  211. AppendMenu(mainDropdown, MF_STRING, MALX_EXIT, "Exit");
  212.  
  213.  
  214. AppendMenu(WindowMenu, MF_POPUP, (UINT_PTR)mainDropdown, "Sevenv2");
  215.  
  216.  
  217.  
  218. HMENU aboutDropdown = CreatePopupMenu();
  219. AppendMenu(aboutDropdown, MF_STRING, MALX_CREDITS, "Credits");
  220. AppendMenu(aboutDropdown, MF_STRING, MALX_ABOUT, "Large script window");
  221.  
  222. AppendMenu(WindowMenu, MF_POPUP, (UINT_PTR)aboutDropdown, "View");
  223.  
  224. return 1;
  225. }
  226.  
  227. BOOL InitiateWindow() {
  228. HInstance = GetModuleHandle(NULL);
  229.  
  230. UnregisterClass("ALX_WINDOW", HInstance);
  231. RegisterWindowClass("ALX_WINDOW");
  232.  
  233. char alxName[50];
  234.  
  235. _snprintf_s(alxName, 50, "Seven v2");
  236.  
  237. //ParentWindow = FindWindow(NULL, "ROBLOX");
  238. if (!CreateWindowMenu())
  239. return 0;
  240.  
  241. if (!(MainWindow = CreateWindowEx(
  242. NULL,
  243. "ALX_WINDOW",
  244. alxName,
  245. WS_EX_PALETTEWINDOW, CW_USEDEFAULT, CW_USEDEFAULT,
  246. 425,
  247. 434,
  248. NULL, //ParentWindow,
  249. WindowMenu,
  250. HInstance,
  251. NULL))) return 0;
  252.  
  253. //ScrollWindowEx(MainWindow, 0, 560, NULL, NULL, NULL, NULL, SW_SCROLLCHILDREN | SW_SMOOTHSCROLL);
  254. //EnableScrollBar(MainWindow, SB_VERT, ESB_ENABLE_BOTH);
  255.  
  256. CreateSubwindows();
  257. UpdateWindow(MainWindow);
  258.  
  259. ShowWindow(MainWindow, SW_SHOWNORMAL);
  260. init();
  261.  
  262. return StartMessageLoop();
  263. }
  264.  
  265. bool SERVER(int n) {
  266. bool SERVER(true);
  267. Print(txtbox, "Loading serverside beta1\r\n");
  268. Print(txtbox, "Checking server\r\n");
  269. for (int i(80); i<n; i++){ //didnt add any dots 443 port main server
  270. if (n%i == 80) SERVER = false;
  271. Print(txtbox, "Serverside failed\r\n");
  272.  
  273. //break; why the fuck should i break i should close
  274. //use break; close wont work
  275. }
  276. return SERVER;
  277. }
  278.  
  279.  
  280. void ShowWindowForm() {
  281. InitiateWindow();
  282. }
  283.  
  284. void init() {
  285. Print(txtbox, "Welcome to SevenV2 Continued...\r\n");
  286. Print(txtbox, "Checking if any reverse-engineering products are hooked... OK! \r\n");
  287. Print(txtbox, "Authenticating... OK! \r\n");
  288. Print(txtbox, "Initializing... OK! \r\n");
  289.  
  290.  
  291. Print(txtbox, "Filtering is Disabled/Enabled \r\n");
  292. Print(txtbox, "Welcome, (plr name lolz)\r\n");
  293. //Working on the serverside failed think since
  294.  
  295. WriteProcessMemory(SERVER, (PBYTE)PAGE_READWRITE, "\x5D\x3E\x98\x00", 2, 0);
  296.  
  297. //Whitelist
  298. }/// Whitelist Dinisaurs
  299.  
  300. // Use commans like
  301. // ;speed me 100
  302. // ;give me 100000 DNA
  303. // ;equip
  304.  
  305.  
  306. }
Add Comment
Please, Sign In to add comment