Advertisement
Guest User

POLARIS DINO SCRIPT

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