content
stringlengths
5
1.05M
-- Copyright (c) 2015-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local Bullet, parent = torch.class('Bullet','MazeItem') function Bullet:__init(attr,maze) -- dummy object that exists for one time step self.maze = maze self.map = maze.map self.type = 'Bullet' self.name = attr.name self.attr = attr self.loc = self.attr.loc self.nactions = 0 self.action_names = {} self.action_ids ={} self.actions ={} self.updateable = true self.killed = false self.lifespan = 0 function self:is_reachable() return true end end function Bullet:update() if self.lifespan==0 then self.killed = true self.map:remove_item(self) end self.lifespan = self.lifespan - 1 end function Bullet:clone() local attr = {} attr.type = 'Bullet' attr.name = self.name attr.loc = {} attr.loc.x = self.attr.loc.x attr.loc.y = self.attr.loc.y local e = self.new(attr, self.maze) e.killed = self.killed e.lifespan = self.lifespan return e end function Bullet:change_owner(maze) self.maze = maze self.map = maze.map end
------------------------------------------------- -- Calendar Widget for Awesome Window Manager -- Shows the current month and supports scroll up/down to switch month -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/calendar-widget -- @author Pavel Makhov -- @copyright 2019 Pavel Makhov ------------------------------------------------- local awful = require("awful") local beautiful = require("beautiful") local wibox = require("wibox") local gears = require("gears") local naughty = require("naughty") local calendar_widget = {} local function worker(user_args) local calendar_themes = { nord = { bg = '#2E3440', fg = '#D8DEE9', focus_date_bg = '#88C0D0', focus_date_fg = '#000000', weekend_day_bg = '#3B4252', weekday_fg = '#88C0D0', header_fg = '#E5E9F0', border = '#4C566A' }, outrun = { bg = '#0d0221', fg = '#D8DEE9', focus_date_bg = '#650d89', focus_date_fg = '#2de6e2', weekend_day_bg = '#261447', weekday_fg = '#2de6e2', header_fg = '#f6019d', border = '#261447' }, dark = { bg = '#000000', fg = '#ffffff', focus_date_bg = '#ffffff', focus_date_fg = '#000000', weekend_day_bg = '#444444', weekday_fg = '#ffffff', header_fg = '#ffffff', border = '#333333' }, light = { bg = '#ffffff', fg = '#000000', focus_date_bg = '#000000', focus_date_fg = '#ffffff', weekend_day_bg = '#AAAAAA', weekday_fg = '#000000', header_fg = '#000000', border = '#CCCCCC' }, monokai = { bg = '#272822', fg = '#F8F8F2', focus_date_bg = '#AE81FF', focus_date_fg = '#ffffff', weekend_day_bg = '#75715E', weekday_fg = '#FD971F', header_fg = '#F92672', border = '#75715E' }, naughty = { bg = beautiful.notification_bg or beautiful.bg, fg = beautiful.notification_fg or beautiful.fg, focus_date_bg = beautiful.notification_fg or beautiful.fg, focus_date_fg = beautiful.notification_bg or beautiful.bg, weekend_day_bg = beautiful.bg_focus, weekday_fg = beautiful.fg, header_fg = beautiful.fg, border = beautiful.border_normal } } local args = user_args or {} if args.theme ~= nil and calendar_themes[args.theme] == nil then naughty.notify({ preset = naughty.config.presets.critical, title = 'Calendar Widget', text = 'Theme "' .. args.theme .. '" not found, fallback to default'}) args.theme = 'naughty' end local theme = args.theme or 'naughty' local placement = args.placement or 'top' local radius = args.radius or 8 local styles = {} local function rounded_shape(size) return function(cr, width, height) gears.shape.rounded_rect(cr, width, height, size) end end styles.month = { padding = 4, bg_color = calendar_themes[theme].bg, border_width = 0, } styles.normal = { markup = function(t) return t end, shape = rounded_shape(4) } styles.focus = { fg_color = calendar_themes[theme].focus_date_fg, bg_color = calendar_themes[theme].focus_date_bg, markup = function(t) return '<b>' .. t .. '</b>' end, shape = rounded_shape(4) } styles.header = { fg_color = calendar_themes[theme].header_fg, bg_color = calendar_themes[theme].bg, markup = function(t) return '<b>' .. t .. '</b>' end } styles.weekday = { fg_color = calendar_themes[theme].weekday_fg, bg_color = calendar_themes[theme].bg, markup = function(t) return '<b>' .. t .. '</b>' end, } local function decorate_cell(widget, flag, date) if flag == 'monthheader' and not styles.monthheader then flag = 'header' end -- highlight only today's day if flag == 'focus' then local today = os.date('*t') if today.month ~= date.month then flag = 'normal' end end local props = styles[flag] or {} if props.markup and widget.get_text and widget.set_markup then widget:set_markup(props.markup(widget:get_text())) end -- Change bg color for weekends local d = { year = date.year, month = (date.month or 1), day = (date.day or 1) } local weekday = tonumber(os.date('%w', os.time(d))) local default_bg = (weekday == 0 or weekday == 6) and calendar_themes[theme].weekend_day_bg or calendar_themes[theme].bg local ret = wibox.widget { { { widget, halign = 'center', widget = wibox.container.place }, margins = (props.padding or 2) + (props.border_width or 0), widget = wibox.container.margin }, shape = props.shape, shape_border_color = props.border_color or '#000000', shape_border_width = props.border_width or 0, fg = props.fg_color or calendar_themes[theme].fg, bg = props.bg_color or default_bg, widget = wibox.container.background } return ret end local cal = wibox.widget { date = os.date('*t'), font = beautiful.get_font(), fn_embed = decorate_cell, long_weekdays = true, widget = wibox.widget.calendar.month } local popup = awful.popup { ontop = true, visible = false, shape = rounded_shape(radius), offset = { y = 5 }, border_width = 1, border_color = calendar_themes[theme].border, widget = cal } popup:buttons( awful.util.table.join( awful.button({}, 5, function() local a = cal:get_date() a.month = a.month + 1 cal:set_date(nil) cal:set_date(a) popup:set_widget(cal) end), awful.button({}, 4, function() local a = cal:get_date() a.month = a.month - 1 cal:set_date(nil) cal:set_date(a) popup:set_widget(cal) end) ) ) function calendar_widget.toggle() if popup.visible then -- to faster render the calendar refresh it and just hide cal:set_date(nil) -- the new date is not set without removing the old one cal:set_date(os.date('*t')) popup:set_widget(nil) -- just in case popup:set_widget(cal) popup.visible = not popup.visible else if placement == 'top' then awful.placement.top(popup, { margins = { top = 30 }, parent = awful.screen.focused() }) elseif placement == 'top_right' then awful.placement.top_right(popup, { margins = { top = 30, right = 10}, parent = awful.screen.focused() }) elseif placement == 'bottom_right' then awful.placement.bottom_right(popup, { margins = { bottom = 30, right = 10}, parent = awful.screen.focused() }) else awful.placement.top(popup, { margins = { top = 30 }, parent = awful.screen.focused() }) end popup.visible = true end end return calendar_widget end return setmetatable(calendar_widget, { __call = function(_, ...) return worker(...) end })
endpointMap = { ["367abb81-9844-35f1-ad32-98f038001003"] = "svcctl", ["86d35949-83c9-4044-b424-db363231fd0c"] = "ITaskSchedulerService", ["378e52b0-c0a9-11cf-822d-00aa0051e40f"] = "sasec", ["1ff70682-0a51-30e8-076d-740be8cee98b"] = "atsvc", ["0a74ef1c-41a4-4e06-83ae-dc74fb1cdd53"] = "idletask", ["906b0ce0-c70b-1067-b317-00dd010662da"] = "IXnRemote", ["ae33069b-a2a8-46ee-a235-ddfd339be281"] = "IRPCRemoteObject", ["0b6edbfa-4a24-4fc6-8a23-942b1eca65d1"] = "IRPCAsyncNotify", ["afa8bd80-7d8a-11c9-bef4-08002b102989"] = "mgmt", ["f5cc59b4-4264-101a-8c59-08002b2f8426"] = "FrsRpc", ["000001a0-0000-0000-c000-000000000046"] = "IRemoteSCMActivator", ["00000143-0000-0000-c000-000000000046"] = "IRemUnknown2", ["12345778-1234-abcd-ef00-0123456789ab"] = "lsarpc", ["76f03f96-cdfd-44fc-a22c-64950a001209"] = "IRemoteWinspool", ["12345678-1234-abcd-ef00-01234567cffb"] = "netlogon", ["e3514235-4b06-11d1-ab04-00c04fc2dcd2"] = "drsuapi", ["5261574a-4572-206e-b268-6b199213b4e4"] = "AsyncEMSMDB", ["4d9f4ab8-7d1c-11cf-861e-0020af6e7c57"] = "IActivation", ["99fcfec4-5260-101b-bbcb-00aa0021347a"] = "IObjectExporter", ["e1af8308-5d1f-11c9-91a4-08002b14a0fa"] = "epmapper", ["12345778-1234-abcd-ef00-0123456789ac"] = "samr", ["4b324fc8-1670-01d3-1278-5a47bf6ee188"] = "srvsvc", ["45f52c28-7f9f-101a-b52b-08002b2efabe"] = "winspipe", ["6bffd098-a112-3610-9833-46c3f87e345a"] = "wkssvc", ["3919286a-b10c-11d0-9ba8-00c04fd92ef5"] = "dssetup", ["12345678-1234-abcd-ef00-0123456789ab"] = "spoolss", ["1544f5e0-613c-11d1-93df-00c04fd7bd09"] = "exchange_rfr", ["f5cc5a18-4264-101a-8c59-08002b2f8426"] = "nspi", ["a4f1db00-ca47-1067-b31f-00dd010662da"] = "exchange_mapi", ["9556dc99-828c-11cf-a37e-00aa003240c7"] = "IWbemServices", ["f309ad18-d86a-11d0-a075-00c04fb68820"] = "IWbemLevel1Login", ["d4781cd6-e5d3-44df-ad94-930efe48a887"] = "IWbemLoginClientID", ["44aca674-e8fc-11d0-a07c-00c04fb68820"] = "IWbemContext interface", ["674b6698-ee92-11d0-ad71-00c04fd8fdff"] = "IWbemContext unmarshaler", ["dc12a681-737f-11cf-884d-00aa004b2e24"] = "IWbemClassObject interface", ["4590f812-1d3a-11d0-891f-00aa004b2e24"] = "IWbemClassObject unmarshaler", ["9a653086-174f-11d2-b5f9-00104b703efd"] = "IWbemClassObject interface", ["c49e32c6-bc8b-11d2-85d4-00105a1f8304"] = "IWbemBackupRestoreEx interface", ["7c857801-7381-11cf-884d-00aa004b2e24"] = "IWbemObjectSink interface", ["027947e1-d731-11ce-a357-000000000001"] = "IEnumWbemClassObject interface", ["44aca675-e8fc-11d0-a07c-00c04fb68820"] = "IWbemCallResult interface", ["c49e32c7-bc8b-11d2-85d4-00105a1f8304"] = "IWbemBackupRestore interface", ["a359dec5-e813-4834-8a2a-ba7f1d777d76"] = "IWbemBackupRestoreEx interface", ["f1e9c5b2-f59b-11d2-b362-00105a1f8177"] = "IWbemRemoteRefresher interface", ["2c9273e0-1dc3-11d3-b364-00105a1f8177"] = "IWbemRefreshingServices interface", ["423ec01e-2e35-11d2-b604-00104b703efd"] = "IWbemWCOSmartEnum interface", ["1c1c45ee-4395-11d2-b60b-00104b703efd"] = "IWbemFetchSmartEnum interface", ["541679AB-2E5F-11d3-B34E-00104BCC4B4A"] = "IWbemLoginHelper interface", ["51c82175-844e-4750-b0d8-ec255555bc06"] = "KMS", ["50abc2a4-574d-40b3-9d66-ee4fd5fba076"] = "dnsserver", ["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"] = "AudioSrv", ["c386ca3e-9061-4a72-821e-498d83be188f"] = "AudioRpc", ["6bffd098-a112-3610-9833-012892020162"] = "browser", ["91ae6020-9e3c-11cf-8d7c-00aa00c091be"] = "ICertPassage", ["c8cb7687-e6d3-11d2-a958-00c04f682e16"] = "DAV RPC SERVICE", ["82273fdc-e32a-18c3-3f78-827929dc23ea"] = "eventlog", ["3d267954-eeb7-11d1-b94e-00c04fa3080d"] = "HydraLsPipe", ["894de0c0-0d55-11d3-a322-00c04fa321a1"] = "InitShutdown", ["d95afe70-a6d5-4259-822e-2c84da1ddb0d"] = "WindowsShutdown", ["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"] = "IKeySvc", ["68b58241-c259-4f03-a2e5-a2651dcbc930"] = "IKeySvc2", ["0d72a7d4-6148-11d1-b4aa-00c04fb66ea0"] = "ICertProtect", ["f50aac00-c7f3-428e-a022-a6b71bfb9d43"] = "ICatDBSvc", ["338cd001-2244-31f1-aaaa-900038001003"] = "winreg", ["3dde7c30-165d-11d1-ab8f-00805f14db40"] = "BackupKey", ["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"] = "RpcSrvDHCPC", ["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6"] = "dhcpcsvc6", ["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"] = "lcrpc", ["5ca4a760-ebb1-11cf-8611-00a0245420ed"] = "winstation_rpc", ["12b81e99-f207-4a4c-85d3-77b42f76fd14"] = "ISeclogon", ["d6d70ef0-0e3b-11cb-acc3-08002b1d29c3"] = "NsiS", ["d3fbb514-0e3b-11cb-8fad-08002b1d29c3"] = "NsiC", ["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"] = "NsiM", ["17fdd703-1827-4e34-79d4-24a55c53bb37"] = "msgsvc", ["5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc"] = "msgsvcsend", ["8d9f4e40-a03d-11ce-8f69-08003e30051b"] = "pnp", ["57674cd0-5200-11ce-a897-08002b2e9c6d"] = "lls_license", ["342cfd40-3c6c-11ce-a893-08002b2e9c6d"] = "llsrpc", ["4fc742e0-4a10-11cf-8273-00aa004ae673"] = "netdfs", ["83da7c00-e84f-11d2-9807-00c04f8ec850"] = "sfcapi", ["2f5f3220-c126-1076-b549-074d078619da"] = "nddeapi" } opCodeMap = {} for k,v in pairs(endpointMap) do opCodeMap[k] = {} end opCodeMap["1ff70682-0a51-30e8-076d-740be8cee98b"][0x00] = "NetrJobAdd" opCodeMap["1ff70682-0a51-30e8-076d-740be8cee98b"][0x01] = "NetrJobDel" opCodeMap["1ff70682-0a51-30e8-076d-740be8cee98b"][0x02] = "NetrJobEnum" opCodeMap["1ff70682-0a51-30e8-076d-740be8cee98b"][0x03] = "NetrJobGetInfo" opCodeMap["378e52b0-c0a9-11cf-822d-00aa0051e40f"][0x00] = "SASetAccountInformation" opCodeMap["378e52b0-c0a9-11cf-822d-00aa0051e40f"][0x01] = "SASetNSAccountInformation" opCodeMap["378e52b0-c0a9-11cf-822d-00aa0051e40f"][0x02] = "SAGetNSAccountInformation" opCodeMap["378e52b0-c0a9-11cf-822d-00aa0051e40f"][0x03] = "SAGetAccountInformation" opCodeMap["0a74ef1c-41a4-4e06-83ae-dc74fb1cdd53"][0x00] = "ItSrvRegisterIdleTask" opCodeMap["0a74ef1c-41a4-4e06-83ae-dc74fb1cdd53"][0x01] = "ItSrvUnregisterIdleTask" opCodeMap["0a74ef1c-41a4-4e06-83ae-dc74fb1cdd53"][0x02] = "ItSrvProcessIdleTasks" opCodeMap["0a74ef1c-41a4-4e06-83ae-dc74fb1cdd53"][0x03] = "ItSrvSetDetectionParameters" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x00] = "SchRpcHighestVersion" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x01] = "SchRpcRegisterTask" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x02] = "SchRpcRetrieveTask" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x03] = "SchRpcCreateFolder" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x04] = "SchRpcSetSecurity" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x05] = "SchRpcGetSecurity" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x06] = "SchRpcEnumFolder" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x07] = "SchRpcEnumTasks" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x08] = "SchRpcEnumInstances" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x09] = "SchRpcGetInstanceInfo" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x0a] = "SchRpcStopInstance" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x0b] = "SchRpcStop" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x0c] = "SchRpcRun" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x0d] = "SchRpcDelete" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x0e] = "SchRpcRename" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x0f] = "SchRpcScheduledRuntimes" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x10] = "SchRpcGetLastRunInfo" opCodeMap["86d35949-83c9-4044-b424-db363231fd0c"][0x11] = "SchRpcGetTaskInfo" opCodeMap["99fcfec4-5260-101b-bbcb-00aa0021347a"][0x00] = "ResolveOxid" opCodeMap["99fcfec4-5260-101b-bbcb-00aa0021347a"][0x01] = "SimplePing" opCodeMap["99fcfec4-5260-101b-bbcb-00aa0021347a"][0x02] = "ComplexPing" opCodeMap["99fcfec4-5260-101b-bbcb-00aa0021347a"][0x03] = "ServerAlive" opCodeMap["99fcfec4-5260-101b-bbcb-00aa0021347a"][0x04] = "ResolveOxid2" opCodeMap["99fcfec4-5260-101b-bbcb-00aa0021347a"][0x05] = "ServerAlive2" opCodeMap["4d9f4ab8-7d1c-11cf-861e-0020af6e7c57"][0x00] = "RemoteActivation" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x00] = "NspiBind" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x01] = "NspiUnbind" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x02] = "NspiUpdateStat" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x03] = "NspiQueryRows" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x04] = "NspiSeekEntries" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x05] = "NspiGetMatches" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x06] = "NspiResortRestriction" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x07] = "NspiDNToEph" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x08] = "NspiGetPropList" opCodeMap["f5cc5a18-4264-101a-8c59-08002b2f8426"][0x09] = "NspiGetProps" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x03] = "OpenNamespace" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x04] = "CancelAsyncCall" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x05] = "QueryObjectSink" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x06] = "GetObject" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x07] = "GetObjectAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x08] = "PutClass" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x09] = "PutClassAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x0a] = "DeleteClass" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x0b] = "DeleteClassAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x0c] = "CreateClassEnum" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x0d] = "CreateClassEnumAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x0e] = "PutInstance" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x0f] = "PutInstanceAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x10] = "DeleteClass" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x11] = "DeleteClassAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x12] = "CreateInstanceEnum" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x13] = "CreateInstanceEnumAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x14] = "ExecQuery" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x15] = "ExecQueryAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x16] = "ExecNotificationQuery" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x17] = "ExecNotificationQueryAsync" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x18] = "ExecMethod" opCodeMap["9556dc99-828c-11cf-a37e-00aa003240c7"][0x19] = "ExecMethodAsync" opCodeMap["f309ad18-d86a-11d0-a075-00c04fb68820"][0x03] = "EstablishPosition" opCodeMap["f309ad18-d86a-11d0-a075-00c04fb68820"][0x04] = "RequestChallenge" opCodeMap["f309ad18-d86a-11d0-a075-00c04fb68820"][0x05] = "WBEMLogin" opCodeMap["f309ad18-d86a-11d0-a075-00c04fb68820"][0x06] = "NTLMLogin" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x00] = "FrsRpcSendCommPkt" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x01] = "FrsRpcVerifyPromotionParent" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x02] = "FrsRpcStartPromotionParent" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x03] = "FrsNOP" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x04] = "FrsBackupComplete" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x05] = "FrsBackupComplete" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x06] = "FrsBackupComplete" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x07] = "FrsBackupComplete" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x08] = "FrsBackupComplete" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x09] = "FrsBackupComplete" opCodeMap["f5cc59b4-4264-101a-8c59-08002b2f8426"][0x0a] = "FrsRpcVerifyPromotionParentEx" opCodeMap["00000143-0000-0000-c000-000000000046"][0x00] = "QueryInterface" opCodeMap["00000143-0000-0000-c000-000000000046"][0x01] = "AddRef" opCodeMap["00000143-0000-0000-c000-000000000046"][0x02] = "Release" opCodeMap["00000143-0000-0000-c000-000000000046"][0x03] = "RemQueryInterface" opCodeMap["00000143-0000-0000-c000-000000000046"][0x04] = "RemAddRef" opCodeMap["00000143-0000-0000-c000-000000000046"][0x05] = "RemRelease" opCodeMap["00000143-0000-0000-c000-000000000046"][0x06] = "RemQueryInterface2" opCodeMap["000001a0-0000-0000-c000-000000000046"][0x00] = "QueryInterfaceIRemoteSCMActivator" opCodeMap["000001a0-0000-0000-c000-000000000046"][0x01] = "AddRefIRemoteISCMActivator" opCodeMap["000001a0-0000-0000-c000-000000000046"][0x02] = "ReleaseIRemoteISCMActivator" opCodeMap["000001a0-0000-0000-c000-000000000046"][0x03] = "RemoteGetClassObject" opCodeMap["000001a0-0000-0000-c000-000000000046"][0x04] = "RemoteCreateInstance" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x00] = "NetrLogonUasLogon" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x01] = "NetrLogonUasLogoff" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x02] = "NetrLogonSamLogon" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x03] = "NetrLogonSamLogoff" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x04] = "NetrServerReqChallenge" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x05] = "NetrServerAuthenticate" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x06] = "NetrServerPasswordSet" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x07] = "NetrDatabaseDeltas" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x08] = "NetrDatabaseSync" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x09] = "NetrAccountDeltas" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x0a] = "NetrAccountSync" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x0b] = "NetrGetDCName" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x0c] = "NetrLogonControl" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x0d] = "NetrGetAnyDCName" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x0e] = "NetrLogonControl2" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x0f] = "NetrServerAuthenticate2" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x10] = "NetrDatabaseSync2" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x11] = "NetrDatabaseRedo" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x12] = "NetrLogonControl2Ex" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x13] = "NetrEnumerateTrustedDomains" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x14] = "DsrGetDcName" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x15] = "NetrLogonGetCapabilities" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x16] = "NetrLogonSetServiceBits" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x17] = "NetrLogonGetTrustRid" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x18] = "NetrLogonComputeServerDigest" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x19] = "NetrLogonComputeClientDigest" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x1a] = "NetrServerAuthenticate3" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x1b] = "DsrGetDcNameEx" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x1c] = "DsrGetSiteName" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x1d] = "NetrLogonGetDomainInfo" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x1e] = "NetrServerPasswordSet2" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x1f] = "NetrServerPasswordGet" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x20] = "NetrLogonSendToSam" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x21] = "DsrAddressToSiteNamesW" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x22] = "DsrGetDcNameEx2" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x23] = "NetrLogonGetTimeServiceParentDomain" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x24] = "NetrEnumerateTrustedDomainsEx" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x25] = "DsrAddressToSiteNamesExW" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x26] = "DsrGetDcSiteCoverageW" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x27] = "NetrLogonSamLogonEx" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x28] = "DsrEnumerateDomainTrusts" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x29] = "DsrDeregisterDnsHostRecords" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x2a] = "NetrServerTrustPasswordsGet" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x2b] = "DsrGetForestTrustInformation" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x2c] = "NetrGetForestTrustInformation" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x2d] = "NetrLogonSamLogonWithFlags" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x2e] = "NetrServerGetTrustInfo" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x2f] = "unused" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x30] = "DsrUpdateReadOnlyServerDnsRecords" opCodeMap["12345678-1234-abcd-ef00-01234567cffb"][0x31] = "NetrChainSetClientAttributes" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x00] = "RpcAsyncOpenPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x01] = "RpcAsyncAddPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x02] = "RpcAsyncSetJob" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x03] = "RpcAsyncGetJob" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x04] = "RpcAsyncEnumJobs" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x05] = "RpcAsyncAddJob" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x06] = "RpcAsyncScheduleJob" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x07] = "RpcAsyncDeletePrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x08] = "RpcAsyncSetPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x09] = "RpcAsyncGetPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x0a] = "RpcAsyncStartDocPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x0b] = "RpcAsyncStartPagePrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x0c] = "RpcAsyncWritePrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x0d] = "RpcAsyncEndPagePrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x0e] = "RpcAsyncEndDocPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x0f] = "RpcAsyncAbortPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x10] = "RpcAsyncGetPrinterData" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x11] = "RpcAsyncGetPrinterDataEx" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x12] = "RpcAsyncSetPrinterData" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x13] = "RpcAsyncSetPrinterDataEx" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x14] = "RpcAsyncClosePrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x15] = "RpcAsyncAddForm" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x16] = "RpcAsyncDeleteForm" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x17] = "RpcAsyncGetForm" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x18] = "RpcAsyncSetForm" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x19] = "RpcAsyncEnumForms" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x1a] = "RpcAsyncGetPrinterDriver" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x1b] = "RpcAsyncEnumPrinterData" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x1c] = "RpcAsyncEnumPrinterDataEx" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x1d] = "RpcAsyncEnumPrinterKey" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x1e] = "RpcAsyncDeletePrinterData" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x1f] = "RpcAsyncDeletePrinterDataEx" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x20] = "RpcAsyncDeletePrinterKey" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x21] = "RpcAsyncXcvData" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x22] = "RpcAsyncSendRecvBidiData" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x23] = "RpcAsyncCreatePrinterIC" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x24] = "RpcAsyncPlayGdiScriptOnPrinterIC" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x25] = "RpcAsyncDeletePrinterIC" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x26] = "RpcAsyncEnumPrinters" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x27] = "RpcAsyncAddPrinterDriver" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x28] = "RpcAsyncEnumPrinterDrivers" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x29] = "RpcAsyncGetPrinterDriverDirectory" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x2a] = "RpcAsyncDeletePrinterDriver" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x2b] = "RpcAsyncDeletePrinterDriverEx" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x2c] = "RpcAsyncAddPrintProcessor" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x2d] = "RpcAsyncEnumPrintProcessors" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x2e] = "RpcAsyncGetPrintProcessorDirectory" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x2f] = "RpcAsyncEnumPorts" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x30] = "RpcAsyncEnumMonitors" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x31] = "RpcAsyncAddPort" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x32] = "RpcAsyncSetPort" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x33] = "RpcAsyncAddMonitor" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x34] = "RpcAsyncDeleteMonitor" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x35] = "RpcAsyncDeletePrintProcessor" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x36] = "RpcAsyncEnumPrintProcessorDatatypes" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x37] = "RpcAsyncAddPerMachineConnection" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x38] = "RpcAsyncDeletePerMachineConnection" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x39] = "RpcAsyncEnumPerMachineConnections" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x3a] = "RpcSyncRegisterForRemoteNotifications" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x3b] = "RpcSyncUnRegisterForRemoteNotifications" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x3c] = "RpcSyncRefreshRemoteNotifications" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x3d] = "RpcAsyncGetRemoteNotifications" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x3e] = "RpcAsyncInstallPrinterDriverFromPackage" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x3f] = "RpcAsyncUploadPrinterDriverPackage" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x40] = "RpcAsyncGetCorePrinterDrivers" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x41] = "RpcAsyncCorePrinterDriverInstalled" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x42] = "RpcAsyncGetPrinterDriverPackagePath" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x43] = "RpcAsyncDeletePrinterDriverPackage" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x44] = "RpcAsyncReadPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x45] = "RpcAsyncResetPrinter" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x46] = "RpcAsyncGetJobNamedPropertyValue" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x47] = "RpcAsyncSetJobNamedProperty" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x48] = "RpcAsyncDeleteJobNamedProperty" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x49] = "RpcAsyncEnumJobNamedProperties" opCodeMap["76f03f96-cdfd-44fc-a22c-64950a001209"][0x4a] = "RpcAsyncLogJobInfoForBranchOffice" opCodeMap["894de0c0-0d55-11d3-a322-00c04fa321a1"][0x00] = "BaseInitiateShutdown" opCodeMap["894de0c0-0d55-11d3-a322-00c04fa321a1"][0x01] = "BaseAbortShutdown" opCodeMap["894de0c0-0d55-11d3-a322-00c04fa321a1"][0x02] = "BaseInitiateShutdownEx" opCodeMap["d95afe70-a6d5-4259-822e-2c84da1ddb0d"][0x00] = "WsdrInitiateShutdown" opCodeMap["d95afe70-a6d5-4259-822e-2c84da1ddb0d"][0x01] = "WsdrAbortShutdown" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x00] = "RpcEnumPrinters" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x01] = "RpcOpenPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x02] = "RpcSetJob" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x03] = "RpcGetJob" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x04] = "RpcEnumJobs" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x05] = "RpcAddPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x06] = "RpcDeletePrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x07] = "RpcSetPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x08] = "RpcGetPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x09] = "RpcAddPrinterDriver" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x0a] = "RpcEnumPrinterDrivers" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x0b] = "RpcGetPrinterDriver" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x0c] = "RpcGetPrinterDriverDirectory" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x0d] = "RpcDeletePrinterDriver" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x0e] = "RpcAddPrintProcessor" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x0f] = "RpcEnumPrintProcessors" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x10] = "RpcGetPrintProcessorDirectory" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x11] = "RpcStartDocPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x12] = "RpcStartPagePrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x13] = "RpcWritePrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x14] = "RpcEndPagePrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x15] = "RpcAbortPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x16] = "RpcReadPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x17] = "RpcEndDocPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x18] = "RpcAddJob" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x19] = "RpcScheduleJob" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x1a] = "RpcGetPrinterData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x1b] = "RpcSetPrinterData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x1c] = "RpcWaitForPrinterChange" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x1d] = "RpcClosePrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x1e] = "RpcAddForm" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x1f] = "RpcDeleteForm" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x20] = "RpcGetForm" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x21] = "RpcSetForm" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x22] = "RpcEnumForms" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x23] = "RpcEnumPorts" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x24] = "RpcEnumMonitors" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x25] = "RpcAddPort" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x26] = "RpcConfigurePort" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x27] = "RpcDeletePort" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x28] = "RpcCreatePrinterIC" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x29] = "RpcPlayGdiScriptOnPrinterIC" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x2a] = "RpcDeletePrinterIC" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x2b] = "RpcAddPrinterConnection" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x2c] = "RpcDeletePrinterConnection" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x2d] = "RpcPrinterMessageBox" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x2e] = "RpcAddMonitor" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x2f] = "RpcDeleteMonitor" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x30] = "RpcDeletePrintProcessor" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x31] = "RpcAddPrintProvidor" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x32] = "RpcDeletePrintProvidor" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x33] = "RpcEnumPrintProcessorDatatypes" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x34] = "RpcResetPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x35] = "RpcGetPrinterDriver2" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x36] = "RpcClientFindFirstPrinterChangeNotification" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x37] = "RpcFindNextPrinterChangeNotification" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x38] = "RpcFindClosePrinterChangeNotification" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x39] = "RpcRouterFindFirstPrinterChangeNotificationOld" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x3a] = "RpcReplyOpenPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x3b] = "RpcRouterReplyPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x3c] = "RpcReplyClosePrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x3d] = "RpcAddPortEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x3e] = "RpcRemoteFindFirstPrinterChangeNotification" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x3f] = "RpcSpoolerInit" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x40] = "RpcResetPrinterEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x41] = "RpcRemoteFindFirstPrinterChangeNotificationEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x42] = "RpcRouterReplyPrinterEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x43] = "RpcRouterRefreshPrinterChangeNotification" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x44] = "RpcSetAllocFailCount" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x45] = "RpcSplOpenPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x46] = "RpcAddPrinterEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x47] = "RpcSetPort" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x48] = "RpcEnumPrinterData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x49] = "RpcDeletePrinterData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x4a] = "RpcClusterSplOpen" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x4b] = "RpcClusterSplClose" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x4c] = "RpcClusterSplIsAlive" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x4d] = "RpcSetPrinterDataEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x4e] = "RpcGetPrinterDataEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x4f] = "RpcEnumPrinterDataEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x50] = "RpcEnumPrinterKey" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x51] = "RpcDeletePrinterDataEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x52] = "RpcDeletePrinterKey" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x53] = "RpcSeekPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x54] = "RpcDeletePrinterDriverEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x55] = "RpcAddPerMachineConnection" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x56] = "RpcDeletePerMachineConnection" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x57] = "RpcEnumPerMachineConnections" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x58] = "RpcXcvData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x59] = "RpcAddPrinterDriverEx" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x5a] = "RpcSplOpenPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x5b] = "RpcGetSpoolFileInfo" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x5c] = "RpcCommitSpoolData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x5d] = "RpcCloseSpoolFileHandle" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x5e] = "RpcFlushPrinter" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x5f] = "RpcSendRecvBidiData" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x60] = "RpcAddDriverCatalog" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x61] = "RpcAddPrinterConnection2" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x62] = "RpcDeletePrinterConnection2" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x63] = "RpcInstallPrinterDriverFromPackage" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x64] = "RpcUploadPrinterDriverPackage" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x65] = "RpcGetCorePrinterDrivers" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x66] = "RpcCorePrinterDriverInstalled" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x67] = "RpcGetPrinterDriverPackagePath" opCodeMap["12345678-1234-abcd-ef00-0123456789ab"][0x68] = "RpcReportJobProcessingProgress" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x00] = "NetrCharDevEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x01] = "NetrCharDevGetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x02] = "NetrCharDevControl" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x03] = "NetrCharDevQEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x04] = "NetrCharDevQGetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x05] = "NetrCharDevQSetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x06] = "NetrCharDevQPurge" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x07] = "NetrCharDevQPurgeSelf" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x08] = "NetrConnectionEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x09] = "NetrFileEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x0a] = "NetrFileGetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x0b] = "NetrFileClose" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x0c] = "NetrSessionEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x0d] = "NetrSessionDel" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x0e] = "NetrShareAdd" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x0f] = "NetrShareEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x10] = "NetrShareGetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x11] = "NetrShareSetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x12] = "NetrShareDel" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x13] = "NetrShareDelSticky" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x14] = "NetrShareCheck" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x15] = "NetrServerGetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x16] = "NetrServerSetInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x17] = "NetrServerDiskEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x18] = "NetrServerStatisticsGet" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x19] = "NetrServerTransportAdd" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x1a] = "NetrServerTransportEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x1b] = "NetrServerTransportDel" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x1c] = "NetrRemoteTOD" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x1d] = "NetrServerSetServiceBits" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x1e] = "NetprPathType" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x1f] = "NetprPathCanonicalize" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x20] = "NetprPathCompare" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x21] = "NetprNameValidate" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x22] = "NetprNameCanonicalize" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x23] = "NetprNameCompare" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x24] = "NetrShareEnumSticky" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x25] = "NetrShareDelStart" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x26] = "NetrShareDelCommit" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x27] = "NetrpGetFileSecurity" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x28] = "NetrpSetFileSecurity" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x29] = "NetrServerTransportAddEx" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x2a] = "NetrServerSetServiceBitsEx" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x2b] = "NetrDfsGetVersion" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x2c] = "NetrDfsCreateLocalPartition" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x2d] = "NetrDfsDeleteLocalPartition" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x2e] = "NetrDfsSetLocalVolumeState" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x2f] = "NetrDfsSetServerInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x30] = "NetrDfsCreateExitPoint" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x31] = "NetrDfsDeleteExitPoint" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x32] = "NetrDfsModifyPrefix" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x33] = "NetrDfsFixLocalVolume" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x34] = "NetrDfsManagerReportSiteInfo" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x35] = "NetrServerTransportDelEx" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x37] = "NetrServerAliasEnum" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x38] = "NetrServerAliasDel" opCodeMap["4b324fc8-1670-01d3-1278-5a47bf6ee188"][0x39] = "NetrShareDelEx" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x00] = "SamrConnect" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x01] = "SamrCloseHandle" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x02] = "SamrSetSecurityObject" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x03] = "SamrQuerySecurityObject" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x04] = "SamrShutdownSamServer" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x05] = "SamrLookupDomainInSamServer" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x06] = "SamrEnumerateDomainsInSamServer" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x07] = "SamrOpenDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x08] = "SamrQueryInformationDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x09] = "SamrSetInformationDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x0a] = "SamrCreateGroupInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x0b] = "SamrEnumerateGroupsInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x0c] = "SamrCreateUserInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x0d] = "SamrEnumerateUsersInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x0e] = "SamrCreateAliasInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x0f] = "SamrEnumerateAliasesInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x10] = "SamrGetAliasMembership" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x11] = "SamrLookupNamesInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x12] = "SamrLookupIdsInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x13] = "SamrOpenGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x14] = "SamrQueryInformationGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x15] = "SamrSetInformationGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x16] = "SamrAddMemberToGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x17] = "SamrDeleteGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x18] = "SamrRemoveMemberFromGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x19] = "SamrGetMembersInGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x1a] = "SamrSetMemberAttributesOfGroup" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x1b] = "SamrOpenAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x1c] = "SamrQueryInformationAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x1d] = "SamrSetInformationAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x1e] = "SamrDeleteAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x1f] = "SamrAddMemberToAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x20] = "SamrRemoveMemberFromAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x21] = "SamrGetMembersInAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x22] = "SamrOpenUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x23] = "SamrDeleteUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x24] = "SamrQueryInformationUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x25] = "SamrSetInformationUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x26] = "SamrChangePasswordUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x27] = "SamrGetGroupsForUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x28] = "SamrQueryDisplayInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x29] = "SamrGetDisplayEnumerationIndex" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x2a] = "SamrTestPrivateFunctionsDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x2b] = "SamrTestPrivateFunctionsUser" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x2c] = "SamrGetUserDomainPasswordInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x2d] = "SamrRemoveMemberFromForeignDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x2e] = "SamrQueryInformationDomain2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x2f] = "SamrQueryInformationUser2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x30] = "SamrQueryDisplayInformation2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x31] = "SamrGetDisplayEnumerationIndex2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x32] = "SamrCreateUser2InDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x33] = "SamrQueryDisplayInformation3" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x34] = "SamrAddMultipleMembersToAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x35] = "SamrRemoveMultipleMembersFromAlias" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x36] = "SamrOemChangePasswordUser2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x37] = "SamrUnicodeChangePasswordUser2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x38] = "SamrGetDomainPasswordInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x39] = "SamrConnect2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x3a] = "SamrSetInformationUser2" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x3b] = "SamrSetBootKeyInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x3c] = "SamrGetBootKeyInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x3d] = "SamrConnect3" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x3e] = "SamrConnect4" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x3f] = "SamrUnicodeChangePasswordUser3" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x40] = "SamrConnect5" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x41] = "SamrRidToSid" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x42] = "SamrSetDSRMPassword" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x43] = "SamrValidatePassword" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x44] = "SamrQueryLocalizableAccountsInDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ac"][0x45] = "SamrPerformGenericOperation" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x00] = "OpenClassesRoot" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x01] = "OpenCurrentUser" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x02] = "OpenLocalMachine" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x03] = "OpenPerformanceData" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x04] = "OpenUsers" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x05] = "BaseRegCloseKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x06] = "BaseRegCreateKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x07] = "BaseRegDeleteKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x08] = "BaseRegDeleteValue" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x09] = "BaseRegEnumKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x0a] = "BaseRegEnumValue" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x0b] = "BaseRegFlushKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x0c] = "BaseRegGetKeySecurity" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x0d] = "BaseRegLoadKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x0e] = "BaseRegNotifyChangeKeyValue" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x0f] = "BaseRegOpenKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x10] = "BaseRegQueryInfoKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x11] = "BaseRegQueryValue" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x12] = "BaseRegReplaceKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x13] = "BaseRegRestoreKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x14] = "BaseRegSaveKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x15] = "BaseRegSetKeySecurity" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x16] = "BaseRegSetValue" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x17] = "BaseRegUnLoadKey" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x18] = "BaseInitiateSystemShutdown" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x19] = "BaseAbortSystemShutdown" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x1a] = "BaseRegGetVersion" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x1b] = "OpenCurrentConfig" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x1c] = "OpenDynData" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x1d] = "BaseRegQueryMultipleValues" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x1e] = "BaseInitiateSystemShutdownEx" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x1f] = "BaseRegSaveKeyEx" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x20] = "OpenPerformanceText" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x21] = "OpenPerformanceNlsText" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x22] = "BaseRegQueryMultipleValues2" opCodeMap["338cd001-2244-31f1-aaaa-900038001003"][0x23] = "BaseRegDeleteKeyEx" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x00] = "DsRolerGetPrimaryDomainInformation" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x01] = "DsRolerDnsNameToFlatName" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x02] = "DsRolerDcAsDc" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x03] = "DsRolerDcAsReplica" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x04] = "DsRolerDemoteDc" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x05] = "DsRolerGetDcOperationProgress" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x06] = "DsRolerGetDcOperationResults" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x07] = "DsRolerCancel" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x08] = "DsRolerServerSaveStateForUpgrade" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x09] = "DsRolerUpgradeDownlevelServer" opCodeMap["3919286a-b10c-11d0-9ba8-00c04fd92ef5"][0x0a] = "DsRolerAbortDownlevelServerUpgrade" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x00] = "CloseServiceHandle" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x01] = "ControlService" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x02] = "DeleteService" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x03] = "LockServiceDatabase" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x04] = "QueryServiceObjectSecurity" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x05] = "SetServiceObjectSecurity" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x06] = "QueryServiceStatus" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x07] = "SetServiceStatus" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x08] = "UnlockServiceDatabase" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x09] = "NotifyBootConfigStatus" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x0a] = "ScSetServiceBitsW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x0b] = "ChangeServiceConfigW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x0c] = "CreateServiceW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x0d] = "EnumDependentServicesW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x0e] = "EnumServicesStatusW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x0f] = "OpenSCManagerW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x10] = "OpenServiceW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x11] = "QueryServiceConfigW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x12] = "QueryServiceLockStatusW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x13] = "StartServiceW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x14] = "GetServiceDisplayNameW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x15] = "GetServiceKeyNameW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x16] = "ScSetServiceBitsA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x17] = "ChangeServiceConfigA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x18] = "CreateServiceA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x19] = "EnumDependentServicesA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x1a] = "EnumServicesStatusA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x1b] = "OpenSCManagerA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x1c] = "OpenServiceA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x1d] = "QueryServiceConfigA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x1e] = "QueryServiceLockStatusA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x1f] = "StartServiceA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x20] = "GetServiceDisplayNameA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x21] = "GetServiceKeyNameA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x22] = "ScGetCurrentGroupStateW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x23] = "EnumServiceGroupW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x24] = "ChangeServiceConfig2A" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x25] = "ChangeServiceConfig2W" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x26] = "QueryServiceConfig2A" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x27] = "QueryServiceConfig2W" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x28] = "QueryServiceStatusEx" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x29] = "EnumServicesStatusExA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x2a] = "EnumServicesStatusExW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x2b] = "ScSendTSMessage" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x2c] = "CreateServiceWOW64A" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x2d] = "CreateServiceWOW64W" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x2e] = "ScQueryServiceTagInfo" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x2f] = "NotifyServiceStatusChange" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x30] = "GetNotifyResult" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x31] = "CloseNotifyHandle" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x32] = "ControlServiceExA" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x33] = "ControlServiceExW" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x34] = "ScSendPnPMessage" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x35] = "ScValidatePnPService" opCodeMap["367abb81-9844-35f1-ad32-98f038001003"][0x36] = "ScOpenServiceStatusHandle" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x00] = "BrowserrServerEnum" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x01] = "BrowserrDebugCall" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x02] = "BrowserrQueryOtherDomains" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x03] = "BrowserrResetNetlogonState" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x04] = "BrowserrDebugTrace" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x05] = "BrowserrQueryStatistics" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x06] = "BrowserrResetStatistics" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x07] = "NetrBrowserStatisticsClear" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x08] = "NetrBrowserStatisticsGet" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x09] = "BrowserrSetNetlogonState" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x0a] = "BrowserrQueryEmulatedDomains" opCodeMap["6bffd098-a112-3610-9833-012892020162"][0x0b] = "BrowserrServerEnumEx" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x00] = "gfxCreateZoneFactoriesList" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x01] = "gfxCreateGfxFactoriesList" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x02] = "gfxCreateGfxList" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x03] = "gfxRemoveGfx" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x04] = "gfxAddGfx" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x05] = "gfxModifyGx" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x06] = "gfxOpenGfx" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x07] = "gfxLogon" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x08] = "gfxLogoff" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x09] = "winmmRegisterSessionNotificationEvent" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x0a] = "winmmUnregisterSessionNotification" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x0b] = "winmmSessionConnectState" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x0c] = "wdmDriverOpenDrvRegKey" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x0d] = "winmmAdvisePreferredDeviceChange" opCodeMap["3faf4738-3a21-4307-b46c-fdda9bb8c0d5"][0x0e] = "winmmGetPnpInfo" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x00] = "AudioServerConnect" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x01] = "AudioServerDisconnect" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x02] = "AudioServerInitialize" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x03] = "AudioServerGetAudioSession" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x04] = "AudioServerCreateStream" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x05] = "AudioServerDestroyStream" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x06] = "AudioServerGetStreamLatency" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x07] = "AudioServerGetMixFormat" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x08] = "AudioServerIsFormatSupported" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x09] = "AudioServerGetDevicePeriod" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x0a] = "AudioVolumeGetMasterVolumeLevelScalar" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x0b] = "AudioSessionGetProcessId" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x0c] = "AudioSessionGetState" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x0d] = "AudioSessionGetLastActivation" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x0e] = "AudioSessionGetLastInactivation" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x0f] = "AudioSessionIsSystemSoundsSession" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x10] = "AudioSessionGetDisplayName" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x11] = "AudioSessionSetDisplayName" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x12] = "AudioSessionGetSessionClass" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x13] = "AudioSessionSetSessionClass" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x14] = "AudioSessionGetVolume" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x15] = "AudioSessionSetVolume" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x16] = "AudioSessionGetMute" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x17] = "AudioSessionSetMute" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x18] = "AudioSessionGetChannelCount" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x19] = "AudioSessionSetChannelVolume" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x1a] = "AudioSessionGetChannelVolume" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x1b] = "AudioSessionSetAllVolumes" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x1c] = "AudioSessionGetAllVolumes" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x1d] = "AudioServerDisconnect" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x1e] = "AudioServerGetMixFormat" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x1f] = "PolicyConfigGetDeviceFormat" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x20] = "PolicyConfigSetDeviceFormat" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x21] = "AudioServerGetDevicePeriod" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x22] = "PolicyConfigSetProcessingPeriod" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x23] = "PolicyConfigGetShareMode" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x24] = "PolicyConfigSetShareMode" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x25] = "GetAudioSessionManager" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x26] = "AudioSessionManagerDestroy" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x27] = "AudioSessionManagerGetAudioSession" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x28] = "AudioSessionManagerGetCurrentSession" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x29] = "AudioSessionManagerGetExistingSession" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x2a] = "AudioSessionManagerAddAudioSessionClientNotification" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x2b] = "AudioSessionManagerDeleteAudioSessionClientNotification" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x2c] = "AudioSessionManagerAddAudioSessionClientNotification" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x2d] = "AudioVolumeConnect" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x2e] = "AudioVolumeDisconnect" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x2f] = "AudioVolumeGetChannelCount" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x30] = "AudioVolumeSetMasterVolumeLevel" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x31] = "AudioVolumeSetMasterVolumeLevelScalar" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x32] = "AudioVolumeGetMasterVolumeLevel" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x33] = "AudioVolumeGetMasterVolumeLevelScalar" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x34] = "AudioVolumeSetChannelVolumeLevel" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x35] = "AudioVolumeSetChannelVolumeLevelScalar" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x36] = "AudioVolumeGetChannelVolumeLevel" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x37] = "AudioVolumeGetChannelVolumeLevelScalar" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x38] = "AudioVolumeSetMute" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x39] = "AudioSessionGetDisplayName" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x3a] = "AudioVolumeAddMasterVolumeNotification" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x3b] = "AudioVolumeDeleteMasterVolumeNotification" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x3c] = "AudioMeterGetAverageRMS" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x3d] = "AudioMeterGetChannelsRMS" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x3e] = "AudioMeterGetPeakValue" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x3f] = "AudioMeterGetChannelsPeakValues" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x40] = "AudioVolumeGetStepInfo" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x41] = "AudioVolumeStepUp" opCodeMap["c386ca3e-9061-4a72-821e-498d83be188f"][0x42] = "AudioVolumeStepDown" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6"][0x00] = "RpcSrvRequestPrefix" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6"][0x01] = "RpcSrvRenewPrefix" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6"][0x02] = "RpcSrvReleasePrefix" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d6"][0x03] = "RpcSrvRequestParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x00] = "RpcSrvEnableDhcp" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x01] = "RpcSrvRenewLease" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x02] = "RpcSrvRenewLeaseByBroadcast" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x03] = "RpcSrvReleaseLease" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x04] = "RpcSrvSetFallbackParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x05] = "RpcSrvGetFallbackParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x06] = "RpcSrvFallbackRefreshParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x07] = "RpcSrvStaticRefreshParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x08] = "RpcSrvRemoveDnsRegistrations" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x09] = "RpcSrvRequestParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x0a] = "RpcSrvPersistentRequestParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x0b] = "RpcSrvRegisterParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x0c] = "RpcSrvDeRegisterParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x0d] = "RpcSrvEnumInterfaces" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x0e] = "RpcSrvQueryLeaseInfo" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x0f] = "RpcSrvSetClassId" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x10] = "RpcSrvGetClassId" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x11] = "RpcSrvSetClientId" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x12] = "RpcSrvGetClientId" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x13] = "RpcSrvNotifyMediaReconnected" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x14] = "RpcSrvGetOriginalSubnetMask" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x15] = "RpcSrvSetMSFTVendorSpecificOptions" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x16] = "RpcSrvRequestCachedParams" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x17] = "RpcSrvRegisterConnectionStateNotification" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x18] = "RpcSrvDeRegisterConnectionStateNotification" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x19] = "RpcSrvGetNotificationStatus" opCodeMap["3c4728c5-f0ab-448b-bda1-6ce01eb0a6d5"][0x1a] = "RpcSrvGetDhcpServicedConnections" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x00] = "RpcLicensingOpenServer" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x01] = "RpcLicensingCloseServer" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x02] = "RpcLicensingLoadPolicy" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x03] = "RpcLicensingUnloadPolicy" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x04] = "RpcLicensingSetPolicy" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x05] = "RpcLicensingGetAvailablePolicyIds" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x06] = "RpcLicensingGetPolicy" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x07] = "RpcLicensingGetPolicyInformation" opCodeMap["2f59a331-bf7d-48cb-9ec5-7c090d76e8b8"][0x08] = "RpcLicensingDeactivateCurrentPolicy" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x00] = "RpcWinStationOpenServer" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x01] = "RpcWinStationCloseServer" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x02] = "RpcIcaServerPing" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x03] = "RpcWinStationEnumerate" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x04] = "RpcWinStationRename" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x05] = "RpcWinStationQueryInformation" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x06] = "RpcWinStationSetInformation" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x07] = "RpcWinStationSendMessage" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x08] = "RpcLogonIdFromWinStationName" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x09] = "RpcWinStationNameFromLogonId" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x0a] = "RpcWinStationConnect" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x0b] = "RpcWinStationVirtualOpen" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x0c] = "RpcWinStationBeepOpen" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x0d] = "RpcWinStationDisconnect" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x0e] = "RpcWinStationReset" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x0f] = "RpcWinStationShutdownSystem" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x10] = "RpcWinStationWaitSystemEvent" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x11] = "RpcWinStationShadow" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x12] = "RpcWinStationShadowTargetSetup" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x13] = "RpcWinStationShadowTarget" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x14] = "RpcWinStationGenerateLicense" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x15] = "RpcWinStationInstallLicense" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x16] = "RpcWinStationEnumerateLicenses" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x17] = "RpcWinStationActivateLicense" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x18] = "RpcWinStationRemoveLicense" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x19] = "RpcWinStationQueryLicense" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x1a] = "RpcWinStationSetPoolCount" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x1b] = "RpcWinStationQueryUpdateRequired" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x1c] = "RpcWinStationCallback" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x1d] = "RpcWinStationGetApplicationInfo" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x1e] = "RpcWinStationReadRegistry" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x1f] = "RpcWinStationWaitForConnect" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x20] = "RpcWinStationNotifyLogon" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x21] = "RpcWinStationNotifyLogoff" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x22] = "RpcWinStationEnumerateProcesses" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x23] = "RpcWinStationAnnoyancePopup" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x24] = "RpcWinStationEnumerateProcesses" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x25] = "RpcWinStationTerminateProcess" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x26] = "RpcServerNWLogonSetAdmin" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x27] = "RpcServerNWLogonQueryAdmin" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x28] = "RpcWinStationNtsdDebug" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x29] = "RpcWinStationBreakPoint" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x2a] = "RpcWinStationCheckForApplicationName" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x2b] = "RpcWinStationGetAllProcesses" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x2c] = "RpcWinStationGetProcessSid" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x2d] = "RpcWinStationGetTermSrvCountersValue" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x2e] = "RpcWinStationReInitializeSecurity" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x2f] = "RpcWinStationBroadcastSystemMessage" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x30] = "RpcWinStationSendWindowMessage" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x31] = "RpcWinStationNotifyNewSession" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x32] = "RpcServerGetInternetConnectorStatus" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x33] = "RpcServerSetInternetConnectorStatus" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x34] = "RpcServerQueryInetConnectorInformation" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x35] = "RpcWinStationGetLanAdapterName" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x36] = "RpcWinStationUpdateUserConfig" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x37] = "RpcWinStationQueryLogonCredentials" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x38] = "RpcWinStationRegisterConsoleNotification" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x39] = "RpcWinStationUnRegisterConsoleNotification" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x3a] = "RpcWinStationUpdateSettings" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x3b] = "RpcWinStationShadowStop" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x3c] = "RpcWinStationCloseServerEx" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x3d] = "RpcWinStationIsHelpAssistantSession" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x3e] = "RpcWinStationGetMachinePolicy" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x3f] = "RpcWinStationUpdateClientCachedCredentials" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x40] = "RpcWinStationFUSCanRemoteUserDisconnect" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x41] = "RpcWinStationCheckLoopBack" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x42] = "RpcConnectCallback" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x43] = "RpcWinStationNotifyDisconnectPipe" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x44] = "RpcWinStationSessionInitialized" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x45] = "RpcRemoteAssistancePrepareSystemRestore" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x46] = "RpcWinStationGetAllProcesses_NT6" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x47] = "RpcWinStationRegisterNotificationEvent" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x48] = "RpcWinStationUnRegisterNotificationEvent" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x49] = "RpcWinStationAutoReconnect" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x4a] = "RpcWinStationCheckAccess" opCodeMap["5ca4a760-ebb1-11cf-8611-00a0245420ed"][0x4b] = "RpcWinStationOpenSessionDirectory" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c3"][0x00] = "nsi_binding_export" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c3"][0x01] = "nsi_binding_unexport" opCodeMap["d3fbb514-0e3b-11cb-8fad-08002b1d29c3"][0x00] = "nsi_binding_lookup_begin" opCodeMap["d3fbb514-0e3b-11cb-8fad-08002b1d29c3"][0x01] = "nsi_binding_lookup_done" opCodeMap["d3fbb514-0e3b-11cb-8fad-08002b1d29c3"][0x02] = "nsi_binding_lookup_next" opCodeMap["d3fbb514-0e3b-11cb-8fad-08002b1d29c3"][0x03] = "nsi_mgmt_handle_set_exp_age" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x00] = "nsi_group_delete" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x01] = "nsi_group_mbr_add" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x02] = "nsi_group_mbr_remove" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x03] = "nsi_group_mbr_inq_begin" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x04] = "nsi_group_mbr_inq_next" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x05] = "nsi_group_mbr_inq_done" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x06] = "nsi_profile_delete" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x07] = "nsi_profile_elt_add" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x08] = "nsi_profile_elt_remove" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x09] = "nsi_profile_elt_inq_begin" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x0a] = "nsi_profile_elt_inq_next" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x0b] = "nsi_profile_elt_inq_done" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x0c] = "nsi_entry_object_inq_begin" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x0d] = "nsi_entry_object_inq_next" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x0e] = "nsi_entry_object_inq_done" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x0f] = "nsi_entry_expand_name" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x10] = "nsi_mgmt_binding_unexport" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x11] = "nsi_mgmt_entry_delete" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x12] = "nsi_mgmt_entry_create" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x13] = "nsi_mgmt_entry_inq_if_ids" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x14] = "nsi_mgmt_inq_exp_age" opCodeMap["d6d70ef0-0e3b-11cb-acc3-08002b1d29c4"][0x15] = "nsi_mgmt_inq_set_age" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x00] = "ElfrClearELFW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x01] = "ElfrBackupELFW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x02] = "ElfrCloseEL" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x03] = "ElfrDeregisterEventSource" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x04] = "ElfrNumberOfRecords" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x05] = "ElfrOldestRecord" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x06] = "ElfrChangeNotify" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x07] = "ElfrOpenELW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x08] = "ElfrRegisterEventSourceW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x09] = "ElfrOpenBELW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x0a] = "ElfrReadELW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x0b] = "ElfrReportEventW" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x0c] = "ElfrClearELFA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x0d] = "ElfrBackupELFA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x0e] = "ElfrOpenELA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x0f] = "ElfrRegisterEventSourceA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x10] = "ElfrOpenBELA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x11] = "ElfrReadELA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x12] = "ElfrReportEventA" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x13] = "ElfrRegisterClusterSvc" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x14] = "ElfrDeregisterClusterSvc" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x15] = "ElfrWriteClusterEvents" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x16] = "ElfrGetLogInformation" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x17] = "ElfrFlushEL" opCodeMap["82273fdc-e32a-18c3-3f78-827929dc23ea"][0x18] = "ElfrReportEventAndSourceW" opCodeMap["12b81e99-f207-4a4c-85d3-77b42f76fd14"][0x00] = "SeclCreateProcessWithLogonW" opCodeMap["12b81e99-f207-4a4c-85d3-77b42f76fd14"][0x01] = "SeclCreateProcessWithLogonExW" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x00] = "KeyrOpenKeyService" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x01] = "KeyrEnumerateProviders" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x02] = "KeyrEnumerateProviderTypes" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x03] = "KeyrEnumerateProvContainers" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x04] = "KeyrCloseKeyService" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x05] = "KeyrGetDefaultProvider" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x06] = "KeyrSetDefaultProvider" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x07] = "KeyrEnroll" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x08] = "KeyrExportCert" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x09] = "KeyrImportCert" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x0a] = "KeyrEnumerateAvailableCertTypes" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x0b] = "KeyrEnumerateCAs" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x0c] = "KeyrEnroll_V2" opCodeMap["8d0ffe72-d252-11d0-bf8f-00c04fd9126b"][0x0d] = "KeyrQueryRequestStatus" opCodeMap["68b58241-c259-4f03-a2e5-a2651dcbc930"][0x00] = "KSrSubmitRequest" opCodeMap["68b58241-c259-4f03-a2e5-a2651dcbc930"][0x01] = "KSrGetTemplates" opCodeMap["68b58241-c259-4f03-a2e5-a2651dcbc930"][0x02] = "KSrGetCAs" opCodeMap["0d72a7d4-6148-11d1-b4aa-00c04fb66ea0"][0x00] = "SSCertProtectFunction" opCodeMap["f50aac00-c7f3-428e-a022-a6b71bfb9d43"][0x00] = "SSCatDBAddCatalog" opCodeMap["f50aac00-c7f3-428e-a022-a6b71bfb9d43"][0x01] = "SSCatDBDeleteCatalog" opCodeMap["f50aac00-c7f3-428e-a022-a6b71bfb9d43"][0x02] = "SSCatDBEnumCatalogs" opCodeMap["f50aac00-c7f3-428e-a022-a6b71bfb9d43"][0x03] = "SSCatDBRegisterForChangeNotification" opCodeMap["f50aac00-c7f3-428e-a022-a6b71bfb9d43"][0x04] = "KeyrCloseKeyService" opCodeMap["f50aac00-c7f3-428e-a022-a6b71bfb9d43"][0x05] = "SSCatDBRebuildDatabase" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x00] = "LsarClose" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x01] = "LsarDelete" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x02] = "LsarEnumeratePrivileges" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x03] = "LsarQuerySecurityObject" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x04] = "LsarSetSecurityObject" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x05] = "LsarChangePassword" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x06] = "LsarOpenPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x07] = "LsarQueryInformationPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x08] = "LsarSetInformationPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x09] = "LsarClearAuditLog" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x0a] = "LsarCreateAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x0b] = "LsarEnumerateAccounts" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x0c] = "LsarCreateTrustedDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x0d] = "LsarEnumerateTrustedDomains" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x0e] = "LsarLookupNames" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x0f] = "LsarLookupSids" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x10] = "LsarCreateSecret" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x11] = "LsarOpenAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x12] = "LsarEnumeratePrivilegesAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x13] = "LsarAddPrivilegesToAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x14] = "LsarRemovePrivilegesFromAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x15] = "LsarGetQuotasForAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x16] = "LsarSetQuotasForAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x17] = "LsarGetSystemAccessAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x18] = "LsarSetSystemAccessAccount" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x19] = "LsarOpenTrustedDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x1a] = "LsarQueryInfoTrustedDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x1b] = "LsarSetInformationTrustedDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x1c] = "LsarOpenSecret" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x1d] = "LsarSetSecret" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x1e] = "LsarQuerySecret" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x1f] = "LsarLookupPrivilegeValue" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x20] = "LsarLookupPrivilegeName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x21] = "LsarLookupPrivilegeDisplayName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x22] = "LsarDeleteObject" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x23] = "LsarEnumerateAccountsWithUserRight" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x24] = "LsarEnumerateAccountRights" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x25] = "LsarAddAccountRights" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x26] = "LsarRemoveAccountRights" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x27] = "LsarQueryTrustedDomainInfo" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x28] = "LsarSetTrustedDomainInfo" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x29] = "LsarDeleteTrustedDomain" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x2a] = "LsarStorePrivateData" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x2b] = "LsarRetrievePrivateData" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x2c] = "LsarOpenPolicy2" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x2d] = "LsarGetUserName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x2e] = "LsarQueryInformationPolicy2" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x2f] = "LsarSetInformationPolicy2" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x30] = "LsarQueryTrustedDomainInfoByName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x31] = "LsarSetTrustedDomainInfoByName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x32] = "LsarEnumerateTrustedDomainsEx" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x33] = "LsarCreateTrustedDomainEx" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x34] = "LsarCloseTrustedDomainEx" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x35] = "LsarQueryDomainInformationPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x36] = "LsarSetDomainInformationPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x37] = "LsarOpenTrustedDomainByName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x38] = "LsarTestCall" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x39] = "LsarLookupSids2" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x3a] = "LsarLookupNames2" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x3b] = "LsarCreateTrustedDomainEx2" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x3c] = "CredrWrite" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x3d] = "CredrRead" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x3e] = "CredrEnumerate" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x3f] = "CredrWriteDomainCredentials" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x40] = "CredrReadDomainCredentials" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x41] = "CredrDelete" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x42] = "CredrGetTargetInfo" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x43] = "CredrProfileLoaded" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x44] = "LsarLookupNames3" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x45] = "CredrGetSessionTypes" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x46] = "LsarRegisterAuditEvent" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x47] = "LsarGenAuditEvent" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x48] = "LsarUnregisterAuditEvent" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x49] = "LsarQueryForestTrustInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x4a] = "LsarSetForestTrustInformation" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x4b] = "CredrRename" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x4c] = "LsarLookupSids3" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x4d] = "LsarLookupNames4" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x4e] = "LsarOpenPolicySce" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x4f] = "LsarAdtRegisterSecurityEventSource" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x50] = "LsarAdtUnregisterSecurityEventSource" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x51] = "LsarAdtReportSecurityEvent" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x52] = "CredrFindBestCredential" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x53] = "LsarSetAuditPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x54] = "LsarQueryAuditPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x55] = "LsarEnumerateAuditPolicy" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x56] = "LsarEnumerateAuditCategories" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x57] = "LsarEnumerateAuditSubCategories" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x58] = "LsarLookupAuditCategoryName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x59] = "LsarLookupAuditSubCategoryName" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x5a] = "LsarSetAuditSecurity" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x5b] = "LsarQueryAuditSecurity" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x5c] = "CredReadByTokenHandle" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x5d] = "CredrRestoreCredentials" opCodeMap["12345778-1234-abcd-ef00-0123456789ab"][0x5e] = "CredrBackupCredentials" opCodeMap["17fdd703-1827-4e34-79d4-24a55c53bb37"][0x00] = "NetrMessageNameAdd" opCodeMap["17fdd703-1827-4e34-79d4-24a55c53bb37"][0x01] = "NetrMessageNameEnum" opCodeMap["17fdd703-1827-4e34-79d4-24a55c53bb37"][0x02] = "NetrMessageNameGetInfo" opCodeMap["17fdd703-1827-4e34-79d4-24a55c53bb37"][0x03] = "NetrMessageNameDel" opCodeMap["5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc"][0x00] = "NetrSendMessage" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x00] = "PNP_Disconnect" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x01] = "PNP_Connect" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x02] = "PNP_GetVersion" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x03] = "PNP_GetGlobalState" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x04] = "PNP_InitDetection" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x05] = "PNP_ReportLogOn" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x06] = "PNP_ValidateDeviceInstance" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x07] = "PNP_GetRootDeviceInstance" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x08] = "PNP_GetRelatedDeviceInstance" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x09] = "PNP_EnumerateSubKeys" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x0a] = "PNP_GetDeviceList" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x0b] = "PNP_GetDeviceListSize" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x0c] = "PNP_GetDepth" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x0d] = "PNP_GetDeviceRegProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x0e] = "PNP_SetDeviceRegProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x0f] = "PNP_GetClassInstance" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x10] = "PNP_CreateKey" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x11] = "PNP_DeleteRegistryKey" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x12] = "PNP_GetClassCount" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x13] = "PNP_GetClassName" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x14] = "PNP_DeleteClassKey" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x15] = "PNP_GetInterfaceDeviceAlias" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x16] = "PNP_GetInterfaceDeviceList" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x17] = "PNP_GetInterfaceDeviceListSize" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x18] = "PNP_RegisterDeviceClassAssociation" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x19] = "PNP_UnregisterDeviceClassAssociation" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x1a] = "PNP_GetClassRegProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x1b] = "PNP_SetClassRegProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x1c] = "PNP_CreateDevInst" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x1d] = "PNP_DeviceInstanceAction" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x1e] = "PNP_GetDeviceStatus" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x1f] = "PNP_SetDeviceProblem" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x20] = "PNP_DisableDevInst" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x21] = "PNP_UninstallDevInst" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x22] = "PNP_AddID" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x23] = "PNP_RegisterDriver" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x24] = "PNP_QueryRemove" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x25] = "PNP_RequestDeviceEject" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x26] = "PNP_IsDockStationPresent" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x27] = "PNP_RequestEjectPC" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x28] = "PNP_HwProfFlags" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x29] = "PNP_GetHwProfInfo" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x2a] = "PNP_AddEmptyLogConf" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x2b] = "PNP_FreeLogConf" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x2c] = "PNP_GetFirstLogConf" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x2d] = "PNP_GetNextLogConf" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x2e] = "PNP_GetLogConfPriority" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x2f] = "PNP_AddResDes" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x30] = "PNP_FreeResDes" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x31] = "PNP_GetNextResDes" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x32] = "PNP_GetResDesData" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x33] = "PNP_GetResDesDataSize" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x34] = "PNP_ModifyResDes" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x35] = "PNP_DetectResourceConflict" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x36] = "PNP_QueryResConfList" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x37] = "PNP_SetHwProf" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x38] = "PNP_QueryArbitratorFreeData" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x39] = "PNP_QueryArbitratorFreeSize" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x3a] = "PNP_RunDetection" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x3b] = "PNP_RegisterNotification" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x3c] = "PNP_UnregisterNotification" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x3d] = "PNP_GetCustomDevProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x3e] = "PNP_GetVersionInternal" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x3f] = "PNP_GetBlockedDriverInfo" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x40] = "PNP_GetServerSideDeviceInstallFlags" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x41] = "PNP_GetObjectPropKeys" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x42] = "PNP_GetObjectProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x43] = "PNP_SetObjectProp" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x44] = "PNP_InstallDevInst" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x45] = "PNP_ApplyPowerSettings" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x46] = "PNP_DriverStoreAddDriverPackage" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x47] = "PNP_DriverStoreDeleteDriverPackage" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x48] = "PNP_RegisterServiceNotification" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x49] = "PNP_SetActiveService" opCodeMap["8d9f4e40-a03d-11ce-8f69-08003e30051b"][0x4a] = "PNP_DeleteServiceDevices" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x00] = "DnssrvOperation" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x01] = "DnssrvQuery" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x02] = "DnssrvComplexOperation" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x03] = "DnssrvEnumRecords" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x04] = "DnssrvUpdateRecord" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x05] = "DnssrvOperation2" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x06] = "DnssrvQuery2" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x07] = "DnssrvComplexOperation2" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x08] = "DnssrvEnumRecords2" opCodeMap["50abc2a4-574d-40b3-9d66-ee4fd5fba076"][0x09] = "DnssrvUpdateRecord2" opCodeMap["57674cd0-5200-11ce-a897-08002b2e9c6d"][0x00] = "LlsrLicenseRequestW" opCodeMap["57674cd0-5200-11ce-a897-08002b2e9c6d"][0x01] = "LlsrLicenseFree" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x00] = "LlsrConnect" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x01] = "LlsrClose" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x02] = "LlsrLicenseEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x03] = "LlsrLicenseEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x04] = "LlsrLicenseAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x05] = "LlsrLicenseAddA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x06] = "LlsrProductEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x07] = "LlsrProductEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x08] = "LlsrProductAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x09] = "LlsrProductAddA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x0a] = "LlsrProductUserEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x0b] = "LlsrProductUserEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x0c] = "LlsrProductServerEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x0d] = "LlsrProductServerEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x0e] = "LlsrProductLicenseEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x0f] = "LlsrProductLicenseEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x10] = "LlsrUserEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x11] = "LlsrUserEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x12] = "LlsrUserInfoGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x13] = "LlsrUserInfoGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x14] = "LlsrUserInfoSetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x15] = "LlsrUserInfoSetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x16] = "LlsrUserDeleteW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x17] = "LlsrUserDeleteA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x18] = "LlsrUserProductEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x19] = "LlsrUserProductEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x1a] = "LlsrUserProductDeleteW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x1b] = "LlsrUserProductDeleteA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x1c] = "LlsrMappingEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x1d] = "LlsrMappingEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x1e] = "LlsrMappingInfoGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x1f] = "LlsrMappingInfoGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x20] = "LlsrMappingInfoSetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x21] = "LlsrMappingInfoSetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x22] = "LlsrMappingUserEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x23] = "LlsrMappingUserEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x24] = "LlsrMappingUserAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x25] = "LlsrMappingUserAddA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x26] = "LlsrMappingUserDeleteW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x27] = "LlsrMappingUserDeleteA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x28] = "LlsrMappingAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x29] = "LlsrMappingAddA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x2a] = "LlsrMappingDeleteW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x2b] = "LlsrMappingDeleteA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x2c] = "LlsrServerEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x2d] = "LlsrServerEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x2e] = "LlsrServerProductEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x2f] = "LlsrServerProductEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x30] = "LlsrLocalProductEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x31] = "LlsrLocalProductEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x32] = "LlsrLocalProductInfoGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x33] = "LlsrLocalProductInfoGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x34] = "LlsrLocalProductInfoSetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x35] = "LlsrLocalProductInfoSetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x36] = "LlsrServiceInfoGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x37] = "LlsrServiceInfoGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x38] = "LlsrServiceInfoSetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x39] = "LlsrServiceInfoSetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x3a] = "LlsrReplConnect" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x3b] = "LlsrReplClose" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x3c] = "LlsrReplicationRequestW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x3d] = "LlsrReplicationServerAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x3e] = "LlsrReplicationServerServiceAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x3f] = "LlsrReplicationServiceAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x40] = "LlsrReplicationUserAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x41] = "LlsrProductSecurityGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x42] = "LlsrProductSecurityGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x43] = "LlsrProductSecuritySetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x44] = "LlsrProductSecuritySetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x45] = "LlsrProductLicensesGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x46] = "LlsrProductLicensesGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x47] = "LlsrCertificateClaimEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x48] = "LlsrCertificateClaimEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x49] = "LlsrCertificateClaimAddCheckA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x4a] = "LlsrCertificateClaimAddCheckW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x4b] = "LlsrCertificateClaimAddA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x4c] = "LlsrCertificateClaimAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x4d] = "LlsrReplicationCertDbAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x4e] = "LlsrReplicationProductSecurityAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x4f] = "LlsrReplicationUserAddExW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x50] = "LlsrCapabilityGet" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x51] = "LlsrLocalServiceEnumW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x52] = "LlsrLocalServiceEnumA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x53] = "LlsrLocalServiceAddA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x54] = "LlsrLocalServiceAddW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x55] = "LlsrLocalServiceInfoSetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x56] = "LlsrLocalServiceInfoSetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x57] = "LlsrLocalServiceInfoGetW" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x58] = "LlsrLocalServiceInfoGetA" opCodeMap["342cfd40-3c6c-11ce-a893-08002b2e9c6d"][0x59] = "LlsrCloseEx" opCodeMap["91ae6020-9e3c-11cf-8d7c-00aa00c091be"][0x00] = "CertServerRequest" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x00] = "NetrDfsManagerGetVersion" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x01] = "NetrDfsAdd" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x02] = "NetrDfsRemove" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x03] = "NetrDfsSetInfo" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x04] = "NetrDfsGetInfo" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x05] = "NetrDfsEnum" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x06] = "NetrDfsRename" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x07] = "NetrDfsMove" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x08] = "NetrDfsManagerGetConfigInfo" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x09] = "NetrDfsManagerSendSiteInfo" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x0a] = "NetrDfsAddFtRoot" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x0b] = "NetrDfsRemoveFtRoot" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x0c] = "NetrDfsAddStdRoot" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x0d] = "NetrDfsRemoveStdRoot" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x0e] = "NetrDfsManagerInitialize" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x0f] = "NetrDfsAddStdRootForced" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x10] = "NetrDfsGetDcAddress" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x11] = "NetrDfsSetDcAddress" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x12] = "NetrDfsFlushFtTable" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x13] = "NetrDfsAdd2" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x14] = "NetrDfsRemove2" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x15] = "NetrDfsEnumEx" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x16] = "NetrDfsSetInfo2" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x00] = "SfcSrv_GetNextProtectedFile" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x01] = "SfcSrv_IsFileProtected" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x02] = "SfcSrv_FileException" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x03] = "SfcSrv_InitiateScan" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x04] = "SfcSrv_PurgeCache" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x05] = "SfcSrv_SetCacheSize" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x06] = "SfcSrv_SetDisable" opCodeMap["83da7c00-e84f-11d2-9807-00c04f8ec850"][0x07] = "SfcSrv_InstallProtectedFiles" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x00] = "NDdeShareAddW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x01] = "NDdeShareDelA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x02] = "NDdeShareDelW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x03] = "NDdeGetShareSecurityA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x04] = "NDdeGetShareSecurityW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x05] = "NDdeSetShareSecurityA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x06] = "NDdeSetShareSecurityW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x07] = "NDdeShareEnumA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x08] = "NDdeShareEnumW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x09] = "NDdeShareGetInfoW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x0a] = "NDdeShareSetInfoW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x0b] = "NDdeSetTrustedShareA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x0c] = "NDdeSetTrustedShareW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x0d] = "NDdeGetTrustedShareA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x0e] = "NDdeGetTrustedShareW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x0f] = "NDdeTrustedShareEnumA" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x10] = "NDdeTrustedShareEnumW" opCodeMap["2f5f3220-c126-1076-b549-074d078619da"][0x12] = "NDdeSpecialCommand" opCodeMap["3dde7c30-165d-11d1-ab8f-00805f14db40"][0x00] = "bkrp_BackupKey" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x00] = "NetrWkstaGetInfo" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x01] = "NetrWkstaSetInfo" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x02] = "NetrWkstaUserEnum" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x03] = "NetrWkstaUserGetInfo" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x04] = "NetrWkstaUserSetInfo" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x05] = "NetrWkstaTransportEnum" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x06] = "NetrWkstaTransportAdd" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x07] = "NetrWkstaTransportDel" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x08] = "NetrUseAdd" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x09] = "NetrUseGetInfo" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x0a] = "NetrUseDel" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x0b] = "NetrUseEnum" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x0c] = "NetrMessageBufferSend" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x0d] = "NetrWorkstationStatisticsGet" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x0e] = "NetrLogonDomainNameAdd" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x0f] = "NetrLogonDomainNameDel" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x10] = "NetrJoinDomain" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x11] = "NetrUnjoinDomain" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x12] = "NetrValidateName" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x13] = "NetrRenameMachineInDomain" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x14] = "NetrGetJoinInformation" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x15] = "NetrGetJoinableOUs" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x16] = "NetrJoinDomain2" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x17] = "NetrUnjoinDomain2" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x18] = "NetrRenameMachineInDomain2" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x19] = "NetrValidateName2" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x1a] = "NetrGetJoinableOUs2" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x1b] = "NetrAddAlternateComputerName" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x1c] = "NetrRemoveAlternateComputerName" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x1d] = "NetrSetPrimaryComputerName" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x1e] = "NetrEnumerateComputerNames" opCodeMap["6bffd098-a112-3610-9833-46c3f87e345a"][0x1f] = "NetrWorkstationResetDfsCache" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x00] = "ept_insert" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x01] = "ept_delete" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x02] = "ept_lookup" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x03] = "ept_map" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x04] = "ept_lookup_handle_free" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x05] = "ept_inq_object" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x06] = "ept_mgmt_delete" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x07] = "ept_map_auth" opCodeMap["e1af8308-5d1f-11c9-91a4-08002b14a0fa"][0x08] = "ept_map_auth_async" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x00] = "EcDoConnect" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x01] = "EcDoDisconnect" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x02] = "EcDoRpc" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x03] = "EcGetMoreRpc" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x04] = "EcRRegisterPushNotification" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x05] = "EcRUnregisterPushNotification" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x06] = "EcDummyRpc" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x07] = "EcRGetDCName" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x08] = "EcRNetGetDCName" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x09] = "EcDoRpcExt" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x0a] = "EcDoConnectEx" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x0b] = "EcDoRpcExt2" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x0c] = "EcUnknown0xC" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x0d] = "EcUnknown0xD" opCodeMap["a4f1db00-ca47-1067-b31f-00dd010662da"][0x0e] = "EcDoAsyncConnectEx" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x00] = "DRSBind" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x01] = "DRSUnbind" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x02] = "DRSReplicaSync" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x03] = "DRSGetNCChanges" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x04] = "DRSUpdateRefs" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x05] = "DRSReplicaAdd" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x06] = "DRSReplicaDel" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x07] = "DRSReplicaModify" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x08] = "DRSVerifyNames" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x09] = "DRSGetMemberships" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x0a] = "DRSInterDomainMove" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x0b] = "DRSGetNT4ChangeLog" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x0c] = "DRSCrackNames" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x0d] = "DRSWriteSPN" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x0e] = "DRSRemoveDsServer" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x0f] = "DRSRemoveDsDomain" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x10] = "DRSDomainControllerInfo" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x11] = "DRSAddEntry" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x12] = "DRSExecuteKCC" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x13] = "DRSGetReplInfo" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x14] = "DRSAddSidHistory" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x15] = "DRSGetMemberships2" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x16] = "DRSReplicaVerifyObjects" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x17] = "DRSGetObjectExistence" opCodeMap["e3514235-4b06-11d1-ab04-00c04fc2dcd2"][0x18] = "DRSQuerySitesByCost" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x00] = "R_WinsRecordAction" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x01] = "R_WinsStatus" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x02] = "R_WinsTrigger" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x03] = "R_WinsDoStaticInit" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x04] = "R_WinsDoScavenging" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x05] = "R_WinsGetDbRecs" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x06] = "R_WinsTerm" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x07] = "R_WinsBackup" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x08] = "R_WinsDelDbRecs" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x09] = "R_WinsPullRange" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x0a] = "R_WinsSetPriorityClass" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x0b] = "R_WinsResetCounters" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x0c] = "R_WinsWorkerThdUpd" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x0d] = "R_WinsGetNameAndAdd" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x0e] = "R_WinsGetBrowserNames_Old" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x0f] = "R_WinsDeleteWins" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x10] = "R_WinsSetFlags" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x11] = "R_WinsGetDbRecsByName" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x12] = "R_WinsStatusWHdl" opCodeMap["45f52c28-7f9f-101a-b52b-08002b2efabe"][0x13] = "R_WinsDoScavengingNew" opCodeMap["afa8bd80-7d8a-11c9-bef4-08002b102989"][0x00] = "inq_if_ids" opCodeMap["afa8bd80-7d8a-11c9-bef4-08002b102989"][0x01] = "inq_stats" opCodeMap["afa8bd80-7d8a-11c9-bef4-08002b102989"][0x02] = "is_server_listening" opCodeMap["afa8bd80-7d8a-11c9-bef4-08002b102989"][0x03] = "stop_server_listening" opCodeMap["afa8bd80-7d8a-11c9-bef4-08002b102989"][0x04] = "inq_princ_name" function dcerpcClassify(session, str, direction) if str:sub(1,3) == string.char(0x05, 0x00, 0x0b) then ctx = (string.format('%02X%02X%02X%02X', str:sub(33,36):reverse():byte(1,4)) .. "-" .. string.format('%02X%02X', str:sub(37,38):reverse():byte(1,2)) .. "-" .. string.format('%02X%02X', str:sub(39,40):reverse():byte(1,2)) .. "-" .. string.format('%02X%02X', str:sub(41,42):byte(1,2)) .. "-" .. string.format('%02X%02X%02X%02X%02X%02X', str:sub(43,48):byte(1,6))):lower() if endpointMap[ctx] ~= nil then session:add_string("dcerpc.api",endpointMap[ctx]) tbl = session:table() tbl['ctx'] = ctx session:register_parser(parseDCERPC) end end end function parseDCERPC(session, str, direction) if str:sub(1,3) ~= string.char(0x05, 0x00, 0x00) then return 0 end tbl = session:table() if tbl['ctx'] == nil then return 0 end if opCodeMap[tbl['ctx']] == nil then return 0 end if opCodeMap[tbl['ctx']][str:byte(23)] == nil then return 0 end session:add_string("dcerpc.cmd",opCodeMap[tbl['ctx']][str:byte(23)]) return 0 end MolochSession.register_tcp_classifier("dcerpc", 0, string.char(0x05, 0x00), "dcerpcClassify")
local def = { name = "bt_mobs:bleeder", nametag = "Bleeder", stats = { hp = 15, lifetime = 500, can_jump = 1, can_swim = true, hostile = true, }, modes = { idle = {chance=0.5}, walk = {chance=0.5, moving_speed=1.0}, follow = {}, }, combat = { attack_damage = 3, attack_speed = 0.8, attack_radius = 1.5, search_enemy = true, search_timer = 2, search_radius = 25, search_type = "player", }, model = { mesh = "bt_mobs_bleeder.obj", textures = {"bt_mobs_bleeder.png"}, collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, rotation = -90, animations = { }, }, spawning = { abm_nodes = { spawn_on = {"bt_core:dirt_with_grass"}, }, abm_interval = 50, abm_chance = 5000, max_number = 1, number = {min = 1, max = 3}, time_range = {min = 10, max = 5000}, light = {min = 0, max = 10}, height_limit = {min = 0, max = 31000}, }, } --creatures.register_mob(def) --outdated line
---@meta --- ---Can simulate 2D rigid body physics in a realistic manner. This module is based on Box2D, and this API corresponds to the Box2D API as closely as possible. --- ---@class love.physics love.physics = {} --- ---Returns the two closest points between two fixtures and their distance. --- ---@param fixture1 love.Fixture # The first fixture. ---@param fixture2 love.Fixture # The second fixture. ---@return number distance # The distance of the two points. ---@return number x1 # The x-coordinate of the first point. ---@return number y1 # The y-coordinate of the first point. ---@return number x2 # The x-coordinate of the second point. ---@return number y2 # The y-coordinate of the second point. function love.physics.getDistance(fixture1, fixture2) end --- ---Returns the meter scale factor. --- ---All coordinates in the physics module are divided by this number, creating a convenient way to draw the objects directly to the screen without the need for graphics transformations. --- ---It is recommended to create shapes no larger than 10 times the scale. This is important because Box2D is tuned to work well with shape sizes from 0.1 to 10 meters. --- ---@return number scale # The scale factor as an integer. function love.physics.getMeter() end --- ---Creates a new body. --- ---There are three types of bodies. --- ---* Static bodies do not move, have a infinite mass, and can be used for level boundaries. --- ---* Dynamic bodies are the main actors in the simulation, they collide with everything. --- ---* Kinematic bodies do not react to forces and only collide with dynamic bodies. --- ---The mass of the body gets calculated when a Fixture is attached or removed, but can be changed at any time with Body:setMass or Body:resetMassData. --- ---@param world love.World # The world to create the body in. ---@param x? number # The x position of the body. ---@param y? number # The y position of the body. ---@param type? love.BodyType # The type of the body. ---@return love.Body body # A new body. function love.physics.newBody(world, x, y, type) end --- ---Creates a new ChainShape. --- ---@overload fun(loop: boolean, points: table):love.ChainShape ---@param loop boolean # If the chain should loop back to the first point. ---@param x1 number # The x position of the first point. ---@param y1 number # The y position of the first point. ---@param x2 number # The x position of the second point. ---@param y2 number # The y position of the second point. ---@return love.ChainShape shape # The new shape. function love.physics.newChainShape(loop, x1, y1, x2, y2) end --- ---Creates a new CircleShape. --- ---@overload fun(x: number, y: number, radius: number):love.CircleShape ---@param radius number # The radius of the circle. ---@return love.CircleShape shape # The new shape. function love.physics.newCircleShape(radius) end --- ---Creates a DistanceJoint between two bodies. --- ---This joint constrains the distance between two points on two bodies to be constant. These two points are specified in world coordinates and the two bodies are assumed to be in place when this joint is created. The first anchor point is connected to the first body and the second to the second body, and the points define the length of the distance joint. --- ---@param body1 love.Body # The first body to attach to the joint. ---@param body2 love.Body # The second body to attach to the joint. ---@param x1 number # The x position of the first anchor point (world space). ---@param y1 number # The y position of the first anchor point (world space). ---@param x2 number # The x position of the second anchor point (world space). ---@param y2 number # The y position of the second anchor point (world space). ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.DistanceJoint joint # The new distance joint. function love.physics.newDistanceJoint(body1, body2, x1, y1, x2, y2, collideConnected) end --- ---Creates a new EdgeShape. --- ---@param x1 number # The x position of the first point. ---@param y1 number # The y position of the first point. ---@param x2 number # The x position of the second point. ---@param y2 number # The y position of the second point. ---@return love.EdgeShape shape # The new shape. function love.physics.newEdgeShape(x1, y1, x2, y2) end --- ---Creates and attaches a Fixture to a body. --- ---Note that the Shape object is copied rather than kept as a reference when the Fixture is created. To get the Shape object that the Fixture owns, use Fixture:getShape. --- ---@param body love.Body # The body which gets the fixture attached. ---@param shape love.Shape # The shape to be copied to the fixture. ---@param density? number # The density of the fixture. ---@return love.Fixture fixture # The new fixture. function love.physics.newFixture(body, shape, density) end --- ---Create a friction joint between two bodies. A FrictionJoint applies friction to a body. --- ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, collideConnected: boolean):love.FrictionJoint ---@param body1 love.Body # The first body to attach to the joint. ---@param body2 love.Body # The second body to attach to the joint. ---@param x number # The x position of the anchor point. ---@param y number # The y position of the anchor point. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.FrictionJoint joint # The new FrictionJoint. function love.physics.newFrictionJoint(body1, body2, x, y, collideConnected) end --- ---Create a GearJoint connecting two Joints. --- ---The gear joint connects two joints that must be either prismatic or revolute joints. Using this joint requires that the joints it uses connect their respective bodies to the ground and have the ground as the first body. When destroying the bodies and joints you must make sure you destroy the gear joint before the other joints. --- ---The gear joint has a ratio the determines how the angular or distance values of the connected joints relate to each other. The formula coordinate1 + ratio * coordinate2 always has a constant value that is set when the gear joint is created. --- ---@param joint1 love.Joint # The first joint to connect with a gear joint. ---@param joint2 love.Joint # The second joint to connect with a gear joint. ---@param ratio? number # The gear ratio. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.GearJoint joint # The new gear joint. function love.physics.newGearJoint(joint1, joint2, ratio, collideConnected) end --- ---Creates a joint between two bodies which controls the relative motion between them. --- ---Position and rotation offsets can be specified once the MotorJoint has been created, as well as the maximum motor force and torque that will be be applied to reach the target offsets. --- ---@overload fun(body1: love.Body, body2: love.Body, correctionFactor: number, collideConnected: boolean):love.MotorJoint ---@param body1 love.Body # The first body to attach to the joint. ---@param body2 love.Body # The second body to attach to the joint. ---@param correctionFactor? number # The joint's initial position correction factor, in the range of 1. ---@return love.MotorJoint joint # The new MotorJoint. function love.physics.newMotorJoint(body1, body2, correctionFactor) end --- ---Create a joint between a body and the mouse. --- ---This joint actually connects the body to a fixed point in the world. To make it follow the mouse, the fixed point must be updated every timestep (example below). --- ---The advantage of using a MouseJoint instead of just changing a body position directly is that collisions and reactions to other joints are handled by the physics engine. --- ---@param body love.Body # The body to attach to the mouse. ---@param x number # The x position of the connecting point. ---@param y number # The y position of the connecting point. ---@return love.MouseJoint joint # The new mouse joint. function love.physics.newMouseJoint(body, x, y) end --- ---Creates a new PolygonShape. --- ---This shape can have 8 vertices at most, and must form a convex shape. --- ---@overload fun(vertices: table):love.PolygonShape ---@param x1 number # The x position of the first point. ---@param y1 number # The y position of the first point. ---@param x2 number # The x position of the second point. ---@param y2 number # The y position of the second point. ---@param x3 number # The x position of the third point. ---@param y3 number # The y position of the third point. ---@return love.PolygonShape shape # A new PolygonShape. function love.physics.newPolygonShape(x1, y1, x2, y2, x3, y3) end --- ---Creates a PrismaticJoint between two bodies. --- ---A prismatic joint constrains two bodies to move relatively to each other on a specified axis. It does not allow for relative rotation. Its definition and operation are similar to a revolute joint, but with translation and force substituted for angle and torque. --- ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, ax: number, ay: number, collideConnected: boolean):love.PrismaticJoint ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, ax: number, ay: number, collideConnected: boolean, referenceAngle: number):love.PrismaticJoint ---@param body1 love.Body # The first body to connect with a prismatic joint. ---@param body2 love.Body # The second body to connect with a prismatic joint. ---@param x number # The x coordinate of the anchor point. ---@param y number # The y coordinate of the anchor point. ---@param ax number # The x coordinate of the axis vector. ---@param ay number # The y coordinate of the axis vector. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.PrismaticJoint joint # The new prismatic joint. function love.physics.newPrismaticJoint(body1, body2, x, y, ax, ay, collideConnected) end --- ---Creates a PulleyJoint to join two bodies to each other and the ground. --- ---The pulley joint simulates a pulley with an optional block and tackle. If the ratio parameter has a value different from one, then the simulated rope extends faster on one side than the other. In a pulley joint the total length of the simulated rope is the constant length1 + ratio * length2, which is set when the pulley joint is created. --- ---Pulley joints can behave unpredictably if one side is fully extended. It is recommended that the method setMaxLengths  be used to constrain the maximum lengths each side can attain. --- ---@param body1 love.Body # The first body to connect with a pulley joint. ---@param body2 love.Body # The second body to connect with a pulley joint. ---@param gx1 number # The x coordinate of the first body's ground anchor. ---@param gy1 number # The y coordinate of the first body's ground anchor. ---@param gx2 number # The x coordinate of the second body's ground anchor. ---@param gy2 number # The y coordinate of the second body's ground anchor. ---@param x1 number # The x coordinate of the pulley joint anchor in the first body. ---@param y1 number # The y coordinate of the pulley joint anchor in the first body. ---@param x2 number # The x coordinate of the pulley joint anchor in the second body. ---@param y2 number # The y coordinate of the pulley joint anchor in the second body. ---@param ratio? number # The joint ratio. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.PulleyJoint joint # The new pulley joint. function love.physics.newPulleyJoint(body1, body2, gx1, gy1, gx2, gy2, x1, y1, x2, y2, ratio, collideConnected) end --- ---Shorthand for creating rectangular PolygonShapes. --- ---By default, the local origin is located at the '''center''' of the rectangle as opposed to the top left for graphics. --- ---@overload fun(x: number, y: number, width: number, height: number, angle: number):love.PolygonShape ---@param width number # The width of the rectangle. ---@param height number # The height of the rectangle. ---@return love.PolygonShape shape # A new PolygonShape. function love.physics.newRectangleShape(width, height) end --- ---Creates a pivot joint between two bodies. --- ---This joint connects two bodies to a point around which they can pivot. --- ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, collideConnected: boolean, referenceAngle: number):love.RevoluteJoint ---@param body1 love.Body # The first body. ---@param body2 love.Body # The second body. ---@param x number # The x position of the connecting point. ---@param y number # The y position of the connecting point. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.RevoluteJoint joint # The new revolute joint. function love.physics.newRevoluteJoint(body1, body2, x, y, collideConnected) end --- ---Creates a joint between two bodies. Its only function is enforcing a max distance between these bodies. --- ---@param body1 love.Body # The first body to attach to the joint. ---@param body2 love.Body # The second body to attach to the joint. ---@param x1 number # The x position of the first anchor point. ---@param y1 number # The y position of the first anchor point. ---@param x2 number # The x position of the second anchor point. ---@param y2 number # The y position of the second anchor point. ---@param maxLength number # The maximum distance for the bodies. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.RopeJoint joint # The new RopeJoint. function love.physics.newRopeJoint(body1, body2, x1, y1, x2, y2, maxLength, collideConnected) end --- ---Creates a constraint joint between two bodies. A WeldJoint essentially glues two bodies together. The constraint is a bit soft, however, due to Box2D's iterative solver. --- ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, collideConnected: boolean):love.WeldJoint ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, collideConnected: boolean, referenceAngle: number):love.WeldJoint ---@param body1 love.Body # The first body to attach to the joint. ---@param body2 love.Body # The second body to attach to the joint. ---@param x number # The x position of the anchor point (world space). ---@param y number # The y position of the anchor point (world space). ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.WeldJoint joint # The new WeldJoint. function love.physics.newWeldJoint(body1, body2, x, y, collideConnected) end --- ---Creates a wheel joint. --- ---@overload fun(body1: love.Body, body2: love.Body, x1: number, y1: number, x2: number, y2: number, ax: number, ay: number, collideConnected: boolean):love.WheelJoint ---@param body1 love.Body # The first body. ---@param body2 love.Body # The second body. ---@param x number # The x position of the anchor point. ---@param y number # The y position of the anchor point. ---@param ax number # The x position of the axis unit vector. ---@param ay number # The y position of the axis unit vector. ---@param collideConnected? boolean # Specifies whether the two bodies should collide with each other. ---@return love.WheelJoint joint # The new WheelJoint. function love.physics.newWheelJoint(body1, body2, x, y, ax, ay, collideConnected) end --- ---Creates a new World. --- ---@param xg? number # The x component of gravity. ---@param yg? number # The y component of gravity. ---@param sleep? boolean # Whether the bodies in this world are allowed to sleep. ---@return love.World world # A brave new World. function love.physics.newWorld(xg, yg, sleep) end --- ---Sets the pixels to meter scale factor. --- ---All coordinates in the physics module are divided by this number and converted to meters, and it creates a convenient way to draw the objects directly to the screen without the need for graphics transformations. --- ---It is recommended to create shapes no larger than 10 times the scale. This is important because Box2D is tuned to work well with shape sizes from 0.1 to 10 meters. The default meter scale is 30. --- ---@param scale number # The scale factor as an integer. function love.physics.setMeter(scale) end --- ---Bodies are objects with velocity and position. --- ---@class love.Body: love.Object local Body = {} --- ---Applies an angular impulse to a body. This makes a single, instantaneous addition to the body momentum. --- ---A body with with a larger mass will react less. The reaction does '''not''' depend on the timestep, and is equivalent to applying a force continuously for 1 second. Impulses are best used to give a single push to a body. For a continuous push to a body it is better to use Body:applyForce. --- ---@param impulse number # The impulse in kilogram-square meter per second. function Body:applyAngularImpulse(impulse) end --- ---Apply force to a Body. --- ---A force pushes a body in a direction. A body with with a larger mass will react less. The reaction also depends on how long a force is applied: since the force acts continuously over the entire timestep, a short timestep will only push the body for a short time. Thus forces are best used for many timesteps to give a continuous push to a body (like gravity). For a single push that is independent of timestep, it is better to use Body:applyLinearImpulse. --- ---If the position to apply the force is not given, it will act on the center of mass of the body. The part of the force not directed towards the center of mass will cause the body to spin (and depends on the rotational inertia). --- ---Note that the force components and position must be given in world coordinates. --- ---@overload fun(self: love.Body, fx: number, fy: number, x: number, y: number) ---@param fx number # The x component of force to apply to the center of mass. ---@param fy number # The y component of force to apply to the center of mass. function Body:applyForce(fx, fy) end --- ---Applies an impulse to a body. --- ---This makes a single, instantaneous addition to the body momentum. --- ---An impulse pushes a body in a direction. A body with with a larger mass will react less. The reaction does '''not''' depend on the timestep, and is equivalent to applying a force continuously for 1 second. Impulses are best used to give a single push to a body. For a continuous push to a body it is better to use Body:applyForce. --- ---If the position to apply the impulse is not given, it will act on the center of mass of the body. The part of the impulse not directed towards the center of mass will cause the body to spin (and depends on the rotational inertia). --- ---Note that the impulse components and position must be given in world coordinates. --- ---@overload fun(self: love.Body, ix: number, iy: number, x: number, y: number) ---@param ix number # The x component of the impulse applied to the center of mass. ---@param iy number # The y component of the impulse applied to the center of mass. function Body:applyLinearImpulse(ix, iy) end --- ---Apply torque to a body. --- ---Torque is like a force that will change the angular velocity (spin) of a body. The effect will depend on the rotational inertia a body has. --- ---@param torque number # The torque to apply. function Body:applyTorque(torque) end --- ---Explicitly destroys the Body and all fixtures and joints attached to it. --- ---An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately. --- function Body:destroy() end --- ---Get the angle of the body. --- ---The angle is measured in radians. If you need to transform it to degrees, use math.deg. --- ---A value of 0 radians will mean 'looking to the right'. Although radians increase counter-clockwise, the y axis points down so it becomes ''clockwise'' from our point of view. --- ---@return number angle # The angle in radians. function Body:getAngle() end --- ---Gets the Angular damping of the Body --- ---The angular damping is the ''rate of decrease of the angular velocity over time'': A spinning body with no damping and no external forces will continue spinning indefinitely. A spinning body with damping will gradually stop spinning. --- ---Damping is not the same as friction - they can be modelled together. However, only damping is provided by Box2D (and LOVE). --- ---Damping parameters should be between 0 and infinity, with 0 meaning no damping, and infinity meaning full damping. Normally you will use a damping value between 0 and 0.1. --- ---@return number damping # The value of the angular damping. function Body:getAngularDamping() end --- ---Get the angular velocity of the Body. --- ---The angular velocity is the ''rate of change of angle over time''. --- ---It is changed in World:update by applying torques, off centre forces/impulses, and angular damping. It can be set directly with Body:setAngularVelocity. --- ---If you need the ''rate of change of position over time'', use Body:getLinearVelocity. --- ---@return number w # The angular velocity in radians/second. function Body:getAngularVelocity() end --- ---Gets a list of all Contacts attached to the Body. --- ---@return table contacts # A list with all contacts associated with the Body. function Body:getContacts() end --- ---Returns a table with all fixtures. --- ---@return table fixtures # A sequence with all fixtures. function Body:getFixtures() end --- ---Returns the gravity scale factor. --- ---@return number scale # The gravity scale factor. function Body:getGravityScale() end --- ---Gets the rotational inertia of the body. --- ---The rotational inertia is how hard is it to make the body spin. --- ---@return number inertia # The rotational inertial of the body. function Body:getInertia() end --- ---Returns a table containing the Joints attached to this Body. --- ---@return table joints # A sequence with the Joints attached to the Body. function Body:getJoints() end --- ---Gets the linear damping of the Body. --- ---The linear damping is the ''rate of decrease of the linear velocity over time''. A moving body with no damping and no external forces will continue moving indefinitely, as is the case in space. A moving body with damping will gradually stop moving. --- ---Damping is not the same as friction - they can be modelled together. --- ---@return number damping # The value of the linear damping. function Body:getLinearDamping() end --- ---Gets the linear velocity of the Body from its center of mass. --- ---The linear velocity is the ''rate of change of position over time''. --- ---If you need the ''rate of change of angle over time'', use Body:getAngularVelocity. --- ---If you need to get the linear velocity of a point different from the center of mass: --- ---* Body:getLinearVelocityFromLocalPoint allows you to specify the point in local coordinates. --- ---* Body:getLinearVelocityFromWorldPoint allows you to specify the point in world coordinates. --- ---See page 136 of 'Essential Mathematics for Games and Interactive Applications' for definitions of local and world coordinates. --- ---@return number x # The x-component of the velocity vector ---@return number y # The y-component of the velocity vector function Body:getLinearVelocity() end --- ---Get the linear velocity of a point on the body. --- ---The linear velocity for a point on the body is the velocity of the body center of mass plus the velocity at that point from the body spinning. --- ---The point on the body must given in local coordinates. Use Body:getLinearVelocityFromWorldPoint to specify this with world coordinates. --- ---@param x number # The x position to measure velocity. ---@param y number # The y position to measure velocity. ---@return number vx # The x component of velocity at point (x,y). ---@return number vy # The y component of velocity at point (x,y). function Body:getLinearVelocityFromLocalPoint(x, y) end --- ---Get the linear velocity of a point on the body. --- ---The linear velocity for a point on the body is the velocity of the body center of mass plus the velocity at that point from the body spinning. --- ---The point on the body must given in world coordinates. Use Body:getLinearVelocityFromLocalPoint to specify this with local coordinates. --- ---@param x number # The x position to measure velocity. ---@param y number # The y position to measure velocity. ---@return number vx # The x component of velocity at point (x,y). ---@return number vy # The y component of velocity at point (x,y). function Body:getLinearVelocityFromWorldPoint(x, y) end --- ---Get the center of mass position in local coordinates. --- ---Use Body:getWorldCenter to get the center of mass in world coordinates. --- ---@return number x # The x coordinate of the center of mass. ---@return number y # The y coordinate of the center of mass. function Body:getLocalCenter() end --- ---Transform a point from world coordinates to local coordinates. --- ---@param worldX number # The x position in world coordinates. ---@param worldY number # The y position in world coordinates. ---@return number localX # The x position in local coordinates. ---@return number localY # The y position in local coordinates. function Body:getLocalPoint(worldX, worldY) end --- ---Transforms multiple points from world coordinates to local coordinates. --- ---@param x1 number # (Argument) The x position of the first point. ---@param y1 number # (Argument) The y position of the first point. ---@param x2 number # (Argument) The x position of the second point. ---@param y2 number # (Argument) The y position of the second point. ---@return number x1 # (Result) The transformed x position of the first point. ---@return number y1 # (Result) The transformed y position of the first point. ---@return number x2 # (Result) The transformed x position of the second point. ---@return number y2 # (Result) The transformed y position of the second point. function Body:getLocalPoints(x1, y1, x2, y2) end --- ---Transform a vector from world coordinates to local coordinates. --- ---@param worldX number # The vector x component in world coordinates. ---@param worldY number # The vector y component in world coordinates. ---@return number localX # The vector x component in local coordinates. ---@return number localY # The vector y component in local coordinates. function Body:getLocalVector(worldX, worldY) end --- ---Get the mass of the body. --- ---Static bodies always have a mass of 0. --- ---@return number mass # The mass of the body (in kilograms). function Body:getMass() end --- ---Returns the mass, its center, and the rotational inertia. --- ---@return number x # The x position of the center of mass. ---@return number y # The y position of the center of mass. ---@return number mass # The mass of the body. ---@return number inertia # The rotational inertia. function Body:getMassData() end --- ---Get the position of the body. --- ---Note that this may not be the center of mass of the body. --- ---@return number x # The x position. ---@return number y # The y position. function Body:getPosition() end --- ---Get the position and angle of the body. --- ---Note that the position may not be the center of mass of the body. An angle of 0 radians will mean 'looking to the right'. Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. --- ---@return number x # The x component of the position. ---@return number y # The y component of the position. ---@return number angle # The angle in radians. function Body:getTransform() end --- ---Returns the type of the body. --- ---@return love.BodyType type # The body type. function Body:getType() end --- ---Returns the Lua value associated with this Body. --- ---@return any value # The Lua value associated with the Body. function Body:getUserData() end --- ---Gets the World the body lives in. --- ---@return love.World world # The world the body lives in. function Body:getWorld() end --- ---Get the center of mass position in world coordinates. --- ---Use Body:getLocalCenter to get the center of mass in local coordinates. --- ---@return number x # The x coordinate of the center of mass. ---@return number y # The y coordinate of the center of mass. function Body:getWorldCenter() end --- ---Transform a point from local coordinates to world coordinates. --- ---@param localX number # The x position in local coordinates. ---@param localY number # The y position in local coordinates. ---@return number worldX # The x position in world coordinates. ---@return number worldY # The y position in world coordinates. function Body:getWorldPoint(localX, localY) end --- ---Transforms multiple points from local coordinates to world coordinates. --- ---@param x1 number # The x position of the first point. ---@param y1 number # The y position of the first point. ---@param x2 number # The x position of the second point. ---@param y2 number # The y position of the second point. ---@return number x1 # The transformed x position of the first point. ---@return number y1 # The transformed y position of the first point. ---@return number x2 # The transformed x position of the second point. ---@return number y2 # The transformed y position of the second point. function Body:getWorldPoints(x1, y1, x2, y2) end --- ---Transform a vector from local coordinates to world coordinates. --- ---@param localX number # The vector x component in local coordinates. ---@param localY number # The vector y component in local coordinates. ---@return number worldX # The vector x component in world coordinates. ---@return number worldY # The vector y component in world coordinates. function Body:getWorldVector(localX, localY) end --- ---Get the x position of the body in world coordinates. --- ---@return number x # The x position in world coordinates. function Body:getX() end --- ---Get the y position of the body in world coordinates. --- ---@return number y # The y position in world coordinates. function Body:getY() end --- ---Returns whether the body is actively used in the simulation. --- ---@return boolean status # True if the body is active or false if not. function Body:isActive() end --- ---Returns the sleep status of the body. --- ---@return boolean status # True if the body is awake or false if not. function Body:isAwake() end --- ---Get the bullet status of a body. --- ---There are two methods to check for body collisions: --- ---* at their location when the world is updated (default) --- ---* using continuous collision detection (CCD) --- ---The default method is efficient, but a body moving very quickly may sometimes jump over another body without producing a collision. A body that is set as a bullet will use CCD. This is less efficient, but is guaranteed not to jump when moving quickly. --- ---Note that static bodies (with zero mass) always use CCD, so your walls will not let a fast moving body pass through even if it is not a bullet. --- ---@return boolean status # The bullet status of the body. function Body:isBullet() end --- ---Gets whether the Body is destroyed. Destroyed bodies cannot be used. --- ---@return boolean destroyed # Whether the Body is destroyed. function Body:isDestroyed() end --- ---Returns whether the body rotation is locked. --- ---@return boolean fixed # True if the body's rotation is locked or false if not. function Body:isFixedRotation() end --- ---Returns the sleeping behaviour of the body. --- ---@return boolean allowed # True if the body is allowed to sleep or false if not. function Body:isSleepingAllowed() end --- ---Gets whether the Body is touching the given other Body. --- ---@param otherbody love.Body # The other body to check. ---@return boolean touching # True if this body is touching the other body, false otherwise. function Body:isTouching(otherbody) end --- ---Resets the mass of the body by recalculating it from the mass properties of the fixtures. --- function Body:resetMassData() end --- ---Sets whether the body is active in the world. --- ---An inactive body does not take part in the simulation. It will not move or cause any collisions. --- ---@param active boolean # If the body is active or not. function Body:setActive(active) end --- ---Set the angle of the body. --- ---The angle is measured in radians. If you need to transform it from degrees, use math.rad. --- ---A value of 0 radians will mean 'looking to the right'. Although radians increase counter-clockwise, the y axis points down so it becomes ''clockwise'' from our point of view. --- ---It is possible to cause a collision with another body by changing its angle. --- ---@param angle number # The angle in radians. function Body:setAngle(angle) end --- ---Sets the angular damping of a Body --- ---See Body:getAngularDamping for a definition of angular damping. --- ---Angular damping can take any value from 0 to infinity. It is recommended to stay between 0 and 0.1, though. Other values will look unrealistic. --- ---@param damping number # The new angular damping. function Body:setAngularDamping(damping) end --- ---Sets the angular velocity of a Body. --- ---The angular velocity is the ''rate of change of angle over time''. --- ---This function will not accumulate anything; any impulses previously applied since the last call to World:update will be lost. --- ---@param w number # The new angular velocity, in radians per second function Body:setAngularVelocity(w) end --- ---Wakes the body up or puts it to sleep. --- ---@param awake boolean # The body sleep status. function Body:setAwake(awake) end --- ---Set the bullet status of a body. --- ---There are two methods to check for body collisions: --- ---* at their location when the world is updated (default) --- ---* using continuous collision detection (CCD) --- ---The default method is efficient, but a body moving very quickly may sometimes jump over another body without producing a collision. A body that is set as a bullet will use CCD. This is less efficient, but is guaranteed not to jump when moving quickly. --- ---Note that static bodies (with zero mass) always use CCD, so your walls will not let a fast moving body pass through even if it is not a bullet. --- ---@param status boolean # The bullet status of the body. function Body:setBullet(status) end --- ---Set whether a body has fixed rotation. --- ---Bodies with fixed rotation don't vary the speed at which they rotate. Calling this function causes the mass to be reset. --- ---@param isFixed boolean # Whether the body should have fixed rotation. function Body:setFixedRotation(isFixed) end --- ---Sets a new gravity scale factor for the body. --- ---@param scale number # The new gravity scale factor. function Body:setGravityScale(scale) end --- ---Set the inertia of a body. --- ---@param inertia number # The new moment of inertia, in kilograms * pixel squared. function Body:setInertia(inertia) end --- ---Sets the linear damping of a Body --- ---See Body:getLinearDamping for a definition of linear damping. --- ---Linear damping can take any value from 0 to infinity. It is recommended to stay between 0 and 0.1, though. Other values will make the objects look 'floaty'(if gravity is enabled). --- ---@param ld number # The new linear damping function Body:setLinearDamping(ld) end --- ---Sets a new linear velocity for the Body. --- ---This function will not accumulate anything; any impulses previously applied since the last call to World:update will be lost. --- ---@param x number # The x-component of the velocity vector. ---@param y number # The y-component of the velocity vector. function Body:setLinearVelocity(x, y) end --- ---Sets a new body mass. --- ---@param mass number # The mass, in kilograms. function Body:setMass(mass) end --- ---Overrides the calculated mass data. --- ---@param x number # The x position of the center of mass. ---@param y number # The y position of the center of mass. ---@param mass number # The mass of the body. ---@param inertia number # The rotational inertia. function Body:setMassData(x, y, mass, inertia) end --- ---Set the position of the body. --- ---Note that this may not be the center of mass of the body. --- ---This function cannot wake up the body. --- ---@param x number # The x position. ---@param y number # The y position. function Body:setPosition(x, y) end --- ---Sets the sleeping behaviour of the body. Should sleeping be allowed, a body at rest will automatically sleep. A sleeping body is not simulated unless it collided with an awake body. Be wary that one can end up with a situation like a floating sleeping body if the floor was removed. --- ---@param allowed boolean # True if the body is allowed to sleep or false if not. function Body:setSleepingAllowed(allowed) end --- ---Set the position and angle of the body. --- ---Note that the position may not be the center of mass of the body. An angle of 0 radians will mean 'looking to the right'. Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. --- ---This function cannot wake up the body. --- ---@param x number # The x component of the position. ---@param y number # The y component of the position. ---@param angle number # The angle in radians. function Body:setTransform(x, y, angle) end --- ---Sets a new body type. --- ---@param type love.BodyType # The new type. function Body:setType(type) end --- ---Associates a Lua value with the Body. --- ---To delete the reference, explicitly pass nil. --- ---@param value any # The Lua value to associate with the Body. function Body:setUserData(value) end --- ---Set the x position of the body. --- ---This function cannot wake up the body. --- ---@param x number # The x position. function Body:setX(x) end --- ---Set the y position of the body. --- ---This function cannot wake up the body. --- ---@param y number # The y position. function Body:setY(y) end --- ---A ChainShape consists of multiple line segments. It can be used to create the boundaries of your terrain. The shape does not have volume and can only collide with PolygonShape and CircleShape. --- ---Unlike the PolygonShape, the ChainShape does not have a vertices limit or has to form a convex shape, but self intersections are not supported. --- ---@class love.ChainShape: love.Shape, love.Object local ChainShape = {} --- ---Returns a child of the shape as an EdgeShape. --- ---@param index number # The index of the child. ---@return love.EdgeShape shape # The child as an EdgeShape. function ChainShape:getChildEdge(index) end --- ---Gets the vertex that establishes a connection to the next shape. --- ---Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@return number x # The x-component of the vertex, or nil if ChainShape:setNextVertex hasn't been called. ---@return number y # The y-component of the vertex, or nil if ChainShape:setNextVertex hasn't been called. function ChainShape:getNextVertex() end --- ---Returns a point of the shape. --- ---@param index number # The index of the point to return. ---@return number x # The x-coordinate of the point. ---@return number y # The y-coordinate of the point. function ChainShape:getPoint(index) end --- ---Returns all points of the shape. --- ---@return number x1 # The x-coordinate of the first point. ---@return number y1 # The y-coordinate of the first point. ---@return number x2 # The x-coordinate of the second point. ---@return number y2 # The y-coordinate of the second point. function ChainShape:getPoints() end --- ---Gets the vertex that establishes a connection to the previous shape. --- ---Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@return number x # The x-component of the vertex, or nil if ChainShape:setPreviousVertex hasn't been called. ---@return number y # The y-component of the vertex, or nil if ChainShape:setPreviousVertex hasn't been called. function ChainShape:getPreviousVertex() end --- ---Returns the number of vertices the shape has. --- ---@return number count # The number of vertices. function ChainShape:getVertexCount() end --- ---Sets a vertex that establishes a connection to the next shape. --- ---This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@param x number # The x-component of the vertex. ---@param y number # The y-component of the vertex. function ChainShape:setNextVertex(x, y) end --- ---Sets a vertex that establishes a connection to the previous shape. --- ---This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@param x number # The x-component of the vertex. ---@param y number # The y-component of the vertex. function ChainShape:setPreviousVertex(x, y) end --- ---Circle extends Shape and adds a radius and a local position. --- ---@class love.CircleShape: love.Shape, love.Object local CircleShape = {} --- ---Gets the center point of the circle shape. --- ---@return number x # The x-component of the center point of the circle. ---@return number y # The y-component of the center point of the circle. function CircleShape:getPoint() end --- ---Gets the radius of the circle shape. --- ---@return number radius # The radius of the circle function CircleShape:getRadius() end --- ---Sets the location of the center of the circle shape. --- ---@param x number # The x-component of the new center point of the circle. ---@param y number # The y-component of the new center point of the circle. function CircleShape:setPoint(x, y) end --- ---Sets the radius of the circle. --- ---@param radius number # The radius of the circle function CircleShape:setRadius(radius) end --- ---Contacts are objects created to manage collisions in worlds. --- ---@class love.Contact: love.Object local Contact = {} --- ---Gets the child indices of the shapes of the two colliding fixtures. For ChainShapes, an index of 1 is the first edge in the chain. ---Used together with Fixture:rayCast or ChainShape:getChildEdge. --- ---@return number indexA # The child index of the first fixture's shape. ---@return number indexB # The child index of the second fixture's shape. function Contact:getChildren() end --- ---Gets the two Fixtures that hold the shapes that are in contact. --- ---@return love.Fixture fixtureA # The first Fixture. ---@return love.Fixture fixtureB # The second Fixture. function Contact:getFixtures() end --- ---Get the friction between two shapes that are in contact. --- ---@return number friction # The friction of the contact. function Contact:getFriction() end --- ---Get the normal vector between two shapes that are in contact. --- ---This function returns the coordinates of a unit vector that points from the first shape to the second. --- ---@return number nx # The x component of the normal vector. ---@return number ny # The y component of the normal vector. function Contact:getNormal() end --- ---Returns the contact points of the two colliding fixtures. There can be one or two points. --- ---@return number x1 # The x coordinate of the first contact point. ---@return number y1 # The y coordinate of the first contact point. ---@return number x2 # The x coordinate of the second contact point. ---@return number y2 # The y coordinate of the second contact point. function Contact:getPositions() end --- ---Get the restitution between two shapes that are in contact. --- ---@return number restitution # The restitution between the two shapes. function Contact:getRestitution() end --- ---Returns whether the contact is enabled. The collision will be ignored if a contact gets disabled in the preSolve callback. --- ---@return boolean enabled # True if enabled, false otherwise. function Contact:isEnabled() end --- ---Returns whether the two colliding fixtures are touching each other. --- ---@return boolean touching # True if they touch or false if not. function Contact:isTouching() end --- ---Resets the contact friction to the mixture value of both fixtures. --- function Contact:resetFriction() end --- ---Resets the contact restitution to the mixture value of both fixtures. --- function Contact:resetRestitution() end --- ---Enables or disables the contact. --- ---@param enabled boolean # True to enable or false to disable. function Contact:setEnabled(enabled) end --- ---Sets the contact friction. --- ---@param friction number # The contact friction. function Contact:setFriction(friction) end --- ---Sets the contact restitution. --- ---@param restitution number # The contact restitution. function Contact:setRestitution(restitution) end --- ---Keeps two bodies at the same distance. --- ---@class love.DistanceJoint: love.Joint, love.Object local DistanceJoint = {} --- ---Gets the damping ratio. --- ---@return number ratio # The damping ratio. function DistanceJoint:getDampingRatio() end --- ---Gets the response speed. --- ---@return number Hz # The response speed. function DistanceJoint:getFrequency() end --- ---Gets the equilibrium distance between the two Bodies. --- ---@return number l # The length between the two Bodies. function DistanceJoint:getLength() end --- ---Sets the damping ratio. --- ---@param ratio number # The damping ratio. function DistanceJoint:setDampingRatio(ratio) end --- ---Sets the response speed. --- ---@param Hz number # The response speed. function DistanceJoint:setFrequency(Hz) end --- ---Sets the equilibrium distance between the two Bodies. --- ---@param l number # The length between the two Bodies. function DistanceJoint:setLength(l) end --- ---A EdgeShape is a line segment. They can be used to create the boundaries of your terrain. The shape does not have volume and can only collide with PolygonShape and CircleShape. --- ---@class love.EdgeShape: love.Shape, love.Object local EdgeShape = {} --- ---Gets the vertex that establishes a connection to the next shape. --- ---Setting next and previous EdgeShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@return number x # The x-component of the vertex, or nil if EdgeShape:setNextVertex hasn't been called. ---@return number y # The y-component of the vertex, or nil if EdgeShape:setNextVertex hasn't been called. function EdgeShape:getNextVertex() end --- ---Returns the local coordinates of the edge points. --- ---@return number x1 # The x-component of the first vertex. ---@return number y1 # The y-component of the first vertex. ---@return number x2 # The x-component of the second vertex. ---@return number y2 # The y-component of the second vertex. function EdgeShape:getPoints() end --- ---Gets the vertex that establishes a connection to the previous shape. --- ---Setting next and previous EdgeShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@return number x # The x-component of the vertex, or nil if EdgeShape:setPreviousVertex hasn't been called. ---@return number y # The y-component of the vertex, or nil if EdgeShape:setPreviousVertex hasn't been called. function EdgeShape:getPreviousVertex() end --- ---Sets a vertex that establishes a connection to the next shape. --- ---This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@param x number # The x-component of the vertex. ---@param y number # The y-component of the vertex. function EdgeShape:setNextVertex(x, y) end --- ---Sets a vertex that establishes a connection to the previous shape. --- ---This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. --- ---@param x number # The x-component of the vertex. ---@param y number # The y-component of the vertex. function EdgeShape:setPreviousVertex(x, y) end --- ---Fixtures attach shapes to bodies. --- ---@class love.Fixture: love.Object local Fixture = {} --- ---Destroys the fixture. --- function Fixture:destroy() end --- ---Returns the body to which the fixture is attached. --- ---@return love.Body body # The parent body. function Fixture:getBody() end --- ---Returns the points of the fixture bounding box. In case the fixture has multiple children a 1-based index can be specified. For example, a fixture will have multiple children with a chain shape. --- ---@param index? number # A bounding box of the fixture. ---@return number topLeftX # The x position of the top-left point. ---@return number topLeftY # The y position of the top-left point. ---@return number bottomRightX # The x position of the bottom-right point. ---@return number bottomRightY # The y position of the bottom-right point. function Fixture:getBoundingBox(index) end --- ---Returns the categories the fixture belongs to. --- ---@return number category1 # The first category. ---@return number category2 # The second category. function Fixture:getCategory() end --- ---Returns the density of the fixture. --- ---@return number density # The fixture density in kilograms per square meter. function Fixture:getDensity() end --- ---Returns the filter data of the fixture. --- ---Categories and masks are encoded as the bits of a 16-bit integer. --- ---@return number categories # The categories as an integer from 0 to 65535. ---@return number mask # The mask as an integer from 0 to 65535. ---@return number group # The group as an integer from -32768 to 32767. function Fixture:getFilterData() end --- ---Returns the friction of the fixture. --- ---@return number friction # The fixture friction. function Fixture:getFriction() end --- ---Returns the group the fixture belongs to. Fixtures with the same group will always collide if the group is positive or never collide if it's negative. The group zero means no group. --- ---The groups range from -32768 to 32767. --- ---@return number group # The group of the fixture. function Fixture:getGroupIndex() end --- ---Returns which categories this fixture should '''NOT''' collide with. --- ---@return number mask1 # The first category selected by the mask. ---@return number mask2 # The second category selected by the mask. function Fixture:getMask() end --- ---Returns the mass, its center and the rotational inertia. --- ---@return number x # The x position of the center of mass. ---@return number y # The y position of the center of mass. ---@return number mass # The mass of the fixture. ---@return number inertia # The rotational inertia. function Fixture:getMassData() end --- ---Returns the restitution of the fixture. --- ---@return number restitution # The fixture restitution. function Fixture:getRestitution() end --- ---Returns the shape of the fixture. This shape is a reference to the actual data used in the simulation. It's possible to change its values between timesteps. --- ---@return love.Shape shape # The fixture's shape. function Fixture:getShape() end --- ---Returns the Lua value associated with this fixture. --- ---@return any value # The Lua value associated with the fixture. function Fixture:getUserData() end --- ---Gets whether the Fixture is destroyed. Destroyed fixtures cannot be used. --- ---@return boolean destroyed # Whether the Fixture is destroyed. function Fixture:isDestroyed() end --- ---Returns whether the fixture is a sensor. --- ---@return boolean sensor # If the fixture is a sensor. function Fixture:isSensor() end --- ---Casts a ray against the shape of the fixture and returns the surface normal vector and the line position where the ray hit. If the ray missed the shape, nil will be returned. --- ---The ray starts on the first point of the input line and goes towards the second point of the line. The fifth argument is the maximum distance the ray is going to travel as a scale factor of the input line length. --- ---The childIndex parameter is used to specify which child of a parent shape, such as a ChainShape, will be ray casted. For ChainShapes, the index of 1 is the first edge on the chain. Ray casting a parent shape will only test the child specified so if you want to test every shape of the parent, you must loop through all of its children. --- ---The world position of the impact can be calculated by multiplying the line vector with the third return value and adding it to the line starting point. --- ---hitx, hity = x1 + (x2 - x1) * fraction, y1 + (y2 - y1) * fraction --- ---@param x1 number # The x position of the input line starting point. ---@param y1 number # The y position of the input line starting point. ---@param x2 number # The x position of the input line end point. ---@param y2 number # The y position of the input line end point. ---@param maxFraction number # Ray length parameter. ---@param childIndex? number # The index of the child the ray gets cast against. ---@return number xn # The x component of the normal vector of the edge where the ray hit the shape. ---@return number yn # The y component of the normal vector of the edge where the ray hit the shape. ---@return number fraction # The position on the input line where the intersection happened as a factor of the line length. function Fixture:rayCast(x1, y1, x2, y2, maxFraction, childIndex) end --- ---Sets the categories the fixture belongs to. There can be up to 16 categories represented as a number from 1 to 16. --- ---All fixture's default category is 1. --- ---@param category1 number # The first category. ---@param category2 number # The second category. function Fixture:setCategory(category1, category2) end --- ---Sets the density of the fixture. Call Body:resetMassData if this needs to take effect immediately. --- ---@param density number # The fixture density in kilograms per square meter. function Fixture:setDensity(density) end --- ---Sets the filter data of the fixture. --- ---Groups, categories, and mask can be used to define the collision behaviour of the fixture. --- ---If two fixtures are in the same group they either always collide if the group is positive, or never collide if it's negative. If the group is zero or they do not match, then the contact filter checks if the fixtures select a category of the other fixture with their masks. The fixtures do not collide if that's not the case. If they do have each other's categories selected, the return value of the custom contact filter will be used. They always collide if none was set. --- ---There can be up to 16 categories. Categories and masks are encoded as the bits of a 16-bit integer. --- ---When created, prior to calling this function, all fixtures have category set to 1, mask set to 65535 (all categories) and group set to 0. --- ---This function allows setting all filter data for a fixture at once. To set only the categories, the mask or the group, you can use Fixture:setCategory, Fixture:setMask or Fixture:setGroupIndex respectively. --- ---@param categories number # The categories as an integer from 0 to 65535. ---@param mask number # The mask as an integer from 0 to 65535. ---@param group number # The group as an integer from -32768 to 32767. function Fixture:setFilterData(categories, mask, group) end --- ---Sets the friction of the fixture. --- ---Friction determines how shapes react when they 'slide' along other shapes. Low friction indicates a slippery surface, like ice, while high friction indicates a rough surface, like concrete. Range: 0.0 - 1.0. --- ---@param friction number # The fixture friction. function Fixture:setFriction(friction) end --- ---Sets the group the fixture belongs to. Fixtures with the same group will always collide if the group is positive or never collide if it's negative. The group zero means no group. --- ---The groups range from -32768 to 32767. --- ---@param group number # The group as an integer from -32768 to 32767. function Fixture:setGroupIndex(group) end --- ---Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16. --- ---This fixture will '''NOT''' collide with the fixtures that are in the selected categories if the other fixture also has a category of this fixture selected. --- ---@param mask1 number # The first category. ---@param mask2 number # The second category. function Fixture:setMask(mask1, mask2) end --- ---Sets the restitution of the fixture. --- ---@param restitution number # The fixture restitution. function Fixture:setRestitution(restitution) end --- ---Sets whether the fixture should act as a sensor. --- ---Sensors do not cause collision responses, but the begin-contact and end-contact World callbacks will still be called for this fixture. --- ---@param sensor boolean # The sensor status. function Fixture:setSensor(sensor) end --- ---Associates a Lua value with the fixture. --- ---To delete the reference, explicitly pass nil. --- ---@param value any # The Lua value to associate with the fixture. function Fixture:setUserData(value) end --- ---Checks if a point is inside the shape of the fixture. --- ---@param x number # The x position of the point. ---@param y number # The y position of the point. ---@return boolean isInside # True if the point is inside or false if it is outside. function Fixture:testPoint(x, y) end --- ---A FrictionJoint applies friction to a body. --- ---@class love.FrictionJoint: love.Joint, love.Object local FrictionJoint = {} --- ---Gets the maximum friction force in Newtons. --- ---@return number force # Maximum force in Newtons. function FrictionJoint:getMaxForce() end --- ---Gets the maximum friction torque in Newton-meters. --- ---@return number torque # Maximum torque in Newton-meters. function FrictionJoint:getMaxTorque() end --- ---Sets the maximum friction force in Newtons. --- ---@param maxForce number # Max force in Newtons. function FrictionJoint:setMaxForce(maxForce) end --- ---Sets the maximum friction torque in Newton-meters. --- ---@param torque number # Maximum torque in Newton-meters. function FrictionJoint:setMaxTorque(torque) end --- ---Keeps bodies together in such a way that they act like gears. --- ---@class love.GearJoint: love.Joint, love.Object local GearJoint = {} --- ---Get the Joints connected by this GearJoint. --- ---@return love.Joint joint1 # The first connected Joint. ---@return love.Joint joint2 # The second connected Joint. function GearJoint:getJoints() end --- ---Get the ratio of a gear joint. --- ---@return number ratio # The ratio of the joint. function GearJoint:getRatio() end --- ---Set the ratio of a gear joint. --- ---@param ratio number # The new ratio of the joint. function GearJoint:setRatio(ratio) end --- ---Attach multiple bodies together to interact in unique ways. --- ---@class love.Joint: love.Object local Joint = {} --- ---Explicitly destroys the Joint. An error will occur if you attempt to use the object after calling this function. --- ---In 0.7.2, when you don't have time to wait for garbage collection, this function --- ---may be used to free the object immediately. --- function Joint:destroy() end --- ---Get the anchor points of the joint. --- ---@return number x1 # The x-component of the anchor on Body 1. ---@return number y1 # The y-component of the anchor on Body 1. ---@return number x2 # The x-component of the anchor on Body 2. ---@return number y2 # The y-component of the anchor on Body 2. function Joint:getAnchors() end --- ---Gets the bodies that the Joint is attached to. --- ---@return love.Body bodyA # The first Body. ---@return love.Body bodyB # The second Body. function Joint:getBodies() end --- ---Gets whether the connected Bodies collide. --- ---@return boolean c # True if they collide, false otherwise. function Joint:getCollideConnected() end --- ---Returns the reaction force in newtons on the second body --- ---@param x number # How long the force applies. Usually the inverse time step or 1/dt. ---@return number x # The x-component of the force. ---@return number y # The y-component of the force. function Joint:getReactionForce(x) end --- ---Returns the reaction torque on the second body. --- ---@param invdt number # How long the force applies. Usually the inverse time step or 1/dt. ---@return number torque # The reaction torque on the second body. function Joint:getReactionTorque(invdt) end --- ---Gets a string representing the type. --- ---@return love.JointType type # A string with the name of the Joint type. function Joint:getType() end --- ---Returns the Lua value associated with this Joint. --- ---@return any value # The Lua value associated with the Joint. function Joint:getUserData() end --- ---Gets whether the Joint is destroyed. Destroyed joints cannot be used. --- ---@return boolean destroyed # Whether the Joint is destroyed. function Joint:isDestroyed() end --- ---Associates a Lua value with the Joint. --- ---To delete the reference, explicitly pass nil. --- ---@param value any # The Lua value to associate with the Joint. function Joint:setUserData(value) end --- ---Controls the relative motion between two Bodies. Position and rotation offsets can be specified, as well as the maximum motor force and torque that will be applied to reach the target offsets. --- ---@class love.MotorJoint: love.Joint, love.Object local MotorJoint = {} --- ---Gets the target angular offset between the two Bodies the Joint is attached to. --- ---@return number angleoffset # The target angular offset in radians: the second body's angle minus the first body's angle. function MotorJoint:getAngularOffset() end --- ---Gets the target linear offset between the two Bodies the Joint is attached to. --- ---@return number x # The x component of the target linear offset, relative to the first Body. ---@return number y # The y component of the target linear offset, relative to the first Body. function MotorJoint:getLinearOffset() end --- ---Sets the target angluar offset between the two Bodies the Joint is attached to. --- ---@param angleoffset number # The target angular offset in radians: the second body's angle minus the first body's angle. function MotorJoint:setAngularOffset(angleoffset) end --- ---Sets the target linear offset between the two Bodies the Joint is attached to. --- ---@param x number # The x component of the target linear offset, relative to the first Body. ---@param y number # The y component of the target linear offset, relative to the first Body. function MotorJoint:setLinearOffset(x, y) end --- ---For controlling objects with the mouse. --- ---@class love.MouseJoint: love.Joint, love.Object local MouseJoint = {} --- ---Returns the damping ratio. --- ---@return number ratio # The new damping ratio. function MouseJoint:getDampingRatio() end --- ---Returns the frequency. --- ---@return number freq # The frequency in hertz. function MouseJoint:getFrequency() end --- ---Gets the highest allowed force. --- ---@return number f # The max allowed force. function MouseJoint:getMaxForce() end --- ---Gets the target point. --- ---@return number x # The x-component of the target. ---@return number y # The x-component of the target. function MouseJoint:getTarget() end --- ---Sets a new damping ratio. --- ---@param ratio number # The new damping ratio. function MouseJoint:setDampingRatio(ratio) end --- ---Sets a new frequency. --- ---@param freq number # The new frequency in hertz. function MouseJoint:setFrequency(freq) end --- ---Sets the highest allowed force. --- ---@param f number # The max allowed force. function MouseJoint:setMaxForce(f) end --- ---Sets the target point. --- ---@param x number # The x-component of the target. ---@param y number # The y-component of the target. function MouseJoint:setTarget(x, y) end --- ---A PolygonShape is a convex polygon with up to 8 vertices. --- ---@class love.PolygonShape: love.Shape, love.Object local PolygonShape = {} --- ---Get the local coordinates of the polygon's vertices. --- ---This function has a variable number of return values. It can be used in a nested fashion with love.graphics.polygon. --- ---@return number x1 # The x-component of the first vertex. ---@return number y1 # The y-component of the first vertex. ---@return number x2 # The x-component of the second vertex. ---@return number y2 # The y-component of the second vertex. function PolygonShape:getPoints() end --- ---Restricts relative motion between Bodies to one shared axis. --- ---@class love.PrismaticJoint: love.Joint, love.Object local PrismaticJoint = {} --- ---Checks whether the limits are enabled. --- ---@return boolean enabled # True if enabled, false otherwise. function PrismaticJoint:areLimitsEnabled() end --- ---Gets the world-space axis vector of the Prismatic Joint. --- ---@return number x # The x-axis coordinate of the world-space axis vector. ---@return number y # The y-axis coordinate of the world-space axis vector. function PrismaticJoint:getAxis() end --- ---Get the current joint angle speed. --- ---@return number s # Joint angle speed in meters/second. function PrismaticJoint:getJointSpeed() end --- ---Get the current joint translation. --- ---@return number t # Joint translation, usually in meters.. function PrismaticJoint:getJointTranslation() end --- ---Gets the joint limits. --- ---@return number lower # The lower limit, usually in meters. ---@return number upper # The upper limit, usually in meters. function PrismaticJoint:getLimits() end --- ---Gets the lower limit. --- ---@return number lower # The lower limit, usually in meters. function PrismaticJoint:getLowerLimit() end --- ---Gets the maximum motor force. --- ---@return number f # The maximum motor force, usually in N. function PrismaticJoint:getMaxMotorForce() end --- ---Returns the current motor force. --- ---@param invdt number # How long the force applies. Usually the inverse time step or 1/dt. ---@return number force # The force on the motor in newtons. function PrismaticJoint:getMotorForce(invdt) end --- ---Gets the motor speed. --- ---@return number s # The motor speed, usually in meters per second. function PrismaticJoint:getMotorSpeed() end --- ---Gets the reference angle. --- ---@return number angle # The reference angle in radians. function PrismaticJoint:getReferenceAngle() end --- ---Gets the upper limit. --- ---@return number upper # The upper limit, usually in meters. function PrismaticJoint:getUpperLimit() end --- ---Checks whether the motor is enabled. --- ---@return boolean enabled # True if enabled, false if disabled. function PrismaticJoint:isMotorEnabled() end --- ---Sets the limits. --- ---@param lower number # The lower limit, usually in meters. ---@param upper number # The upper limit, usually in meters. function PrismaticJoint:setLimits(lower, upper) end --- ---Enables/disables the joint limit. --- ---@return boolean enable # True if enabled, false if disabled. function PrismaticJoint:setLimitsEnabled() end --- ---Sets the lower limit. --- ---@param lower number # The lower limit, usually in meters. function PrismaticJoint:setLowerLimit(lower) end --- ---Set the maximum motor force. --- ---@param f number # The maximum motor force, usually in N. function PrismaticJoint:setMaxMotorForce(f) end --- ---Enables/disables the joint motor. --- ---@param enable boolean # True to enable, false to disable. function PrismaticJoint:setMotorEnabled(enable) end --- ---Sets the motor speed. --- ---@param s number # The motor speed, usually in meters per second. function PrismaticJoint:setMotorSpeed(s) end --- ---Sets the upper limit. --- ---@param upper number # The upper limit, usually in meters. function PrismaticJoint:setUpperLimit(upper) end --- ---Allows you to simulate bodies connected through pulleys. --- ---@class love.PulleyJoint: love.Joint, love.Object local PulleyJoint = {} --- ---Get the total length of the rope. --- ---@return number length # The length of the rope in the joint. function PulleyJoint:getConstant() end --- ---Get the ground anchor positions in world coordinates. --- ---@return number a1x # The x coordinate of the first anchor. ---@return number a1y # The y coordinate of the first anchor. ---@return number a2x # The x coordinate of the second anchor. ---@return number a2y # The y coordinate of the second anchor. function PulleyJoint:getGroundAnchors() end --- ---Get the current length of the rope segment attached to the first body. --- ---@return number length # The length of the rope segment. function PulleyJoint:getLengthA() end --- ---Get the current length of the rope segment attached to the second body. --- ---@return number length # The length of the rope segment. function PulleyJoint:getLengthB() end --- ---Get the maximum lengths of the rope segments. --- ---@return number len1 # The maximum length of the first rope segment. ---@return number len2 # The maximum length of the second rope segment. function PulleyJoint:getMaxLengths() end --- ---Get the pulley ratio. --- ---@return number ratio # The pulley ratio of the joint. function PulleyJoint:getRatio() end --- ---Set the total length of the rope. --- ---Setting a new length for the rope updates the maximum length values of the joint. --- ---@param length number # The new length of the rope in the joint. function PulleyJoint:setConstant(length) end --- ---Set the maximum lengths of the rope segments. --- ---The physics module also imposes maximum values for the rope segments. If the parameters exceed these values, the maximum values are set instead of the requested values. --- ---@param max1 number # The new maximum length of the first segment. ---@param max2 number # The new maximum length of the second segment. function PulleyJoint:setMaxLengths(max1, max2) end --- ---Set the pulley ratio. --- ---@param ratio number # The new pulley ratio of the joint. function PulleyJoint:setRatio(ratio) end --- ---Allow two Bodies to revolve around a shared point. --- ---@class love.RevoluteJoint: love.Joint, love.Object local RevoluteJoint = {} --- ---Checks whether limits are enabled. --- ---@return boolean enabled # True if enabled, false otherwise. function RevoluteJoint:areLimitsEnabled() end --- ---Get the current joint angle. --- ---@return number angle # The joint angle in radians. function RevoluteJoint:getJointAngle() end --- ---Get the current joint angle speed. --- ---@return number s # Joint angle speed in radians/second. function RevoluteJoint:getJointSpeed() end --- ---Gets the joint limits. --- ---@return number lower # The lower limit, in radians. ---@return number upper # The upper limit, in radians. function RevoluteJoint:getLimits() end --- ---Gets the lower limit. --- ---@return number lower # The lower limit, in radians. function RevoluteJoint:getLowerLimit() end --- ---Gets the maximum motor force. --- ---@return number f # The maximum motor force, in Nm. function RevoluteJoint:getMaxMotorTorque() end --- ---Gets the motor speed. --- ---@return number s # The motor speed, radians per second. function RevoluteJoint:getMotorSpeed() end --- ---Get the current motor force. --- ---@return number f # The current motor force, in Nm. function RevoluteJoint:getMotorTorque() end --- ---Gets the reference angle. --- ---@return number angle # The reference angle in radians. function RevoluteJoint:getReferenceAngle() end --- ---Gets the upper limit. --- ---@return number upper # The upper limit, in radians. function RevoluteJoint:getUpperLimit() end --- ---Checks whether limits are enabled. --- ---@return boolean enabled # True if enabled, false otherwise. function RevoluteJoint:hasLimitsEnabled() end --- ---Checks whether the motor is enabled. --- ---@return boolean enabled # True if enabled, false if disabled. function RevoluteJoint:isMotorEnabled() end --- ---Sets the limits. --- ---@param lower number # The lower limit, in radians. ---@param upper number # The upper limit, in radians. function RevoluteJoint:setLimits(lower, upper) end --- ---Enables/disables the joint limit. --- ---@param enable boolean # True to enable, false to disable. function RevoluteJoint:setLimitsEnabled(enable) end --- ---Sets the lower limit. --- ---@param lower number # The lower limit, in radians. function RevoluteJoint:setLowerLimit(lower) end --- ---Set the maximum motor force. --- ---@param f number # The maximum motor force, in Nm. function RevoluteJoint:setMaxMotorTorque(f) end --- ---Enables/disables the joint motor. --- ---@param enable boolean # True to enable, false to disable. function RevoluteJoint:setMotorEnabled(enable) end --- ---Sets the motor speed. --- ---@param s number # The motor speed, radians per second. function RevoluteJoint:setMotorSpeed(s) end --- ---Sets the upper limit. --- ---@param upper number # The upper limit, in radians. function RevoluteJoint:setUpperLimit(upper) end --- ---The RopeJoint enforces a maximum distance between two points on two bodies. It has no other effect. --- ---@class love.RopeJoint: love.Joint, love.Object local RopeJoint = {} --- ---Gets the maximum length of a RopeJoint. --- ---@return number maxLength # The maximum length of the RopeJoint. function RopeJoint:getMaxLength() end --- ---Sets the maximum length of a RopeJoint. --- ---@param maxLength number # The new maximum length of the RopeJoint. function RopeJoint:setMaxLength(maxLength) end --- ---Shapes are solid 2d geometrical objects which handle the mass and collision of a Body in love.physics. --- ---Shapes are attached to a Body via a Fixture. The Shape object is copied when this happens. --- ---The Shape's position is relative to the position of the Body it has been attached to. --- ---@class love.Shape: love.Object local Shape = {} --- ---Returns the points of the bounding box for the transformed shape. --- ---@param tx number # The translation of the shape on the x-axis. ---@param ty number # The translation of the shape on the y-axis. ---@param tr number # The shape rotation. ---@param childIndex? number # The index of the child to compute the bounding box of. ---@return number topLeftX # The x position of the top-left point. ---@return number topLeftY # The y position of the top-left point. ---@return number bottomRightX # The x position of the bottom-right point. ---@return number bottomRightY # The y position of the bottom-right point. function Shape:computeAABB(tx, ty, tr, childIndex) end --- ---Computes the mass properties for the shape with the specified density. --- ---@param density number # The shape density. ---@return number x # The x postition of the center of mass. ---@return number y # The y postition of the center of mass. ---@return number mass # The mass of the shape. ---@return number inertia # The rotational inertia. function Shape:computeMass(density) end --- ---Returns the number of children the shape has. --- ---@return number count # The number of children. function Shape:getChildCount() end --- ---Gets the radius of the shape. --- ---@return number radius # The radius of the shape. function Shape:getRadius() end --- ---Gets a string representing the Shape. --- ---This function can be useful for conditional debug drawing. --- ---@return love.ShapeType type # The type of the Shape. function Shape:getType() end --- ---Casts a ray against the shape and returns the surface normal vector and the line position where the ray hit. If the ray missed the shape, nil will be returned. The Shape can be transformed to get it into the desired position. --- ---The ray starts on the first point of the input line and goes towards the second point of the line. The fourth argument is the maximum distance the ray is going to travel as a scale factor of the input line length. --- ---The childIndex parameter is used to specify which child of a parent shape, such as a ChainShape, will be ray casted. For ChainShapes, the index of 1 is the first edge on the chain. Ray casting a parent shape will only test the child specified so if you want to test every shape of the parent, you must loop through all of its children. --- ---The world position of the impact can be calculated by multiplying the line vector with the third return value and adding it to the line starting point. --- ---hitx, hity = x1 + (x2 - x1) * fraction, y1 + (y2 - y1) * fraction --- ---@param x1 number # The x position of the input line starting point. ---@param y1 number # The y position of the input line starting point. ---@param x2 number # The x position of the input line end point. ---@param y2 number # The y position of the input line end point. ---@param maxFraction number # Ray length parameter. ---@param tx number # The translation of the shape on the x-axis. ---@param ty number # The translation of the shape on the y-axis. ---@param tr number # The shape rotation. ---@param childIndex? number # The index of the child the ray gets cast against. ---@return number xn # The x component of the normal vector of the edge where the ray hit the shape. ---@return number yn # The y component of the normal vector of the edge where the ray hit the shape. ---@return number fraction # The position on the input line where the intersection happened as a factor of the line length. function Shape:rayCast(x1, y1, x2, y2, maxFraction, tx, ty, tr, childIndex) end --- ---This is particularly useful for mouse interaction with the shapes. By looping through all shapes and testing the mouse position with this function, we can find which shapes the mouse touches. --- ---@param tx number # Translates the shape along the x-axis. ---@param ty number # Translates the shape along the y-axis. ---@param tr number # Rotates the shape. ---@param x number # The x-component of the point. ---@param y number # The y-component of the point. ---@return boolean hit # True if inside, false if outside function Shape:testPoint(tx, ty, tr, x, y) end --- ---A WeldJoint essentially glues two bodies together. --- ---@class love.WeldJoint: love.Joint, love.Object local WeldJoint = {} --- ---Returns the damping ratio of the joint. --- ---@return number ratio # The damping ratio. function WeldJoint:getDampingRatio() end --- ---Returns the frequency. --- ---@return number freq # The frequency in hertz. function WeldJoint:getFrequency() end --- ---Gets the reference angle. --- ---@return number angle # The reference angle in radians. function WeldJoint:getReferenceAngle() end --- ---Sets a new damping ratio. --- ---@param ratio number # The new damping ratio. function WeldJoint:setDampingRatio(ratio) end --- ---Sets a new frequency. --- ---@param freq number # The new frequency in hertz. function WeldJoint:setFrequency(freq) end --- ---Restricts a point on the second body to a line on the first body. --- ---@class love.WheelJoint: love.Joint, love.Object local WheelJoint = {} --- ---Gets the world-space axis vector of the Wheel Joint. --- ---@return number x # The x-axis coordinate of the world-space axis vector. ---@return number y # The y-axis coordinate of the world-space axis vector. function WheelJoint:getAxis() end --- ---Returns the current joint translation speed. --- ---@return number speed # The translation speed of the joint in meters per second. function WheelJoint:getJointSpeed() end --- ---Returns the current joint translation. --- ---@return number position # The translation of the joint in meters. function WheelJoint:getJointTranslation() end --- ---Returns the maximum motor torque. --- ---@return number maxTorque # The maximum torque of the joint motor in newton meters. function WheelJoint:getMaxMotorTorque() end --- ---Returns the speed of the motor. --- ---@return number speed # The speed of the joint motor in radians per second. function WheelJoint:getMotorSpeed() end --- ---Returns the current torque on the motor. --- ---@param invdt number # How long the force applies. Usually the inverse time step or 1/dt. ---@return number torque # The torque on the motor in newton meters. function WheelJoint:getMotorTorque(invdt) end --- ---Returns the damping ratio. --- ---@return number ratio # The damping ratio. function WheelJoint:getSpringDampingRatio() end --- ---Returns the spring frequency. --- ---@return number freq # The frequency in hertz. function WheelJoint:getSpringFrequency() end --- ---Checks if the joint motor is running. --- ---@return boolean on # The status of the joint motor. function WheelJoint:isMotorEnabled() end --- ---Sets a new maximum motor torque. --- ---@param maxTorque number # The new maximum torque for the joint motor in newton meters. function WheelJoint:setMaxMotorTorque(maxTorque) end --- ---Starts and stops the joint motor. --- ---@param enable boolean # True turns the motor on and false turns it off. function WheelJoint:setMotorEnabled(enable) end --- ---Sets a new speed for the motor. --- ---@param speed number # The new speed for the joint motor in radians per second. function WheelJoint:setMotorSpeed(speed) end --- ---Sets a new damping ratio. --- ---@param ratio number # The new damping ratio. function WheelJoint:setSpringDampingRatio(ratio) end --- ---Sets a new spring frequency. --- ---@param freq number # The new frequency in hertz. function WheelJoint:setSpringFrequency(freq) end --- ---A world is an object that contains all bodies and joints. --- ---@class love.World: love.Object local World = {} --- ---Destroys the world, taking all bodies, joints, fixtures and their shapes with it. --- ---An error will occur if you attempt to use any of the destroyed objects after calling this function. --- function World:destroy() end --- ---Returns a table with all bodies. --- ---@return table bodies # A sequence with all bodies. function World:getBodies() end --- ---Returns the number of bodies in the world. --- ---@return number n # The number of bodies in the world. function World:getBodyCount() end --- ---Returns functions for the callbacks during the world update. --- ---@return function beginContact # Gets called when two fixtures begin to overlap. ---@return function endContact # Gets called when two fixtures cease to overlap. ---@return function preSolve # Gets called before a collision gets resolved. ---@return function postSolve # Gets called after the collision has been resolved. function World:getCallbacks() end --- ---Returns the number of contacts in the world. --- ---@return number n # The number of contacts in the world. function World:getContactCount() end --- ---Returns the function for collision filtering. --- ---@return function contactFilter # The function that handles the contact filtering. function World:getContactFilter() end --- ---Returns a table with all Contacts. --- ---@return table contacts # A sequence with all Contacts. function World:getContacts() end --- ---Get the gravity of the world. --- ---@return number x # The x component of gravity. ---@return number y # The y component of gravity. function World:getGravity() end --- ---Returns the number of joints in the world. --- ---@return number n # The number of joints in the world. function World:getJointCount() end --- ---Returns a table with all joints. --- ---@return table joints # A sequence with all joints. function World:getJoints() end --- ---Gets whether the World is destroyed. Destroyed worlds cannot be used. --- ---@return boolean destroyed # Whether the World is destroyed. function World:isDestroyed() end --- ---Returns if the world is updating its state. --- ---This will return true inside the callbacks from World:setCallbacks. --- ---@return boolean locked # Will be true if the world is in the process of updating its state. function World:isLocked() end --- ---Gets the sleep behaviour of the world. --- ---@return boolean allow # True if bodies in the world are allowed to sleep, or false if not. function World:isSleepingAllowed() end --- ---Calls a function for each fixture inside the specified area by searching for any overlapping bounding box (Fixture:getBoundingBox). --- ---@param topLeftX number # The x position of the top-left point. ---@param topLeftY number # The y position of the top-left point. ---@param bottomRightX number # The x position of the bottom-right point. ---@param bottomRightY number # The y position of the bottom-right point. ---@param callback function # This function gets passed one argument, the fixture, and should return a boolean. The search will continue if it is true or stop if it is false. function World:queryBoundingBox(topLeftX, topLeftY, bottomRightX, bottomRightY, callback) end --- ---Casts a ray and calls a function for each fixtures it intersects. --- ---@param fixture love.Fixture # The fixture intersecting the ray. ---@param x number # The x position of the intersection point. ---@param y number # The y position of the intersection point. ---@param xn number # The x value of the surface normal vector of the shape edge. ---@param yn number # The y value of the surface normal vector of the shape edge. ---@param fraction number # The position of the intersection on the ray as a number from 0 to 1 (or even higher if the ray length was changed with the return value). ---@return number control # The ray can be controlled with the return value. A positive value sets a new ray length where 1 is the default value. A value of 0 terminates the ray. If the callback function returns -1, the intersection gets ignored as if it didn't happen. function World:rayCast(fixture, x, y, xn, yn, fraction) end --- ---Sets functions for the collision callbacks during the world update. --- ---Four Lua functions can be given as arguments. The value nil removes a function. --- ---When called, each function will be passed three arguments. The first two arguments are the colliding fixtures and the third argument is the Contact between them. The postSolve callback additionally gets the normal and tangent impulse for each contact point. See notes. --- ---If you are interested to know when exactly each callback is called, consult a Box2d manual --- ---@param beginContact function # Gets called when two fixtures begin to overlap. ---@param endContact function # Gets called when two fixtures cease to overlap. This will also be called outside of a world update, when colliding objects are destroyed. ---@param preSolve function # Gets called before a collision gets resolved. ---@param postSolve function # Gets called after the collision has been resolved. function World:setCallbacks(beginContact, endContact, preSolve, postSolve) end --- ---Sets a function for collision filtering. --- ---If the group and category filtering doesn't generate a collision decision, this function gets called with the two fixtures as arguments. The function should return a boolean value where true means the fixtures will collide and false means they will pass through each other. --- ---@param filter function # The function handling the contact filtering. function World:setContactFilter(filter) end --- ---Set the gravity of the world. --- ---@param x number # The x component of gravity. ---@param y number # The y component of gravity. function World:setGravity(x, y) end --- ---Sets the sleep behaviour of the world. --- ---@param allow boolean # True if bodies in the world are allowed to sleep, or false if not. function World:setSleepingAllowed(allow) end --- ---Translates the World's origin. Useful in large worlds where floating point precision issues become noticeable at far distances from the origin. --- ---@param x number # The x component of the new origin with respect to the old origin. ---@param y number # The y component of the new origin with respect to the old origin. function World:translateOrigin(x, y) end --- ---Update the state of the world. --- ---@param dt number # The time (in seconds) to advance the physics simulation. ---@param velocityiterations? number # The maximum number of steps used to determine the new velocities when resolving a collision. ---@param positioniterations? number # The maximum number of steps used to determine the new positions when resolving a collision. function World:update(dt, velocityiterations, positioniterations) end --- ---The types of a Body. --- ---@alias love.BodyType --- ---Static bodies do not move. --- ---| '"static"' --- ---Dynamic bodies collide with all bodies. --- ---| '"dynamic"' --- ---Kinematic bodies only collide with dynamic bodies. --- ---| '"kinematic"' --- ---Different types of joints. --- ---@alias love.JointType --- ---A DistanceJoint. --- ---| '"distance"' --- ---A FrictionJoint. --- ---| '"friction"' --- ---A GearJoint. --- ---| '"gear"' --- ---A MouseJoint. --- ---| '"mouse"' --- ---A PrismaticJoint. --- ---| '"prismatic"' --- ---A PulleyJoint. --- ---| '"pulley"' --- ---A RevoluteJoint. --- ---| '"revolute"' --- ---A RopeJoint. --- ---| '"rope"' --- ---A WeldJoint. --- ---| '"weld"' --- ---The different types of Shapes, as returned by Shape:getType. --- ---@alias love.ShapeType --- ---The Shape is a CircleShape. --- ---| '"circle"' --- ---The Shape is a PolygonShape. --- ---| '"polygon"' --- ---The Shape is a EdgeShape. --- ---| '"edge"' --- ---The Shape is a ChainShape. --- ---| '"chain"'
--- --- ColaFramework --- Copyright © 2018-2049 ColaFramework 马三小伙儿 --- ObjectPool的使用示例 --- --- ObjectPool Test local LOjectPool = require("Common.Collections.LObjectPool") local index = 0 local createAction = function() local gameobj = UnityEngine.GameObject.New() gameobj.name = "CacheObj" .. index index = index + 1 return gameobj end local releaseAction = function(obj) print("------------>ObjType:",type(obj)) print("---->释放Obj:",obj.name) end local mObjectPool = LOjectPool:New(createAction,releaseAction) local obj_1 = mObjectPool:get() print("-------->第一个物体的名字",obj_1.name) local obj_2 = mObjectPool:get() print("-------->第二个物体的名字",obj_2.name) mObjectPool:release(obj_1) local obj_3 = mObjectPool:get() print("-------------->type",type(obj_3)) print("-------->第三个物体的名字",obj_3.name)
local IEventEmitter = require("api.IEventEmitter") local IMapObject = require("api.IMapObject") local IModdable = require("api.IModdable") local IObject = require("api.IObject") -- A feat is anything that is a part of the map with a position. Feats -- also include traps. local IFeat = class.interface("IFeat", {}, { IMapObject, IModdable, IEventEmitter }) function IFeat:pre_build() IModdable.init(self) IMapObject.init(self) IEventEmitter.init(self) end function IFeat:normal_build(params) IObject.normal_build(self, params) end function IFeat:build() end function IFeat:instantiate(no_bind_events) self.params = self.params or {} IMapObject.instantiate(self, no_bind_events) self:emit("base.on_feat_instantiated") end function IFeat:refresh() IMapObject.on_refresh(self) self:emit("elona_sys.on_feat_refresh") -- TODO move or rename end function IFeat:produce_memory(memory) memory.uid = self.uid memory.show = not self:calc("is_invisible") memory.image = (self:calc("image") or "") memory.color = self:calc("color") memory.shadow_type = self:calc("shadow_type") memory.drawables = self.drawables memory.drawables_after = self.drawables_after end return IFeat
--[[ < CATHERINE > - A free role-playing framework for Garry's Mod. Development and design by L7D. Catherine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Catherine. If not, see <http://www.gnu.org/licenses/>. ]]-- catherine.command.Register( { uniqueID = "&uniqueID_zombieAdd", command = "zombieadd", desc = "Add the Spawn Point for the zombies.", canRun = function( pl ) return pl:IsAdmin( ) end, runFunc = function( pl, args ) Schema:AddZombieSpawn( pl:GetPos( ) ) catherine.util.NotifyLang( pl, "Command_ZombieAdd_Fin" ) end } ) catherine.command.Register( { uniqueID = "&uniqueID_zombieRemove", command = "zombieremove", desc = "Remove the Spawn Point in the this position.", canRun = function( pl ) return pl:IsAdmin( ) end, runFunc= function( pl, arg ) local rad = tonumber( arg[ 1 ] ) or 128 local count = Schema:RemoveZombieSpawn( pl:GetPos( ), rad ) catherine.util.NotifyLang( pl, "Command_ZombieRemove_Fin", count ) end } )
-- -- Oath official mod, by permission of Leder Games. -- -- Created and maintained by AgentElrond. Latest update: 2020 -- -- This file contains card data so that the main script file can be shorter. -- function onLoad() cardsTable = { -- Site cards have their own save ID numbering system except for 255, which is shared with denizen / edifice / ruin cards. ["Mine"] = { saveid = 0, ttscardid = "10000", cardtype = "Site", capacity = 1, relicCount = 1 }, ["Salt Flats"] = { saveid = 1, ttscardid = "10001", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Fertile Valley"] = { saveid = 2, ttscardid = "10002", cardtype = "Site", capacity = 3, relicCount = 0 }, ["Barren Coast"] = { saveid = 3, ttscardid = "10003", cardtype = "Site", capacity = 1, relicCount = 1 }, ["Plains"] = { saveid = 4, ttscardid = "10004", cardtype = "Site", capacity = 3, relicCount = 0 }, ["River"] = { saveid = 5, ttscardid = "10005", cardtype = "Site", capacity = 2, relicCount = 0 }, ["Steppe"] = { saveid = 6, ttscardid = "10006", cardtype = "Site", capacity = 1, relicCount = 1 }, ["Mountain"] = { saveid = 7, ttscardid = "10007", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Lush Coast"] = { saveid = 8, ttscardid = "10100", cardtype = "Site", capacity = 3, relicCount = 0 }, ["Marshes"] = { saveid = 9, ttscardid = "10101", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Wastes"] = { saveid = 10, ttscardid = "10102", cardtype = "Site", capacity = 1, relicCount = 2 }, ["Rocky Coast"] = { saveid = 11, ttscardid = "10103", cardtype = "Site", capacity = 2, relicCount = 0 }, ["Narrow Pass"] = { saveid = 12, ttscardid = "10104", cardtype = "Site", capacity = 1, relicCount = 1 }, ["Charming Valley"] = { saveid = 13, ttscardid = "10105", cardtype = "Site", capacity = 3, relicCount = 0 }, ["Deep Woods"] = { saveid = 14, ttscardid = "10106", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Standing Stones"] = { saveid = 15, ttscardid = "10107", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Ancient City"] = { saveid = 16, ttscardid = "10200", cardtype = "Site", capacity = 2, relicCount = 1 }, ["The Drowned City"] = { saveid = 17, ttscardid = "10201", cardtype = "Site", capacity = 0, relicCount = 2 }, ["Great Slum"] = { saveid = 18, ttscardid = "10202", cardtype = "Site", capacity = 3, relicCount = 0 }, ["Buried Giant"] = { saveid = 19, ttscardid = "10203", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Imperial Seat"] = { saveid = 20, ttscardid = "10204", cardtype = "Site", capacity = 2, relicCount = 1 }, ["Shrouded Wood"] = { saveid = 21, ttscardid = "10205", cardtype = "Site", capacity = 2, relicCount = 1 }, ["The Hidden Place"] = { saveid = 22, ttscardid = "10206", cardtype = "Site", capacity = 2, relicCount = 1 }, -- The 24th site card slot is currently unused. -- TODO if it is ever used, NUM_TOTAL_SITES needs updated in the main Lua script. --["UNUSED"] = { saveid = 23, ttscardid = "10207", cardtype = "Site", capacity = 0 }, -- Facedown site cards have 24 added to their saveid. -- Denizen, edifice, ruin, and vision cards all share the same save ID numbering system. -- This is done to keep as many open spots as possible in the 256 save IDs for a byte. ["Wrestlers"] = { saveid = 0, ttscardid = "11000", suit = "Order", cardtype = "Denizen" }, ["Battle Honors"] = { saveid = 1, ttscardid = "11001", suit = "Order", cardtype = "Denizen" }, ["Bear Traps"] = { saveid = 2, ttscardid = "11002", suit = "Order", cardtype = "Denizen" }, ["Longbows"] = { saveid = 3, ttscardid = "11003", suit = "Order", cardtype = "Denizen" }, ["Keep"] = { saveid = 4, ttscardid = "11004", suit = "Order", cardtype = "Denizen" }, ["Pressgangs"] = { saveid = 5, ttscardid = "11005", suit = "Order", cardtype = "Denizen" }, ["Garrison"] = { saveid = 6, ttscardid = "11006", suit = "Order", cardtype = "Denizen" }, ["Scouts"] = { saveid = 7, ttscardid = "11007", suit = "Order", cardtype = "Denizen" }, ["Alchemist"] = { saveid = 8, ttscardid = "11008", suit = "Arcane", cardtype = "Denizen" }, ["Martial Culture"] = { saveid = 9, ttscardid = "11009", suit = "Order", cardtype = "Denizen" }, ["Errand Boy"] = { saveid = 10, ttscardid = "11010", suit = "Beast", cardtype = "Denizen" }, ["Mercenaries"] = { saveid = 11, ttscardid = "11011", suit = "Discord", cardtype = "Denizen" }, ["Tinker's Fair"] = { saveid = 12, ttscardid = "11012", suit = "Hearth", cardtype = "Denizen" }, ["Rain Boots"] = { saveid = 13, ttscardid = "11013", suit = "Nomad", cardtype = "Denizen" }, ["A Small Favor"] = { saveid = 14, ttscardid = "11014", suit = "Discord", cardtype = "Denizen" }, ["Second Wind"] = { saveid = 15, ttscardid = "11015", suit = "Discord", cardtype = "Denizen" }, ["Gossip"] = { saveid = 16, ttscardid = "11016", suit = "Discord", cardtype = "Denizen" }, ["Key to the City"] = { saveid = 17, ttscardid = "11017", suit = "Discord", cardtype = "Denizen" }, ["Scryer"] = { saveid = 18, ttscardid = "11018", suit = "Discord", cardtype = "Denizen" }, ["Disgraced Captain"] = { saveid = 19, ttscardid = "11019", suit = "Discord", cardtype = "Denizen" }, ["Naysayers"] = { saveid = 20, ttscardid = "11100", suit = "Discord", cardtype = "Denizen" }, ["Book Burning"] = { saveid = 21, ttscardid = "11101", suit = "Discord", cardtype = "Denizen" }, ["Ancient Binding"] = { saveid = 22, ttscardid = "11102", suit = "Nomad", cardtype = "Denizen" }, ["Horse Archers"] = { saveid = 23, ttscardid = "11103", suit = "Nomad", cardtype = "Denizen" }, ["Warning Signals"] = { saveid = 24, ttscardid = "11104", suit = "Nomad", cardtype = "Denizen" }, ["Elders"] = { saveid = 25, ttscardid = "11105", suit = "Nomad", cardtype = "Denizen" }, ["The Gathering"] = { saveid = 26, ttscardid = "11106", suit = "Nomad", cardtype = "Denizen" }, ["Faithful Friend"] = { saveid = 27, ttscardid = "11107", suit = "Nomad", cardtype = "Denizen" }, ["Tents"] = { saveid = 28, ttscardid = "11108", suit = "Nomad", cardtype = "Denizen" }, ["Great Herd"] = { saveid = 29, ttscardid = "11109", suit = "Nomad", cardtype = "Denizen" }, ["Fire Talkers"] = { saveid = 30, ttscardid = "11110", suit = "Arcane", cardtype = "Denizen" }, ["Magician's Code"] = { saveid = 31, ttscardid = "11111", suit = "Arcane", cardtype = "Denizen" }, ["Spirit Snare"] = { saveid = 32, ttscardid = "11112", suit = "Arcane", cardtype = "Denizen" }, ["Wizard School"] = { saveid = 33, ttscardid = "11113", suit = "Arcane", cardtype = "Denizen" }, ["Dazzle"] = { saveid = 34, ttscardid = "11114", suit = "Arcane", cardtype = "Denizen" }, ["Acting Troupe"] = { saveid = 35, ttscardid = "11115", suit = "Arcane", cardtype = "Denizen" }, ["Taming Charm"] = { saveid = 36, ttscardid = "11116", suit = "Arcane", cardtype = "Denizen" }, ["Inquisitor"] = { saveid = 37, ttscardid = "11117", suit = "Arcane", cardtype = "Denizen" }, ["Wolves"] = { saveid = 38, ttscardid = "11118", suit = "Beast", cardtype = "Denizen" }, ["Animal Playmates"] = { saveid = 39, ttscardid = "11119", suit = "Beast", cardtype = "Denizen" }, ["True Names"] = { saveid = 40, ttscardid = "11200", suit = "Beast", cardtype = "Denizen" }, ["The Old Oak"] = { saveid = 41, ttscardid = "11201", suit = "Beast", cardtype = "Denizen" }, ["Forest Paths"] = { saveid = 42, ttscardid = "11202", suit = "Beast", cardtype = "Denizen" }, ["Long-Lost Heir"] = { saveid = 43, ttscardid = "11203", suit = "Beast", cardtype = "Denizen" }, ["Rangers"] = { saveid = 44, ttscardid = "11204", suit = "Beast", cardtype = "Denizen" }, ["Roving Terror"] = { saveid = 45, ttscardid = "11205", suit = "Beast", cardtype = "Denizen" }, ["Wayside Inn"] = { saveid = 46, ttscardid = "11206", suit = "Hearth", cardtype = "Denizen" }, ["Extra Provisions"] = { saveid = 47, ttscardid = "11207", suit = "Hearth", cardtype = "Denizen" }, ["Memory of Home"] = { saveid = 48, ttscardid = "11208", suit = "Hearth", cardtype = "Denizen" }, ["Welcoming Party"] = { saveid = 49, ttscardid = "11209", suit = "Hearth", cardtype = "Denizen" }, ["Traveling Doctor"] = { saveid = 50, ttscardid = "11210", suit = "Hearth", cardtype = "Denizen" }, ["Storyteller"] = { saveid = 51, ttscardid = "11211", suit = "Hearth", cardtype = "Denizen" }, ["Armed Mob"] = { saveid = 52, ttscardid = "11212", suit = "Hearth", cardtype = "Denizen" }, ["Tavern Songs"] = { saveid = 53, ttscardid = "11213", suit = "Hearth", cardtype = "Denizen" }, ["Secret Signal"] = { saveid = 54, ttscardid = "11214", suit = "Arcane", cardtype = "Denizen" }, ["Augury"] = { saveid = 55, ttscardid = "11215", suit = "Arcane", cardtype = "Denizen" }, ["Rusting Ray"] = { saveid = 56, ttscardid = "11216", suit = "Arcane", cardtype = "Denizen" }, ["Portal"] = { saveid = 57, ttscardid = "11217", suit = "Arcane", cardtype = "Denizen" }, ["Billowing Fog"] = { saveid = 58, ttscardid = "11218", suit = "Arcane", cardtype = "Denizen" }, ["Kindred Warriors"] = { saveid = 59, ttscardid = "11219", suit = "Arcane", cardtype = "Denizen" }, ["Terror Spells"] = { saveid = 60, ttscardid = "11300", suit = "Arcane", cardtype = "Denizen" }, ["Blood Pact"] = { saveid = 61, ttscardid = "11301", suit = "Arcane", cardtype = "Denizen" }, ["Revelation"] = { saveid = 62, ttscardid = "11302", suit = "Arcane", cardtype = "Denizen" }, ["Observatory"] = { saveid = 63, ttscardid = "11303", suit = "Arcane", cardtype = "Denizen" }, ["Plague Engines"] = { saveid = 64, ttscardid = "11304", suit = "Arcane", cardtype = "Denizen" }, ["Gleaming Armor"] = { saveid = 65, ttscardid = "11305", suit = "Arcane", cardtype = "Denizen" }, ["Bewitch"] = { saveid = 66, ttscardid = "11306", suit = "Arcane", cardtype = "Denizen" }, ["Jinx"] = { saveid = 67, ttscardid = "11307", suit = "Arcane", cardtype = "Denizen" }, ["Tutor"] = { saveid = 68, ttscardid = "11308", suit = "Arcane", cardtype = "Denizen" }, ["Dream Thief"] = { saveid = 69, ttscardid = "11309", suit = "Arcane", cardtype = "Denizen" }, ["Cracking Ground"] = { saveid = 70, ttscardid = "11310", suit = "Arcane", cardtype = "Denizen" }, ["Sealing Ward"] = { saveid = 71, ttscardid = "11311", suit = "Arcane", cardtype = "Denizen" }, ["Initiation Rite"] = { saveid = 72, ttscardid = "11312", suit = "Arcane", cardtype = "Denizen" }, ["Vow of Silence"] = { saveid = 73, ttscardid = "11313", suit = "Arcane", cardtype = "Denizen" }, ["Forgotten Vault"] = { saveid = 74, ttscardid = "11314", suit = "Arcane", cardtype = "Denizen" }, ["Map Library"] = { saveid = 75, ttscardid = "11315", suit = "Arcane", cardtype = "Denizen" }, ["Witch's Bargain"] = { saveid = 76, ttscardid = "11316", suit = "Arcane", cardtype = "Denizen" }, ["Master of Disguise"] = { saveid = 77, ttscardid = "11317", suit = "Arcane", cardtype = "Denizen" }, ["Charlatans"] = { saveid = 78, ttscardid = "11318", suit = "Discord", cardtype = "Denizen" }, ["Assassin"] = { saveid = 79, ttscardid = "11319", suit = "Discord", cardtype = "Denizen" }, ["Downtrodden"] = { saveid = 80, ttscardid = "11400", suit = "Discord", cardtype = "Denizen" }, ["Blackmail"] = { saveid = 81, ttscardid = "11401", suit = "Discord", cardtype = "Denizen" }, ["Cracked Sage"] = { saveid = 82, ttscardid = "11402", suit = "Discord", cardtype = "Denizen" }, ["Dissent"] = { saveid = 83, ttscardid = "11403", suit = "Discord", cardtype = "Denizen" }, ["False Prophet"] = { saveid = 84, ttscardid = "11404", suit = "Discord", cardtype = "Denizen" }, ["Vow of Renewal"] = { saveid = 85, ttscardid = "11405", suit = "Discord", cardtype = "Denizen" }, ["Zealots"] = { saveid = 86, ttscardid = "11406", suit = "Discord", cardtype = "Denizen" }, ["Royal Ambitions"] = { saveid = 87, ttscardid = "11407", suit = "Discord", cardtype = "Denizen" }, ["Salt the Earth"] = { saveid = 88, ttscardid = "11408", suit = "Discord", cardtype = "Denizen" }, ["Beast Tamer"] = { saveid = 89, ttscardid = "11409", suit = "Discord", cardtype = "Denizen" }, ["Riots"] = { saveid = 90, ttscardid = "11410", suit = "Discord", cardtype = "Denizen" }, ["Silver Tongue"] = { saveid = 91, ttscardid = "11411", suit = "Discord", cardtype = "Denizen" }, ["Gambling Hall"] = { saveid = 92, ttscardid = "11412", suit = "Discord", cardtype = "Denizen" }, ["Boiling Lake"] = { saveid = 93, ttscardid = "11413", suit = "Discord", cardtype = "Denizen" }, ["Relic Thief"] = { saveid = 94, ttscardid = "11414", suit = "Discord", cardtype = "Denizen" }, ["Enchantress"] = { saveid = 95, ttscardid = "11415", suit = "Discord", cardtype = "Denizen" }, ["Insomnia"] = { saveid = 96, ttscardid = "11416", suit = "Discord", cardtype = "Denizen" }, ["Surprise Attack"] = { saveid = 97, ttscardid = "11417", suit = "Discord", cardtype = "Denizen" }, ["Sleight of Hand"] = { saveid = 98, ttscardid = "11418", suit = "Discord", cardtype = "Denizen" }, ["Bandit King"] = { saveid = 99, ttscardid = "11419", suit = "Discord", cardtype = "Denizen" }, ["Cult of Chaos"] = { saveid = 100, ttscardid = "11500", suit = "Discord", cardtype = "Denizen" }, ["Slander"] = { saveid = 101, ttscardid = "11501", suit = "Discord", cardtype = "Denizen" }, ["Code of Honor"] = { saveid = 102, ttscardid = "11502", suit = "Order", cardtype = "Denizen" }, ["Outriders"] = { saveid = 103, ttscardid = "11503", suit = "Order", cardtype = "Denizen" }, ["Messenger"] = { saveid = 104, ttscardid = "11504", suit = "Order", cardtype = "Denizen" }, ["Field Promotion"] = { saveid = 105, ttscardid = "11505", suit = "Order", cardtype = "Denizen" }, ["Palanquin"] = { saveid = 106, ttscardid = "11506", suit = "Order", cardtype = "Denizen" }, ["Shield Wall"] = { saveid = 107, ttscardid = "11507", suit = "Order", cardtype = "Denizen" }, ["Military Parade"] = { saveid = 108, ttscardid = "11508", suit = "Order", cardtype = "Denizen" }, ["Tome Guardians"] = { saveid = 109, ttscardid = "11509", suit = "Order", cardtype = "Denizen" }, ["Tyrant"] = { saveid = 110, ttscardid = "11510", suit = "Order", cardtype = "Denizen" }, ["Secret Police"] = { saveid = 111, ttscardid = "11511", suit = "Order", cardtype = "Denizen" }, ["Forced Labor"] = { saveid = 112, ttscardid = "11512", suit = "Order", cardtype = "Denizen" }, ["Specialist"] = { saveid = 113, ttscardid = "11513", suit = "Order", cardtype = "Denizen" }, ["Captains"] = { saveid = 114, ttscardid = "11514", suit = "Order", cardtype = "Denizen" }, ["Siege Engines"] = { saveid = 115, ttscardid = "11515", suit = "Order", cardtype = "Denizen" }, ["Royal Tax"] = { saveid = 116, ttscardid = "11516", suit = "Order", cardtype = "Denizen" }, ["Toll Roads"] = { saveid = 117, ttscardid = "11517", suit = "Order", cardtype = "Denizen" }, ["Curfew"] = { saveid = 118, ttscardid = "11518", suit = "Order", cardtype = "Denizen" }, ["Knights Errant"] = { saveid = 119, ttscardid = "11519", suit = "Order", cardtype = "Denizen" }, ["Vow of Obedience"] = { saveid = 120, ttscardid = "11600", suit = "Order", cardtype = "Denizen" }, ["Hunting Party"] = { saveid = 121, ttscardid = "11601", suit = "Order", cardtype = "Denizen" }, ["Council Seat"] = { saveid = 122, ttscardid = "11602", suit = "Order", cardtype = "Denizen" }, ["Encirclement"] = { saveid = 123, ttscardid = "11603", suit = "Order", cardtype = "Denizen" }, ["Peace Envoy"] = { saveid = 124, ttscardid = "11604", suit = "Order", cardtype = "Denizen" }, ["Relic Hunter"] = { saveid = 125, ttscardid = "11605", suit = "Order", cardtype = "Denizen" }, ["Homesteaders"] = { saveid = 126, ttscardid = "11606", suit = "Hearth", cardtype = "Denizen" }, ["Crop Rotation"] = { saveid = 127, ttscardid = "11607", suit = "Hearth", cardtype = "Denizen" }, ["A Round of Ale"] = { saveid = 128, ttscardid = "11608", suit = "Hearth", cardtype = "Denizen" }, ["Land Warden"] = { saveid = 129, ttscardid = "11609", suit = "Hearth", cardtype = "Denizen" }, ["Charming Friend"] = { saveid = 130, ttscardid = "11610", suit = "Hearth", cardtype = "Denizen" }, ["Village Constable"] = { saveid = 131, ttscardid = "11611", suit = "Hearth", cardtype = "Denizen" }, ["Family Heirloom"] = { saveid = 132, ttscardid = "11612", suit = "Hearth", cardtype = "Denizen" }, ["News from Afar"] = { saveid = 133, ttscardid = "11613", suit = "Hearth", cardtype = "Denizen" }, ["Levelers"] = { saveid = 134, ttscardid = "11614", suit = "Hearth", cardtype = "Denizen" }, ["Fabled Feast"] = { saveid = 135, ttscardid = "11615", suit = "Hearth", cardtype = "Denizen" }, ["The Great Levy"] = { saveid = 136, ttscardid = "11616", suit = "Hearth", cardtype = "Denizen" }, ["Hearts and Minds"] = { saveid = 137, ttscardid = "11617", suit = "Hearth", cardtype = "Denizen" }, ["Relic Breaker"] = { saveid = 138, ttscardid = "11618", suit = "Hearth", cardtype = "Denizen" }, ["Book Binders"] = { saveid = 139, ttscardid = "11619", suit = "Hearth", cardtype = "Denizen" }, ["Ballot Box"] = { saveid = 140, ttscardid = "11700", suit = "Hearth", cardtype = "Denizen" }, ["Saddle Makers"] = { saveid = 141, ttscardid = "11701", suit = "Hearth", cardtype = "Denizen" }, ["Squires"] = { saveid = 142, ttscardid = "11702", suit = "Hearth", cardtype = "Denizen" }, ["Rowdy Pub"] = { saveid = 143, ttscardid = "11703", suit = "Hearth", cardtype = "Denizen" }, ["Vow of Peace"] = { saveid = 144, ttscardid = "11704", suit = "Hearth", cardtype = "Denizen" }, ["Deed Writer"] = { saveid = 145, ttscardid = "11705", suit = "Hearth", cardtype = "Denizen" }, ["Salad Days"] = { saveid = 146, ttscardid = "11706", suit = "Hearth", cardtype = "Denizen" }, ["Marriage"] = { saveid = 147, ttscardid = "11707", suit = "Hearth", cardtype = "Denizen" }, ["Hospital"] = { saveid = 148, ttscardid = "11708", suit = "Hearth", cardtype = "Denizen" }, ["Awaited Return"] = { saveid = 149, ttscardid = "11709", suit = "Hearth", cardtype = "Denizen" }, ["Convoys"] = { saveid = 150, ttscardid = "11710", suit = "Nomad", cardtype = "Denizen" }, ["Vow of Kinship"] = { saveid = 151, ttscardid = "11711", suit = "Nomad", cardtype = "Denizen" }, ["Wild Mounts"] = { saveid = 152, ttscardid = "11712", suit = "Nomad", cardtype = "Denizen" }, ["Lancers"] = { saveid = 153, ttscardid = "11713", suit = "Nomad", cardtype = "Denizen" }, ["Mountain Giant"] = { saveid = 154, ttscardid = "11714", suit = "Nomad", cardtype = "Denizen" }, ["Rival Khan"] = { saveid = 155, ttscardid = "11715", suit = "Nomad", cardtype = "Denizen" }, ["Lost Tongue"] = { saveid = 156, ttscardid = "11716", suit = "Nomad", cardtype = "Denizen" }, ["Special Envoy"] = { saveid = 157, ttscardid = "11717", suit = "Nomad", cardtype = "Denizen" }, ["Homesick"] = { saveid = 158, ttscardid = "11718", suit = "Nomad", cardtype = "Denizen" }, ["Oracle"] = { saveid = 159, ttscardid = "11719", suit = "Nomad", cardtype = "Denizen" }, ["Pilgrimage"] = { saveid = 160, ttscardid = "11800", suit = "Nomad", cardtype = "Denizen" }, ["Spell Breaker"] = { saveid = 161, ttscardid = "11801", suit = "Nomad", cardtype = "Denizen" }, ["Mounted Patrol"] = { saveid = 162, ttscardid = "11802", suit = "Nomad", cardtype = "Denizen" }, ["Great Crusade"] = { saveid = 163, ttscardid = "11803", suit = "Nomad", cardtype = "Denizen" }, ["Ancient Bloodline"] = { saveid = 164, ttscardid = "11804", suit = "Nomad", cardtype = "Denizen" }, ["Ancient Pact"] = { saveid = 165, ttscardid = "11805", suit = "Nomad", cardtype = "Denizen" }, ["Storm Caller"] = { saveid = 166, ttscardid = "11806", suit = "Nomad", cardtype = "Denizen" }, ["Family Wagon"] = { saveid = 167, ttscardid = "11807", suit = "Nomad", cardtype = "Denizen" }, ["Way Station"] = { saveid = 168, ttscardid = "11808", suit = "Nomad", cardtype = "Denizen" }, ["Twin Brother"] = { saveid = 169, ttscardid = "11809", suit = "Nomad", cardtype = "Denizen" }, ["Hospitality"] = { saveid = 170, ttscardid = "11810", suit = "Nomad", cardtype = "Denizen" }, ["A Fast Steed"] = { saveid = 171, ttscardid = "11811", suit = "Nomad", cardtype = "Denizen" }, ["Relic Worship"] = { saveid = 172, ttscardid = "11812", suit = "Nomad", cardtype = "Denizen" }, ["Sacred Ground"] = { saveid = 173, ttscardid = "11813", suit = "Nomad", cardtype = "Denizen" }, ["Nature Worship"] = { saveid = 174, ttscardid = "11814", suit = "Beast", cardtype = "Denizen" }, ["Birdsong"] = { saveid = 175, ttscardid = "11815", suit = "Beast", cardtype = "Denizen" }, ["Small Friends"] = { saveid = 176, ttscardid = "11816", suit = "Beast", cardtype = "Denizen" }, ["Grasping Vines"] = { saveid = 177, ttscardid = "11817", suit = "Beast", cardtype = "Denizen" }, ["Threatening Roar"] = { saveid = 178, ttscardid = "11818", suit = "Beast", cardtype = "Denizen" }, ["Fae Merchant"] = { saveid = 179, ttscardid = "11819", suit = "Beast", cardtype = "Denizen" }, ["Second Chance"] = { saveid = 180, ttscardid = "11900", suit = "Beast", cardtype = "Denizen" }, ["Pied Piper"] = { saveid = 181, ttscardid = "11901", suit = "Beast", cardtype = "Denizen" }, ["Mushrooms"] = { saveid = 182, ttscardid = "11902", suit = "Beast", cardtype = "Denizen" }, ["Insect Swarm"] = { saveid = 183, ttscardid = "11903", suit = "Beast", cardtype = "Denizen" }, ["Vow of Union"] = { saveid = 184, ttscardid = "11904", suit = "Beast", cardtype = "Denizen" }, ["Giant Python"] = { saveid = 185, ttscardid = "11905", suit = "Beast", cardtype = "Denizen" }, ["War Tortoise"] = { saveid = 186, ttscardid = "11906", suit = "Beast", cardtype = "Denizen" }, ["New Growth"] = { saveid = 187, ttscardid = "11907", suit = "Beast", cardtype = "Denizen" }, ["Wild Cry"] = { saveid = 188, ttscardid = "11908", suit = "Beast", cardtype = "Denizen" }, ["Animal Host"] = { saveid = 189, ttscardid = "11909", suit = "Beast", cardtype = "Denizen" }, ["Memory of Nature"] = { saveid = 190, ttscardid = "11910", suit = "Beast", cardtype = "Denizen" }, ["Marsh Spirit"] = { saveid = 191, ttscardid = "11911", suit = "Beast", cardtype = "Denizen" }, ["Vow of Poverty"] = { saveid = 192, ttscardid = "11912", suit = "Beast", cardtype = "Denizen" }, ["Forest Council"] = { saveid = 193, ttscardid = "11913", suit = "Beast", cardtype = "Denizen" }, ["Walled Garden"] = { saveid = 194, ttscardid = "11914", suit = "Beast", cardtype = "Denizen" }, ["Vow of Beast-kin"] = { saveid = 195, ttscardid = "11915", suit = "Beast", cardtype = "Denizen" }, ["Bracken"] = { saveid = 196, ttscardid = "11916", suit = "Beast", cardtype = "Denizen" }, ["Wild Allies"] = { saveid = 197, ttscardid = "11917", suit = "Beast", cardtype = "Denizen" }, -- TODO if more denizens are ever added, NUM_TOTAL_DENIZENS needs updated in the main Lua script. -- Note that edifices and ruins are two sides of the same card. Each (saveid + 1) is reserved for the Ruin side. ["Sprawling Rampart / Bandit Rampart"] = { saveid = 198, ttscardid = "12100", suit = "Order", cardtype = "EdificeRuin" }, ["Hall of Debate / Hall of Liberation"] = { saveid = 200, ttscardid = "12101", suit = "Hearth", cardtype = "EdificeRuin" }, ["Forest Temple / Abandoned Temple"] = { saveid = 202, ttscardid = "12102", suit = "Beast", cardtype = "EdificeRuin" }, ["Festival District / Squalid District"] = { saveid = 204, ttscardid = "12103", suit = "Discord", cardtype = "EdificeRuin" }, ["Great Spire / Fallen Spire"] = { saveid = 206, ttscardid = "12104", suit = "Arcane", cardtype = "EdificeRuin" }, ["Ancient Forge / Broken Forge"] = { saveid = 208, ttscardid = "12105", suit = "Nomad", cardtype = "EdificeRuin" }, -- Note that visions still use the same saveid ordering system as normal cards. ["Dynasty"] = { saveid = 210, ttscardid = "12000", cardtype = "Vision" }, ["Rebellion"] = { saveid = 211, ttscardid = "12001", cardtype = "Vision" }, ["Conspiracy"] = { saveid = 212, ttscardid = "12002", cardtype = "Vision" }, ["Faith"] = { saveid = 213, ttscardid = "12003", cardtype = "Vision" }, ["Conquest"] = { saveid = 214, ttscardid = "12004", cardtype = "Vision" }, -- Note that 215 and 216 were formerly reserved for privilege cards. ["The Darkest Secret"] = { saveid = 215, cardtype = "SuperRelic" }, ["The People's Favor / The Mob's Favor"] = { saveid = 216, cardtype = "SuperRelic" }, -- Note that 217 was formerly the darkest secret. -- Note that relics still use the same saveid ordering system as normal cards. ["Sticky Fire"] = { saveid = 218, ttscardid = "13100", cardtype = "Relic" }, ["Cursed Cauldron"] = { saveid = 219, ttscardid = "13101", cardtype = "Relic" }, ["Brass Horse"] = { saveid = 220, ttscardid = "13102", cardtype = "Relic" }, ["Truthful Harp"] = { saveid = 221, ttscardid = "13103", cardtype = "Relic" }, ["Grand Mask"] = { saveid = 222, ttscardid = "13104", cardtype = "Relic" }, ["Horned Mask"] = { saveid = 223, ttscardid = "13105", cardtype = "Relic" }, ["Cup of Plenty"] = { saveid = 224, ttscardid = "13106", cardtype = "Relic" }, ["Whistle"] = { saveid = 225, ttscardid = "13107", cardtype = "Relic" }, ["Dowsing Sticks"] = { saveid = 226, ttscardid = "13108", cardtype = "Relic" }, ["Cracked Horn"] = { saveid = 227, ttscardid = "13109", cardtype = "Relic" }, ["Bandit Crown"] = { saveid = 228, ttscardid = "13110", cardtype = "Relic" }, ["Banner of Devotion"] = { saveid = 229, ttscardid = "13111", cardtype = "Relic" }, ["Skeleton Key"] = { saveid = 230, ttscardid = "13112", cardtype = "Relic" }, ["Oracular Pig"] = { saveid = 231, ttscardid = "13113", cardtype = "Relic" }, ["Circlet of Command"] = { saveid = 232, ttscardid = "13114", cardtype = "Relic" }, ["Proof of Nobility"] = { saveid = 233, ttscardid = "13115", cardtype = "Relic" }, ["Map"] = { saveid = 234, ttscardid = "13116", cardtype = "Relic" }, ["Obsidian Cage"] = { saveid = 235, ttscardid = "13117", cardtype = "Relic" }, ["Book of Records"] = { saveid = 236, ttscardid = "13118", cardtype = "Relic" }, ["Dragonskin Drum"] = { saveid = 237, ttscardid = "13119", cardtype = "Relic" }, -- This saveid is used for an empty site / denizen / edifice / ruin slot. ["NONE"] = { saveid = 255, cardtype = "None" } } Global.setTable("cardsTable", cardsTable) -- Attempt to release memory for this table. cardsTable = nil -- Save IDs of ruin cards for convenience in detecting whether they should spawn facedown. The actual value of each entry does not matter here. ruinSaveIDs = { [199] = true, [201] = true, [203] = true, [205] = true, [207] = true, [209] = true } Global.setTable("ruinSaveIDs", ruinSaveIDs) -- Attempt to release memory for this table. ruinSaveIDs = nil -- For performance and/or ease of use, this table allows site lookup by saveid. siteCardCodes = { [0] = "Mine", [1] = "Salt Flats", [2] = "Fertile Valley", [3] = "Barren Coast", [4] = "Plains", [5] = "River", [6] = "Steppe", [7] = "Mountain", [8] = "Lush Coast", [9] = "Marshes", [10] = "Wastes", [11] = "Rocky Coast", [12] = "Narrow Pass", [13] = "Charming Valley", [14] = "Deep Woods", [15] = "Standing Stones", [16] = "Ancient City", [17] = "The Drowned City", [18] = "Great Slum", [19] = "Buried Giant", [20] = "Imperial Seat", [21] = "Shrouded Wood", [22] = "The Hidden Place", -- The 24th site card slot is currently unused. -- [23] = "UNUSED", -- The following are identical to the above, but represent facedown sites. [24] = "Mine", [25] = "Salt Flats", [26] = "Fertile Valley", [27] = "Barren Coast", [28] = "Plains", [29] = "River", [30] = "Steppe", [31] = "Mountain", [32] = "Lush Coast", [33] = "Marshes", [34] = "Wastes", [35] = "Rocky Coast", [36] = "Narrow Pass", [37] = "Charming Valley", [38] = "Deep Woods", [39] = "Standing Stones", [40] = "Ancient City", [41] = "The Drowned City", [42] = "Great Slum", [43] = "Buried Giant", [44] = "Imperial Seat", [45] = "Shrouded Wood", [46] = "The Hidden Place", -- The 24th site card slot is currently unused. -- [47] = "UNUSED", -- Empty. [255] = "NONE" } Global.setTable("siteCardCodes", siteCardCodes) -- Attempt to release memory for this table. siteCardCodes = nil -- For performance and/or ease of use, this table allows denizen, edifice, ruin, and vision card lookup by saveid. normalCardCodes = { -- Denizen cards. [0] = "Wrestlers", [1] = "Battle Honors", [2] = "Bear Traps", [3] = "Longbows", [4] = "Keep", [5] = "Pressgangs", [6] = "Garrison", [7] = "Scouts", [8] = "Alchemist", [9] = "Martial Culture", [10] = "Errand Boy", [11] = "Mercenaries", [12] = "Tinker's Fair", [13] = "Rain Boots", [14] = "A Small Favor", [15] = "Second Wind", [16] = "Gossip", [17] = "Key to the City", [18] = "Scryer", [19] = "Disgraced Captain", [20] = "Naysayers", [21] = "Book Burning", [22] = "Ancient Binding", [23] = "Horse Archers", [24] = "Warning Signals", [25] = "Elders", [26] = "The Gathering", [27] = "Faithful Friend", [28] = "Tents", [29] = "Great Herd", [30] = "Fire Talkers", [31] = "Magician's Code", [32] = "Spirit Snare", [33] = "Wizard School", [34] = "Dazzle", [35] = "Acting Troupe", [36] = "Taming Charm", [37] = "Inquisitor", [38] = "Wolves", [39] = "Animal Playmates", [40] = "True Names", [41] = "The Old Oak", [42] = "Forest Paths", [43] = "Long-Lost Heir", [44] = "Rangers", [45] = "Roving Terror", [46] = "Wayside Inn", [47] = "Extra Provisions", [48] = "Memory of Home", [49] = "Welcoming Party", [50] = "Traveling Doctor", [51] = "Storyteller", [52] = "Armed Mob", [53] = "Tavern Songs", [54] = "Secret Signal", [55] = "Augury", [56] = "Rusting Ray", [57] = "Portal", [58] = "Billowing Fog", [59] = "Kindred Warriors", [60] = "Terror Spells", [61] = "Blood Pact", [62] = "Revelation", [63] = "Observatory", [64] = "Plague Engines", [65] = "Gleaming Armor", [66] = "Bewitch", [67] = "Jinx", [68] = "Tutor", [69] = "Dream Thief", [70] = "Cracking Ground", [71] = "Sealing Ward", [72] = "Initiation Rite", [73] = "Vow of Silence", [74] = "Forgotten Vault", [75] = "Map Library", [76] = "Witch's Bargain", [77] = "Master of Disguise", [78] = "Charlatans", [79] = "Assassin", [80] = "Downtrodden", [81] = "Blackmail", [82] = "Cracked Sage", [83] = "Dissent", [84] = "False Prophet", [85] = "Vow of Renewal", [86] = "Zealots", [87] = "Royal Ambitions", [88] = "Salt the Earth", [89] = "Beast Tamer", [90] = "Riots", [91] = "Silver Tongue", [92] = "Gambling Hall", [93] = "Boiling Lake", [94] = "Relic Thief", [95] = "Enchantress", [96] = "Insomnia", [97] = "Surprise Attack", [98] = "Sleight of Hand", [99] = "Bandit King", [100] = "Cult of Chaos", [101] = "Slander", [102] = "Code of Honor", [103] = "Outriders", [104] = "Messenger", [105] = "Field Promotion", [106] = "Palanquin", [107] = "Shield Wall", [108] = "Military Parade", [109] = "Tome Guardians", [110] = "Tyrant", [111] = "Secret Police", [112] = "Forced Labor", [113] = "Specialist", [114] = "Captains", [115] = "Siege Engines", [116] = "Royal Tax", [117] = "Toll Roads", [118] = "Curfew", [119] = "Knights Errant", [120] = "Vow of Obedience", [121] = "Hunting Party", [122] = "Council Seat", [123] = "Encirclement", [124] = "Peace Envoy", [125] = "Relic Hunter", [126] = "Homesteaders", [127] = "Crop Rotation", [128] = "A Round of Ale", [129] = "Land Warden", [130] = "Charming Friend", [131] = "Village Constable", [132] = "Family Heirloom", [133] = "News from Afar", [134] = "Levelers", [135] = "Fabled Feast", [136] = "The Great Levy", [137] = "Hearts and Minds", [138] = "Relic Breaker", [139] = "Book Binders", [140] = "Ballot Box", [141] = "Saddle Makers", [142] = "Squires", [143] = "Rowdy Pub", [144] = "Vow of Peace", [145] = "Deed Writer", [146] = "Salad Days", [147] = "Marriage", [148] = "Hospital", [149] = "Awaited Return", [150] = "Convoys", [151] = "Vow of Kinship", [152] = "Wild Mounts", [153] = "Lancers", [154] = "Mountain Giant", [155] = "Rival Khan", [156] = "Lost Tongue", [157] = "Special Envoy", [158] = "Homesick", [159] = "Oracle", [160] = "Pilgrimage", [161] = "Spell Breaker", [162] = "Mounted Patrol", [163] = "Great Crusade", [164] = "Ancient Bloodline", [165] = "Ancient Pact", [166] = "Storm Caller", [167] = "Family Wagon", [168] = "Way Station", [169] = "Twin Brother", [170] = "Hospitality", [171] = "A Fast Steed", [172] = "Relic Worship", [173] = "Sacred Ground", [174] = "Nature Worship", [175] = "Birdsong", [176] = "Small Friends", [177] = "Grasping Vines", [178] = "Threatening Roar", [179] = "Fae Merchant", [180] = "Second Chance", [181] = "Pied Piper", [182] = "Mushrooms", [183] = "Insect Swarm", [184] = "Vow of Union", [185] = "Giant Python", [186] = "War Tortoise", [187] = "New Growth", [188] = "Wild Cry", [189] = "Animal Host", [190] = "Memory of Nature", [191] = "Marsh Spirit", [192] = "Vow of Poverty", [193] = "Forest Council", [194] = "Walled Garden", [195] = "Vow of Beast-kin", [196] = "Bracken", [197] = "Wild Allies", -- Edifices and ruins. [198] = "Sprawling Rampart / Bandit Rampart", [199] = "Sprawling Rampart / Bandit Rampart", [200] = "Hall of Debate / Hall of Liberation", [201] = "Hall of Debate / Hall of Liberation", [202] = "Forest Temple / Abandoned Temple", [203] = "Forest Temple / Abandoned Temple", [204] = "Festival District / Squalid District", [205] = "Festival District / Squalid District", [206] = "Great Spire / Fallen Spire", [207] = "Great Spire / Fallen Spire", [208] = "Ancient Forge / Broken Forge", [209] = "Ancient Forge / Broken Forge", -- Visions. [210] = "Dynasty", [211] = "Rebellion", [212] = "Conspiracy", [213] = "Faith", [214] = "Conquest", -- Note that 215 and 216 were formerly reserved for privilege cards. [215] = "The Darkest Secret", [216] = "The People's Favor / The Mob's Favor", -- Relics. -- Note that 217 was formerly the darkest secret. [218] = "Sticky Fire", [219] = "Cursed Cauldron", [220] = "Brass Horse", [221] = "Truthful Harp", [222] = "Grand Mask", [223] = "Horned Mask", [224] = "Cup of Plenty", [225] = "Whistle", [226] = "Dowsing Sticks", [227] = "Cracked Horn", [228] = "Bandit Crown", [229] = "Banner of Devotion", [230] = "Skeleton Key", [231] = "Oracular Pig", [232] = "Circlet of Command", [233] = "Proof of Nobility", [234] = "Map", [235] = "Obsidian Cage", [236] = "Book of Records", [237] = "Dragonskin Drum", -- Empty. [255] = "NONE" } Global.setTable("normalCardCodes", normalCardCodes) -- Attempt to release memory for this table. normalCardCodes = nil -- Site card back. siteBackURL = "http://tts.ledergames.com/Oath/cards/3_1_0/landBack.jpg" -- Standard Oath card back. normalBackURL = "http://tts.ledergames.com/Oath/cards/3_1_0/cardbackDefault.jpg" -- This table contains Tabletop Simulator deck info, indexed by ttsdeckid as referenced in cardsTable. ttsDeckInfo = { -- Site card decks. [100] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/lands.jpg", backimage = siteBackURL, deckwidth = 2, deckheight = 4, hasuniqueback = false }, [101] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/lands2.jpg", backimage = siteBackURL, deckwidth = 2, deckheight = 4, hasuniqueback = false }, [102] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/lands3.jpg", backimage = siteBackURL, deckwidth = 2, deckheight = 4, hasuniqueback = false }, -- Denizen card decks. [110] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [111] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards2.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [112] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards3.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [113] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards4.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [114] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards5.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [115] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards6.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [116] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards7.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [117] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards8.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [118] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards9.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, [119] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cards10.jpg", backimage = normalBackURL, deckwidth = 5, deckheight = 4, hasuniqueback = false }, -- Special deck for visions. [120] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/visions.jpg", backimage = "http://tts.ledergames.com/Oath/cards/3_1_0/cardbackVision.jpg", deckwidth = 5, deckheight = 4, hasuniqueback = false }, -- Special deck for edifices. [121] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/edificeFront.jpg", backimage = "http://tts.ledergames.com/Oath/cards/3_1_0/edificeBack.jpg", deckwidth = 3, deckheight = 2, hasuniqueback = true }, -- NOTE: Deck ID 130 has been retired and was the old office deck. -- Relic deck. [131] = { deckimage = "http://tts.ledergames.com/Oath/cards/3_1_0/relics.jpg", backimage = "http://tts.ledergames.com/Oath/cards/3_1_0/relicBack.jpg", deckwidth = 5, deckheight = 5, hasuniqueback = false } } Global.setTable("ttsDeckInfo", ttsDeckInfo) -- Attempt to release memory for this table. ttsDeckInfo = nil -- Mark data as available, indicating this object has finished loading. Global.setVar("dataIsAvailable", true) end
ModLoader.SetupFileHook("lua/Gamerules.lua", "lua/ModPanelsPlusPlus/Gamerules.lua", "post") ModLoader.SetupFileHook("lua/ModPanels/FileHooks.lua", true, "halt") -- Load Shine hooks ModLoader.SetupFileHook( "lua/shine/core/shared/hook.lua", "lua/shine/hook.lua", "post" ) kModPanels = {} local dot = string.byte('.') local slash = string.byte('/') local function parse_path(path) local start, stop = 1, #path repeat stop = stop - 1 until path:byte(stop+1) == dot repeat start = start + 1 until path:byte(start-1) == slash return path:sub(start, stop) end function AddModPanel(values, maybe_url) assert(#kModPanels < 255, "Can not add more mod panels! Max: 255") if type(values) == "string" then values = { material = values, url = maybe_url } end assert(values.material, "Material file required!") if not values.name then values.name = parse_path(values.material) end PrecacheAsset(values.material) table.insert(kModPanels, values) end local panels = {} Shared.GetMatchingFileNames("modpanels/*.material", true, panels) for _, file in ipairs(panels) do local data = {} setfenv(assert(loadfile(file)), data)() data.panel = nil data.material = file local name = parse_path(file) local lua_file = "modpanels/" .. name .. ".lua" if GetFileExists(lua_file) then assert(loadfile(lua_file))(data) end data.name = data.name or name AddModPanel(data) end
Background = { } -- private variables local background -- public functions function Background.init() background = g_ui.displayUI('background.otui') background:lower() local clientVersionLabel = background:getChildById('clientVersionLabel') clientVersionLabel:setText('OTClient ' .. g_app.getVersion() .. '\n' .. 'Rev ' .. g_app.getBuildRevision() .. ' ('.. g_app.getBuildCommit() .. ')\n' .. 'Protocol ' .. g_game.getProtocolVersion() .. '\n' .. 'Built on ' .. g_app.getBuildDate()) if not g_game.isOnline() then g_effects.fadeIn(clientVersionLabel, 1500) end connect(g_game, { onGameStart = Background.hide }) connect(g_game, { onGameEnd = Background.show }) end function Background.terminate() disconnect(g_game, { onGameStart = Background.hide }) disconnect(g_game, { onGameEnd = Background.show }) g_effects.cancelFade(background:getChildById('clientVersionLabel')) background:destroy() background = nil Background = nil end function Background.hide() background:hide() end function Background.show() background:show() end
BuildEnv(...) Collect = Addon:NewClass('Collect') Collect._Meta.__lt = function(a, b) return a:GetStamp() > b:GetStamp() end function Collect:Constructor(collectType, id, stamp) self.collectType = collectType self.id = id self.stamp = stamp end function Collect:GetCollectType() return self.collectType end function Collect:GetID() return self.id end function Collect:GetObject() return Addon:GetCollectTypeClass(self.collectType):Get(self.id) end function Collect:GetStamp() return self.stamp end function Collect:GetStampText() return FriendsFrame_GetLastOnline(self.stamp) end function Collect:ToDB() return table.concat({self.collectType, self.id, self.stamp}, ':') end
if node.bootreason()==1 then tmr.alarm(0,1000,0,function() require("main") end) else require("main") end
function on_activate(parent, ability) local targets = parent:targets():hostile():touchable() local targeter = parent:create_targeter(ability) targeter:set_selection_touchable() targeter:add_all_selectable(targets) targeter:add_all_effectable(targets) targeter:activate() end function on_target_select(parent, ability, targets) local stats = parent:stats() ability:activate(parent) local target = targets:first() local hit = parent:special_attack(target, "Fortitude", "Melee") local amount = -4 if hit:is_miss() then return elseif hit:is_graze() then amount = amount / 2 elseif hit:is_hit() then -- do nothing elseif hit:is_crit() then amount = amount * 1.5 end local effect = target:create_effect(ability:name(), ability:duration()) effect:set_tag("nauseate") effect:add_attribute_bonus("Strength", amount) effect:add_attribute_bonus("Dexterity", amount) effect:add_attribute_bonus("Endurance", amount) local anim = target:create_particle_generator("sparkle") anim:set_moves_with_parent() anim:set_position(anim:param(-0.5), anim:param(-1.5)) anim:set_particle_size_dist(anim:fixed_dist(0.5), anim:fixed_dist(0.5)) anim:set_gen_rate(anim:param(6.0)) anim:set_initial_gen(2.0) anim:set_particle_position_dist(anim:dist_param(anim:uniform_dist(-0.7, 0.7), anim:uniform_dist(-0.1, 0.1)), anim:dist_param(anim:fixed_dist(0.0), anim:uniform_dist(-1.0, -1.5))) anim:set_particle_duration_dist(anim:fixed_dist(1.2)) anim:set_color(anim:param(0.0), anim:param(1.0), anim:param(0.1), anim:param(0.5)) effect:add_anim(anim) effect:apply() game:play_sfx("sfx/confusion") end
return {'ypresien'}
local names = require "personnameutil" local firstNamesMale = names.unitedKingdom.english.firstNamesMale local firstNamesFemale = names.unitedKingdom.english.firstNamesFemale local lastNames = names.unitedKingdom.english.lastNames function data() return { makeName = function (male) if (male) then return firstNamesMale[math.random(#firstNamesMale)] .. " " .. lastNames[math.random(#lastNames)] else return firstNamesFemale[math.random(#firstNamesFemale)] .. " " .. lastNames[math.random(#lastNames)] end end } end
help("\tThis module sets up the OSCAR modules subsystem.") whatis("Description: Sets up the OSCAR modules subsystem.") local mroot = os.getenv("MODULEPATH_ROOT") local oscarDir = pathJoin(mroot,"Oscar") prepend_path("MODULEPATH", oscarDir) local a = {} for file in lfs.dir(oscarDir) do if (file ~= "." and file ~= ".." and file:sub(-1,-1) ~= '~') then a[#a+1] = file end end table.sort(a) for i = 1,#a do load(a[i]) end
require "util" require "config" local TrainCounter = {} TrainCounter.__index = TrainCounter TrainCounter.version = 1 function TrainCounter.new(counter_entity) local self = setmetatable({}, TrainCounter) self.type = "TrainCounter" self.version = TrainCounter.version counter_entity.operable = false self.counter = counter_entity self.source_entity = self:find_source_entity() self:update(0) return self end function TrainCounter.find_using_entity(array, counter_entity) local counter = nil local index = false for i, current_counter in ipairs(array) do local current_counter = TrainCounter.deserialize(current_counter) if current_counter.counter == counter_entity then counter = current_counter index = i break end end return index, counter end function TrainCounter:find_source_entity() local surface = self.counter.surface local left_top = util.movepositioncomplex(util.movepositioncomplex(self.counter.position, defines.direction.north, 1), defines.direction.west, 1) local right_bottom = util.movepositioncomplex(util.movepositioncomplex(self.counter.position, defines.direction.south, 1), defines.direction.east, 1) local bounding_box = {left_top = left_top, right_bottom = right_bottom} local entity = nil for _, entity_name in ipairs({"train-stop", "train-depot"}) do local entities = surface.find_entities_filtered({area = bounding_box, name = entity_name}) or {} entity = entities[1] if entity then break end end return entity end function TrainCounter:update(ticks) local valid = true local count = 0 local control = nil if not self.counter.valid then valid = false goto done end if not self.source_entity or not self.source_entity.valid then self.source_entity = self:find_source_entity() end if not self.source_entity or not self.source_entity.valid then control = self.counter.get_or_create_control_behavior() control.set_signal(1, {signal = _CONFIG._SIGNAL_TRAIN_COUNT, count = -1}) goto done end count = #self.source_entity.get_train_stop_trains() control = self.counter.get_or_create_control_behavior() if control then control.set_signal(1, {signal = _CONFIG._SIGNAL_TRAIN_COUNT, count = count}) end ::done:: return valid end function TrainCounter:serialize() self.train_build_serialized = self.train_build and self.train_build:serialize() or nil return self end function TrainCounter.deserialize(data) if type(data) == "table" and data.type == "TrainCounter" and data.version <= TrainCounter.version then local self = setmetatable(data, TrainCounter) self.version = TrainCounter.version return self end return nil end function TrainCounter:destroy() end return TrainCounter
-- note: this example only works with luajit local win = am.window{letterbox = false} ffi.cdef[[ typedef struct { float x, y; } vec2; typedef struct { float r, g, b, a; } color; ]] local n = 200000 local sz = ffi.sizeof("vec2[?]", n) local vbuf = am.buffer(sz) local verts = ffi.cast("vec2*", vbuf.dataptr) local vels = ffi.new("vec2[?]", n) local csz = ffi.sizeof("color[?]", n) local cbuf = am.buffer(csz) local colors = ffi.cast("color*", cbuf.dataptr) for i = 0, n - 1 do local x, y = math.random() - 0.5, math.random() - 0.5 verts[i].x = x * win.width verts[i].y = y * win.height vels[i].x = 0 vels[i].y = 0 colors[i].r = math.random() ^ 7 colors[i].g = math.random() ^ 10 colors[i].b = math.random() colors[i].a = 1 end vbuf:mark_dirty() local vshader = [[ precision highp float; attribute vec2 vert; attribute vec4 color; uniform mat4 MV; uniform mat4 P; varying vec4 v_color; void main() { v_color = color; gl_PointSize = 2.0; gl_Position = P * MV * vec4(vert, 0.0, 1.0); } ]] local fshader = [[ precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ]] local prog = am.program(vshader, fshader); local view = vbuf:view("vec2") local cview = cbuf:view("vec4") local scene = am.use_program(prog) ^ am.bind{ vert = view, color = cview, } ^ am.draw"points" scene:action(function() local dt = am.delta_time local mx = math.cos(am.frame_time) * 30 local my = math.sin(am.frame_time) * 30 local G = 20 for i = 0, n - 1 do local x = verts[i].x + dt * vels[i].x local y = verts[i].y + dt * vels[i].y local d = math.sqrt((x-mx)^2 + (y-my)^2) local dx = (mx - x) / d local dy = (my - y) / d local k = d ^ 0.5 * G * dt vels[i].x = vels[i].x + dx * k; vels[i].y = vels[i].y + dy * k; verts[i].x = x verts[i].y = y end vbuf:mark_dirty() if win:key_pressed"escape" then win:close() end end) win.scene = am.blend"add" ^ scene
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. ]]-- local tnt = require 'torchnet.env' local argcheck = require 'argcheck' local AverageValueMeter = torch.class('tnt.AverageValueMeter', 'tnt.Meter', tnt) AverageValueMeter.__init = argcheck{ doc = [[ <a name="AverageValueMeter"> #### tnt.AverageValueMeter(@ARGP) @ARGT The `tnt.AverageValueMeter` measures and returns the average value and the standard deviation of any collection of numbers that are `add`ed to it. It is useful, for instance, to measure the average loss over a collection of examples. The `add()` function expects as input a Lua number `value`, which is the value that needs to be added to the list of values to average. It also takes as input an optional parameter `n` that assigns a weight to `value` in the average, in order to facilitate computing weighted averages (default = 1). The `tnt.AverageValueMeter` has no parameters to be set at initialization time. ]], {name="self", type="tnt.AverageValueMeter"}, call = function(self) self:reset() end } AverageValueMeter.reset = argcheck{ {name="self", type="tnt.AverageValueMeter"}, call = function(self) self.sum = 0 self.n = 0 self.var = 0 end } AverageValueMeter.add = argcheck{ {name="self", type="tnt.AverageValueMeter"}, {name="value", type="number"}, {name="n", type="number", default=1}, call = function(self, value, n) assert(n >= 0, 'example weights cannot be negative') self.sum = self.sum + n * value self.var = self.var + n * value * value self.n = self.n + n end } AverageValueMeter.value = argcheck{ {name="self", type="tnt.AverageValueMeter"}, call = function(self) local n = self.n local mean = self.sum / n -- unbiased estimator of the variance: local std = math.sqrt( (self.var - n * mean * mean) / (n-1) ) return mean, std end }
root_dir = "../../" config_dir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" exe_dir = root_dir .. "bin/" .. config_dir .. "/%{prj.name}" obj_dir = root_dir .. "bin-obj/" .. config_dir .. "/%{prj.name}" workspace "PopHead" architecture "x86" location (root_dir) startproject "PopHead" configurations{ "Debug", "Release", "Distribution", "Tests" } project "PopHead" location (root_dir) kind "ConsoleApp" language "C++" cppdialect "C++17" targetdir (exe_dir) objdir (obj_dir) debugdir "%{wks.location}" includedirs{ root_dir .. "src", root_dir .. "vendor/SFML_2.5.1/include", root_dir .. "vendor/glew-2.1.0/include", root_dir .. "vendor/stb", root_dir .. "vendor/entt-3.2.0/src" } libdirs{ root_dir .. "vendor/SFML_2.5.1/lib-VisualStudio", root_dir .. "vendor/glew-2.1.0/lib" } files{ root_dir .. "src/**.hpp", root_dir .. "src/**.cpp", root_dir .. "src/**.inl" } links{ "opengl32.lib", "winmm.lib", "gdi32.lib", "freetype.lib", "flac.lib", "vorbisenc.lib", "vorbisfile.lib", "vorbis.lib", "ogg.lib", "openal32.lib", "glew32s.lib" } ignoredefaultlibraries { "libcmt" } defines{ "SFML_STATIC", "GLEW_STATIC" } filter "configurations:Debug" symbols "On" links{ "sfml-graphics-s-d", "sfml-audio-s-d", "sfml-network-s-d", "sfml-window-s-d", "sfml-system-s-d" } filter {"configurations:Debug", "action:vs*"} inlining "Explicit" filter{"configurations:Release or Distribution"} optimize "On" links{ "sfml-graphics-s", "sfml-audio-s", "sfml-network-s", "sfml-window-s", "sfml-system-s", "sfml-main" } filter{"configurations:Distribution"} defines{"PH_DISTRIBUTION"} kind "WindowedApp" filter "system:Windows" defines{"PH_WINDOWS"} filter "system:Unix" defines{"PH_LINUX"} filter "system:Mac" defines{"PH_MAC"} filter{} project "Tests" location (root_dir) kind "ConsoleApp" language "C++" cppdialect "C++17" targetdir (exe_dir) objdir (obj_dir) debugdir "%{wks.location}" includedirs{ root_dir .. "src", root_dir .. "vendor/SFML_2.5.1/include", root_dir .. "vendor/entt-3.2.0/src", root_dir .. "vendor/catch2" } libdirs{root_dir .. "vendor/SFML_2.5.1/lib-VisualStudio"} files{ root_dir .. "src/**.hpp", root_dir .. "src/**.cpp", root_dir .. "src/**.inl", root_dir .. "tests/**.hpp", root_dir .. "tests/**.cpp", root_dir .. "tests/**.inl" } removefiles{ root_dir .. "src/main.cpp" } links{ "opengl32.lib", "winmm.lib", "gdi32.lib", "freetype.lib", "flac.lib", "vorbisenc.lib", "vorbisfile.lib", "vorbis.lib", "ogg.lib", "openal32.lib" } defines{"SFML_STATIC"} filter "configurations:Debug or Tests" symbols "On" links{ "sfml-graphics-s-d", "sfml-audio-s-d", "sfml-network-s-d", "sfml-window-s-d", "sfml-system-s-d" } filter{"configurations:Release or Distribution"} optimize "On" links{ "sfml-graphics-s", "sfml-audio-s", "sfml-network-s", "sfml-window-s", "sfml-system-s" } filter{"configurations:Tests"} defines{"PH_TESTS"} filter "system:Windows" defines{"PH_WINDOWS"} filter "system:Unix" defines{"PH_LINUX"} filter "system:Mac" defines{"PH_MAC"} filter{} printf("For now PopHead supports only new Visual Studio versions and Codeblocks.") printf("If you have any problems with Premake or compiling PopHead contact Grzegorz \"Czapa\" Bednorz.")
-- source: https://gist.github.com/starwing/1757443a1bd295653c39 local tonumber = _G.tonumber local ffi = require("ffi") local math = require("math") if jit.os == "Windows" then ffi.cdef [[ unsigned __stdcall GetTickCount(void); ]] local lib = ffi.load "KERNEL32" gettime = lib.GetTickCount else ffi.cdef [[ typedef long time_t; typedef int clockid_t; typedef struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ } nanotime; int clock_gettime(clockid_t clk_id, struct timespec *tp); ]] local pnano = assert(ffi.new("nanotime[?]", 1)) function gettime() -- CLOCK_MONOTONIC -> 1 ffi.C.clock_gettime(1, pnano) return tonumber(pnano[0].tv_sec * 1000 + math.floor(tonumber(pnano[0].tv_nsec/1000000))) end end return { gettime = gettime }
local http = require "socket.http" require "love.timer" http.TIMEOUT = 1 local channel1 = love.thread.getChannel( "downloaders_in" ) while true do if channel1:getCount()>0 then local uri = channel1:pop() if uri then local resp = http.request( uri ) or "Failed" local channel2 = love.thread.getChannel( "downloaders_out" ) channel2:push( resp ) end else love.timer.sleep(1) end end
--[[ @class Blend.story ]] local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script) local RunService = game:GetService("RunService") local Blend = require("Blend") local Maid = require("Maid") local ValueObject = require("ValueObject") local Rx = require("Rx") return function(target) local maid = Maid.new() local percentVisible = Blend.State(0) local state = Blend.State("a") maid:GiveTask(state) local uiCornerValueObject = ValueObject.new() uiCornerValueObject.Value = Blend.New "UICorner" { CornerRadius = UDim.new(0, 5); }; maid:GiveTask(uiCornerValueObject) -- Reassign to a new value task.delay(1, function() if uiCornerValueObject.Destroy then uiCornerValueObject.Value = Blend.New "UICorner" { CornerRadius = UDim.new(0, 25); }; end end) maid:GiveTask((Blend.New "TextLabel" { Parent = target; Size = Blend.Computed(percentVisible, function(visible) return UDim2.new(0, visible*100, 0, 50); end); BackgroundTransparency = Blend.Computed(percentVisible, function(visible) return 1 - visible end); Position = UDim2.new(0.5, 0, 0.5, 0); AnchorPoint = Vector2.new(0.5, 0.5); Text = state; TextScaled = true; [Blend.Children] = { uiCornerValueObject; Rx.NEVER; Rx.EMPTY; { Blend.Single(Blend.Computed(percentVisible, function(visible) if visible <= 0.5 then return nil else return Blend.New "Frame" { Size = UDim2.new(0, 100, 0, 100); BackgroundTransparency = 0.5; } end end)); }; { Blend.Single(Blend.Computed(percentVisible, function(visible) local results = {} -- constructs a ton of children everytime this changes for x=0, visible*100, 10 do table.insert(results, Blend.New "Frame" { Size = UDim2.new(0, 8, 0, 8); Position = UDim2.new(0, x, 0.9, 0); AnchorPoint = Vector2.new(0.5, 0.5); BorderSizePixel = 0; BackgroundColor3 = Color3.new(x/100, 0.5, 0.5); [Blend.Children] = { Blend.New "UICorner" { CornerRadius = UDim.new(0.5, 5); }; }; }) end return results end)); }; }; }):Subscribe()) local PERIOD = 5 maid:GiveTask(RunService.RenderStepped:Connect(function() state.Value = tostring(os.clock()) percentVisible.Value = (math.sin(os.clock()*math.pi*2/PERIOD) + 1)/2 end)) return function() maid:DoCleaning() end end
function print ( msg, p, r, g, b ) return exports.NGMessages:sendClientMessage ( msg, p, r, g, b ) end function ejectPlayer ( p, _, nab ) if nab then if isPedInVehicle ( p ) then if getPedOccupiedVehicleSeat ( p ) == 0 then local ej = getPlayerFromNamePart ( nab ) local veh = getPedOccupiedVehicle ( p ) if ej then if ej ~= p then if getPedOccupiedVehicle ( ej ) == veh then removePedFromVehicle ( ej ) print ( "You have ejected "..getPlayerName(ej).." from your vehicle!", p, 255, 255, 0, true, 8 ) print ( "You have been ejected from your vehicle by "..getPlayerName(p), ej, 255, 255, 0, true, 8 ) else print ( nab.." is not in this vehicle", p, 255, 255, 0, true, 8 ) end else print ( "You cannot eject yourself.", p, 255, 255, 0, true, 8 ) end else print ( nab.." is not in this vehicle", p, 255, 255, 0, true, 8 ) end else print ( "You are not the driver of this vehicle", p, 255, 255, 0, true, 8 ) end else print ( "You are not in a vehicle", p, 255, 255, 0, true, 8 ) end else print ( "/eject [player]", p, 255, 255, 0, true, 8 ) end end addCommandHandler ( "eject", ejectPlayer )
---------------------------------------------------- --===================Aurelien=====================-- ---------------------------------------------------- ------------------------Lua------------------------- local DrawMarkerShow = true local DrawBlipTradeShow = true -- -900.0, -3002.0, 13.0 -- -800.0, -3002.0, 13.0 -- -1078.0, -3002.0, 13.0 local Price = 1500 local Position = { -- VOS POINTS ICI Recolet={x=0.0,y=0.0,z=0.0, distance=2}, traitement={x=0.0,y=0.0,z=0.0, distance=2}, traitement2={x=0.0,y=0.0,z=0.0, distance=5}, traitement3={x=0.0,y=0.0,z=0.0, distance=2}, vente={x=0.0,y=0.0,z=0.0, distance=2} } function drawTxt(text,font,centre,x,y,scale,r,g,b,a) SetTextFont(font) SetTextProportional(0) SetTextScale(scale, scale) SetTextColour(r, g, b, a) SetTextDropShadow(0, 0, 0, 0,255) SetTextEdge(1, 0, 0, 0, 255) SetTextDropShadow() SetTextOutline() SetTextCentre(centre) SetTextEntry("STRING") AddTextComponentString(text) DrawText(x, y) end function ShowInfo(text, state) SetTextComponentFormat("STRING") AddTextComponentString(text)DisplayHelpTextFromStringLabel(0, state, 0, -1) end function IsInVehicle() local ply = GetPlayerPed(-1) if IsPedSittingInAnyVehicle(ply) then return true else return false end end local ShowMsgtime = { msg = "", time = 0 } local weedcount = 0 AddEventHandler("tradeill:cbgetQuantity", function(itemQty) weedcount = itemQty end) Citizen.CreateThread(function() while true do Citizen.Wait(0) if ShowMsgtime.time ~= 0 then drawTxt(ShowMsgtime.msg, 0, 1, 0.5, 0.8, 0.6, 255, 255, 255, 255) ShowMsgtime.time = ShowMsgtime.time - 1 end end end) Citizen.CreateThread(function() if DrawBlipTradeShow then --SetBlipTrade(273, "~g~ Voler ~b~Organe", 2, Position.Recolet.x, Position.Recolet.y, Position.Recolet.z) --SetBlipTrade(42, "~g~ Emballage... ~b~d'organe", 1, Position.traitement.x, Position.traitement.y, Position.traitement.z) --SetBlipTrade(171, "~g~ Analyse... ~b~des organes", 1, Position.traitement2.x, Position.traitement2.y, Position.traitement2.z) --SetBlipTrade(459, "~g~ Recherche... ~b~de client potentiel", 1, Position.traitement3.x, Position.traitement3.y, Position.traitement3.z) --SetBlipTrade(458, "~g~ Vendre ~b~organe emballé", 1, Position.vente.x, Position.vente.y, Position.vente.z) end while true do Citizen.Wait(0) if DrawMarkerShow then --DrawMarker(1, Position.Recolet.x, Position.Recolet.y, Position.Recolet.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 4.0, 1.0, 0, 0, 255, 75, 0, 0, 2, 0, 0, 0, 0) --DrawMarker(1, Position.traitement.x, Position.traitement.y, Position.traitement.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 4.0, 1.0, 0, 0, 255, 25, 0, 0, 2, 0, 0, 0, 0) --DrawMarker(1, Position.traitement2.x, Position.traitement2.y, Position.traitement2.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 4.0, 1.0, 0, 0, 255, 25, 0, 0, 2, 0, 0, 0, 0) -- DrawMarker(1, Position.traitement3.x, Position.traitement3.y, Position.traitement3.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 4.0, 1.0, 0, 0, 255, 25, 0, 0, 2, 0, 0, 0, 0) --DrawMarker(1, Position.vente.x, Position.vente.y, Position.vente.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 4.0, 1.0, 0, 0, 255, 75, 0, 0, 2, 0, 0, 0, 0) end end end) Citizen.CreateThread(function() while true do Citizen.Wait(0) local playerPos = GetEntityCoords(GetPlayerPed(-1)) local distanceWeedFarm = GetDistanceBetweenCoords(playerPos.x, playerPos.y, playerPos.z, Position.Recolet.x, Position.Recolet.y, Position.Recolet.z, true) if not IsInVehicle() then if distanceWeedFarm < Position.Recolet.distance then ShowInfo('~b~Appuyer sur ~g~E~b~ pour ramasser', 0) if IsControlJustPressed(1, 38) then weedcount = 0 -- TriggerEvent("player:getQuantity", 4, function(data) -- weedcount = data.count -- end) TriggerEvent("player:getQuantity", 13) Wait(100) Citizen.Wait(1) if weedcount < 30 then ShowMsgtime.msg = '~g~ Prendre ~b~un organe' ShowMsgtime.time = 250 TriggerEvent("vmenu:anim" ,"pickup_object", "pickup_low") Wait(2500) ShowMsgtime.msg = '~g~ + 1 ~b~organe' ShowMsgtime.time = 150 TriggerEvent("player:receiveItem", 13, 1) --13 else ShowMsgtime.msg = '~r~ Inventaire plein !' ShowMsgtime.time = 150 end end end end -------------------------Bloc Pour rajouter un traitement------------------------------------------- local distanceWeedFarm = GetDistanceBetweenCoords(playerPos.x, playerPos.y, playerPos.z, Position.traitement.x, Position.traitement.y, Position.traitement.z, true) if not IsInVehicle() then if distanceWeedFarm < Position.traitement.distance then ShowInfo('~b~Appuyer sur ~g~E~b~ pour emballer ~b~organe', 0) if IsControlJustPressed(1, 38) then weedcount = 0 -- TriggerEvent("player:getQuantity", 6, function(data) -- weedcount = data.count -- end) TriggerEvent("player:getQuantity", 13) --13 Wait(100) if weedcount ~= 0 then ShowMsgtime.msg = '~g~ Emballer ~b~organe' ShowMsgtime.time = 250 TriggerEvent("vmenu:anim" ,"pickup_object", "pickup_low") Wait(2500) ShowMsgtime.msg = '~g~ + 1 ~b~Organe emballé' ShowMsgtime.time = 150 TriggerEvent("player:looseItem", 13, 1) --13 TriggerEvent("player:receiveItem", 14, 1) --14 else ShowMsgtime.msg = "~r~ Vous n'avez pas d'organe !" ShowMsgtime.time = 150 end end end end local distanceWeedFarm = GetDistanceBetweenCoords(playerPos.x, playerPos.y, playerPos.z, Position.traitement2.x, Position.traitement2.y, Position.traitement2.z, true) if not IsInVehicle() then if distanceWeedFarm < Position.traitement2.distance then ShowInfo('~b~Appuyer sur ~g~E~b~ pour analyser ~b~Organe emballé', 0) if IsControlJustPressed(1, 38) then weedcount = 0 -- TriggerEvent("player:getQuantity", 6, function(data) -- weedcount = data.count -- end) TriggerEvent("player:getQuantity", 14) Wait(100) if weedcount ~= 0 then ShowMsgtime.msg = '~g~ Analyser ~b~Organe emballé' ShowMsgtime.time = 250 TriggerEvent("vmenu:anim" ,"pickup_object", "pickup_low") Wait(2500) ShowMsgtime.msg = '~g~ + 1 ~b~Organe analysé' ShowMsgtime.time = 150 TriggerEvent("player:looseItem", 14, 1) --14 TriggerEvent("player:receiveItem", 15, 1) --15 else ShowMsgtime.msg = "~r~ Vous n'avez pas d'organe emballé !" ShowMsgtime.time = 150 end end end end local distanceWeedFarm = GetDistanceBetweenCoords(playerPos.x, playerPos.y, playerPos.z, Position.traitement3.x, Position.traitement3.y, Position.traitement3.z, true) if not IsInVehicle() then if distanceWeedFarm < Position.traitement3.distance then ShowInfo('~b~Appuyer sur ~g~E~b~ pour ~b~trouver des clients', 0) if IsControlJustPressed(1, 38) then weedcount = 0 -- TriggerEvent("player:getQuantity", 6, function(data) -- weedcount = data.count -- end) TriggerEvent("player:getQuantity", 15) Wait(100) if weedcount ~= 0 then ShowMsgtime.msg = '~g~ Recherche... ~b~de clients potentiels...' ShowMsgtime.time = 250 TriggerEvent("vmenu:anim" ,"pickup_object", "pickup_low") Wait(2500) ShowMsgtime.msg = '~g~ Vous avez trouvé un ~b~client' ShowMsgtime.time = 150 TriggerEvent("player:looseItem", 15, 1) --16 TriggerEvent("player:receiveItem", 16, 1) --17 else ShowMsgtime.msg = "~r~ Vous n'avez pas d'organe analysé !"..weedcount ShowMsgtime.time = 150 end end end end -------------------------Fin Du Bloc Pour rajouter un traitement------------------------------------------- local distanceWeedFarm = GetDistanceBetweenCoords(playerPos.x, playerPos.y, playerPos.z, Position.vente.x, Position.vente.y, Position.vente.z, true) if not IsInVehicle() then if distanceWeedFarm < Position.vente.distance then ShowInfo('~b~ Appuyer sur ~g~E~b~ pour vendre', 0) if IsControlJustPressed(1, 38) then weedcount = 0 -- TriggerEvent("player:getQuantity", 7, function(data) -- weedcount = data.count -- end) TriggerEvent("player:getQuantity", 16) Wait(100) if weedcount ~= 0 then ShowMsgtime.msg = '~g~ Vendre ~b~organe' ShowMsgtime.time = 250 TriggerEvent("vmenu:anim" ,"pickup_object", "pickup_low") Wait(2500) ShowMsgtime.msg = '~g~ +'..Price..'$' ShowMsgtime.time = 150 TriggerEvent("player:sellItem", 16, Price) --17 else ShowMsgtime.msg = "~r~Vous n'avez pas organe !" ShowMsgtime.time = 150 end end end end end end) function SetBlipTrade(id, text, color, x, y, z) local Blip = AddBlipForCoord(x, y, z) SetBlipSprite(Blip, id) SetBlipColour(Blip, color) BeginTextCommandSetBlipName("STRING") AddTextComponentString(text) EndTextCommandSetBlipName(Blip) end
Config = {} Config.Locale = 'en' Config.DoorList = { -- -- Mission Row First Floor -- -- Entrance Doors -- -- { -- -- textCoords = vector3(434.7, -982.0, 31.5), -- -- authorizedJobs = { 'police', 'offpolice' }, -- -- locked = false, -- -- distance = 2.5, -- -- doors = { -- -- { -- -- objName = 'v_ilev_ph_door01', -- -- objYaw = -90.0, -- -- objCoords = vector3(434.7, -980.6, 30.8) -- -- }, -- -- { -- -- objName = 'v_ilev_ph_door002', -- -- objYaw = -90.0, -- -- objCoords = vector3(434.7, -983.2, 30.8) -- -- } -- -- } -- -- }, -- To locker room & roof { objName = 'v_ilev_ph_gendoor004', objYaw = 90.0, objCoords = vector3(449.6, -986.4, 30.6), textCoords = vector3(450.1, -986.3, 30.6), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Rooftop { objName = 'v_ilev_gtdoor02', objYaw = 90.0, objCoords = vector3(464.3, -984.6, 43.8), textCoords = vector3(464.3, -984.0, 44.8), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Hallway to roof { objName = 'v_ilev_arm_secdoor', objYaw = 90.0, objCoords = vector3(461.2, -985.3, 30.8), textCoords = vector3(461.5, -986.0, 31.5), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Armory { objName = 'v_ilev_arm_secdoor', objYaw = -90.0, objCoords = vector3(452.6, -982.7, 30.6), textCoords = vector3(453.0, -982.6, 30.6), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Captain Office { objName = 'v_ilev_ph_gendoor002', objYaw = -180.0, objCoords = vector3(447.2, -980.6, 30.6), textCoords = vector3(447.2, -980.0, 30.6), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- To downstairs (double doors) { textCoords = vector3(444.1, -989.4, 30.6), textCoords2 = vector3(445.33, -989.4, 30.6), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 4, doors = { { objName = 'v_ilev_ph_gendoor005', objYaw = 180.0, objCoords = vector3(443.9, -989.0, 30.6) }, { objName = 'v_ilev_ph_gendoor005', objYaw = 0.0, objCoords = vector3(445.3, -988.7, 30.6) } } }, -- -- Mission Row Cells -- -- Main Cells { objName = 'v_ilev_ph_cellgate', objYaw = 0.0, objCoords = vector3(463.8, -992.6, 24.9), textCoords = vector3(463.3, -992.6, 25.1), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Cell 1 { objName = 'v_ilev_ph_cellgate', objYaw = -90.0, objCoords = vector3(462.3, -993.6, 24.9), textCoords = vector3(461.8, -993.3, 25.0), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Cell 2 { objName = 'v_ilev_ph_cellgate', objYaw = 90.0, objCoords = vector3(462.3, -998.1, 24.9), textCoords = vector3(461.8, -998.8, 25.0), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Cell 3 { objName = 'v_ilev_ph_cellgate', objYaw = 90.0, objCoords = vector3(462.7, -1001.9, 24.9), textCoords = vector3(461.8, -1002.4, 25.0), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- -- To Back -- { -- objName = 'v_ilev_gtdoor', -- objYaw = 0.0, -- objCoords = vector3(463.4, -1003.5, 25.0), -- textCoords = vector3(464.0, -1003.5, 25.5), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- -- Mission Row Back -- -- Back (double doors) { textCoords = vector3(467.94, -1014.4, 26.1), textCoords2 = vector3(469.4, -1014.4, 26.1), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 4, doors = { { objName = 'v_ilev_rc_door2', objYaw = 0.0, objCoords = vector3(467.3, -1014.4, 26.5) }, { objName = 'v_ilev_rc_door2', objYaw = 180.0, objCoords = vector3(469.9, -1014.4, 26.5) } } }, -- Back Gate { objName = 'hei_prop_station_gate', objYaw = 90.0, objCoords = vector3(488.8, -1017.2, 27.1), textCoords = vector3(488.8, -1020.2, 30.0), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 14, size = 2 }, -- -- Sandy Shores -- -- Entrance -- { -- objName = 'v_ilev_shrfdoor', -- objYaw = 30.0, -- objCoords = vector3(1855.1, 3683.5, 34.2), -- textCoords = vector3(1855.1, 3683.5, 34.27), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = false -- }, -- { -- textCoords = vector3(1850.32, 3683.52, 34.27), -- textCoords2 = vector3(1850.81, 3682.44, 34.27), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true, -- distance = 2.5, -- doors = { -- { -- -- objName = 'vesp_glav_door', -- objHash = -2023754432, -- objYaw = -60.0, -- objCoords = vector3(1850.32, 3683.52, 34.27), -- }, -- { -- -- objName = 'vesp_glav_door', -- objHash = -2023754432, -- objYaw = -240.0, -- objCoords = vector3(1850.81, 3682.44, 34.27), -- } -- } -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = -2023754432, -- objYaw = 210.0, -- objCoords = vector3(1857.25, 3690.29, 34.41), -- textCoords = vector3(1856.56, 3689.98, 34.27), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = -2023754432, -- objYaw = 210.0, -- objCoords = vector3(1857.25, 3690.29, 34.41), -- textCoords = vector3(1856.56, 3689.98, 34.27), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = 749848321, -- objYaw = 30.0, -- objCoords = vector3(1852.34, 3686.03, 30.26), -- textCoords = vector3(1852.34, 3686.03, 30.26), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = 631614199, -- objYaw = -60.0, -- objCoords = vector3(1859.34, 3687.21, 30.26), -- textCoords = vector3(1859.34, 3687.21, 30.26), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = 631614199, -- objYaw = -60.0, -- objCoords = vector3(1862.22, 3689.06, 30.26), -- textCoords = vector3(1862.22, 3689.06, 30.26), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = 631614199, -- objYaw = -60.0, -- objCoords = vector3(1860.31, 3692.26, 30.26), -- textCoords = vector3(1860.31, 3692.26, 30.26), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- -- objName = 'v_ilev_shrfdoor', -- objHash = 631614199, -- objYaw = -60.0, -- objCoords = vector3(1858.53, 3695.62, 30.26), -- textCoords = vector3(1858.53, 3695.62, 30.26), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true -- }, -- { -- textCoords = vector3(1847.88, 3690.2, 34.27), -- textCoords2 = vector3(1848.91, 3690.97, 34.27), -- authorizedJobs = { 'police', 'offpolice' }, -- locked = true, -- distance = 2.5, -- doors = { -- { -- -- objName = 'vesp_glav_door', -- objHash = -2023754432, -- objYaw = 30.0, -- objCoords = vector3(1847.82, 3690.31, 34.27), -- }, -- { -- -- objName = 'vesp_glav_door', -- objHash = -2023754432, -- objYaw = 208.0, -- objCoords = vector3(1848.74, 3690.8, 34.27), -- } -- } -- }, -- -- Paleto Bay -- -- Entrance (double doors) { textCoords = vector3(-441.57, 6012.16, 31.72), textCoords2 = vector3(-442.44, 6011.39, 31.72), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { -- objName = 'vesp_glav_door', objHash = -2023754432, objYaw = 225.0, objCoords = vector3(-441.01, 6012.79, 31.86), }, { -- objName = 'vesp_glav_door', objHash = -2023754432, objYaw = 45.0, objCoords = vector3(-443.46, 6012.47, 31.72), } } }, { textCoords = vector3(-448.36, 6007.10, 31.72), textCoords2 = vector3(-449.24, 6008.08, 31.72), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { -- objName = 'vesp_glav_door', objHash = -2023754432, objYaw = 135.0, objCoords = vector3(-447.72, 6006.70, 31.85), }, { -- objName = 'vesp_glav_door', objHash = -2023754432, objYaw = -45.0, objCoords = vector3(-449.56, 6008.53, 31.86), } } }, { -- objName = 'v_ilev_cor_doorlift01', objHash = 749848321, objYaw = -45.0, objCoords = vector3(-440.42, 5998.60, 31.86), textCoords = vector3(-440.84, 5999.0, 31.72), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 3, size = 1 }, { -- objName = 'v_ilev_cor_doorlift01', objHash = -1927754726, objYaw = 45.0, objCoords = vector3(-444.36, 6012.22, 28.13), textCoords = vector3(-444.68, 6011.53, 27.99), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 3, size = 1 }, { -- objName = 'v_ilev_cor_doorlift01', objHash = -2023754432, objYaw = -45.0, objCoords = vector3(-450.71, 6016.37, 31.86), textCoords = vector3(-450.46, 6015.90, 31.72), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 3, size = 1 }, { -- objName = 'v_ilev_cor_doorlift01', objHash = -2023754432, objYaw = 135.0, objCoords = vector3(-450.96, 6006.08, 31.99), textCoords = vector3(-451.57, 6006.52, 31.84), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 3, size = 1 }, -- -- Bolingbroke Penitentiary -- -- Entrance (Two big gates) { objName = 'prop_gate_prison_01', objCoords = vector3(1844.9, 2604.8, 44.6), textCoords = vector3(1844.9, 2608.5, 48.0), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 12, size = 2 }, { objName = 'prop_gate_prison_01', objCoords = vector3(1818.5, 2604.8, 44.6), textCoords = vector3(1818.5, 2608.4, 48.0), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 12, size = 2 }, { objName = 'prop_gate_prison_01', objCoords = vector3(1818.5, 2604.8, 44.6), textCoords = vector3(1818.5, 2608.4, 48.0), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 12, size = 2 }, --------------------------------PD Sotano---------------------------- -- Puerta doble entrada zona nueva { textCoords = vector3(465.46, -989.20, 24.7), textCoords2 = vector3(465.46, -990.70, 24.7), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'v_ilev_ph_gendoor005', objYaw = -90.0, objCoords = vector3(465.41, -990.64, 24.91), }, { objName = 'v_ilev_ph_gendoor005', objYaw = 90.0, objCoords = vector3(465.41, -989.40, 24.91) } } }, -- Puerta entre interrogatorios { objName = 'v_ilev_gtdoor', objYaw = 180.0, objCoords = vector3(473.86, -987.55, 24.91), textCoords = vector3(473.86, -987.55, 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = false }, -- Puertas interrogatorios { objName = 'v_ilev_gc_door01', objYaw = 0.0, objCoords = vector3(469.86, -987.55, 24.91), textCoords = vector3(469.48, -987.55, 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = false }, { objName = 'v_ilev_gc_door01', objYaw = 0.0, objCoords = vector3(478.21, -987.55, 24.91), textCoords = vector3(478.30, -987.55, 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = false }, -- Puertas celdas seguridad { objName = 'v_ilev_ph_cellgate02', objYaw = 0.0, objCoords = vector3(466.88, -997.36, 24.91), textCoords = vector3(467.18, -997.36, 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate02', objYaw = -90.0, objCoords = vector3(469.75, -999.83, 24.91), textCoords = vector3(469.75, -1000., 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate02', objYaw = 180.0, objCoords = vector3(468.22, -1003.51, 24.91), textCoords = vector3(468.22, -1003.51, 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- Atras doble { textCoords = vector3(464.6, -1003.5, 24.9), textCoords2 = vector3(463.3, -1003.5, 24.9), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'v_ilev_ph_gendoor005', objYaw = 180.0, objCoords = vector3(463.4, -1003.5, 25.0), }, { objName = 'v_ilev_ph_gendoor005', objYaw = 0.0, objCoords = vector3(464.4, -1003.5, 25.0) } } }, -- Puerta fotos { objName = 'v_ilev_gc_door01', objYaw = 180.0, objCoords = vector3(475.21, -992.35, 24.91), textCoords = vector3(476.21, -992.35, 25.91), authorizedJobs = { 'police', 'offpolice' }, locked = false }, ----------------------------------------------------------------------------- --------------------------VESPUCCI LSPD-------------------------------------- ----------------------------------------------------------------------------- -- Puertas exteriores { textCoords = vector3(-1090.73, -809.11, 19.37), textCoords2 = vector3(-1091.82, -809.96, 19.37), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 37.7, objCoords = vector3(-1090.73, -809.11, 19.37), }, { objName = 'vesp_glav_door', objYaw = -143.0, objCoords = vector3(-1091.82, -809.96, 19.37), } } }, { textCoords = vector3(-1093.08, -810.99, 19.37), textCoords2 = vector3(-1094.04, -811.62, 19.38), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 37.7, objCoords = vector3(-1093.08, -810.99, 19.37), }, { objName = 'vesp_glav_door', objYaw = -143.0, objCoords = vector3(-1094.04, -811.62, 19.38), } } }, { textCoords = vector3(-1111.59, -848.48, 13.48), textCoords2 = vector3(-1112.34, -847.49, 13.48), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 307.7, objCoords = vector3(-1111.59, -848.48, 13.48), }, { objName = 'vesp_glav_door', objYaw = 127.0, objCoords = vector3(-1112.34, -847.49, 13.48), } } }, { textCoords = vector3(-1062.18, -827.17, 19.42), textCoords2 = vector3(-1061.3, -828.33, 19.42), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 127.7, objCoords = vector3(-1062.18, -827.17, 19.42), }, { objName = 'vesp_glav_door', objYaw = -53.0, objCoords = vector3(-1061.3, -828.33, 19.42), } } }, { textCoords = vector3(-1108.38, -842.59, 19.33), textCoords2 = vector3(-1107.65, -843.66, 19.33), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 127.7, objCoords = vector3(-1108.71, -842.41, 19.33), }, { objName = 'vesp_glav_door', objYaw = -53.0, objCoords = vector3(-1107.65, -843.66, 19.33), } } }, { textCoords = vector3(-1106.65, -844.97, 19.33), textCoords2 = vector3(-1105.99, -845.86, 19.33), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 127.7, objCoords = vector3(-1106.65, -844.97, 19.33), }, { objName = 'vesp_glav_door', objYaw = -53.0, objCoords = vector3(-1105.99, -845.86, 19.33), } } }, { textCoords = vector3(-1111.1, -824.85, 19.33), textCoords2 = vector3(-1112.24, -825.68, 19.33), authorizedJobs = { 'police', 'offpolice' }, locked = false, distance = 2.5, doors = { { objName = 'vesp_glav_door', objYaw = 37.7, objCoords = vector3(-1111.1, -824.85, 19.33), }, { objName = 'vesp_glav_door', objYaw = -143.0, objCoords = vector3(-1112.24, -825.68, 19.33), } } }, -- Celdas { objName = 'v_ilev_ph_cellgate', objYaw = 217.7, objCoords = vector3(-1072.98, -826.92, 5.48), textCoords = vector3(-1072.98, -826.92, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1086.3, -827.3, 5.48), textCoords = vector3(-1086.3, -827.3, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1089.33, -829.69, 5.48), textCoords = vector3(-1089.33, -829.69, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1091.75, -826.35, 5.48), textCoords = vector3(-1091.75, -826.35, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1088.67, -824.09, 5.48), textCoords = vector3(-1088.67, -824.09, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1091.2, -820.97, 5.48), textCoords = vector3(-1091.2, -820.97, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1094.11, -823.18, 5.48), textCoords = vector3(-1094.11, -823.18, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = -52.4, objCoords = vector3(-1096.44, -820.11, 5.48), textCoords = vector3(-1096.44, -820.11, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_ph_cellgate', objYaw = 217.7, objCoords = vector3(-1087.04, -829.39, 5.48), textCoords = vector3(-1087.04, -829.39, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- -- vrata { textCoords = vector3(-1092.92, -817.88, 5.48), textCoords2 = vector3(-1093.73, -816.76, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'v_ilev_rc_door2', objYaw = 127.7, objCoords = vector3(-1092.92, -817.88, 5.48), }, { objName = 'v_ilev_rc_door2', objYaw = -53.0, objCoords = vector3(-1093.73, -816.76, 5.48), } } }, { objName = 'v_ilev_rc_door2', objYaw = -52.7, objCoords = vector3(-1078.04, -814.11, 5.48), textCoords = vector3(-1078.04, -814.11, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { objName = 'v_ilev_rc_door2', objYaw = -52.7, objCoords = vector3(-1081.78, -816.79, 5.48), textCoords = vector3(-1081.78, -816.79, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { textCoords = vector3(-1075.08, -822.82, 5.48), textCoords2 = vector3(-1074.07, -822.02, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'v_ilev_rc_door2', objYaw = 37.7, objCoords = vector3(-1075.08, -822.82, 5.48), }, { objName = 'v_ilev_rc_door2', objYaw = -143.0, objCoords = vector3(-1074.07, -822.02, 5.48), } } }, { textCoords = vector3(-1091.98, -834.41, 5.48), textCoords2 = vector3(-1091.19, -835.52, 5.48), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'v_ilev_rc_door2', objYaw = -53.0, objCoords = vector3(-1091.98, -834.41, 5.48), }, { objName = 'v_ilev_rc_door2', objYaw = 127.7, objCoords = vector3(-1091.19, -835.52, 5.48), } } }, { textCoords = vector3(-1089.98, -848.16, 4.88), textCoords2 = vector3(-1090.67, -847.21, 4.88), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'v_ilev_rc_door2', objYaw = 127.7, objCoords = vector3(-1089.98, -848.16, 4.88), }, { objName = 'v_ilev_rc_door2', objYaw = -53.0, objCoords = vector3(-1090.67, -847.21, 4.88), } } }, { -- objName = 'v_ilev_rc_door2', objHash = -147325430, objYaw = 37.0, objCoords = vector3(-1077.81, -830.57, 19.19), textCoords = vector3(-1077.4, -830.13, 19.04), authorizedJobs = { 'police', 'offpolice' }, locked = true }, { textCoords = vector3(-1057.18, -839.44, 5.14), textCoords2 = vector3(-1058.25, -840.17, 5.14), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'v_ilev_rc_door2', objYaw = 217.7, objCoords = vector3(-1057.18, -839.44, 5.14), }, { objName = 'v_ilev_rc_door2', objYaw = 36.7, objCoords = vector3(-1058.25, -840.17, 5.14), } } }, { objName = 'v_ilev_rc_door2', objYaw = 38.7, objCoords = vector3(-1108.12, -842.08, 13.68), textCoords = vector3(-1108.12, -842.08, 13.68), authorizedJobs = { 'police', 'offpolice' }, locked = true }, -- vrata kancelarija { textCoords = vector3(-1094.99, -844.11, 19.0), textCoords2 = vector3(-1094.47, -844.87, 19.0), authorizedJobs = { 'police', 'offpolice' }, locked = true, distance = 2.5, doors = { { objName = 'vesp_door1', objYaw = -52.3, objCoords = vector3(-1094.47, -844.87, 19.0), }, { objName = 'vesp_door1', objYaw = 127.0, objCoords = vector3(-1094.99, -844.11, 19.0), } } }, ------------------------------------------------------------------ -- MECANICO -- ------------------------------------------------------------------ -- Puerta Mecanico Bennys { objHash = -550347177, objCoords = vector3(-356.10, -134.76, 40.0), textCoords = vector3(-355.79, -134.61, 40.0), authorizedJobs = { 'mechanic', 'offmechanic'}, locked = true, distance = 15, size = 1 }, -- Puerta corredera { objHash = -2051450263, objYaw = 70.0, objCoords = vector3(-348.02, -133.80, 39.15), textCoords = vector3(-347.94, -133.20, 39.01), authorizedJobs = { 'mechanic', 'offmechanic'}, locked = true, }, { objHash = -2062889184, objYaw = 70.0, objCoords = vector3(-346.09, -123.44, 39.12), textCoords = vector3(-345.95, -122.69, 39.01), authorizedJobs = { 'mechanic', 'offmechanic'}, locked = true, }, ----------------------------------------------------------------------------- --------------------------PILLBOX EMS---------------------------------------- ----------------------------------------------------------------------------- -- Vestuario { objName = 'v_ilev_cor_firedoorwide', objYaw = -110.0, objCoords = vector3(337.62, -583.2, 28.79), textCoords = vector3(337.62, -583.2, 29.29), authorizedJobs = { 'ambulance', 'offambulance'}, locked = true }, -- Entrada Doble Izquierda { textCoords = vector3(334.31, -592.32, 28.79), authorizedJobs = { 'ambulance' }, locked = true, distance = 2, doors = { { objName = 'v_ilev_cor_firedoor', objYaw = -290.0, objCoords = vector3(334.40, -591.88, 28.79) }, { objName = 'v_ilev_cor_firedoor', objYaw = -110.0, objCoords = vector3(333.90, -592.88, 28.79) } } }, -- Entrada Doble Derecha { textCoords = vector3(342.11, -571.5, 29.79), authorizedJobs = { 'ambulance', 'offambulance' }, locked = true, distance = 2, doors = { { objName = 'v_ilev_cor_firedoor', objYaw = -110.0, objCoords = vector3(341.11, -571.95, 28.79) }, { objName = 'v_ilev_cor_firedoor', objYaw = -290.0, objCoords = vector3(342.00, -571.04, 28.79) } } }, -- Entrada a la Sala de visitas { textCoords = vector3(346.11, -573.0, 29.79), authorizedJobs = { 'ambulance' }, locked = true, distance = 2, doors = { { objName = 'v_ilev_cor_firedoor', objYaw = -110.0, objCoords = vector3(346.11, -573.95, 28.79) }, { objName = 'v_ilev_cor_firedoor', objYaw = -290.0, objCoords = vector3(347.00, -571.04, 28.79) } } }, -- Entrada Infermeria { textCoords = vector3(346.12, -568.44, 29.79), authorizedJobs = { 'ambulance' }, locked = false, distance = 2, doors = { { objName = 'v_ilev_cor_firedoor', objYaw = -20.0, objCoords = vector3(346.68, -568.66, 28.79) }, { objName = 'v_ilev_cor_firedoor', objYaw = -200.0, objCoords = vector3(345.72, -568.26, 28.79) } } }, -- Entrada Interior Derecha { textCoords = vector3(322.28, -566.52, 29.79), authorizedJobs = { 'ambulance' }, locked = true, distance = 2, doors = { { objName = 'v_ilev_cor_firedoor', objYaw = -20.0, objCoords = vector3(322.81, -566.7, 28.79) }, { objName = 'v_ilev_cor_firedoor', objYaw = -200.0, objCoords = vector3(321.6, -566.22, 28.79) } } }, -- Entrada Interior Derecha { textCoords = vector3(313.68, -580.99, 29.79), authorizedJobs = { 'ambulance' }, locked = true, distance = 2, doors = { { objName = 'v_ilev_cor_firedoor', objYaw = -200.0, objCoords = vector3(313.17, -580.52, 28.79) }, { objName = 'v_ilev_cor_firedoor', objYaw = -20.0, objCoords = vector3(314.6, -581.22, 28.79) } } }, -- Puerta corredera { objName = 'v_ilev_cor_doorlift01', objCoords = vector3(338.63, -594.75, 28.79), textCoords = vector3(338.61, -594.68, 29.79), authorizedJobs = { 'ambulance' }, locked = true, distance = 3, size = 1 }, ----------------------- TAXI { textCoords = vector3(907.43, -160.22, 74.31), textCoords2 = vector3(906.9, -161.20, 74.31), authorizedJobs = { 'taxi', 'offtaxi' }, locked = true, distance = 2.5, doors = { { -- objName = 'vesp_glav_door', objHash = -1318573207, objYaw = 238.0, objCoords = vector3(907.81, -159.63, 74.31), }, { -- objName = 'vesp_glav_door', objHash = 539363547, objYaw = -122.00, objCoords = vector3(906.43, -161.83, 74.31), } } }, { textCoords = vector3(894.39, -179.54, 74.7), textCoords2 = vector3(895.06, -178.71, 74.7), authorizedJobs = { 'taxi', 'offtaxi' }, locked = true, distance = 2.5, doors = { { -- objName = 'vesp_glav_door', objHash = -2023754432, objYaw = 58.0, objCoords = vector3(894.39, -179.54, 74.7), }, { -- objName = 'vesp_glav_door', objHash = -2023754432, objYaw = -122.0, objCoords = vector3(895.06, -178.71, 74.7), } } }, { -- objName = 'v_ilev_cor_doorlift01', objHash = -2023754432, objYaw = -30.0, objCoords = vector3(895.04, -144.18, 76.94), textCoords = vector3(896.04, -145.18, 76.94), authorizedJobs = { 'taxi', 'offtaxi' }, locked = true, distance = 3, size = 1 }, { -- objName = 'lr_prop_supermod_door_01', objHash = 2064385778, objCoords = vector3(899.10, -148.94, 78.96), textCoords = vector3(899.75, -148.16, 76.75), authorizedJobs = { 'taxi', 'offtaxi'}, locked = true, distance = 15, size = 1 }, }
function GM:HandlePlayerNoClipping( ply, velocity ) if ( ply:GetMoveType() != MOVETYPE_NOCLIP || ply:InVehicle() ) then if ( ply.m_bWasNoclipping ) then ply.m_bWasNoclipping = nil ply:AnimResetGestureSlot( GESTURE_SLOT_CUSTOM ) if ( CLIENT ) then ply:SetIK( true ) end end return end if ( !ply.m_bWasNoclipping ) then ply:AnimRestartGesture( GESTURE_SLOT_CUSTOM, ACT_GMOD_NOCLIP_LAYER, false ) if ( CLIENT ) then ply:SetIK( false ) end end return true end
local Syntactic_utils = { --Shift / Reduce Syntactic Table syntactic_table = function () --Creating the syntactic table from the LR(0) automaton local shift_reduce_table = {} for i = 1, 59 do shift_reduce_table[i] = {} end --Initializing the array shift_reduce_table --index 1-21 = terminais --index 22-36 = nonterminais for i = 1, 59 do --Table with description of the syntactic errors to aid in the debugging of the .cafe programmer shift_reduce_table[i][1] = { ['action'] = ' Bad syntax... inicio disposto de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][2] = { ['action'] = ' Bad syntax... varinicio disposto de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][3] = { ['action'] = ' Bad syntax... varfim disposto de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][4] = { ['action'] = ' Bad syntax... caractere ; disposto de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][5] = { ['action'] = ' Bad syntax... declaração inteiro incorreta.', ['state'] = nil,} shift_reduce_table[i][6] = { ['action'] = ' Bad syntax... declaração real incorreta.', ['state'] = nil,} shift_reduce_table[i][7] = { ['action'] = ' Bad syntax... declaração literal incorreta.', ['state'] = nil,} shift_reduce_table[i][8] = { ['action'] = ' Bad syntax... operação leia disposto de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][9] = { ['action'] = ' Bad syntax... id disposto de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][10] = { ['action'] = ' Bad syntax... operação escreva incorreta.', ['state'] = nil,} shift_reduce_table[i][11] = { ['action'] = ' Bad syntax... literal descrito de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][12] = { ['action'] = ' Bad syntax... número descrito de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][13] = { ['action'] = ' Bad syntax... descrito na atribuição.', ['state'] = nil,} shift_reduce_table[i][14] = { ['action'] = ' Bad syntax... operador aritmético incorreto.', ['state'] = nil,} shift_reduce_table[i][15] = { ['action'] = ' Bad syntax... estrutura de seleção incorreta.', ['state'] = nil,} shift_reduce_table[i][16] = { ['action'] = ' Bad syntax... caractere ( descrito de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][17] = { ['action'] = ' Bad syntax... caractere ) descrito de forma incorreta.', ['state'] = nil,} shift_reduce_table[i][18] = { ['action'] = ' Bad syntax... estrutura de seleção incorreta.', ['state'] = nil,} shift_reduce_table[i][19] = { ['action'] = ' Bad syntax... operador relacional incorreto.', ['state'] = nil,} shift_reduce_table[i][20] = { ['action'] = ' Bad syntax... estrutura de seleção incorreta.', ['state'] = nil,} shift_reduce_table[i][21] = { ['action'] = ' Bad syntax... fim disposto de forma incorreta', ['state'] = nil,} shift_reduce_table[i][22] = { ['action'] = ' Bad syntax...', ['state'] = nil,} for j = 23, 36 do shift_reduce_table[i][j] = { ['action'] = ' Bad syntax...', ['state'] = nil,} end end --state 1 shift_reduce_table[1][1] = { ['action'] = 'Shift', ['state'] = 3,} --terminal inicio shift_reduce_table[1][23] = { ['action'] = nil, ['state'] = 2,} --nonterminal P --state 2 --reduce state-- shift_reduce_table[2][22] = { ['action'] = 'Accept', ['state'] = true,} -- terminal $ --state 3 shift_reduce_table[3][2] = { ['action'] = 'Shift', ['state'] = 5,} --terminal varinicio shift_reduce_table[3][24] = { ['action'] = nil, ['state'] = 4,} --nonterminal V --state 4 shift_reduce_table[4][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[4][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[4][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[4][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[4][21] = { ['action'] = 'Shift', ['state'] = 10,} -- terminal fim shift_reduce_table[4][25] = { ['action'] = nil, ['state'] = 6,} --nonterminal A shift_reduce_table[4][29] = { ['action'] = nil, ['state'] = 7,} --nonterminal ES shift_reduce_table[4][31] = { ['action'] = nil, ['state'] = 8,} --nonterminal CMD shift_reduce_table[4][34] = { ['action'] = nil, ['state'] = 9,} --nonterminal COND shift_reduce_table[4][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO --state 5 shift_reduce_table[5][3] = { ['action'] = 'Shift', ['state'] = 18,} --termial varfim shift_reduce_table[5][9] = { ['action'] = 'Shift', ['state'] = 19,} --termial id shift_reduce_table[5][26] = { ['action'] = nil, ['state'] = 16,} --nonterminal LV shift_reduce_table[5][27] = { ['action'] = nil, ['state'] = 17,} --nonterminal D --state 6 --reduce state-- shift_reduce_table[6][22] = { ['action'] = 'Reduce', ['state'] = 2,} --termial $ --state 7 shift_reduce_table[7][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[7][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[7][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[7][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[7][21] = { ['action'] = 'Shift', ['state'] = 10,} -- terminal fim shift_reduce_table[7][25] = { ['action'] = nil, ['state'] = 20,} --nonterminal A shift_reduce_table[7][29] = { ['action'] = nil, ['state'] = 7,} --nonterminal ES shift_reduce_table[7][31] = { ['action'] = nil, ['state'] = 8,} --nonterminal CMD shift_reduce_table[7][34] = { ['action'] = nil, ['state'] = 9,} --nonterminal COND shift_reduce_table[7][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO --state 8 shift_reduce_table[8][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[8][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[8][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[8][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[8][21] = { ['action'] = 'Shift', ['state'] = 10,} -- terminal fim shift_reduce_table[8][25] = { ['action'] = nil, ['state'] = 21,} --nonterminal A shift_reduce_table[8][29] = { ['action'] = nil, ['state'] = 7,} --nonterminal ES shift_reduce_table[8][31] = { ['action'] = nil, ['state'] = 8,} --nonterminal CMD shift_reduce_table[8][34] = { ['action'] = nil, ['state'] = 9,} --nonterminal COND shift_reduce_table[8][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO --state 9 shift_reduce_table[9][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[9][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[9][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[9][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[9][21] = { ['action'] = 'Shift', ['state'] = 10,} -- terminal fim shift_reduce_table[9][25] = { ['action'] = nil, ['state'] = 22,} --nonterminal A shift_reduce_table[9][29] = { ['action'] = nil, ['state'] = 7,} --nonterminal ES shift_reduce_table[9][31] = { ['action'] = nil, ['state'] = 8,} --nonterminal CMD shift_reduce_table[9][34] = { ['action'] = nil, ['state'] = 9,} --nonterminal COND shift_reduce_table[9][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO --state 10 --reduce state-- shift_reduce_table[10][22] = { ['action'] = 'Reduce', ['state'] = 30,} --termial $ --state 11 shift_reduce_table[11][9] = { ['action'] = 'Shift', ['state'] = 23,} -- terminal id --state 12 shift_reduce_table[12][9] = { ['action'] = 'Shift', ['state'] = 27,} -- terminal id shift_reduce_table[12][11] = { ['action'] = 'Shift', ['state'] = 25,} -- terminal literal shift_reduce_table[12][12] = { ['action'] = 'Shift', ['state'] = 26,} -- terminal num shift_reduce_table[12][30] = { ['action'] = nil, ['state'] = 24,} --nonterminal ARG --state 13 shift_reduce_table[13][13] = { ['action'] = 'Shift', ['state'] = 28,} -- terminal rcb --state 14 shift_reduce_table[14][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[14][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[14][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[14][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[14][20] = { ['action'] = 'Shift', ['state'] = 58,} -- terminal fimse shift_reduce_table[14][29] = { ['action'] = nil, ['state'] = 30,} --nonterminal ES shift_reduce_table[14][31] = { ['action'] = nil, ['state'] = 31,} --nonterminal CMD shift_reduce_table[14][34] = { ['action'] = nil, ['state'] = 32,} --nonterminal COND shift_reduce_table[14][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO shift_reduce_table[14][37] = { ['action'] = nil, ['state'] = 29,} --nonterminal CORPO --state 15 shift_reduce_table[15][16] = { ['action'] = 'Shift', ['state'] = 33,} -- terminal ( --state 16 --reduce state shift_reduce_table[16][8] = { ['action'] = 'Reduce', ['state'] = 3,} --termial leia shift_reduce_table[16][9] = { ['action'] = 'Reduce', ['state'] = 3,} --termial id shift_reduce_table[16][10] = { ['action'] = 'Reduce', ['state'] = 3,} --termial escreva shift_reduce_table[16][15] = { ['action'] = 'Reduce', ['state'] = 3,} --termial se shift_reduce_table[16][21] = { ['action'] = 'Reduce', ['state'] = 3,} --termial fim --state 17 shift_reduce_table[17][3] = { ['action'] = 'Shift', ['state'] = 18,} -- terminal varfim shift_reduce_table[17][9] = { ['action'] = 'Shift', ['state'] = 19,} -- terminal id shift_reduce_table[17][26] = { ['action'] = nil, ['state'] = 34,} --nonterminal LV shift_reduce_table[17][27] = { ['action'] = nil, ['state'] = 17,} --nonterminal D --state 18 shift_reduce_table[18][4] = { ['action'] = 'Shift', ['state'] = 35,} -- terminal ; --state 19 shift_reduce_table[19][5] = { ['action'] = 'Shift', ['state'] = 37,} -- terminal varfim shift_reduce_table[19][6] = { ['action'] = 'Shift', ['state'] = 38,} -- terminal varfim shift_reduce_table[19][7] = { ['action'] = 'Shift', ['state'] = 39,} -- terminal varfim shift_reduce_table[19][28] = { ['action'] = nil, ['state'] = 36,} --nonterminal TIPO --state 20 --reduce state-- shift_reduce_table[20][22] = { ['action'] = 'Reduce', ['state'] = 10,} --termial $ --state 21 --reduce state-- shift_reduce_table[21][22] = { ['action'] = 'Reduce', ['state'] = 16,} --termial $ --state 22 --reduce state-- shift_reduce_table[22][22] = { ['action'] = 'Reduce', ['state'] = 22,} --termial $ --state 23 shift_reduce_table[23][4] = { ['action'] = 'Shift', ['state'] = 40,} -- terminal ; --state 24 shift_reduce_table[24][4] = { ['action'] = 'Shift', ['state'] = 59,} -- terminal ; --state 25 --reduce state shift_reduce_table[25][4] = { ['action'] = 'Reduce', ['state'] = 13,} --termial ; --state 26 --reduce state shift_reduce_table[26][4] = { ['action'] = 'Reduce', ['state'] = 14,} --termial ; --state 27 --reduce state shift_reduce_table[27][4] = { ['action'] = 'Reduce', ['state'] = 15,} --termial ; --state 28 shift_reduce_table[28][9] = { ['action'] = 'Shift', ['state'] = 43,} -- terminal id shift_reduce_table[28][12] = { ['action'] = 'Shift', ['state'] = 44,} -- terminal num shift_reduce_table[28][32] = { ['action'] = nil, ['state'] = 41,} --nonterminal LD shift_reduce_table[28][33] = { ['action'] = nil, ['state'] = 42,} --nonterminal OPRD --state 29 --reduce state shift_reduce_table[29][8] = { ['action'] = 'Reduce', ['state'] = 23,} --termial leia shift_reduce_table[29][9] = { ['action'] = 'Reduce', ['state'] = 23,} --termial id shift_reduce_table[29][10] = { ['action'] = 'Reduce', ['state'] = 23,} --termial escreva shift_reduce_table[29][15] = { ['action'] = 'Reduce', ['state'] = 23,} --termial se shift_reduce_table[29][20] = { ['action'] = 'Reduce', ['state'] = 23,} --termial fimse shift_reduce_table[29][21] = { ['action'] = 'Reduce', ['state'] = 23,} --termial fim --state 30 shift_reduce_table[30][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[30][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[30][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[30][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[30][20] = { ['action'] = 'Shift', ['state'] = 58,} -- terminal fimse shift_reduce_table[30][29] = { ['action'] = nil, ['state'] = 30,} --nonterminal ES shift_reduce_table[30][31] = { ['action'] = nil, ['state'] = 31,} --nonterminal CMD shift_reduce_table[30][34] = { ['action'] = nil, ['state'] = 32,} --nonterminal COND shift_reduce_table[30][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO shift_reduce_table[30][37] = { ['action'] = nil, ['state'] = 45,} --nonterminal CORPO --state 31 shift_reduce_table[31][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[31][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[31][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[31][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[31][20] = { ['action'] = 'Shift', ['state'] = 58,} -- terminal fimse shift_reduce_table[31][29] = { ['action'] = nil, ['state'] = 30,} --nonterminal ES shift_reduce_table[31][31] = { ['action'] = nil, ['state'] = 31,} --nonterminal CMD shift_reduce_table[31][34] = { ['action'] = nil, ['state'] = 32,} --nonterminal COND shift_reduce_table[31][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO shift_reduce_table[31][37] = { ['action'] = nil, ['state'] = 46,} --nonterminal CORPO --state 32 shift_reduce_table[32][8] = { ['action'] = 'Shift', ['state'] = 11,} --terminal leia shift_reduce_table[32][9] = { ['action'] = 'Shift', ['state'] = 13,} --terminal id shift_reduce_table[32][10] = { ['action'] = 'Shift', ['state'] = 12,} --terminal escreva shift_reduce_table[32][15] = { ['action'] = 'Shift', ['state'] = 15,} -- terminal se shift_reduce_table[32][20] = { ['action'] = 'Shift', ['state'] = 58,} -- terminal fimse shift_reduce_table[32][29] = { ['action'] = nil, ['state'] = 30,} --nonterminal ES shift_reduce_table[32][31] = { ['action'] = nil, ['state'] = 31,} --nonterminal CMD shift_reduce_table[32][34] = { ['action'] = nil, ['state'] = 32,} --nonterminal COND shift_reduce_table[32][35] = { ['action'] = nil, ['state'] = 14,} --nonterminal CABEÇALHO shift_reduce_table[32][37] = { ['action'] = nil, ['state'] = 47,} --nonterminal CORPO --state 33 shift_reduce_table[33][9] = { ['action'] = 'Shift', ['state'] = 43,} -- terminal id shift_reduce_table[33][12] = { ['action'] = 'Shift', ['state'] = 44,} -- terminal num shift_reduce_table[33][33] = { ['action'] = nil, ['state'] = 49,} --nonterminal OPRD shift_reduce_table[33][36] = { ['action'] = nil, ['state'] = 48,} --nonterminal EXP_R --state 34 --reduce state shift_reduce_table[34][8] = { ['action'] = 'Reduce', ['state'] = 4,} --termial leia shift_reduce_table[34][9] = { ['action'] = 'Reduce', ['state'] = 4,} --termial id shift_reduce_table[34][10] = { ['action'] = 'Reduce', ['state'] = 4,} --termial escreva shift_reduce_table[34][15] = { ['action'] = 'Reduce', ['state'] = 4,} --termial se shift_reduce_table[34][21] = { ['action'] = 'Reduce', ['state'] = 4,} --termial fim --state 35 --reduce state shift_reduce_table[35][8] = { ['action'] = 'Reduce', ['state'] = 5,} --termial leia shift_reduce_table[35][9] = { ['action'] = 'Reduce', ['state'] = 5,} --termial id shift_reduce_table[35][10] = { ['action'] = 'Reduce', ['state'] = 5,} --termial escreva shift_reduce_table[35][15] = { ['action'] = 'Reduce', ['state'] = 5,} --termial se shift_reduce_table[35][21] = { ['action'] = 'Reduce', ['state'] = 5,} --termial fim --state 36 shift_reduce_table[36][4] = { ['action'] = 'Shift', ['state'] = 50,} --termial ; --state 37 --reduce state shift_reduce_table[37][4] = { ['action'] = 'Reduce', ['state'] = 7,} --termial ; --state 38 --reduce state shift_reduce_table[38][4] = { ['action'] = 'Reduce', ['state'] = 8,} --termial ; --state 39 --reduce state shift_reduce_table[39][4] = { ['action'] = 'Reduce', ['state'] = 9,} --termial ; --state 40 --reduce state shift_reduce_table[40][8] = { ['action'] = 'Reduce', ['state'] = 11,} --termial leia shift_reduce_table[40][9] = { ['action'] = 'Reduce', ['state'] = 11,} --termial id shift_reduce_table[40][10] = { ['action'] = 'Reduce', ['state'] = 11,} --termial escreva shift_reduce_table[40][15] = { ['action'] = 'Reduce', ['state'] = 11,} --termial se shift_reduce_table[40][20] = { ['action'] = 'Reduce', ['state'] = 11,} --termial fimse shift_reduce_table[40][21] = { ['action'] = 'Reduce', ['state'] = 11,} --termial fim --state 41 shift_reduce_table[41][4] = { ['action'] = 'Shift', ['state'] = 51,} --termial ; --state 42 --reduce state shift_reduce_table[42][4] = { ['action'] = 'Reduce', ['state'] = 19,} --termial ; shift_reduce_table[42][14] = { ['action'] = 'Shift', ['state'] = 52,} --termial opm --state 43 --reduce state shift_reduce_table[43][4] = { ['action'] = 'Reduce', ['state'] = 20,} --termial ; shift_reduce_table[43][14] = { ['action'] = 'Reduce', ['state'] = 20,} --termial opm shift_reduce_table[43][17] = { ['action'] = 'Reduce', ['state'] = 20,} --termial ) shift_reduce_table[43][19] = { ['action'] = 'Reduce', ['state'] = 20,} --termial opr --state 44 --reduce state shift_reduce_table[44][4] = { ['action'] = 'Reduce', ['state'] = 21,} --termial ; shift_reduce_table[44][14] = { ['action'] = 'Reduce', ['state'] = 21,} --termial opm shift_reduce_table[44][17] = { ['action'] = 'Reduce', ['state'] = 21,} --termial ) shift_reduce_table[44][19] = { ['action'] = 'Reduce', ['state'] = 21,} --termial opr --state 45 --reduce state shift_reduce_table[45][8] = { ['action'] = 'Reduce', ['state'] = 26,} --termial leia shift_reduce_table[45][9] = { ['action'] = 'Reduce', ['state'] = 26,} --termial id shift_reduce_table[45][10] = { ['action'] = 'Reduce', ['state'] = 26,} --termial escreva shift_reduce_table[45][15] = { ['action'] = 'Reduce', ['state'] = 26,} --termial se shift_reduce_table[45][20] = { ['action'] = 'Reduce', ['state'] = 26,} --termial fimse shift_reduce_table[45][21] = { ['action'] = 'Reduce', ['state'] = 26,} --termial fim --state 46 --reduce state shift_reduce_table[46][8] = { ['action'] = 'Reduce', ['state'] = 27,} --termial leia shift_reduce_table[46][9] = { ['action'] = 'Reduce', ['state'] = 27,} --termial id shift_reduce_table[46][10] = { ['action'] = 'Reduce', ['state'] = 27,} --termial escreva shift_reduce_table[46][15] = { ['action'] = 'Reduce', ['state'] = 27,} --termial se shift_reduce_table[46][20] = { ['action'] = 'Reduce', ['state'] = 27,} --termial fimse shift_reduce_table[46][21] = { ['action'] = 'Reduce', ['state'] = 27,} --termial fim --state 47 --reduce state shift_reduce_table[47][8] = { ['action'] = 'Reduce', ['state'] = 28,} --termial leia shift_reduce_table[47][9] = { ['action'] = 'Reduce', ['state'] = 28,} --termial id shift_reduce_table[47][10] = { ['action'] = 'Reduce', ['state'] = 28,} --termial escreva shift_reduce_table[47][15] = { ['action'] = 'Reduce', ['state'] = 28,} --termial se shift_reduce_table[47][20] = { ['action'] = 'Reduce', ['state'] = 28,} --termial fimse shift_reduce_table[47][21] = { ['action'] = 'Reduce', ['state'] = 28,} --termial fim --state 48 shift_reduce_table[48][17] = { ['action'] = 'Shift', ['state'] = 53,} --termial ) --state 49 shift_reduce_table[49][19] = { ['action'] = 'Shift', ['state'] = 54,} --termial opr --state 50 --reduce state shift_reduce_table[50][3] = { ['action'] = 'Reduce', ['state'] = 6,} --termial varfim shift_reduce_table[50][9] = { ['action'] = 'Reduce', ['state'] = 6,} --termial id --state 51 --reduce state shift_reduce_table[51][8] = { ['action'] = 'Reduce', ['state'] = 17,} --termial leia shift_reduce_table[51][9] = { ['action'] = 'Reduce', ['state'] = 17,} --termial id shift_reduce_table[51][10] = { ['action'] = 'Reduce', ['state'] = 17,} --termial escreva shift_reduce_table[51][15] = { ['action'] = 'Reduce', ['state'] = 17,} --termial se shift_reduce_table[51][20] = { ['action'] = 'Reduce', ['state'] = 17,} --termial fimse shift_reduce_table[51][21] = { ['action'] = 'Reduce', ['state'] = 17,} --termial fim --state 52 shift_reduce_table[52][9] = { ['action'] = 'Shift', ['state'] = 43,} -- terminal id shift_reduce_table[52][12] = { ['action'] = 'Shift', ['state'] = 44,} -- terminal num shift_reduce_table[52][33] = { ['action'] = nil, ['state'] = 55,} --nonterminal OPRD --state 53 shift_reduce_table[53][18] = { ['action'] = 'Shift', ['state'] = 56,} -- terminal entao --state 54 shift_reduce_table[54][9] = { ['action'] = 'Shift', ['state'] = 43,} -- terminal id shift_reduce_table[54][12] = { ['action'] = 'Shift', ['state'] = 44,} -- terminal num shift_reduce_table[54][33] = { ['action'] = nil, ['state'] = 57,} --nonterminal OPRD --state 55 --reduce state shift_reduce_table[55][4] = { ['action'] = 'Reduce', ['state'] = 18,} --termial ; --state 56 --reduce state shift_reduce_table[56][8] = { ['action'] = 'Reduce', ['state'] = 24,} --termial leia shift_reduce_table[56][9] = { ['action'] = 'Reduce', ['state'] = 24,} --termial id shift_reduce_table[56][10] = { ['action'] = 'Reduce', ['state'] = 24,} --termial escreva shift_reduce_table[56][15] = { ['action'] = 'Reduce', ['state'] = 24,} --termial se shift_reduce_table[56][20] = { ['action'] = 'Reduce', ['state'] = 24,} --termial fimse --state 57 --reduce state shift_reduce_table[57][17] = { ['action'] = 'Reduce', ['state'] = 25,} --termial ) --state 58 --reduce state shift_reduce_table[58][8] = { ['action'] = 'Reduce', ['state'] = 29,} --termial leia shift_reduce_table[58][9] = { ['action'] = 'Reduce', ['state'] = 29,} --termial id shift_reduce_table[58][10] = { ['action'] = 'Reduce', ['state'] = 29,} --termial escreva shift_reduce_table[58][15] = { ['action'] = 'Reduce', ['state'] = 29,} --termial se shift_reduce_table[58][20] = { ['action'] = 'Reduce', ['state'] = 29,} --termial fimse shift_reduce_table[58][21] = { ['action'] = 'Reduce', ['state'] = 29,} --termial fim --state 59 --reduce state shift_reduce_table[59][8] = { ['action'] = 'Reduce', ['state'] = 12,} --termial leia shift_reduce_table[59][9] = { ['action'] = 'Reduce', ['state'] = 12,} --termial id shift_reduce_table[59][10] = { ['action'] = 'Reduce', ['state'] = 12,} --termial escreva shift_reduce_table[59][15] = { ['action'] = 'Reduce', ['state'] = 12,} --termial se shift_reduce_table[59][20] = { ['action'] = 'Reduce', ['state'] = 12,} --termial fimse shift_reduce_table[59][21] = { ['action'] = 'Reduce', ['state'] = 12,} --termial fim return shift_reduce_table end, glc_grammar = function () --cafe Language Context-Free Grammar local glc = { [1] = { ['symbol'] = 'S', ['production'] = {'P',}, }, [2] = { ['symbol'] = 'P', ['production'] = {'inicio', 'V', 'A',}, }, [3] = { ['symbol'] = 'V', ['production'] = {'varinicio', 'LV',}, }, [4] = { ['symbol'] = 'LV', ['production'] = {'D', 'LV',}, }, [5] = { ['symbol'] = 'LV', ['production'] = {'varfim', 'pt_v',}, }, [6] = { ['symbol'] = 'D', ['production'] = {'id', 'TIPO', 'pt_v',}, }, [7] = { ['symbol'] = 'TIPO', ['production'] = {'int',}, }, [8] = { ['symbol'] = 'TIPO', ['production'] = {'real',}, }, [9] = { ['symbol'] = 'TIPO', ['production'] = {'lit',}, }, [10] = { ['symbol'] = 'A', ['production'] = {'ES', 'A',}, }, [11] = { ['symbol'] = 'ES', ['production'] = {'leia', 'id', 'pt_v',}, }, [12] = { ['symbol'] = 'ES', ['production'] = {'escreva', 'ARG', 'pt_v',}, }, [13] = { ['symbol'] = 'ARG', ['production'] = {'literal',}, }, [14] = { ['symbol'] = 'ARG', ['production'] = {'num',}, }, [15] = { ['symbol'] = 'ARG', ['production'] = {'id',}, }, [16] = { ['symbol'] = 'A', ['production'] = {'CMD', 'A',}, }, [17] = { ['symbol'] = 'CMD', ['production'] = {'id', 'rcb', 'LD', 'pt_v',}, }, [18] = { ['symbol'] = 'LD', ['production'] = {'OPRD', 'opm', 'OPRD',}, }, [19] = { ['symbol'] = 'LD', ['production'] = {'OPRD',}, }, [20] = { ['symbol'] = 'OPRD', ['production'] = {'id',}, }, [21] = { ['symbol'] = 'OPRD', ['production'] = {'num',}, }, [22] = { ['symbol'] = 'A', ['production'] = {'COND', 'A',}, }, [23] = { ['symbol'] = 'COND', ['production'] = {'CABECALHO', 'CORPO',}, }, [24] = { ['symbol'] = 'CABECALHO', ['production'] = {'se', 'ab_p', 'EXP_R', 'fc_p', 'entao',}, }, [25] = { ['symbol'] = 'EXP_R', ['production'] = {'OPRD', 'opr', 'OPRD',}, }, [26] = { ['symbol'] = 'CORPO', ['production'] = {'ES', 'CORPO',}, }, [27] = { ['symbol'] = 'CORPO', ['production'] = {'CMD', 'CORPO',}, }, [28] = { ['symbol'] = 'CORPO', ['production'] = {'COND', 'CORPO',}, }, [29] = { ['symbol'] = 'CORPO', ['production'] = {'fimse',}, }, [30] = { ['symbol'] = 'A', ['production'] = {'fim',}, }, } return glc end, terminals_list = function () --list with all the terminals of the grammar local glc = { [1] = 'inicio', [2] = 'varinicio', [3] = 'varfim', [4] = 'pt_v', [5] = 'int', [6] = 'real', [7] = 'lit', [8] = 'leia', [9] = 'id', [10] = 'escreva', [11] = 'literal', [12] = 'num', [13] = 'rcb', [14] = 'opm', [15] = 'se', [16] = 'ab_p', [17] = 'fc_p', [18] = 'entao', [19] = 'opr', [20] = 'fimse', [21] = 'fim', [22] = '$', } return glc end, nonterminals_list = function () --list with all non-terminals of the grammar local glc = { [1] = 'P', [2] = 'V', [3] = 'A', [4] = 'LV', [5] = 'D', [6] = 'TIPO', [7] = 'ES', [8] = 'ARG', [9] = 'CMD', [10] = 'LD', [11] = 'OPRD', [12] = 'COND', [13] = 'CABECALHO', [14] = 'EXP_R', [15] = 'CORPO', } return glc end } return Syntactic_utils
--- Visual Display. -- A UTF-8 based text display. -- @module ROT.TextDisplay local ROT = require((...):gsub(('.[^./\\]*'):rep(1) .. '$', '')) local TextDisplay = ROT.Class:extend("TextDisplay") --- Constructor. -- The display constructor. Called when ROT.TextDisplay:new() is called. -- @tparam[opt=80] int w Width of display in number of characters -- @tparam[opt=24] int h Height of display in number of characters -- @tparam[opt] string|file|data font Any valid object accepted by love.graphics.newFont -- @tparam[opt=10] int size font size -- @tparam[opt] table dfg Default foreground color as a table defined as {r,g,b,a} -- @tparam[opt] table dbg Default background color -- @tparam[opt=false] boolean fullOrFlags In Love 0.8.0: Use fullscreen In Love 0.9.0: a table defined for love.graphics.setMode -- @tparam[opt=false] boolean vsync Use vsync -- @tparam[opt=0] int fsaa Number of fsaa passes -- @return nil function TextDisplay:init(w, h, font, size, dfg, dbg, fullOrFlags, vsync, fsaa) self.graphics =love.graphics self._fontSize=size or 10 self._font =font and self.graphics.newFont(font, size) or self.graphics.newFont(self._fontSize) self.graphics.setFont(self._font) self._charWidth =self._font:getWidth('W') self._charHeight =self._font:getHeight() self._widthInChars =w and w or 80 self._heightInChars=h and h or 24 local w=love.window or self.graphics w.setMode(self._charWidth*self._widthInChars, self._charHeight*self._heightInChars, fullOrFlags, vsync, fsaa) self.defaultForegroundColor=dfg and dfg or { 235, 235, 235 } self.defaultBackgroundColor=dbg and dbg or { 15, 15, 15 } self.graphics.setBackgroundColor(self.defaultBackgroundColor) self._canvas=self.graphics.newCanvas(self._charWidth*self._widthInChars, self._charHeight*self._heightInChars) self._chars ={} self._backgroundColors ={} self._foregroundColors ={} self._oldChars ={} self._oldBackgroundColors={} self._oldForegroundColors={} for x=1,self._widthInChars do self._chars[x] = {} self._backgroundColors[x] = {} self._foregroundColors[x] = {} self._oldChars[x] = {} self._oldBackgroundColors[x] = {} self._oldForegroundColors[x] = {} for y=1,self._heightInChars do self._chars[x][y] = ' ' self._backgroundColors[x][y] = self.defaultBackgroundColor self._foregroundColors[x][y] = self.defaultForegroundColor self._oldChars[x][y] = nil self._oldBackgroundColors[x][y] = nil self._oldForegroundColors[x][y] = nil end end end function TextDisplay:draw() self.graphics.setCanvas(self._canvas) for x=1,self._widthInChars do for y=1,self._heightInChars do local c =self._chars[x][y] local bg=self._backgroundColors[x][y] local fg=self._foregroundColors[x][y] local px=(x-1)*self._charWidth local py=(y-1)*self._charHeight if self._oldChars[x][y] ~= c or self._oldBackgroundColors[x][y] ~= bg or self._oldForegroundColors[x][y] ~= fg then self:_setColor(bg) self.graphics.rectangle('fill', px, py, self._charWidth, self._charHeight) self:_setColor(fg) self.graphics.print(c, px, py) self._oldChars[x][y] = c self._oldBackgroundColors[x][y] = bg self._oldForegroundColors[x][y] = fg end end end self.graphics.setCanvas() self.graphics.setColor(255,255,255,255) self.graphics.draw(self._canvas) end --- Contains point. -- Returns true if point x,y can be drawn to display. function TextDisplay:contains(x, y) return x>0 and x<=self:getWidth() and y>0 and y<=self:getHeight() end function TextDisplay:getCharHeight() return self._charHeight end function TextDisplay:getCharWidth() return self._charWidth end function TextDisplay:getWidth() return self:getWidthInChars() end function TextDisplay:getHeight() return self:getHeightInChars() end function TextDisplay:getHeightInChars() return self._heightInChars end function TextDisplay:getWidthInChars() return self._widthInChars end function TextDisplay:getDefaultBackgroundColor() return self.defaultBackgroundColor end function TextDisplay:getDefaultForegroundColor() return self.defaultForegroundColor end --- Get a character. -- returns the character being displayed at position x, y -- @tparam int x The x-position of the character -- @tparam int y The y-position of the character -- @treturn string The character function TextDisplay:getCharacter(x, y) local c=self._chars[x][y] return c and string.char(c) or nil end --- Get a background color. -- returns the current background color of the character written to position x, y -- @tparam int x The x-position of the character -- @tparam int y The y-position of the character -- @treturn table The background color as a table defined as {r,g,b,a} function TextDisplay:getBackgroundColor(x, y) return self._backgroundColors[x][y] end --- Get a foreground color. -- returns the current foreground color of the character written to position x, y -- @tparam int x The x-position of the character -- @tparam int y The y-position of the character -- @treturn table The foreground color as a table defined as {r,g,b,a} function TextDisplay:getForegroundColor(x, y) return self._foregroundColors[x][y] end --- Set Default Background Color. -- Sets the background color to be used when it is not provided -- @tparam table c The background color as a table defined as {r,g,b,a} function TextDisplay:setDefaultBackgroundColor(c) self.defaultBackgroundColor=c and c or self.defaultBackgroundColor end --- Set Defaul Foreground Color. -- Sets the foreground color to be used when it is not provided -- @tparam table c The foreground color as a table defined as {r,g,b,a} function TextDisplay:setDefaultForegroundColor(c) self.defaultForegroundColor=c and c or self.defaultForegroundColor end --- Clear the screen. -- By default wipes the screen to the default background color. -- You can provide a character, x-position, y-position, width, height, fore-color and back-color -- and write the same character to a portion of the screen -- @tparam[opt=' '] string c A character to write to the screen - may fail for strings with a length > 1 -- @tparam[opt=1] int x The x-position from which to begin the wipe -- @tparam[opt=1] int y The y-position from which to begin the wipe -- @tparam[opt] int w The number of chars to wipe in the x direction -- @tparam[opt] int h Then number of chars to wipe in the y direction -- @tparam[opt] table fg The color used to write the provided character -- @tparam[opt] table bg the color used to fill in the background of the cleared space function TextDisplay:clear(c, x, y, w, h, fg, bg) c = c or ' ' w = w or self._widthInChars local s = c:rep(self._widthInChars) x =self:_validateX(x, s) y =self:_validateY(y) h =self:_validateHeight(y, h) fg=self:_validateForegroundColor(fg) bg=self:_validateBackgroundColor(bg) for i=0,h-1 do self:_writeValidatedString(s, x, y+i, fg, bg) end end --- Clear canvas. -- runs the clear method of the Love2D canvas object being used to write to the screen function TextDisplay:clearCanvas() self._canvas:clear() end --- Write. -- Writes a string to the screen -- @tparam string s The string to be written -- @tparam[opt=1] int x The x-position where the string will be written -- @tparam[opt=1] int y The y-position where the string will be written -- @tparam[opt] table fg The color used to write the provided string -- @tparam[opt] table bg the color used to fill in the string's background function TextDisplay:write(s, x, y, fg, bg) ROT.assert(s, "Display:write() must have string as param") x = self:_validateX(x, s) y = self:_validateY(y, s) fg= self:_validateForegroundColor(fg) bg= self:_validateBackgroundColor(bg) self:_writeValidatedString(s, x, y, fg, bg) end --- Write Center. -- write a string centered on the middle of the screen -- @tparam string s The string to be written -- @tparam[opt=1] int y The y-position where the string will be written -- @tparam[opt] table fg The color used to write the provided string -- @tparam[opt] table bg the color used to fill in the string's background function TextDisplay:writeCenter(s, y, fg, bg) ROT.assert(s, "Display:writeCenter() must have string as param") ROT.assert(#s<self._widthInChars, "Length of ",s," is greater than screen width") y = y and y or math.floor((self:getHeightInChars() - 1) / 2) y = self:_validateY(y, s) fg= self:_validateForegroundColor(fg) bg= self:_validateBackgroundColor(bg) local x=math.floor((self._widthInChars-#s)/2) self:_writeValidatedString(s, x, y, fg, bg) end function TextDisplay:_writeValidatedString(s, x, y, fg, bg) for i=1,#s do self._backgroundColors[x+i-1][y] = bg self._foregroundColors[x+i-1][y] = fg self._chars[x+i-1][y] = s:sub(i,i) end end function TextDisplay:_validateX(x, s) x = x and x or 1 ROT.assert(x>0 and x<=self._widthInChars, "X value must be between 0 and ",self._widthInChars) ROT.assert((x+#s)-1<=self._widthInChars, "X value plus length of String must be between 0 and ",self._widthInChars,' string: ',s,'; x:',x) return x end function TextDisplay:_validateY(y) y = y and y or 1 ROT.assert(y>0 and y<=self._heightInChars, "Y value must be between 0 and ",self._heightInChars) return y end function TextDisplay:_validateForegroundColor(c) c = c or self.defaultForegroundColor ROT.assert(#c > 2, 'Foreground Color must have at least 3 components') for i = 1, #c do c[i]=self:_clamp(c[i]) end return c end function TextDisplay:_validateBackgroundColor(c) c = c or self.defaultBackgroundColor ROT.assert(#c > 2, 'Background Color must have at least 3 components') for i = 1, #c do c[i]=self:_clamp(c[i]) end return c end function TextDisplay:_validateHeight(y, h) h=h and h or self._heightInChars-y+1 ROT.assert(h>0, "Height must be greater than 0. Height provided: ",h) ROT.assert(y+h-1<=self._heightInChars, "Height + y value must be less than screen height. y, height: ",y,', ',h) return h end function TextDisplay:_setColor(c) love.graphics.setColor(c or self.defaultForegroundColor) end function TextDisplay:_clamp(n) return n<0 and 0 or n>255 and 255 or n end --- Draw text. -- Draws a text at given position. Optionally wraps at a maximum length. -- @tparam number x -- @tparam number y -- @tparam string text May contain color/background format specifiers, %c{name}/%b{name}, both optional. %c{}/%b{} resets to default. -- @tparam number maxWidth wrap at what width (optional)? -- @treturn number lines drawn function TextDisplay:drawText(x, y, text, maxWidth) local fg local bg local cx = x local cy = y local lines = 1 if not maxWidth then maxWidth = self._widthInChars-x end local tokens = ROT.Text.tokenize(text, maxWidth) while #tokens > 0 do -- interpret tokenized opcode stream local token = table.remove(tokens, 1) if token.type == ROT.Text.TYPE_TEXT then local isSpace, isPrevSpace, isFullWidth, isPrevFullWidth for i = 1, #token.value do local cc = token.value:byte(i) local c = token.value:sub(i, i) -- TODO: chars will never be full-width without special handling -- TODO: ... so the next 15 lines or so do some pointless stuff -- Assign to `true` when the current char is full-width. isFullWidth = (cc > 0xff00 and cc < 0xff61) or (cc > 0xffdc and cc < 0xffe8) or cc > 0xffee -- Current char is space, whatever full-width or half-width both are OK. isSpace = c:byte() == 0x20 or c:byte() == 0x3000 -- The previous char is full-width and -- current char is nether half-width nor a space. if isPrevFullWidth and not isFullWidth and not isSpace then cx = cx + 1 -- add an extra position end -- The current char is full-width and -- the previous char is not a space. if isFullWidth and not isPrevSpace then cx = cx + 1 -- add an extra position end fg = (fg == '' or not fg) and self.defaultForegroundColor or type(fg) == 'string' and ROT.Color.fromString(fg) or fg bg = (bg == '' or not bg) and self.defaultBackgroundColor or type(bg) == 'string' and ROT.Color.fromString(bg) or bg self:_writeValidatedString(c, cx, cy, fg, bg) cx = cx + 1 isPrevSpace = isSpace isPrevFullWidth = isFullWidth end elseif token.type == ROT.Text.TYPE_FG then fg = token.value or nil elseif token.type == ROT.Text.TYPE_BG then bg = token.value or nil elseif token.type == ROT.Text.TYPE_NEWLINE then cx = x cy = cy + 1 lines = lines + 1 end end return lines end return TextDisplay
local ui, uiu, uie = require("ui").quick() local utils = require("utils") local threader = require("threader") local scener = require("scener") local fs = require("fs") local config = require("config") local sharp = require("sharp") local native = require("native") local scene = { name = "Threader Test" } local root function scene.reloadSharp() local all = root:findChild("all") local list = root:findChild("listSharp") if list then list.children = {} else list = uie.column({}):with(uiu.fillWidth) all:addChild(list:as("listSharp")) end list:addChild(uie.label("sharp", ui.fontBig)) for i = 1, 10 do local item = uie.label(string.format("%02d | -", i), ui.fontMono) sharp.echo(string.format("%02d", i)):calls(function(t, text) item.text = string.format("%02d | %s", i, text) end) list:addChild(item) end list:addChild(uie.label("stresstest label please ignore #-"):with({ stressCount = 1, }):hook({ update = function(orig, self, ...) orig(self, ...) if not self.stress then self.stress = sharp.echo("stresstest label please ignore #" .. tostring(self.stressCount)):calls(function(t, text) self.stress = false self.text = text self.stressCount = self.stressCount + 1 end) end end })) list:addChild(uie.button("Reload", scene.reloadSharp)) list:addChild(uie.button("Dummy Task", function() local installer = scener.push("installer") installer.sharpTask("dummyTask", 1000, 10):calls(function(task, last) if not last then return end installer.update("done", 1, "done") installer.done({ { "OK", function() scener.pop() end } }) end) end)) end function scene.reloadRun() local all = root:findChild("all") local list = root:findChild("listRun") if list then list.children = {} else list = uie.column({}):with(uiu.fillWidth) all:addChild(list:as("listRun")) end list:addChild(uie.label("run", ui.fontBig)) for i = 1, 10 do local item = uie.label(string.format("%02d | -", i), ui.fontMono) threader.run(function() require("threader").sleep(require("love.math").random() * 0.01) return string.format("%02d", i) end):calls(function(t, text) item.text = string.format("%02d | %s", i, text) end) list:addChild(item) end list:addChild(uie.button("Reload", scene.reloadRun)) end function scene.reloadRoutine() local all = root:findChild("all") local list = root:findChild("listRoutine") if list then list.children = {} else list = uie.column({}):with(uiu.fillWidth) all:addChild(list:as("listRoutine")) end list:addChild(uie.label("routine", ui.fontBig)) for i = 1, 10 do local item = uie.label(string.format("%02d | -", i), ui.fontMono) threader.routine(function() require("threader").sleep(require("love.math").random() * 0.01) return string.format("%02d", i) end):calls(function(t, text) item.text = string.format("%02d | %s", i, text) end) list:addChild(item) end list:addChild(uie.button("Reload", scene.reloadRoutine)) end function scene.reloadAll() root = uie.column({ uie.scrollbox( uie.column({ }):with({ style = { bg = {}, padding = 16, } }):with(uiu.fillWidth):as("all") ):with({ style = { barPadding = 16, }, clip = false, cacheable = false }):with(uiu.fillWidth):with(uiu.fillHeight(true)), uie.button("Reload", scene.reloadAll):with(uiu.bottombound) }):with({ cacheable = false, _fullroot = true }) scene.root = root scener.onChange(scener.current, scener.current) scene.reloadSharp() scene.reloadRun() scene.reloadRoutine() end function scene.load() scene.reloadAll() end function scene.enter() end return scene
TabView = setmetatable({}, TabView) TabView.__index = TabView TabView.__call = function() return "PauseMenu" end function TabView.New(title, subtitle, sideTop, sideMid, sideBot) local _data = { Title = title or "", Subtitle = subtitle or "", SideTop = sideTop or "", SideMid = sideMid or "", SideBot = sideBot or "", _headerPicture = {}, _crewPicture = {}, Tabs = {}, Index = 1, _visible = false, focusLevel = 0, rightItemIndex = 1, leftItemIndex = 1, TemporarilyHidden = false, controller = false, _loaded = false, _timer = 0, _canHe = true, InstructionalButtons = { InstructionalButton.New(GetLabelText("HUD_INPUT2"), -1, 176, 176, -1), InstructionalButton.New(GetLabelText("HUD_INPUT3"), -1, 177, 177, -1), InstructionalButton.New(GetLabelText("HUD_INPUT1C"), -1, -1, -1, "INPUTGROUP_FRONTEND_BUMPERS") }, OnPauseMenuOpen = function(menu) end, OnPauseMenuClose = function(menu) end, OnPauseMenuTabChanged = function(menu, tab, tabIndex) end, OnPauseMenuFocusChanged = function(menu, tab, focusLevel) end, OnLeftItemChange = function(menu, leftItem, index) end, OnRightItemChange = function(menu, rightItem, index) end, OnLeftItemSelect = function(menu, leftItem, index) end, OnRightItemSelect = function(menu, rightItem, index) end } return setmetatable(_data, TabView) end function TabView:LeftItemIndex(index) if index ~= nil then self.leftItemIndex = index self.OnLeftItemChange(self, self.Tabs[self.Index].LeftItemList[self.leftItemIndex], self.leftItemIndex) else return self.leftItemIndex end end function TabView:RightItemIndex(index) if index ~= nil then self.rightItemIndex = index self.OnRightItemChange(self, self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList[self.rightItemIndex], self.rightItemIndex) else return self.rightItemIndex end end function TabView:FocusLevel(index) if index ~= nil then self.focusLevel = index ScaleformUI.Scaleforms._pauseMenu:SetFocus(index) self.OnPauseMenuFocusChanged(self, self.Tabs[self.Index], index) else return self.focusLevel end end function TabView:Visible(visible) if(visible ~= nil) then if visible == true then self:BuildPauseMenu() self.OnPauseMenuOpen(self) DontRenderInGameUi(true) AnimpostfxPlay("PauseMenuIn", 800, true) ScaleformUI.Scaleforms.InstructionalButtons:SetInstructionalButtons(self.InstructionalButtons) SetPlayerControl(PlayerId(), false, 0) else ScaleformUI.Scaleforms._pauseMenu:Dispose() DontRenderInGameUi(false) AnimpostfxStop("PauseMenuIn") AnimpostfxPlay("PauseMenuOut", 800, false) self.OnPauseMenuClose(self) SetPlayerControl(PlayerId(), true, 0) end ScaleformUI.Scaleforms.InstructionalButtons:Enabled(visible) self._visible = visible ScaleformUI.Scaleforms._pauseMenu:Visible(visible) else return self._visible end end function TabView:AddTab(item) item.Base.Parent = self table.insert(self.Tabs, item) end function TabView:HeaderPicture(Txd, Txn) if(Txd ~= nil and Txn ~= nil) then self._headerPicture = {txd = Txd, txn = Txn} else return self._headerPicture end end function TabView:CrewPicture(Txd, Txn) if(Txd ~= nil and Txn ~= nil) then self._crewPicture = {txd = Txd, txn = Txn} else return self._crewPicture end end function TabView:CanPlayerCloseMenu(canHe) if canHe == nil then return self._canHe else self._canHe = canHe end end function TabView:ShowHeader() if self.Subtitle:IsNullOrEmpty() then ScaleformUI.Scaleforms._pauseMenu:SetHeaderTitle(self.Title) else ScaleformUI.Scaleforms._pauseMenu:ShiftCoronaDescription(true, false) ScaleformUI.Scaleforms._pauseMenu:SetHeaderTitle(self.Title, self.Subtitle) end if (self:HeaderPicture() ~= nil) then ScaleformUI.Scaleforms._pauseMenu:SetHeaderCharImg(self:HeaderPicture().txd, self:HeaderPicture().txn, true) end if (self:CrewPicture() ~= nil) then ScaleformUI.Scaleforms._pauseMenu:SetHeaderSecondaryImg(self:CrewPicture().txd, self:CrewPicture().txn, true) end ScaleformUI.Scaleforms._pauseMenu:SetHeaderDetails(self.SideTop, self.SideMid, self.SideBot) self._loaded = true end function TabView:BuildPauseMenu() self:ShowHeader() for k, tab in pairs(self.Tabs) do local tabIndex = k-1 local type, subtype = tab() if subtype == "TextTab" then ScaleformUI.Scaleforms._pauseMenu:AddPauseMenuTab(tab.Base.Title, tab.Base.Type, 0) if not tostring(tab.TextTitle):IsNullOrEmpty() then ScaleformUI.Scaleforms._pauseMenu:AddRightTitle(tabIndex, 0, tab.TextTitle) end for j,item in pairs(tab.LabelsList) do ScaleformUI.Scaleforms._pauseMenu:AddRightListLabel(tabIndex, 0, item.Label) end elseif subtype == "SubmenuTab" then ScaleformUI.Scaleforms._pauseMenu:AddPauseMenuTab(tab.Base.Title, tab.Base.Type, 1) for j,item in pairs(tab.LeftItemList) do local itemIndex = j-1 ScaleformUI.Scaleforms._pauseMenu:AddLeftItem(tabIndex, item.ItemType, item.Label, item.MainColor, item.HighlightColor, item:Enabled()) if item.TextTitle ~= nil and not item.TextTitle:IsNullOrEmpty() then if (item.ItemType == LeftItemType.Keymap) then ScaleformUI.Scaleforms._pauseMenu:AddKeymapTitle(tabIndex , itemIndex, item.TextTitle, item.KeymapRightLabel_1, item.KeymapRightLabel_2) else ScaleformUI.Scaleforms._pauseMenu:AddRightTitle(tabIndex , itemIndex, item.TextTitle) end end for l, ii in pairs(item.ItemList) do local __type, __subtype = ii() if __subtype == "StatsTabItem" then if (ii.Type == StatItemType.Basic) then ScaleformUI.Scaleforms._pauseMenu:AddRightStatItemLabel(tabIndex , itemIndex, ii.Label, ii._rightLabel) elseif (ii.Type == StatItemType.ColoredBar) then ScaleformUI.Scaleforms._pauseMenu:AddRightStatItemColorBar(tabIndex , itemIndex, ii.Label, ii._value, ii._coloredBarColor) end elseif __subtype == "SettingsItem" then if ii.ItemType == SettingsItemType.Basic then ScaleformUI.Scaleforms._pauseMenu:AddRightSettingsBaseItem(tabIndex , itemIndex, ii.Label, ii._rightLabel, ii:Enabled()) elseif ii.ItemType == SettingsItemType.ListItem then ScaleformUI.Scaleforms._pauseMenu:AddRightSettingsListItem(tabIndex , itemIndex, ii.Label, ii.ListItems, ii._itemIndex, ii:Enabled()) elseif ii.ItemType == SettingsItemType.ProgressBar then ScaleformUI.Scaleforms._pauseMenu:AddRightSettingsProgressItem(tabIndex , itemIndex, ii.Label, ii.MaxValue, ii._coloredBarColor, ii._value, ii:Enabled()) elseif ii.ItemType == SettingsItemType.MaskedProgressBar then ScaleformUI.Scaleforms._pauseMenu:AddRightSettingsProgressItemAlt(tabIndex , itemIndex, ii.Label, ii.MaxValue, ii._coloredBarColor, ii._value, ii:Enabled()) elseif ii.ItemType == SettingsItemType.CheckBox then while (not HasStreamedTextureDictLoaded("commonmenu")) do Citizen.Wait(0) RequestStreamedTextureDict("commonmenu", true) end ScaleformUI.Scaleforms._pauseMenu:AddRightSettingsCheckboxItem(tabIndex , itemIndex, ii.Label, ii.CheckBoxStyle, ii._isChecked, ii:Enabled()) elseif ii.ItemType == SettingsItemType.SliderBar then ScaleformUI.Scaleforms._pauseMenu:AddRightSettingsSliderItem(tabIndex , itemIndex, ii.Label, ii.MaxValue, ii._coloredBarColor, ii._value, ii:Enabled()) end elseif __subtype == "KeymapItem" then if IsInputDisabled(2) then ScaleformUI.Scaleforms._pauseMenu:AddKeymapItem(tabIndex , itemIndex, ii.Label, ii.PrimaryKeyboard, ii.SecondaryKeyboard) else ScaleformUI.Scaleforms._pauseMenu:AddKeymapItem(tabIndex , itemIndex, ii.Label, ii.PrimaryGamepad, ii.SecondaryGamepad) end self:UpdateKeymapItems() else ScaleformUI.Scaleforms._pauseMenu:AddRightListLabel(tabIndex , itemIndex, ii.Label) end end end end end end function TabView:UpdateKeymapItems() if not IsInputDisabled(2) then if not self.controller then self.controller = true for j, tab in pairs(self.Tabs) do local type, subtype = tab() if subtype == "SubmenuTab" then for k, lItem in pairs(tab.LeftItemList) do local idx = k-1 if lItem.ItemType == LeftItemType.Keymap then for i = 1, #lItem.ItemList, 1 do local item = lItem.ItemList[i] ScaleformUI.Scaleforms._pauseMenu:UpdateKeymap(j-1, idx, i-1, item.PrimaryGamepad, item.SecondaryGamepad) end end end end end end else if self.controller then self.controller = false for j, tab in pairs(self.Tabs) do local type, subtype = tab() if subtype == "SubmenuTab" then for k, lItem in pairs(tab.LeftItemList) do local idx = k-1 if lItem.ItemType == LeftItemType.Keymap then for i = 1, #lItem.ItemList, 1 do local item = lItem.ItemList[i] ScaleformUI.Scaleforms._pauseMenu:UpdateKeymap(j-1, idx, i-1, item.PrimaryKeyboard, item.SecondaryKeyboard) end end end end end end end end function TabView:Draw() if not self:Visible() or self.TemporarilyHidden then return end ScaleformUI.Scaleforms._pauseMenu:Draw() self:UpdateKeymapItems() end function TabView:Select() if self:FocusLevel() == 0 then self:FocusLevel(self:FocusLevel() + 1) --[[ check if all disabled ]] local allDisabled = true for _,v in ipairs(self.Tabs[self.Index].LeftItemList) do if v:Enabled() then allDisabled = false break end end if allDisabled then return end --[[ end check all disabled ]]-- while(not self.Tabs[self.Index].LeftItemList[self.leftItemIndex]:Enabled()) do Citizen.Wait(0) self.leftItemIndex = self.leftItemIndex + 1 ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SELECT_LEFT_ITEM_INDEX", false, self.leftItemIndex-1) end elseif self:FocusLevel() == 1 then local tab = self.Tabs[self.Index] local cur_tab, cur_sub_tab = tab() if cur_sub_tab == "SubmenuTab" then local leftItem = tab.LeftItemList[self.leftItemIndex] if not leftItem:Enabled() then PlaySoundFrontend(-1, "ERROR", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) return end if leftItem.ItemType == LeftItemType.Settings then self:FocusLevel(2) --[[ check if all disabled ]] local allDisabled = true for _,v in ipairs(self.Tabs[self.Index].LeftItemList) do if v:Enabled() then allDisabled = false break end end if allDisabled then return end --[[ end check all disabled ]]-- while(not self.Tabs[self.Index].LeftItemList[self.leftItemIndex]:Enabled()) do Citizen.Wait(0) self.rightItemIndex = self.rightItemIndex+1 ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SELECT_RIGHT_ITEM_INDEX", false, self.rightItemIndex-1) end end end elseif self:FocusLevel() == 2 then ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SET_INPUT_EVENT", false, 16) local leftItem = self.Tabs[self.Index].LeftItemList[self.leftItemIndex] if leftItem.ItemType == LeftItemType.Settings then local rightItem = leftItem.ItemList[self.rightItemIndex] if not rightItem:Enabled() then PlaySoundFrontend(-1, "ERROR", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) return end --[[ to add real functions ]] -- if rightItem.ItemType == SettingsItemType.ListItem then rightItem.OnListSelected(rightItem, rightItem:ItemIndex(), tostring(rightItem.ListItems[rightItem:ItemIndex()])) elseif rightItem.ItemType == SettingsItemType.CheckBox then rightItem:Checked(not rightItem:Checked()) elseif rightItem.ItemType == SettingsItemType.MaskedProgressBar or rightItem.ItemType == SettingsItemType.ProgressBar then rightItem.OnProgressSelected(rightItem, rightItem:Value()) elseif rightItem.ItemType == SettingsItemType.SliderBar then rightItem.OnSliderSelected(rightItem, rightItem:Value()) else rightItem.OnActivated(rightItem, IndexOf(leftItem.ItemList, rightItem)) end self.OnRightItemSelect(self, rightItem, self.rightItemIndex) end end end function TabView:GoBack() PlaySoundFrontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) if self:FocusLevel() > 0 then self:FocusLevel(self:FocusLevel() - 1) else if self:CanPlayerCloseMenu() then self:Visible(false) end end end function TabView:GoUp() local return_value = ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SET_INPUT_EVENT", true, 8) while not IsScaleformMovieMethodReturnValueReady(return_value) do Citizen.Wait(0) end local retVal = GetScaleformMovieMethodReturnValueInt(return_value) if retVal ~= -1 then if self:FocusLevel() == 1 then self:LeftItemIndex(retVal+1) elseif self:FocusLevel() == 2 then self:RightItemIndex(retVal+1) end end end function TabView:GoDown() local return_value = ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SET_INPUT_EVENT", true, 9) while not IsScaleformMovieMethodReturnValueReady(return_value) do Citizen.Wait(0) end local retVal = GetScaleformMovieMethodReturnValueInt(return_value) if retVal ~= -1 then if self:FocusLevel() == 1 then self:LeftItemIndex(retVal+1) elseif self:FocusLevel() == 2 then self:RightItemIndex(retVal+1) end end end function TabView:GoLeft() local return_value = ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SET_INPUT_EVENT", true, 10) while not IsScaleformMovieMethodReturnValueReady(return_value) do Citizen.Wait(0) end local retVal = GetScaleformMovieMethodReturnValueInt(return_value) if retVal ~= -1 then if self:FocusLevel() == 0 then ScaleformUI.Scaleforms._pauseMenu:HeaderGoLeft() self.Index = retVal+1 elseif self:FocusLevel() == 2 then local rightItem = self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList[self.rightItemIndex] local sub_item, sub_item_type = rightItem() if sub_item_type == "SettingsItem" then if rightItem.ItemType == SettingsItemType.ListItem then rightItem:ItemIndex(retVal) rightItem.OnListChanged(rightItem, rightItem:ItemIndex(), tostring(rightItem.ListItems[rightItem:ItemIndex()])) elseif rightItem.ItemType == SettingsItemType.SliderBar then rightItem:Value(retVal) rightItem.OnBarChanged(rightItem, rightItem:Value()) elseif rightItem.ItemType == SettingsItemType.ProgressBar or rightItem.ItemType == SettingsItemType.MaskedProgressBar then rightItem:Value(retVal) rightItem.OnBarChanged(rightItem, rightItem:Value()) end end end end end function TabView:GoRight() local return_value = ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SET_INPUT_EVENT", true, 11) while not IsScaleformMovieMethodReturnValueReady(return_value) do Citizen.Wait(0) end local retVal = GetScaleformMovieMethodReturnValueInt(return_value) if retVal ~= -1 then if self:FocusLevel() == 0 then ScaleformUI.Scaleforms._pauseMenu:HeaderGoLeft() self.Index = retVal+1 elseif self:FocusLevel() == 2 then local rightItem = self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList[self.rightItemIndex] local sub_item, sub_item_type = rightItem() if sub_item_type == "SettingsItem" then if rightItem.ItemType == SettingsItemType.ListItem then rightItem:ItemIndex(retVal) rightItem.OnListChanged(rightItem, rightItem:ItemIndex(), tostring(rightItem.ListItems[rightItem:ItemIndex()])) elseif rightItem.ItemType == SettingsItemType.SliderBar then rightItem:Value(retVal) rightItem.OnBarChanged(rightItem, rightItem:Value()) elseif rightItem.ItemType == SettingsItemType.ProgressBar or rightItem.ItemType == SettingsItemType.MaskedProgressBar then rightItem:Value(retVal) rightItem.OnBarChanged(rightItem, rightItem:Value()) end end end end end local successHeader, event_type_h, context_h, item_id_h local successPause, event_type, context, item_id function TabView:ProcessMouse() if not IsUsingKeyboard(2) then return end SetMouseCursorActiveThisFrame() SetInputExclusive(2, 239) SetInputExclusive(2, 240) SetInputExclusive(2, 237) SetInputExclusive(2, 238) successHeader, event_type_h, context_h, item_id_h = GetScaleformMovieCursorSelection(ScaleformUI.Scaleforms._pauseMenu._header.handle) if successHeader then if event_type_h == 5 then if context_h == -1 then ScaleformUI.Scaleforms._pauseMenu:SelectTab(item_id_h) self:FocusLevel(1) self.Index = item_id_h + 1 end end end successPause, event_type, context, item_id = GetScaleformMovieCursorSelection(ScaleformUI.Scaleforms._pauseMenu._pause.handle) if successPause then if event_type == 5 then if context == 0 then self:FocusLevel(1) if #self.Tabs[self.Index].LeftItemList == 0 then return end while not self.Tabs[self.Index].LeftItemList[self.leftItemList]:Enabled() do Citizen.Wait(0) self.leftItemIndex = self.leftItemIndex+1 ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SELECT_LEFT_ITEM_INDEX", false, self.leftItemIndex) end elseif context == 1 then if self:FocusLevel() ~= 1 then if not self.Tabs[self.Index].LeftItemList[item_id+1]:Enabled() then PlaySoundFrontend(-1, "ERROR", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) return end self.Tabs[self.Index].LeftItemList[self.leftItemIndex]:Selected(false) self:LeftItemIndex(item_id+1) self.Tabs[self.Index].LeftItemList[self.leftItemIndex]:Selected(true) self:FocusLevel(1) elseif self:FocusLevel() == 1 then if not self.Tabs[self.Index].LeftItemList[item_id+1]:Enabled() then PlaySoundFrontend(-1, "ERROR", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) return end if self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemType == LeftItemType.Settings then self:FocusLevel(2) ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SELECT_RIGHT_ITEM_INDEX", false, 0) self:RightItemIndex(1) end self.Tabs[self.Index].LeftItemList[self.leftItemIndex]:Selected(false) self:LeftItemIndex(item_id+1) self.Tabs[self.Index].LeftItemList[self.leftItemIndex]:Selected(true) end ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SELECT_LEFT_ITEM_INDEX", false, item_id) self.Tabs[self.Index].LeftItemList[self.leftItemIndex].OnActivated(self.Tabs[self.Index].LeftItemList[self.leftItemIndex], self.leftItemIndex) self.OnLeftItemSelect(self, self.Tabs[self.Index].LeftItemList[self.leftItemIndex], self.leftItemIndex) elseif context == 2 then local rightItem = self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList[item_id+1] if not rightItem:Enabled() then PlaySoundFrontend(-1, "ERROR", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) return end if self:FocusLevel() ~= 2 then self:FocusLevel(2) end if rightItem:Selected() then if rightItem.ItemType == SettingsItemType.ListItem then rightItem.OnListSelected(rightItem, rightItem:ItemIndex(), tostring(rightItem.ListItems[rightItem:ItemIndex()])) elseif rightItem.ItemType == SettingsItemType.CheckBox then rightItem:Checked(not rightItem:Checked()) elseif rightItem.ItemType == SettingsItemType.MaskedProgressBar or rightItem.ItemType == SettingsItemType.ProgressBar then rightItem.OnProgressSelected(rightItem, rightItem:Value()) elseif rightItem.ItemType == SettingsItemType.SliderBar then rightItem.OnSliderSelected(rightItem, rightItem:Value()) else rightItem.OnActivated(rightItem, IndexOf(self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList, rightItem)) end self.OnRightItemSelect(self, rightItem, self.rightItemIndex) return end self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList[self.rightItemIndex]:Selected(false) self:RightItemIndex(item_id+1) ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("SELECT_RIGHT_ITEM_INDEX", false, item_id) self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList[self.rightItemIndex]:Selected(true) end elseif event_type == 9 then if context == 1 then for i, item in ipairs(self.Tabs[self.Index].LeftItemList) do item:Hovered(item:Enabled() and i == item_id+1) end elseif context == 2 then for i, item in ipairs(self.Tabs[self.Index].LeftItemList[self.leftItemIndex].ItemList) do item:Hovered(item:Enabled() and i == item_id+1) end end end end end function TabView:ProcessControl() if not self:Visible() or self.TemporarilyHidden then return end EnableControlAction(2, 177, true) if (IsControlJustPressed(2, 172)) then Citizen.CreateThread(function() self:GoUp() end) end if (IsControlJustPressed(2, 173)) then Citizen.CreateThread(function() self:GoDown() end) end if (IsControlJustPressed(2, 174)) then Citizen.CreateThread(function() self:GoLeft() end) end if (IsControlJustPressed(2, 175)) then Citizen.CreateThread(function() self:GoRight() end) end if (IsControlJustPressed(2, 205)) then Citizen.CreateThread(function() if (self:FocusLevel() == 0) then self:GoLeft(); end end) end if (IsControlJustPressed(2, 206)) then Citizen.CreateThread(function() if (self:FocusLevel() == 0) then self:GoRight(); end end) end if (IsControlJustPressed(2, 201)) then Citizen.CreateThread(function() self:Select() end) end if (IsControlJustPressed(2, 177)) then Citizen.CreateThread(function() self:GoBack() end) end if (IsControlJustPressed(1, 241)) then Citizen.CreateThread(function() ScaleformUI.Scaleforms._pauseMenu:SendScrollEvent(-1) end) end if (IsControlJustPressed(1, 242)) then Citizen.CreateThread(function() ScaleformUI.Scaleforms._pauseMenu:SendScrollEvent(1) end) end if (IsControlPressed(2, 3) and not IsUsingKeyboard(2)) then if (GetGameTimer() - self._timer > 175) then Citizen.CreateThread(function() ScaleformUI.Scaleforms._pauseMenu:SendScrollEvent(-1) end) self._timer = GetGameTimer() end end if (IsControlPressed(2, 4) and not IsUsingKeyboard(2)) then if (GetGameTimer() - self._timer > 175) then Citizen.CreateThread(function() ScaleformUI.Scaleforms._pauseMenu:SendScrollEvent(1) end) self._timer = GetGameTimer() end end end
verbalScriptCheckShop = function(player, npc, speech) Tools.configureDialog(player, npc) local buyItems = {} local maxAmounts = {} local words = {} local itemName = "" for word in speech:gmatch("[%w\'%-%[%]]+") do table.insert(words, word) end if (words[1] == "i" and words[2] == "buy") then Tools.checkKarma(player) local foundNumber = false local j = 0 local amount = 0 local func = assert(loadstring("return " .. npc.yname .. ".buyItems"))(player) local prices = {} if (func ~= nil) then buyItems, prices, maxAmounts = func(npc) else buyItems = {} end for i = 3, #words do if (words[i] == "number") then foundNumber = true end end if foundNumber == true then for i = 3, #words do if words[i + 1] == "number" then itemName = itemName .. "" .. words[i] break end --itemName = itemName..""..words[i].."_" itemName = itemName .. "" .. words[i] .. " " end end if foundNumber == false then for i = 3, #words do if i == #words then itemName = itemName .. "" .. words[i] else --itemName = itemName..""..words[i].."_" itemName = itemName .. "" .. words[i] .. " " end end end for i = 1, #words do if words[i] == "number" then j = i end end if j == 0 then player:buyNoConfirm(npc, itemName, 1, buyItems, prices, maxAmounts) end if j > 0 then if (words[j + 1] == "") then amount = 1 end if (tonumber(words[j + 1]) == nil) then amount = 1 else amount = tonumber(words[j + 1]) end player:buyNoConfirm( npc, itemName, amount, buyItems, prices, maxAmounts ) end end if (words[1] == "buy" and words[2] == "my" and words[3] ~= "all") then Tools.checkKarma(player) local foundNumber = false local j = 0 local amount = 0 local func = assert(loadstring("return " .. npc.yname .. ".sellItems"))(player) local prices = {} if (func ~= nil) then sellItems, prices = func(npc) else sellItems = {} end for i = 3, #words do if (words[i] == "number") then foundNumber = true end end if foundNumber == true then for i = 3, #words do if words[i + 1] == "number" then itemName = itemName .. "" .. words[i] break end --itemName = itemName..""..words[i].."_" itemName = itemName .. "" .. words[i] .. " " end end if foundNumber == false then for i = 3, #words do if i == #words then itemName = itemName .. "" .. words[i] else --itemName = itemName..""..words[i].."_" itemName = itemName .. "" .. words[i] .. " " end end end for i = 1, #words do if words[i] == "number" then j = i end end if j == 0 then player:sellNoConfirm(npc, itemName, 1, sellItems, prices) end if j > 0 then if (words[j + 1] == "") then amount = 1 end if (tonumber(words[j + 1]) == nil) then amount = 1 else amount = tonumber(words[j + 1]) end player:sellNoConfirm(npc, itemName, amount, sellItems, prices) end end if (words[1] == "buy" and words[2] == "my" and words[3] == "all") then Tools.checkKarma(player) local amount = 0 local func = assert(loadstring("return " .. npc.yname .. ".sellItems"))(player) local prices = {} if (func ~= nil) then sellItems, prices = func(npc) else sellItems = {} end for i = 4, #words do if i == #words then itemName = itemName .. "" .. words[i] else --itemName = itemName..""..words[i].."_" itemName = itemName .. "" .. words[i] .. " " end end for i = 0, 52 do local item = player:getInventoryItem(i) if item ~= nil then if string.lower(item.name) == string.lower(itemName) then amount = amount + item.amount end end end if amount == 0 then return end player:sellNoConfirm(npc, itemName, amount, sellItems, prices) end if (words[1] == "what" and words[2] == "do" and words[3] == "you" and words[4] == "buy") then Tools.checkKarma(player) local func = assert(loadstring("return " .. npc.yname .. ".sellItems"))() if (func ~= nil) then sellItems = func(npc) else sellItems = {} end local sellString = "I buy" for i = 1, #sellItems do if i ~= #sellItems or #sellItems == 1 then sellString = sellString .. " " .. Item(sellItems[i]).name .. "," else sellString = sellString .. " and " .. Item(sellItems[i]).name .. "." end --if #sellString > 90 then npc:talk(0, "" .. sellString) sellString = "" --end end end if (words[1] == "what" and words[2] == "do" and words[3] == "you" and words[4] == "sell") then local func = assert(loadstring("return " .. npc.yname .. ".buyItems"))() if (func ~= nil) then buyItems = func(npc) else buyItems = {} end local buyString = "I sell" for i = 1, #buyItems do if i ~= #buyItems or #buyItems == 1 then buyString = buyString .. " " .. Item(buyItems[i]).name .. "," else buyString = buyString .. " and " .. Item(buyItems[i]).name .. "." end --if #buyString > 90 then npc:talk(0, "" .. buyString) buyString = "" --end end end end
-- Routine for NPC "Chicken Chaser" loadRoutine = function(R, W) if (W:isConditionFulfilled("npc_chickenchaser", "dead")) then R:setDisposed() return end R:setTilePosition(15,12) R:setLooped(false) R:setReloadEnabled(true) if (W:isConditionFulfilled("npc_chickenchaser", "dies") and not W:isConditionFulfilled("npc_chickenchaser", "dead")) then W:addConditionProgress("npc_chickenchaser", "dead") W:spawnNPC("npc_chickenchaser2", 15 * 50, 12 * 50) R:setDisposed() end end
object_tangible_collection_rare_heavy_void = object_tangible_collection_shared_rare_heavy_void:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rare_heavy_void, "object/tangible/collection/rare_heavy_void.iff")
--[[ AI Framework gamemode. This file contains the base AI Game mode with default settings. These settings are then overriden in every specified gamemode. Defaults: FixedDuration: No Duration: 0 NumPlayers: 1 FixedHeroes: Yes Heroes: npc_dota_hero_sven Starting level: 1 Starting gold: 625 ]] BaseAIGameMode = class({}) function BaseAIGameMode:constructor() --Set defaults self.NumTeams = 2 self.Teams = { DOTA_TEAM_GOODGUYS, DOTA_TEAM_BADGUYS } self.FixedDuration = false self.Duration = 0 self.NumPlayers = 1 self.FixedHeroes = true self.Heroes = {'npc_dota_hero_sven'} self.StartingLevel = 1 self.StartingGold = 625 return self end --Set up the gamemode before loading in function BaseAIGameMode:Setup() --Empty default end --Get extra data for the AI (like a description of the map) for a team function BaseAIGameMode:GetExtraData( team ) return {} end --Make a team win the game function BaseAIGameMode:SetTeamWin( team ) GameRules:SetGameWinner( team ) end function BaseAIGameMode:InitHeroes( teamHeroes ) for team, heroes in pairs( teamHeroes ) do self:SetupHeroes( heroes ) end end function BaseAIGameMode:SetupHeroes( heroes ) for _, hero in ipairs( heroes ) do --Give starting gold hero:SetGold( self.StartingGold, false ) --Level up to the starting level while hero:GetLevel() < self.StartingLevel do if hero:GetLevel() == 1 then hero:HeroLevelUp( true ) else hero:HeroLevelUp( false ) end end --buy item, load from kv, default --learn skill, load from kv, default end end
local _, Jardo = ... oUF.Tags.Methods['jardo:shorthealth'] = function(unit) local cur = UnitHealth(unit) local max = UnitHealthMax(unit) return Jardo:round((cur / max) * 100, 1) .. "%" end oUF.Tags.Methods['jardo:health'] = function(unit) local cur = UnitHealth(unit) local max = UnitHealthMax(unit) return string.format("%s/%s | %.1f%%", Jardo:siValue(cur), Jardo:siValue(max), (cur / max) * 100) end oUF.Tags.Methods['jardo:power'] = function(unit) local min, max = UnitPower(unit), UnitPowerMax(unit) if max == 0 then return end return Jardo:siValue(min) .. '/' .. Jardo:siValue(max) end oUF.Tags.Methods['jardo:class'] = function(unit) local r, g, b = Jardo:DifficultyColor(unit) local cr, cg, cb = Jardo:ClassColor(unit) local class = UnitIsPlayer(unit) and UnitClass(unit) or UnitClassBase(unit) local level = UnitLevel(unit) if level == -1 or not level then level = "Boss" end return string.format("|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r", r, g, b, level, cr, cg, cb, class or "Unknown") end oUF.Tags.Methods['jardo:name'] = function(unit) return string.sub(UnitName(unit), 1, 15) end -- Register our tags for the corresponding events for updates oUF.Tags.Events['jardo:shorthealth'] = oUF.Tags.Events.missinghp oUF.Tags.Events['jardo:health'] = oUF.Tags.Events.missinghp oUF.Tags.Events['jardo:power'] = oUF.Tags.Events.missingpp oUF.Tags.Events['jardo:class'] = oUF.Tags.Events.smartclass oUF.Tags.Events['jardo:name'] = oUF.Tags.Events.name
import ('System') import ('Assignment') import ('Assignment.Movement') import ('Assignment.Entity') import ('Assignment.World') function enter(entity, world) local chaseEntities = world:EntitiesInArea(entity.Location, 100.0, EntityType.Herbivore) if chaseEntities.Count > 0 then local seek = Seek() seek.ChaseEntity = chaseEntities[0] seek.MaxDistance = 150 entity:AddBehaviour(seek) end entity:AddBehaviour(ObstacleAvoidance()) end function execute(entity, world) entity.QuickEnergy = entity.QuickEnergy - 1 local behaviour = entity:GetBehaviourByType("Seek") if behaviour == NULL then local chaseEntities = world:EntitiesInArea(entity.Location, 10.0, EntityType.Herbivore) if chaseEntities.Count > 0 then return "eat" else return "patrol" end end return "attack" end function exit(entity, world) entity:RemoveAllBehaviours() end
local playerReducer = require('reducers/player') describe("player reducer", function() function initState() return playerReducer({}, {type = "__INIT__"}) end it("should change direction to UP", function() local state = initState() state.y = 32 local nextState = playerReducer(state, { type = 'MOVE_UP', dt = 0.1, boundary = 32, }) assert.are.equal(nextState.direction, 'UP') assert.are.equal(nextState.x, 0) assert.are.equal(nextState.y, 0) end) it("should change direction to DOWN", function() local state = playerReducer(initState(), { type = 'MOVE_DOWN', dt = 0.1, boundary = 32, }) assert.are.equal(state.direction, 'DOWN') assert.are.equal(state.x, 0) assert.are.equal(state.y, 32) end) it("should change direction to LEFT", function() local state = initState() state.x = 32 local nextState = playerReducer(state, { type = 'MOVE_LEFT', dt = 0.1, boundary = 32, }) assert.are.equal(nextState.direction, 'LEFT') assert.are.equal(nextState.x, 0) assert.are.equal(nextState.y, 0) end) it("should change direction to RIGHT", function() local state = playerReducer(initState(), { type = 'MOVE_RIGHT', dt = 0.1, boundary = 32, }) assert.are.equal(state.direction, 'RIGHT') assert.are.equal(state.x, 32) assert.are.equal(state.y, 0) end) end)
-- Menu background "level" script -- Level dimensions playfieldWidth = 100.0; playfieldHeight = 100.0; -- Creates the level background function BackgroundCreate() starsCount = math.random(100,200); nebulaCount = math.random(8, 12); local bg = math.random(1,2); if(bg == 1) then nebula1_R = 0.1; nebula1_G = 0.15; nebula1_B = 0.2; nebula2_R = 0.0; nebula2_G = 0.0; nebula2_B = 0.0; nebula3_R = 0.05; nebula3_G = 0.0; nebula3_B = 0.15; backgroundImage = "bg2.dds"; else nebula1_R = 0.1; nebula1_G = 0.15; nebula1_B = 0.2; nebula2_R = 0.0; nebula2_G = 0.0; nebula2_B = 0.0; nebula3_R = 0.05; nebula3_G = 0.10; nebula3_B = 0.15; backgroundImage = "bg6.dds"; end end -- Creates the level lighting function LightsCreate() CreateLight("SunLight", 1, -1, 0.5, 0.05,0.2,0.5); CreateLight("DistantLight", 0.1, 1.0, 0.75, 1,0.75,1); SetAmbientLight(0.02, 0.02, 0.08); end -- Creates the level objects function LevelCreate() -- Create asteroids for i = 0,8 do local mesh = "Asteroid" .. math.random(1,3) .. ".mesh"; local scale = RangeRandom(1.9, 2.5); local x, y = GetFreePosition(0, 0, 10, 10); CreateAsteroid("Asteroid" .. i, mesh, x, y, scale); end -- Create mushrooms for i = 0,2 do local x, y = GetFreePosition(0, 0, 4); local color = i % 3; CreateMushroom("Mushroom" .. i, color, x, y); end end
----------------------------------------------- -- battleaxe.lua -- Represents a battleaxe that a player can wield or pick up -- Created by NimbusBP1729 ----------------------------------------------- -- -- Creates a new battleaxe object -- @return the battleaxe object created return { hand_x = 9, hand_y = 40, frameAmt = 3, width = 50, height = 35, dropWidth = 23, dropHeight = 44, damage = 6, special_damage = {slash = 2, axe = 2}, bbox_width = 22, bbox_height = 25, bbox_offset_x = {3,28}, bbox_offset_y = {1,25}, hitAudioClip = 'mace_hit', animations = { default = {'once', {'1,1'}, 1}, wield = {'once', {'2,1','3,1'},0.22} }, action = "wieldaction2" }
mpackage = "Cross Profile Communication"
local M = {} function M.get(defaults, user) vim.tbl_deep_extend('force', defaults, user) return defaults end return M
cflags{ '-std=c11', '-Wall', '-Wextra', '-Wpedantic', '-Wno-maybe-uninitialized', '-D _GNU_SOURCE', '-isystem $builddir/pkg/libtls-bearssl/include', '-isystem $builddir/pkg/ncurses/include', } pkg.deps = { 'pkg/libtls-bearssl/headers', 'pkg/ncurses/headers', } exe('catgirl', [[ buffer.c chat.c command.c complete.c config.c edit.c handle.c ignore.c irc.c log.c ui.c url.c xdg.c $builddir/pkg/libtls-bearssl/libtls.a.d $builddir/pkg/ncurses/libncurses.a ]]) file('bin/catgirl', '755', '$outdir/catgirl') man{'catgirl.1'} fetch 'git'
--[[ Desc: Rectangle Author: SerDing Since: 2017-07-28 21:54:14 Alter: 2020-09-11 11:37:50 ]] local _GRAPHICS = require("engine.graphics") local _Vector2 = require("utils.vector2") ---@class Engine.Graphics.Drawable.Rect local _Rect = require("core.class")() function _Rect:Ctor(x, y, w, h) self._x = x or 0 self._y = y or 0 self._xw = 0 self._yh = 0 self._width = w or 1 self._height = h or 1 self._scale = _Vector2.New(1, 1) self._center = _Vector2.New(0, 0) self:Update() end function _Rect:Update() self._xw = self._x + self._width self._yh = self._y + self._height end ---@param color Engine.Graphics.Config.Color function _Rect:Draw(color, style) if color then _GRAPHICS.SetColor(color:Get()) end _GRAPHICS.DrawRect(style, self._x, self._y, self._width, self._height) if color then _GRAPHICS.ResetColor() end end function _Rect:SetDrawData(x, y, w, h) self._x = x or 0 self._y = y or 0 self._width = w or self._width self._height = h or self._height self:Update() end function _Rect:SetPosition(x, y) self._x = x or 0 self._y = y or 0 self:Update() end function _Rect:SetSize(w, h) self._width = w or self._width self._height = h or self._height self:Update() end function _Rect:CheckPoint(x, y) self:Update() if x >= self._x and x <= self._xw then if y >= self._y and y <= self._yh then return true end end return false end ---@param rect Engine.Graphics.Drawable.Rect function _Rect:CheckRect(rect) local lx = self._x local lxw = self._xw local ly = self._y local lyh = self._yh local rx = rect:Get("x") local rxw = rect:Get("xw") local ry = rect:Get("y") local ryh = rect:Get("yh") local bx, by = math.max(lx, rx), math.max(ly, ry) local cx, cy = bx + (math.min(lxw, rxw) - bx) / 2, by + (math.min(lyh, ryh) - by) / 2 return lx <= rxw and lxw >= rx and ly <= ryh and lyh >= ry, cx, cy end function _Rect:Get(field) if field then return self["_" .. field] end end function _Rect:GetWidth() return self._width end function _Rect:GetHeight() return self._height end return _Rect
function onEvent(name, value1, value2) if name == 'play' then makeAnimatedLuaSprite('foxy3-play', 'foxy3-play', -950, -500); addAnimationByPrefix('foxy3-play', 'foxy3-play', 'idle'); addLuaSprite('foxy3-play', true); scaleObject('foxy3-play', 2.1, 2.1); objectPlayAnimation('foxy3-play', 'idle', true); end end
----------------------------------- -- Area: West Ronfaure -- NPC: Adalefont -- !pos -176.000 -61.999 377.460 100 ----------------------------------- local ID = require("scripts/zones/West_Ronfaure/IDs") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if player:getCharVar("thePickpocket") == 1 then player:showText(npc, ID.text.PICKPOCKET_ADALEFONT) else player:showText(npc, ID.text.ADALEFONT_DIALOG) end end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) end
--[[ --=====================================================================================================-- Script Name: Set Ammo (command), for SAPP (PC & CE) Implementing API version: 1.11.0.0 Description: Set loaded|unloaded ammo for yourself (or others) Command Syntax: /setammo [player] [type] [ammo] Valid Arguments: > me Set ammo for yourself > 1-16 Set ammo for [player number] > * Set ammo for All players in the server > red Set Ammo for everybody on Red Team > blue Set Ammo for everybody on Blue Team > rand|random Set ammo for 1 random player Copyright (c) 2016-2018, Jericho Crosby <jericho.crosby227@gmail.com> * Notice: You can use this document subject to the following conditions: https://github.com/Chalwk77/Halo-Scripts-Phasor-V2-/blob/master/LICENSE * Written by Jericho Crosby (Chalwk) --=====================================================================================================-- ]]-- api_version = "1.12.0.0" cur_players = 0 -- Minimum admin level required to execute /setammo command ADMIN_LEVEL = 1 function OnScriptLoad() register_callback(cb['EVENT_JOIN'], "OnPlayerJoin") register_callback(cb['EVENT_LEAVE'], "OnPlayerLeave") register_callback(cb['EVENT_GAME_START'], "OnNewGame") register_callback(cb['EVENT_COMMAND'], "OnServerCommand") end function OnNewGame() for i = 1, 16 do if get_player(i) then cur_players = cur_players + 1 end end end function OnPlayerJoin(PlayerIndex) cur_players = cur_players + 1 end function OnPlayerLeave(PlayerIndex) cur_players = cur_players - 1 end function OnServerCommand(PlayerIndex, Command, Environment) local response = nil t = tokenizestring(Command) count = #t if t[1] == "setammo" then if tonumber(get_var(PlayerIndex, "$lvl")) >= ADMIN_LEVEL then response = false Command_Setammo(PlayerIndex, t[1], t[2], t[3], t[4], count) end end return response end function Command_Setammo(executor, command, PlayerIndex, type, ammo, count) if count == 4 and tonumber(ammo) then local players = getvalidplayers(PlayerIndex, executor) if players then for i = 1, #players do local player_object = get_dynamic_player(players[i]) if player_object then local m_weaponId = read_dword(player_object + 0x118) local weapon_id = get_object_memory(m_weaponId) if m_weaponId then if type == "unloaded" or type == "1" then safe_write(true) write_dword(weapon_id + 0x2B6, tonumber(ammo)) safe_write(false) sync_ammo(m_weaponId) sendresponse(get_var(players[i], "$name") .. " had their unloaded ammo changed to " .. ammo, command, executor) elseif type == "2" or type == "loaded" then safe_write(true) write_dword(weapon_id + 0x2B8, tonumber(ammo)) safe_write(false) sync_ammo(m_weaponId) sendresponse(get_var(players[i], "$name") .. " had their loaded ammo changed to " .. ammo, command, executor) else sendresponse("Invalid type: 1 for unloaded, 2 for loaded ammo", command, executor) end else sendresponse(get_var(players[i], "$name") .. " is not holding any weapons", command, executor) end else sendresponse(get_var(players[i], "$name") .. " is dead", command, executor) end end else sendresponse("Invalid Player", command, executor) end else sendresponse("Invalid Syntax: " .. command .. " [player] [type] [ammo]", command, executor) end end function getvalidplayers(expression, PlayerIndex) if cur_players ~= 0 then local players = { } if expression == "*" then for i = 1, 16 do if getplayer(i) then table.insert(players, i) end end elseif expression == "me" then if PlayerIndex ~= nil and PlayerIndex ~= -1 and PlayerIndex then table.insert(players, PlayerIndex) end elseif string.sub(expression, 1, 3) == "red" then for i = 1, 16 do if getplayer(i) and get_var(i, "$team") == "red" then table.insert(players, i) end end elseif string.sub(expression, 1, 4) == "blue" then for i = 1, 16 do if get_player(i) and get_var(i, "$team") == "blue" then table.insert(players, i) end end elseif (tonumber(expression) or 0) >= 1 and (tonumber(expression) or 0) <= 16 then local expression = tonumber(expression) if resolveplayer(expression) then table.insert(players, resolveplayer(expression)) end elseif expression == "random" or expression == "rand" then if cur_players == 1 and PlayerIndex ~= nil then table.insert(players, PlayerIndex) return players end local bool = false while not bool do num = math.random(1, 16) if get_player(num) and num ~= PlayerIndex then bool = true end end table.insert(players, num) end if players[1] then return players end end return false end function resolveplayer(PlayerIndex) if PlayerIndex ~= nil and PlayerIndex ~= "-1" then local player_id = get_var(PlayerIndex, "$n") return player_id else return nil end return nil end function sendresponse(message, command, PlayerIndex) if message then if message == "" then return elseif type(message) == "table" then message = message[1] end PlayerIndex = tonumber(PlayerIndex) if command then if PlayerIndex ~= -1 and PlayerIndex >= 1 and PlayerIndex < 16 then execute_command("msg_prefix \"\"") say(PlayerIndex, message) execute_command("msg_prefix \"** SERVER ** \"") else cprint(message .. "", 2 + 8) end else cprint("Internal Error has Occured.", 4 + 8) end end end function tokenizestring(inputstr, sep) if sep == nil then sep = "%s" end local t = { }; i = 1 for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do t[i] = str i = i + 1 end return t end
-- VARIABLES local module = { map = {}, background = {}, far_away = {}, --tile info list_tile_info = {}, nb_tile = 0, --background list_tile_info_back = {}, nb_tile_back = 0, --far away list_tile_info_fa = {}, nb_tile_fa = 0, --flag checkpoint flag = false, flagx = 0, flagy = 0, --mario on ice ice_level = false, --start xstart = 2, ystart = 3, --end end_of_map, --fog r_fog = 200, v_fog = 200, b_fog = 200, bk_dist = 1.5, fa_dist = 6, --timer timer = 360, } -- Initialisation function module.load(cfg, entity_manager, only_entity) log("") log("## LECTURE DE LA MAP") if only_entity then log("Charge uniquement les entites") else --var module.nb_tile = 0 module.nb_tile_back = 0 module.nb_tile_fa = 0 module.ice_level = false --fog module.r_fog = 200 module.v_fog = 200 module.b_fog = 200 module.bk_dist = 1.5 module.fa_dist = 6 --fichier info module.load_info(cfg) --fog log("## FOG") cfg.apply_fog(module.r_fog, module.v_fog, module.b_fog, module.bk_dist, module.fa_dist) end module.flag = false --lecture map count = 0 entity_manager.nb_entity = 0 for line in love.filesystem.lines(cfg.map_name..".txt") do t = {} for i = 1, #line do t[i-1] = line:sub(i, i) entity_type = module.tile_type(t[i-1]) if entity_type ~= nil then entity_manager.add_entity(entity_type, cubesize * count, cubesize * i) end end if not only_entity then module.map[count] = t end count = count + 1 end if not only_entity then log("## CHARGEMENT DE L'ARRIERE PLAN") module.load_background_info(cfg) count = 0 for line in love.filesystem.lines(cfg.map_name.."_background.txt") do t = {} for i = 1, #line do t[i-1] = line:sub(i, i) end module.background[count] = t count = count + 1 end log("## CHARGEMENT DE L'ARRIERE PLAN DE L'ARRIERE PLAN") module.load_fa_info(cfg) count = 0 for line in love.filesystem.lines(cfg.map_name.."_far_away.txt") do t = {} for i = 1, #line do t[i-1] = line:sub(i, i) end module.far_away[count] = t count = count + 1 end end log("## FIN DE LECTURE DE LA MAP") log("") end function module.load_info(cfg) for line in love.filesystem.lines(cfg.map_name.."_info.txt") do words = split_words(line) if words[0] == "TIMER" then module.timer = tonumber(words[1]) log("Timer : "..module.timer.."s") end if words[0] == "ICE_LEVEL" then module.ice_level = true log("ICE_LEVEL : acceleration/friction will be reduce on this map") end if words[0] == "FOG" then module.r_fog = tonumber(words[1]) module.v_fog = tonumber(words[2]) module.b_fog = tonumber(words[3]) module.bk_dist = tonumber(words[4]) module.fa_dist = tonumber(words[5]) log("Fog color r:"..module.r_fog.." v:"..module.r_fog.." b:"..module.r_fog.." Layer2_dist:"..module.bk_dist.." Layer3_dist:"..module.fa_dist) end if words[0] == "START" then module.xstart = tonumber(words[1]) module.ystart = tonumber(words[2]) log("Start location x:"..module.xstart.." y:"..module.ystart) end if words[0] == "END" then var = tonumber(words[1]) module.end_of_map = var * cubesize log("End location ligne:"..var.." xPos:"..module.end_of_map) end if words[0] == "GROUND" then tile = {} tile['tile_type'] = words[0] tile['char'] = words[1] tileset_name = words[2] tile['tileset_name'] = tileset_name x = tonumber(words[3]) y = tonumber(words[4]) tile['quad'] = cfg.get_tile_quad(tileset_name, x, y) module.list_tile_info[module.nb_tile] = tile module.nb_tile = module.nb_tile + 1 log(tile['tile_type'].." char:"..tile['char'].." tileset:"..tile['tileset_name'].." tile_x:"..x.." tile_y:"..y) end if words[0] == "ENTITY" then tile = {} tile['tile_type'] = words[2] tile['char'] = words[1] module.list_tile_info[module.nb_tile] = tile module.nb_tile = module.nb_tile + 1 log(tile['tile_type'].." char:"..tile['char']) end end end function module.load_background_info(cfg) for line in love.filesystem.lines(cfg.map_name.."_background_info.txt") do words = split_words(line) if words[0] == "DECO" then tile = {} tile['tile_type'] = words[0] tile['char'] = words[1] tileset_name = words[2] tile['tileset_name'] = tileset_name x = tonumber(words[3]) y = tonumber(words[4]) tile['quad'] = cfg.get_tile_quad(tileset_name, x, y) module.list_tile_info_back[module.nb_tile_back] = tile module.nb_tile_back = module.nb_tile_back + 1 log(tile['tile_type'].." char:"..tile['char'].." tileset:"..tile['tileset_name'].." tile_x:"..x.." tile_y:"..y) end end end function module.load_fa_info(cfg) for line in love.filesystem.lines(cfg.map_name.."_far_away_info.txt") do words = split_words(line) if words[0] == "DECO" then tile = {} tile['tile_type'] = words[0] tile['char'] = words[1] tileset_name = words[2] tile['tileset_name'] = tileset_name x = tonumber(words[3]) y = tonumber(words[4]) tile['quad'] = cfg.get_tile_quad(tileset_name, x, y) module.list_tile_info_fa[module.nb_tile_fa] = tile module.nb_tile_fa = module.nb_tile_fa + 1 log(tile['tile_type'].." char:"..tile['char'].." tileset:"..tile['tileset_name'].." tile_x:"..x.." tile_y:"..y) end end end --------------------------------------------- -- GET TILE_TYPE function module.tile_type(char) for i = 0, module.nb_tile - 1 do tile = module.list_tile_info[i] if tile['char'] == char then return tile['tile_type'] end end return nil end -- GET QUAD function module.tile_quad(char) for i = 0, module.nb_tile - 1 do tile = module.list_tile_info[i] if tile['char'] == char then return tile['quad'] end end return nil end function module.tile_quad_via_type(tile_type) for i = 0, module.nb_tile - 1 do tile = module.list_tile_info[i] if tile['tile_type'] == tile_type then return tile['quad'] end end return nil end -- GET TILESET_NAME function module.tileset_name(char) for i = 0, module.nb_tile - 1 do tile = module.list_tile_info[i] if tile['char'] == char then return tile['tileset_name'] end end return nil end function module.tileset_name_via_type(tile_type) for i = 0, module.nb_tile - 1 do tile = module.list_tile_info[i] if tile['tile_type'] == tile_type then return tile['tileset_name'] end end return nil end --BACKGROUND function module.tile_type_background(char) for i = 0, module.nb_tile_back - 1 do tile = module.list_tile_info_back[i] if tile['char'] == char then return tile['tile_type'] end end return nil end function module.tile_quad_background(char) for i = 0, module.nb_tile_back - 1 do tile = module.list_tile_info_back[i] if tile['char'] == char then return tile['quad'] end end return nil end function module.tileset_name_background(char) for i = 0, module.nb_tile_back - 1 do tile = module.list_tile_info_back[i] if tile['char'] == char then return tile['tileset_name'] end end return nil end --FAR FAR AWAY function module.tile_type_fa(char) for i = 0, module.nb_tile_fa - 1 do tile = module.list_tile_info_fa[i] if tile['char'] == char then return tile['tile_type'] end end return nil end function module.tile_quad_fa(char) for i = 0, module.nb_tile_fa - 1 do tile = module.list_tile_info_fa[i] if tile['char'] == char then return tile['quad'] end end return nil end function module.tileset_name_fa(char) for i = 0, module.nb_tile_fa - 1 do tile = module.list_tile_info_fa[i] if tile['char'] == char then return tile['tileset_name'] end end return nil end -- MODULE END return module
-- This script will be used for testing/debugging purposes in setting up some basic player storage. local MetaAbilityProgressionConstants_API = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API")) local MetaAbilityProgressionUTIL_API = require(script:GetCustomProperty("MetaAbilityProgressionUTIL_API")) function OnPlayerJoined(player) local data = Storage.GetPlayerData(player) --PopulateFullStorage(player, data) --PopulateSomeStorage(player, data) --PopulateNewPlayerStorage(player, data) end function PopulateFullStorage(player, data) -- TODO end function PopulateSomeStorage(player, data) -- Progress data has been moved to shared storage. --[[ data[tostring(MetaAbilityProgressionConstants_API.STORAGE.PROGRESSION)] = {} local dataString = "01|1|1|1|1|0~03|1|1|1|0|0~06|1|1|0|0|0~07|1|1|0|1|0~09|1|1|1|1|0~11|1|1|0|0|0~14|1|1|0|0|0" table.insert(data[tostring(MetaAbilityProgressionConstants_API.STORAGE.PROGRESSION)],dataString) Storage.SetPlayerData(player, data) ]] player:SetResource(MetaAbilityProgressionConstants_API.GetEquippedTankResource(), "06") player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(1), 1500) player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(3), 6000) player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(6), 3500) player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(7), 8000) player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(9), 1650) player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(11), 2750) player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(14), 3000) player:SetResource(MetaAbilityProgressionConstants_API.SILVER, 72000) player:SetResource(MetaAbilityProgressionConstants_API.FREERP, 8000) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.TOTAL_DAMAGE_RES, 9875) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.ACCURACY, 7055) -- Divide by 100 to be able to store/show values to decimal places? Ex: this would be 70.55% player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.AVERAGE_DAMAGE, 1070) -- Average damage per battle player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.CURRENT_KILL_STREAK, 0) -- Most likely just used during battles player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.LARGEST_KILL_STREAK, 4) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.GAMES_PLAYED_RES, 37) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.TOTAL_WINS, 20) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.TOTAL_LOSSES, 17) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.TOTAL_DEATHS, 17) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.TOTAL_KILLS, 29) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.TOTAL_ASSISTS, 35) player:SetResource(MetaAbilityProgressionConstants_API.COMBAT_STATS.MOST_TANKS_DESTROYED, 6) -- Most tanks destroyed in a single match end function PopulateNewPlayerStorage(player, data) -- Progress data has been moved to shared storage. --[[ data[tostring(MetaAbilityProgressionConstants_API.STORAGE.PROGRESSION)] = {} local dataString = "01|1|1|0|0|0" table.insert(data[tostring(MetaAbilityProgressionConstants_API.STORAGE.PROGRESSION)],dataString) Storage.SetPlayerData(player, data) ]] player:SetResource(MetaAbilityProgressionUTIL_API.GetTankRPString(1), 0) player:SetResource(MetaAbilityProgressionConstants_API.SILVER, 0) player:SetResource(MetaAbilityProgressionConstants_API.FREERP, 0) end Game.playerJoinedEvent:Connect(OnPlayerJoined)
local base_ui = require"module/gui/component/base_ui" local rectangle = require"module/graphics/rectangle" local utf8 = require"library/utf8_simple" local lksd = love.keyboard.isDown local function insert_str(str,pos,ins) return utf8.sub(str,0,pos)..ins..utf8.sub(str,pos + 1,utf8.len(str)) end local input = class("input",base_ui){ input_text = "", final_input = "",--输入完毕的文本 style = { font = nil, font_color = nil, box = nil, bg = nil, }, cursor = 0, remove_clock = 0, remove_speed = 0.06, move_speed = 0.08, cursor_clock = 0, cursor_speed = 0.4, cursor_draw = true, move_clock = 0, text_draw_offset = 0, } function input:__init(x,y,w,h,style) base_ui.__init(self,x,y,w,h) self:_init_style(style) self:signal("confirm_input") self:signal("input") end function input:_init_style(style) style = style or {} local w,h = self.width,self.height self.style.font = ling.font.default self.style.font_color = style.font_color or {226,101,11,255} self.style.box = style.box or rectangle("line",w,h,{226,101,11,255}) self.style.bg = style.bg or rectangle("fill",w,h,{255,215,155,255}) end function input:update(dt) local ish = self:is_hover() local isd = love.mouse.isDown(1) if ish and isd then self.locking = true elseif not ish and isd then self.locking = false end if self.locking then self.remove_clock = self.remove_clock + dt--删除时钟 self.cursor_clock = self.cursor_clock + dt--光标闪烁时钟 self.move_clock = self.move_clock + dt--光标移动时钟 if self.cursor_clock >= self.cursor_speed then self.cursor_clock = 0 self.cursor_draw = not self.cursor_draw end if self.remove_clock >= self.remove_speed then self.remove_clock = 0 if lksd("backspace") then local pos = self.cursor if pos > 0 then local str = self.input_text local r_str = utf8.sub(str,1,pos - 1) local l_str = utf8.sub(str,pos + 1,utf8.len(str)) self.input_text = r_str..l_str self.cursor = math.max(0,self.cursor - 1) self:release("input",self.input_text) end end end if self.move_clock >= self.move_speed then self.move_clock = 0 if lksd("left") then self.cursor = math.max(0,self.cursor - 1) elseif lksd("right") then self.cursor = math.min(self.cursor + 1,utf8.len(self.input_text)) end end end end function input:textinput(text) if self.locking then self.input_text = insert_str(self.input_text,self.cursor,text) self.cursor = math.min(self.cursor + 1,utf8.len(self.input_text)) self.final_input = self.input_text self:release("input",self.input_text) end end function input:keypressed(key) if self.locking then if key == "return" then self.locking = false self.final_input = self.input_text self.input_text = "" self:release("confirm_input",self.final_input) end end end function input:draw_input(x,y) local wx,wy = self:get_wpos() local self_font = self.style.font local font = self_font or ling.default_font local tx = x local ty = y + (self.height / 2 - font:getHeight() / 2) local offset = 0 local cux,cuy = tx,ty local tw = font:getWidth(self.input_text) local cw = font:getWidth(utf8.sub(self.input_text,1,self.cursor)) local w = self.width - 4 if cw - self.text_draw_offset < 0 then self.text_draw_offset = cw end if cw - self.text_draw_offset > w then self.text_draw_offset = cw - w end local sx, sy, sw, sh = love.graphics.getScissor() if sx then if wx > sx and wy > sy and wx + self.width < sy + sw and wy + self.height < sy + sw then love.graphics.setScissor(wx,wy,self.width,self.height) end end love.graphics.setColor(unpack(self.style.font_color)) love.graphics.print(self.input_text,tx - self.text_draw_offset,ty) if self.locking and self.cursor_draw then cux = (cux + cw - self.text_draw_offset) + 2 local cuh = self.height * 0.5 love.graphics.rectangle("fill",cux,wy + self.height / 2 - cuh/2,2,cuh) love.graphics.setColor(255,255,255,100) end love.graphics.setColor(255,255,255,255) love.graphics.setScissor(sx, sy, sw, sh) end function input:draw() local x,y = self:get_pos() self.style.bg:draw(x,y) self.style.box:draw(x,y) self:draw_input(x,y) end return input
local entity = {} entity["level"] = [[78]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Akasha Arts]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Ziodyne]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[Bufudyne]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Strike]] entity["heritage"][2] = [[]] entity["resistance"] = {} entity["resistance"][1] = [[Normal]] entity["resistance"][2] = [[Normal]] entity["resistance"][3] = [[Normal]] entity["resistance"][4] = [[Normal]] entity["resistance"][5] = [[Null]] entity["resistance"][6] = [[Null]] entity["resistance"][7] = [[Normal]] entity["resistance"][8] = [[Repel]] entity["resistance"][9] = [[Weak]] entity["desc"] = [[One of the major gods in Hindu myth, he is the preserver of the universe. It is believed that he will descend to earth ten times to maintain the balance of power.]] --a function: evolveName entity["arcana"] = [[Sun]] entity["stats"] = {} entity["stats"][1] = [[53]] entity["stats"][2] = [[58]] entity["stats"][3] = [[47]] entity["stats"][4] = [[56]] entity["stats"][5] = [[51]] entity["name"] = [[Vishnu]] entity["spellLearn"] = {} entity["spellLearn"]["Mind Charge"] = [[80]] entity["spellLearn"]["God's Hand"] = [[82]] entity["spellLearn"]["Salvation"] = [[86]] return entity
local paseto = require "paseto.v2.core" local basexx = require "basexx" describe("v2 protocol core", function() describe("key generation", function() it("should generate a symmetric key", function() local symmetric = paseto.generate_symmetric_key() assert.equal(paseto.SYMMETRIC_KEY_BYTES, #symmetric) end) it("should generate an asymmetric key", function() local secret_key, public_key = paseto.generate_asymmetric_secret_key() assert.equal(paseto.ASYMMETRIC_SECRET_KEY_BYTES, #secret_key) assert.equal(paseto.ASYMMETRIC_PUBLIC_KEY_BYTES, #public_key) end) end) describe("pre auth encode", function() it("should encode an empty array", function() assert.equal("0000000000000000", basexx.to_hex(paseto.__pre_auth_encode())); end) it("should encode an array consisting of a single empty string", function() assert.equal("01000000000000000000000000000000", basexx.to_hex(paseto.__pre_auth_encode(""))); end) it("should encode an array consisting of empty strings", function() assert.equal("020000000000000000000000000000000000000000000000", basexx.to_hex(paseto.__pre_auth_encode("", ""))); end) it("should encode an array consisting of a single non-empty string", function() assert.equal(string.upper("0100000000000000070000000000000050617261676f6e"), basexx.to_hex(paseto.__pre_auth_encode("Paragon"))); end) it("should encode an array consisting of non-empty strings", function() assert.equal(string.upper("0200000000000000070000000000000050617261676f6e0a00000000000000496e6974696174697665"), basexx.to_hex(paseto.__pre_auth_encode("Paragon", "Initiative"))); end) it("should ensure that faked padding results in different prefixes", function() assert.equal(string.upper("0100000000000000190000000000000050617261676f6e0a00000000000000496e6974696174697665"), basexx.to_hex(paseto.__pre_auth_encode( "Paragon" .. string.char(10) .. string.rep("\0", 7) .. "Initiative"))); end) end) describe("validate and remove footer", function() local payload, footer, token setup(function() local luasodium = require("luasodium") payload = basexx.to_url64(luasodium.randombytes(30)) footer = luasodium.randombytes(10) token = payload .. "." .. basexx.to_url64(footer) end) it("should validate and remove footer from token data", function() assert.equal(payload, paseto.__validate_and_remove_footer(token, footer)) end) it("should raise error 'Invalid message footer'", function() local validated, err = paseto.__validate_and_remove_footer(token, "wrong") assert.equal(nil, validated) assert.equal("Invalid message footer", err) end) end) describe("extract version and purpose", function() local key, secret_key, message setup(function() key = paseto.generate_symmetric_key() secret_key = paseto.generate_asymmetric_secret_key() message = "test" end) it("should extract the version and purpose from a 'local' token", function() local token = paseto.encrypt(key, message) local version, purpose = paseto.extract_version_purpose(token) assert.equal("v2", version) assert.equal("local", purpose) end) it("should extract the version and purpose from a 'public' token", function() local token = paseto.sign(secret_key, message) local version, purpose = paseto.extract_version_purpose(token) assert.equal("v2", version) assert.equal("public", purpose) end) it("should raise error 'Invalid token format' for malformed tokens", function() local version, purpose, err = paseto.extract_version_purpose("v2.public") assert.equal(nil, version) assert.equal(nil, purpose) assert.equal("Invalid token format", err) end) it("should raise error 'Invalid token format' for malformed tokens", function() local version, purpose, err = paseto.extract_version_purpose("v2.public.payload.footer.malformed") assert.equal(nil, version) assert.equal(nil, purpose) assert.equal("Invalid token format", err) end) it("should raise error 'Invalid token format' for nil values", function() local version, purpose, err = paseto.extract_version_purpose() assert.equal(nil, version) assert.equal(nil, purpose) assert.equal("Invalid token format", err) end) end) describe("extract footer", function() local key, secret_key, message, footer setup(function() key = paseto.generate_symmetric_key() secret_key = paseto.generate_asymmetric_secret_key() message = "test" footer = "{\"kid\":\"zVhMiPBP9fRf2snEcT7gFTioeA9COcNy9DfgL1W60haN\"}" end) it("should extract the footer claims from a 'local' token", function() local token = paseto.encrypt(key, message, footer) local extracted_footer = paseto.extract_footer(token) assert.equal(footer, extracted_footer) end) it("should extract the footer claims from a 'public' token", function() local token = paseto.sign(secret_key, message, footer) local extracted_footer = paseto.extract_footer(token) assert.equal(footer, extracted_footer) end) it("should return an empty string for tokens without a footer", function() local token = paseto.sign(secret_key, message) local extracted_footer = paseto.extract_footer(token) assert.equal("", extracted_footer) end) it("should raise error 'Invalid token format' for malformed tokens", function() local extracted_footer, err = paseto.extract_footer("v2.public") assert.equal(nil, extracted_footer) assert.equal("Invalid token format", err) end) it("should raise error 'Invalid token format' for malformed tokens", function() local extracted_footer, err = paseto.extract_footer("v2.public.payload.footer.malformed") assert.equal(nil, extracted_footer) assert.equal("Invalid token format", err) end) it("should raise error 'Invalid token format' for nil values", function() local extracted_footer, err = paseto.extract_footer() assert.equal(nil, extracted_footer) assert.equal("Invalid token format", err) end) end) describe("authenticated encryption", function() local key, message, footer setup(function() key = paseto.generate_symmetric_key() footer = "footer" end) describe("text", function() setup(function() message = "test" end) it("should encrypt and decrypt text without footer", function() local token = paseto.encrypt(key, message) assert.equal("string", type(token)) assert.equal("v2.local.", string.sub(token, 1, 9)) local decrypted = paseto.decrypt(key, token) assert.equal("string", type(decrypted)) assert.equal(message, decrypted) end) it("should encrypt and decrypt text with footer", function() local token = paseto.encrypt(key, message, footer) assert.equal("string", type(token)) assert.equal("v2.local.", string.sub(token, 1, 9)) local decrypted = paseto.decrypt(key, token, footer) assert.equal("string", type(decrypted)) assert.equal(message, decrypted) end) it("should raise error 'Invalid key size'", function() local token, err = paseto.encrypt("\0", message) assert.equal(nil, token) assert.equal("Invalid key size", err) end) it("should raise error 'Invalid message header'", function() local decrypt, err = paseto.decrypt(key, "invalid") assert.equal(nil, decrypt) assert.equal("Invalid message header", err) end) it("should raise error 'Message forged'", function() local decrypt, err = paseto.decrypt(key, "v2.local.forged") assert.equal(nil, decrypt) assert.equal("Message forged", err) end) it("should raise error 'Message forged' when key is invalid", function() local token = paseto.encrypt(key, message) local decrypt, err = paseto.decrypt("\0", token) assert.equal(nil, decrypt) assert.equal("Message forged", err) end) it("should raise error 'Invalid message footer'", function() local token = paseto.encrypt(key, message) local decrypt, err = paseto.decrypt(key, token, "footer") assert.equal(nil, decrypt) assert.equal("Invalid message footer", err) end) end) describe("json", function() setup(function() message = "{ \"data\": \"this is a signed message\", \"expires\": \"" .. os.date("%Y") .. "-01-01T00:00:00+00:00\" }" end) it("should encrypt and decrypt json without footer", function() local token = paseto.encrypt(key, message) assert.equal("string", type(token)) assert.equal("v2.local.", string.sub(token, 1, 9)) local decrypted = paseto.decrypt(key, token) assert.equal("string", type(decrypted)) assert.equal(message, decrypted) end) it("should encrypt and decrypt json with footer", function() local token = paseto.encrypt(key, message, footer) assert.equal("string", type(token)) assert.equal("v2.local.", string.sub(token, 1, 9)) local decrypted = paseto.decrypt(key, token, footer) assert.equal("string", type(decrypted)) assert.equal(message, decrypted) end) end) end) describe("signing", function() local secret_key, public_key, message, footer setup(function() secret_key, public_key = paseto.generate_asymmetric_secret_key() footer = "footer" end) describe("text", function() setup(function() message = "test" end) it("should sign and verify text successfully without footer", function() local token = paseto.sign(secret_key, message) assert.equal("string", type(token)) assert.equal("v2.public.", string.sub(token, 1, 10)) local verified = paseto.verify(public_key, token) assert.equal("string", type(verified)) assert.equal(message, verified) end) it("should sign and verify text successfully with footer", function() local token = paseto.sign(secret_key, message, footer) assert.equal("string", type(token)) assert.equal("v2.public.", string.sub(token, 1, 10)) local verified = paseto.verify(public_key, token, footer) assert.equal("string", type(verified)) assert.equal(message, verified) end) it("should raise error 'Invalid message header'", function() local verify, err = paseto.verify(public_key, message) assert.equal(nil, verify) assert.equal("Invalid message header", err) end) it("should raise error 'Invalid signature for this message'", function() local verify, err = paseto.verify(public_key, "v2.public." .. message) assert.equal(nil, verify) assert.equal("Invalid signature for this message", err) end) it("should raise error 'Invalid message footer'", function() local token = paseto.sign(secret_key, message) local verify, err = paseto.verify(public_key, token, "footer") assert.equal(nil, verify) assert.equal("Invalid message footer", err) end) end) describe("json", function() setup(function() message = "{ \"data\": \"this is a signed message\", \"expires\": \"" .. os.date("%Y") .. "-01-01T00:00:00+00:00\" }" end) it("should sign and verify json successfully without footer", function() local token = paseto.sign(secret_key, message) assert.equal("string", type(token)) assert.equal("v2.public.", string.sub(token, 1, 10)) local verified = paseto.verify(public_key, token) assert.equal("string", type(verified)) assert.equal(message, verified) end) it("should sign and verify json successfully with footer", function() local token = paseto.sign(secret_key, message, footer) assert.equal("string", type(token)) assert.equal("v2.public.", string.sub(token, 1, 10)) local verified = paseto.verify(public_key, token, footer) assert.equal("string", type(verified)) assert.equal(message, verified) end) end) end) describe("readme examples for the core API", function() describe("v2.local example", function() it("should encrypt and decrypt", function() local key, message, token, footer, extracted_footer, decrypted message = "my secret message" footer = "my footer" -- generate symmetric key key = paseto.generate_symmetric_key() -- encrypt/decrypt without footer token = paseto.encrypt(key, message) decrypted = paseto.decrypt(key, token) assert.equal(message, decrypted) -- encrypt/decrypt with footer token = paseto.encrypt(key, message, footer) extracted_footer = paseto.extract_footer(token) decrypted = paseto.decrypt(key, token, extracted_footer) assert.equal(message, decrypted) end) end) describe("v2.public example", function() it("should sign and verify", function() local secret_key, public_key, message, token, footer, extracted_footer, verified message = "my signed message" footer = "my footer" -- generate key pair secret_key, public_key = paseto.generate_asymmetric_secret_key() -- sign/verify without footer token = paseto.sign(secret_key, message) verified = paseto.verify(public_key, token) assert.equal(message, verified) -- sign/verify with footer token = paseto.sign(secret_key, message, footer) extracted_footer = paseto.extract_footer(token) verified = paseto.verify(public_key, token, extracted_footer) assert.equal(message, verified) end) end) end) end)
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/energybased/GEMLayout.lua,v 1.2 2013/10/07 18:43:25 tantau Exp $ local key = require 'pgf.gd.doc'.key local documentation = require 'pgf.gd.doc'.documentation local summary = require 'pgf.gd.doc'.summary local example = require 'pgf.gd.doc'.example -------------------------------------------------------------------------------- key "GEMLayout" summary "The energy-based GEM layout algorithm." documentation [[ The implementation used in |GEMLayout| is based on the following publication: \begin{itemize} \item Arne Frick, Andreas Ludwig, Heiko Mehldau: \emph{A Fast Adaptive Layout Algorithm for Undirected Graphs.} Proc. Graph Drawing 1994, LNCS 894, pp. 388-403, 1995. \end{itemize} ]] -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.numberOfRounds" summary "Sets the maximal number of round per node." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.minimalTemperature" summary "Sets the minimal temperature." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.initialTemperature" summary "Sets the initial temperature; must be $\\ge$ |minimalTemperature|." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.gravitationalConstant" summary "Sets the gravitational constant; must be $\\ge 0$." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.desiredLength" summary "Sets the desired edge length; must be $\\ge 0$." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.maximalDisturbance" summary "Sets the maximal disturbance; must be $\\ge 0$." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.rotationAngle" summary "Sets the opening angle for rotations ($0 \\le x \\le \\pi / 2$)." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.oscillationAngle" summary "Sets the opening angle for oscillations ($0 \\le x \\le \\pi / 2$)." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.rotationSensitivity" summary "Sets the rotation sensitivity ($0 \\le x \\le 1$)." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.oscillationSensitivity" summary "Sets the oscillation sensitivity ($0 \\le x \\le 1$)." -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- key "GEMLayout.attractionFormula" summary "sets the formula for attraction (1 = Fruchterman / Reingold, 2 = GEM)." -------------------------------------------------------------------------------- -- Local Variables: -- mode:latex -- End:
require 'xlua' local bench_utils = {} -- Read the last line of a command line output handler local read_last_line = function(handler) -- hack to get the last line of a file local last_line for line in handler:lines() do last_line = line end return last_line end -- Print one line to the output file local print_one_result = function(output, command, accuracy) output:write("| "..command.." | "..accuracy.." |\n") end -- Run the tests specified in params and write the results in the output file -- Each element of params must contain: -- el[1] = command line option -- el[2] = table of the values to test -- if the value is false, the option will not be use, -- if the value is true, the option will be used without specific value function bench_utils.run_test(params, output) -- Add an empty line to the output file print_one_result(output,'','') -- Compute all the combinations local arg_table for _, param in pairs(params) do local new_table = {} for _, value in pairs(param[2]) do local param_value_opt = '' if value == true then param_value_opt = param[1] elseif value ~= false then param_value_opt = param[1] .. value end if not arg_table then table.insert(new_table, param_value_opt) else for _, arg in pairs(arg_table) do table.insert(new_table, arg .. ' ' .. param_value_opt) end end end arg_table = new_table end -- Run the tests local current = 0 for _,arg in pairs(arg_table) do xlua.progress(current, #arg_table) current = current + 1 local cmd = 'luajit main.lua --script ' .. arg local handler = io.popen(cmd) local accuracy = read_last_line(handler) print_one_result(output, arg, accuracy) end -- Finish progress xlua.progress(#arg_table, #arg_table) end return bench_utils
require("libs.lua.numbers") -- get the value of a nested table by accessing the keys passed as array function table.getMD(tabl,keyArray) local cur = tabl for _,key in pairs(keyArray) do cur = cur[key] if cur == nil then return nil end end return cur end -- set the value of a nested table by accessing the keys passed as array -- mode: -- 1 = create all missing keys -- 2 = create only last key -- 3 = only overwrite value function table.setMD(tabl,keyArray,value,mode) mode = mode or 1 if mode <1 or mode>3 or not isint(mode) then error("invalid mode passed to setMD function. mode: "..tostring(mode).." keyArray: "..serpent.block(keyArray)) end local cur = tabl local nex local lastKey = table.remove(keyArray) for _,key in pairs(keyArray) do if cur[key]==nil then if mode==1 then cur[key]={} else return false end end cur = cur[key] if cur == nil then return false end end if mode==3 and cur[lastKey]==nil then return false end cur[lastKey] = value return true end
--[[ The MIT License (MIT) Copyright (c) 2021, Milind Gupta Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] --[[ Searcher for nested lua modules This module makes searching for nested modules cleaner for complex search paths. For example if the search path is a/b/?/c/?.lua The the normal search for module mod.submod searches this path: a/b/mod/submod/c/mod/submod.lua -- This does not comply with good hierarchical representation of mod module After this searcher is included it will also search for the module in the path: a/b/mod/c/mod/submod.lua It will also search the alternative path: a/b/mod/c/submod.lua For mod.subMod.subMod1 it will search: a/b/mod/c/mod/subMod/subMod1.lua It will also search the alternative path: a/b/mod/c/submod/submod1.lua Same for the C modules ]] local key = "searchers" if _VERSION == "Lua 5.1" then key = "loaders" end package[key][#package[key] + 1] = function(mod) -- Check if this is a multi hierarchy module local dotpos = mod:find(".",1,true) if dotpos and dotpos > 1 and dotpos < #mod then -- Get the top most name local totErr = "" local top = mod:sub(1,mod:find(".",1,true)-1) --print("top="..top) local sep = package.config:match("(.-)%s") local delim = package.config:match(".-%s+(.-)%s") local subst = mod:gsub("%.",sep) -- The whole module name separated by the system separator instead of dots local subst1 = mod:match("^.-%.(.+)$"):gsub("%.",sep) -- The subsequent names separated by the system separator instead of dots --print("subst1="..subst1) -- Now loop through all the lua module paths local ppath = package.path if ppath:sub(-1,-1) ~= "delim" then ppath = ppath..delim end for path in ppath:gmatch("(.-)"..delim) do if path ~= "" then local pathBac = path -- Substitute the last question mark with subst and all before with top local _,num = path:gsub("%?","") path = path:gsub("%?",top,num-1) path = path:gsub("%?",subst) --print("SS:Search at..."..path) -- try loading this file local f,err = loadfile(path) if not f then if err:find("No such file") then totErr = totErr.."\n\tno file '"..path.."'" else error("error loading module '"..mod.."' from file '"..path.."': "..err,3) end else --print("FOUND") return f,path end -- Now try with subst1 path = pathBac _,num = path:gsub("%?","") if num > 1 then -- if there are more than 1 then only try this one path = path:gsub("%?",top,num-1) path = path:gsub("%?",subst1) --print("SS:Alternate Search at..."..path) -- try loading this file f,err = loadfile(path) if not f then if err:find("No such file") then totErr = totErr.."\n\tno file '"..path.."'" else error("error loading module '"..mod.."' from file '"..path.."': "..err,3) end else --print("FOUND") return f,path end end end -- if path ~= "" ends here end return totErr end end -- Searcher for nested dynamic libraries package[key][#package[key] + 1] = function(mod) -- Check if this is a multi hierarchy module local dotpos = mod:find(".",1,true) if dotpos and dotpos > 1 and dotpos < #mod then -- Get the top most name local totErr = "" local top = mod:sub(1,mod:find(".",1,true)-1) local sep = package.config:match("(.-)%s") local delim = package.config:match(".-%s+(.-)%s") local subst = mod:gsub("%.",sep) local subst1 = mod:match("^.-%.(.+)$"):gsub("%.",sep) --print("subst1="..subst1,"subst="..subst) -- Now loop through all the lua module paths local ppath = package.cpath if ppath:sub(-1,-1) ~= delim then ppath = ppath..delim end for path in package.cpath:gmatch("(.-)"..delim) do local pathBac = path local _,num = path:gsub("%?","") path = path:gsub("%?",top,num-1) path = path:gsub("%?",subst) --print("Search at..."..path) -- try loading this file --print(path) local f,err = package.loadlib(path,"luaopen_"..mod:gsub("%.","_")) if not f then totErr = totErr.."\n\tno file '"..path.."'" else --print("FOUND") return f,path end -- Now try with subst1 path = pathBac _,num = path:gsub("%?","") path = path:gsub("%?",top,num-1) path = path:gsub("%?",subst1) --print("Alternate Search at..."..path) -- try loading this file --print(path,"luaopen_"..mod:gsub("%.","_"),num) f,err = package.loadlib(path,"luaopen_"..mod:gsub("%.","_")) if not f then --print("Not loaded",err) totErr = totErr.."\n\tno file '"..path.."'" else --print("FOUND") return f,path end end return totErr end end
Name = "epicikr" Colors = {"Cyan", "Black"} Plrs = game:GetService("Players") me = Plrs[Name] char = me.Character Modelname = "xGun" Toolname = "xGun" Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"} necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) selected = false Hurt = false Deb = true Able = true Prop = {Damage = 30} ToolIcon = "" MouseIc = "" MouseDo = "" Add = { Sphere = function(P) local m = Instance.new("SpecialMesh",P) m.MeshType = "Sphere" return m end, BF = function(P) local bf = Instance.new("BodyForce",P) bf.force = Vector3.new(0, P:GetMass()*147, 0) return bf end, BP = function(P) local bp = Instance.new("BodyPosition",P) bp.maxForce = Vector3.new(math.huge, 0, math.huge) bp.P = 14000 return bp end, BG = function(P) local bg = Instance.new("BodyGyro",P) bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) bg.P = 14000 return bg end, Mesh = function(P, ID, x, y, z) local m = Instance.new("SpecialMesh") m.MeshId = ID m.Scale = Vector3.new(x, y, z) m.Parent = P return m end, Sound = function(P, ID, vol, pitch) local s = Instance.new("Sound") s.SoundId = ID s.Volume = vol s.Pitch = pitch s.Parent = P return s end } function find(tab, arg) local ah = nil for i,v in pairs(tab) do if v == arg then ah = v end end return ah end function getAllParts(from) local t = {} function getParts(where) for i, v in pairs(where:children()) do if v:IsA("BasePart") then if v.Parent ~= char and v.Parent.Parent ~= char then table.insert(t, v) end end getParts(v) end end getParts(workspace) return t end function RayCast(pos1, pos2, maxDist, forward) local list = getAllParts(workspace) local pos0 = pos1 for dist = 1, maxDist, forward do pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p for _, v in pairs(list) do local pos3 = v.CFrame:pointToObjectSpace(pos0) local s = v.Size if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide == true then return pos0, v end end end return pos0, nil end function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break) local p = Instance.new("Part") p.formFactor = "Custom" p.Anchored = Anchor p.CanCollide = Collide p.Transparency = Tran p.Reflectance = Ref p.BrickColor = BrickColor.new(Color) for _, Surf in pairs(Surfaces) do p[Surf] = "Smooth" end p.Size = Vector3.new(X, Y, Z) if Break then p:BreakJoints() else p:MakeJoints() end p.Parent = Parent return p end function Weld(p0, p1, x, y, z, a, b, c) local w = Instance.new("Weld") w.Parent = p0 w.Part0 = p0 w.Part1 = p1 w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c) return w end function ComputePos(pos1, pos2) local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z) return CFrame.new(pos1, pos3) end function getHumanoid(c) local h = nil for i,v in pairs(c:children()) do if v:IsA("Humanoid") and c ~= char then if v.Health > 0 then h = v end end end return h end for i,v in pairs(char:children()) do if v.Name == Modelname then v:remove() end end torso = char.Torso neck = torso.Neck hum = char.Humanoid Rarm = char["Right Arm"] Larm = char["Left Arm"] Rleg = char["Right Leg"] Lleg = char["Left Leg"] hc = Instance.new("Humanoid") hc.Health = 0 hc.MaxHealth = 0 slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8) hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6) charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65) boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3) smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35) boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18) function PlaySound(sound, pitch, vol) local s = sound:clone() if pitch ~= nil then if tonumber(pitch) then s.Pitch = tonumber(pitch) end end if vol ~= nil then if tonumber(vol) then s.Volume = tonumber(vol) end end s.Parent = torso s.PlayOnRemove = true coroutine.resume(coroutine.create(function() wait() s:remove() end)) end Mo = Instance.new("Model") Mo.Name = Modelname RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0) LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0) RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0) LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0) RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0) LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0) RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0) LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0) HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0) HW = Weld(HB, nil, 0, -0.2, 0, math.pi/2, 0, 0) TH = Weld(torso, nil, -0.3, -0.25, 1.5, math.rad(-60), 0, math.rad(-45)) THMain = TH.C1 BG = Add.BG(nil) RAWStand, LAWStand, RLWStand, LLWStand, HWStand, NeckStand = nil handle = Part(Mo, false, false, 0, 0, Colors[2], 0.6, 1.6, 0.6, true) Instance.new("SpecialMesh",handle) handle.Name = "Handle" tip1 = Part(Mo, false, false, 0, 0, Colors[2], 1, 0.8, 1, true) Instance.new("SpecialMesh",tip1) Weld(handle, tip1, 0, -0.1, 1, math.rad(-90), 0, 0) tip2 = Part(Mo, false, false, 0, 0, Colors[2], 0.6, 0.8, 0.6, true) Instance.new("SpecialMesh",tip2) Weld(tip1, tip2, 0, -0.4, 0, 0, 0, 0) tip3 = Part(Mo, false, false, 0, 0, Colors[2], 1.2, 0.3, 1.2, true) Instance.new("CylinderMesh",tip3) Weld(tip2, tip3, 0, -0.3, 0, 0, 0, 0) for i = 0, 360, 22.5 do local tip4 = Part(Mo, false, false, 0, 0, Colors[1], 0.2, 1, 0.2, true) Instance.new("BlockMesh",tip4).Scale = Vector3.new(1, 1, 0.9) local w = Weld(tip3, tip4, -0.35, 0, 0, 0, 0, 0) w.C0 = CFrame.new(0, 0.65, 0) * CFrame.Angles(0, math.rad(i), 0) local tip5 = Part(Mo, false, false, 0, 0, Colors[2], 0.35, 0.2, 0.25, true) Instance.new("BlockMesh",tip5) local w2 = Weld(tip4, tip5, -0.05, -0.6, 0, 0, 0, 0) local tip7 = Part(Mo, false, false, 0, 0, Colors[2], 0.2, 0.4, 0.2, true) Instance.new("BlockMesh",tip7).Scale = Vector3.new(1, 1, 1) Weld(tip5, tip7, 0.1, -0.3, 0, 0, 0, 0) local tip8 = Part(Mo, false, false, 0, 0, Colors[2], 0.35, 0.2, 0.25, true) Instance.new("BlockMesh",tip8) Weld(tip5, tip8, 0, -0.5, 0, 0, 0, 0) end for i = 0, 360, 90 do local tip6 = Part(Mo, false, false, 0, 0, Colors[2], 0.2, 1, 0.2, true) Instance.new("BlockMesh",tip6) local w = Weld(tip3, tip6, -0.45, 0, 0, 0, 0, 0) w.C0 = CFrame.new(0, 0.65, 0) * CFrame.Angles(0, math.rad(i), 0) end Mo.Parent = char TH.Part1 = handle if script.Parent.className ~= "HopperBin" then h = Instance.new("HopperBin",me.Backpack) h.Name = Toolname h.TextureId = ToolIcon script.Parent = h end bin = script.Parent function detach(bool) LLW.C0 = CFrame.new(0, 0, 0) RLW.C0 = CFrame.new(0, 0, 0) LAW.C0 = CFrame.new(0, 0, 0) RAW.C0 = CFrame.new(0, 0, 0) if bool then LLW.Part1 = nil RLW.Part1 = nil RAW.Part1 = nil LAW.Part1 = nil TH.Part1 = handle HW.Part1 = nil end end function attach() RAW.Part1 = Rarm LAW.Part1 = Larm RLW.Part1 = Rleg LLW.Part1 = Lleg end function normal() neck.C0 = NeckStand RAW.C0 = RAWStand LAW.C0 = LAWStand RLW.C0 = RLWStand LLW.C0 = LLWStand RAW.C1 = CFrame.new(0, 0.5, 0) LAW.C1 = CFrame.new(0, 0.5, 0) RLW.C1 = CFrame.new(0, 0.8, 0) LLW.C1 = CFrame.new(0, 0.8, 0) HW.C0 = HWStand end function idleanim() attach() for i = 0, 1, 0.03 do RAW.C0 = RAWStand * CFrame.Angles(0, 0, 0) LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) neck.C0 = NeckStand * CFrame.Angles(0, 0, 0) if selected == false or torso.Velocity.magnitude > 2 or Able == false then break end wait() end wait() for i = 1, 0, -0.02 do RAW.C0 = RAWStand * CFrame.Angles(0, 0, 0) LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) neck.C0 = NeckStand * CFrame.Angles(0, 0, 0) if selected == false or torso.Velocity.magnitude > 2 or Able == false then break end wait() end normal() end function runanim() RLW.Part1 = nil LLW.Part1 = nil end --[[coroutine.resume(coroutine.create(function() while true do wait() if selected and Able == true then if torso.Velocity.magnitude < 2 then idleanim() wait() else runanim() wait() end end end end))]] function selectanim() RAW.Part1 = Rarm for i = 0, 1, 0.14 do RAW.C0 = CFrame.Angles(math.rad(100*i), math.rad(-10*i), math.rad(-70*i)) * CFrame.new(0.6*i, -1*i, 0) neck.C0 = necko * CFrame.Angles(math.rad(-25*i), 0, math.rad(30*i)) wait() end HW.C0 = CFrame.Angles(0, math.rad(70), math.rad(40)) * CFrame.new(0, 0, -0.8) HW.Part1 = handle TH.Part1 = nil LAW.Part1 = Larm for i = 0, 1, 0.14 do RAW.C0 = CFrame.Angles(math.rad(100), math.rad(-10-15*i), math.rad(-70+60*i)) * CFrame.new(0.6-0.6*i, -1+1*i, 0) LAW.C0 = CFrame.Angles(math.rad(35*i), math.rad(20*i), math.rad(-25*i)) neck.C0 = necko * CFrame.Angles(math.rad(-25+5*i), 0, math.rad(30-55*i)) HW.C0 = CFrame.Angles(0, math.rad(70-70*i), math.rad(40+80*i)) * CFrame.new(0, 0, -0.8+0.6*i) wait() end for i = 0, 1, 0.1 do RAW.C0 = CFrame.Angles(math.rad(100-10*i), math.rad(-10-15+25*i), math.rad(-10+55*i)) * CFrame.new(-0.8*i, 0, 0.05*i) LAW.C0 = CFrame.Angles(math.rad(35+55*i), math.rad(20-20*i), math.rad(-25+90*i)) * CFrame.new(-0.3*i, -1.2*i, 0) neck.C0 = necko * CFrame.Angles(math.rad(-20+20*i), 0, math.rad(30-55-20*i)) HW.C0 = CFrame.Angles(0, 0, math.rad(120+60*i)) * CFrame.new(0, 0, -0.2+0.6*i) wait() end if RAWStand == nil then RAWStand = RAW.C0 LAWStand = LAW.C0 RLWStand = RLW.C0 LLWStand = LLW.C0 HWStand = HW.C0 NeckStand = neck.C0 end BG.Parent = torso end function deselanim() BG.Parent = nil for i = 1, 0, -0.1 do RAW.C0 = CFrame.Angles(math.rad(100-10*i), math.rad(-10-15+25*i), math.rad(-10+55*i)) * CFrame.new(-0.8*i, 0, 0.05*i) LAW.C0 = CFrame.Angles(math.rad(35+55*i), math.rad(20-20*i), math.rad(-25+90*i)) * CFrame.new(-0.3*i, -1.2*i, 0) neck.C0 = necko * CFrame.Angles(math.rad(-20+20*i), 0, math.rad(30-55-20*i)) HW.C0 = CFrame.Angles(0, 0, math.rad(120+60*i)) * CFrame.new(0, 0, -0.2+0.6*i) wait() end for i = 1, 0, -0.14 do RAW.C0 = CFrame.Angles(math.rad(100), math.rad(-10-15*i), math.rad(-70+60*i)) * CFrame.new(0.6-0.6*i, -1+1*i, 0) LAW.C0 = CFrame.Angles(math.rad(35*i), math.rad(20*i), math.rad(-25*i)) neck.C0 = necko * CFrame.Angles(math.rad(-25+5*i), 0, math.rad(30-55*i)) HW.C0 = CFrame.Angles(0, math.rad(70-70*i), math.rad(40+80*i)) * CFrame.new(0, 0, -0.8+0.6*i) wait() end HW.Part1 = nil LAW.Part1 = nil TH.Part1 = handle for i = 1, 0, -0.14 do RAW.C0 = CFrame.Angles(math.rad(100*i), math.rad(-10*i), math.rad(-70*i)) * CFrame.new(0.6*i, -1*i, 0) neck.C0 = necko * CFrame.Angles(math.rad(-25*i), 0, math.rad(30*i)) wait() end neck.C0 = necko detach(true) end function fire() local ball = Part(workspace, false, false, 0, 0, Colors[1], 1, 1, 1, true) Add.BF(ball) Add.Sphere(ball) ball.CFrame = tip1.CFrame * CFrame.new(0, 1.5, 0) local cf = CFrame.new(handle.Position, handle.CFrame * CFrame.new(0, 0, -5).p) ball.Velocity = cf.lookVector * -80 local w1, w2, w3 = RAW.C0, LAW.C0 for i = 0, 1, 0.5 do RAW.C0 = w1 * CFrame.Angles(math.rad(25*i), 0, 0) LAW.C0 = w2 * CFrame.Angles(math.rad(25*i), 0, 0) HW.C0 = HWStand * CFrame.Angles(math.rad(-20*i), 0, 0) wait() end for i = 1, 0, -0.2 do RAW.C0 = w1 * CFrame.Angles(math.rad(25*i), 0, 0) LAW.C0 = w2 * CFrame.Angles(math.rad(25*i), 0, 0) HW.C0 = HWStand * CFrame.Angles(math.rad(-20*i), 0, 0) wait() end end function select(mouse) selectanim() selected = true mouse.KeyDown:connect(function(key) key = key:lower() if key == "q" then end end) local hold = false mouse.Button1Down:connect(function() hold = true coroutine.resume(coroutine.create(function() mouse.Button1Up:wait() hold = false end)) while hold do local pos = torso.CFrame * CFrame.new(0, 0.85, 0).p local offset = (pos.Y - mouse.Hit.p.Y) / 60 local mag = (pos - mouse.Hit.p).magnitude / 80 offset = offset / mag if offset > 1 then offset = 1 elseif offset < -1 then offset = -1 end RAW.C0 = RAWStand * CFrame.Angles(-offset, 0, 0) * CFrame.new(0, 0, 0) LAW.C0 = LAWStand * CFrame.Angles(-offset/1.5, 0, offset/5) * CFrame.new(0, 0, 0) neck.C0 = NeckStand * CFrame.Angles(offset/1.6, 0, 0) wait() end fire() LAW.C0 = LAWStand RAW.C0 = RAWStand neck.C0 = NeckStand end) while selected do BG.cframe = ComputePos(torso.Position, mouse.Hit.p) * CFrame.Angles(0, math.rad(45), 0) wait() end end function deselect(mouse) selected = false deselanim() end bin.Selected:connect(select) bin.Deselected:connect(deselect) --Mediafire
local AdManager = {} local isDevice = (system.getInfo("environment") == "device") local platform = system.getInfo("platform") local platform_list = {"android", "ios"} local appodeal = nil local isInit = false local isBannerShown = false local isPlatformAllowed , getAppKey , adListener function AdManager.init(options) if isDevice then if isPlatformAllowed() then options.appKey = getAppKey(options) appodeal = require "plugin.appodeal" appodeal.init(adListener, options) end end end function AdManager.isLoaded(adUnitType) if not isInit then return end return appodeal.isLoaded(adUnitType) end function AdManager.showBanner(position) if not isInit then return end appodeal.show("banner", {yAlign=position}) end function AdManager.showInterstitial() if not isInit then return end appodeal.show("interstitial") end function AdManager.canShowBanner() return (isInit and not isBannerShown) and true or false end function isPlatformAllowed() local isAllowed = false for i = 1, #platform_list do if platform == platform_list[i] then isAllowed = true break end end return isAllowed end function getAppKey(options) local appKey = options[platform] or "" options.android = nil options.ios = nil return appKey end function adListener(event) if event.phase == "init" then isInit = true end if event.type == "banner" then if event.phase == "displayed" then isBannerShown = true end if event.phase == "hidden" then isBannerShown = false end end end return AdManager
--[[ Generated by Scrooge version: ? rev: ? built at: ? --]] -- Service interfaces are not supported for Lua
local Gui = require 'utils.gui' local table = require 'utils.table' local gui_names = Gui.names local type = type local concat = table.concat local inspect = table.inspect local pcall = pcall local loadstring = loadstring local rawset = rawset local Public = {} local luaObject = {'{', nil, ", name = '", nil, "'}"} local luaPlayer = {"{LuaPlayer, name = '", nil, "', index = ", nil, '}'} local luaEntity = {"{LuaEntity, name = '", nil, "', unit_number = ", nil, '}'} local luaGuiElement = {"{LuaGuiElement, name = '", nil, "'}"} local function get(obj, prop) return obj[prop] end local function get_name_safe(obj) local s, r = pcall(get, obj, 'name') if not s then return 'nil' else return r or 'nil' end end local function get_lua_object_type_safe(obj) local s, r = pcall(get, obj, 'help') if not s then return end return r():match('Lua%a+') end local function inspect_process(item) if type(item) ~= 'table' or type(item.__self) ~= 'userdata' then return item end local suc, valid = pcall(get, item, 'valid') if not suc then -- no 'valid' property return get_lua_object_type_safe(item) or '{NoHelp LuaObject}' end if not valid then return '{Invalid LuaObject}' end local obj_type = get_lua_object_type_safe(item) if not obj_type then return '{NoHelp LuaObject}' end if obj_type == 'LuaPlayer' then luaPlayer[2] = item.name or 'nil' luaPlayer[4] = item.index or 'nil' return concat(luaPlayer) elseif obj_type == 'LuaEntity' then luaEntity[2] = item.name or 'nil' luaEntity[4] = item.unit_number or 'nil' return concat(luaEntity) elseif obj_type == 'LuaGuiElement' then local name = item.name if luaGuiElement[2] == nil then return end luaGuiElement[2] = gui_names[name] or name or 'nil' return concat(luaGuiElement) else luaObject[2] = obj_type luaObject[4] = get_name_safe(item) return concat(luaObject) end end local inspect_options = {process = inspect_process} function Public.dump(data) return inspect(data, inspect_options) end local dump = Public.dump function Public.dump_ignore_builder(ignore) local function process(item) if ignore[item] then return nil end return inspect_process(item) end local options = {process = process} return function(data) return inspect(data, options) end end function Public.dump_function(func) local res = {'upvalues:\n'} local i = 1 while true do local n, v = debug.getupvalue(func, i) if n == nil then break elseif n ~= '_ENV' then res[#res + 1] = n res[#res + 1] = ' = ' res[#res + 1] = dump(v) res[#res + 1] = '\n' end i = i + 1 end return concat(res) end function Public.dump_text(text, player) local func = loadstring('return ' .. text) if not func then return false end rawset(game, 'player', player) local suc, var = pcall(func) rawset(game, 'player', nil) if not suc then return false end return true, dump(var) end return Public
#! /usr/bin/env lua local Serpent = require "serpent" local primes = {} for line in io.lines "primes.txt" do for prime in line:gmatch "%S+" do primes [#primes+1] = tonumber (prime) end end print (Serpent.dump (primes))
-- Foo is unused- only accessed circularly local foo = {} function foo.bar(baz) for i=1, 5 do local q for a, b, c in pairs(foo) do print(4) end end end foo[foo] = 1 foo[1] = foo foo[foo] = foo foo.meta = function() return function() print(foo) end end local x = 5 x = 6 x = 7; print(x) local y = 5; (function() print(y) end)() y = 6 local z = 5; (function() z = 4 end)() z = 6 -- Function call: RHS of the assignment 3 lines down isn't *only* a circular reference local t = {} function t.func() print(t) return {val = 1} end t[t] = t.func().val + 1 -- Method call: RHS of the assignment 3 lines down isn't *only* a circular reference local s = {} function s:func() print(self) return {val = 1} end s[s] = s:func().val + 1 -- False negative: luacheck can't (yet) track more complicated function assignments local q = {} local function func() print(q) end q.func = func
local api = { GAME_PAUSED=2, GAME_RUN=1, } local gta = require("gta") local ffi = require("ffi") ffi.cdef[[ typedef unsigned char undefined; typedef unsigned int ImageBaseOffset32; typedef unsigned char byte; typedef unsigned int dword; typedef long long longlong; typedef unsigned char uchar; typedef unsigned int uint; typedef unsigned long long uint16; typedef unsigned long ulong; typedef unsigned long long ulonglong; typedef unsigned char undefined1; typedef unsigned short undefined2; typedef unsigned int undefined3; typedef unsigned int undefined4; typedef unsigned long long undefined8; typedef unsigned short ushort; typedef unsigned short word; typedef struct Ped Ped, *PPed; typedef struct Car Car, *PCar; typedef struct WEAPON_PLAYER_LIST WEAPON_PLAYER_LIST, *PWEAPON_PLAYER_LIST; typedef struct Sprite Sprite, *PSprite; typedef struct WEAPON_STRUCT WEAPON_STRUCT, *PWEAPON_STRUCT; typedef enum PED_BIT_STATE { FIRING_FROM_GUN=2048, FOLLOW_CAR_TO_GET_IN=65536, GETING_IN_OR_OUT_CAR=134217728, TOGGLED_ON_WHEN_FIRST_TIME_ATTACK_A_PED=4, UNK_1_ALWAYS1=1, UNK_2000=8192, ZERO_ON_START_GAME_BUT_TOGGLED_ON_FIRST_CAR_ENTER=32768, mARMED=128, mUNARMED=512 } PED_BIT_STATE; typedef enum OCUPATION { ANY_ELVIS=49, ANY_EMERGENCY_SERVICE_MAN=47, ANY_GANG_MEMBER=48, ANY_LAW_ENFORCEMENT=46, ARMYARMY=27, BANK_ROBBER=17, CARTHIEF=16, CRIMINAL=18, CRIMINAL_TYPE1=33, CRIMINAL_TYPE2=34, DRIVER=5, DRIVER2=10, DRIVER3=50, DRONE=41, DUMMY=3, ELVIS=22, ELVIS_LEADER=44, EMPTY=1, FBI=26, FIREMAN=38, GUARD=28, GUARD_AGAINST_PLAYER=32, MUGGER=15, NO_OCCUPATION=51, PLAYER=0, POLICE=24, PSYCHO=14, REFUGEES=45, ROAD_BLOCK_TANK_MAN=39, SPECIAL_GROUP_MEMBER=35, STAND_STILL_BLOKE=43, SWAT=25, TANK_DRIVER=36, UNKNOWN_OCUPATION13=19, UNKNOWN_OCUPATION17=23, UNKNOWN_OCUPATION2=2, UNKNOWN_OCUPATION4=4, UNKNOWN_OCUPATION8=8, UNKNOWN_OCUPATION9=9, UNK_REL_TO_POLICE1=29, UNK_REL_TO_POLICE2=30, UNK_REL_TO_POLICE3=31, UNK_REL_TO_POLICE4=37 } OCUPATION; typedef enum PED_STATE { DRIVING_A_CAR=10, ENTERING_INTO_CAR=3, FALL_ON_GROUND=8, GETTING_OUT_FROM_CAR=4, GOING_TO_CAR=2, STAYING=7, WALK=0, WASTED=9 } PED_STATE; typedef enum PED_STATE2 { DRIVING=10, ENTERING_TO_CAR=6, FOLLOWING_A_CAR=4, GETTING_OUT_FROM_CAR2=7, STAYING2=14, UNK_16=22, UNK_f=15, WALKING=0 } PED_STATE2; typedef enum CAR_LIGHTS_AND_DOORS_BITSTATE { BAGAGE_DOORS_OPEN1=2048, BAGAGE_DOORS_OPEN2=4096, BAGAGE_DOORS_OPEN3=8192, BAGAGE_DOORS_OPEN4=16384, BAGAGE_DOORS_SET2_OPEN1=268435456, BAGAGE_DOORS_SET2_OPEN2=536870912, BAGAGE_DOORS_SET2_OPEN3=1073741824, BAGAGE_DOORS_SET2_OPEN4=2147483648, BRAKES_LIGHT_LEFT=32, BRAKES_LIGHT_RIGHT=4194304, CABIN_FRONT_LEFT_LIGHT_IS_ON=65536, CABIN_REAR_LEFT_LIGHT_IS_ON=262144, CABIN_REAR_RIGHT_LIGHT_IS_ON=131072, CABIN__FRONT_RIGHT_LIGHT_IS_ON=32768, FRONT_GLASS_IS_BROKEN=16, FRONT_LEFT_LIGHT_IS_TURNED_ON=64, LEFT_FRONT_DOOR_IS_OPEN1=128, LEFT_FRONT_DOOR_IS_OPEN2=256, LEFT_FRONT_DOOR_IS_OPEN3=512, LEFT_FRONT_DOOR_IS_OPEN4=1024, LEFT_FRONT_LIGHT_IS_BROKEN=4, LEFT_REAR_LIGHT_IS_BROKEN=2, RIGHT_FRONT_DOOR_OPEN1=16777216, RIGHT_FRONT_DOOR_OPEN2=33554432, RIGHT_FRONT_DOOR_OPEN3=67108864, RIGHT_FRONT_DOOR_OPEN4=134217728, RIGHT_FRONT_LIGHT_IS_BROKEN=8, RIGHT_FRONT_LIGHT_IS_ON=8388608, RIGHT_REAR_LIGHT_IS_BROKEN=1, UNBROKEN_TURNED_OFF=0, UNK_100000=1048576, UNK_200000=2097152, UNK_80000=524288 } CAR_LIGHTS_AND_DOORS_BITSTATE; typedef struct Position Position, *PPosition; typedef struct MaybeCarEngine MaybeCarEngine, *PMaybeCarEngine; typedef enum CAR_MODEL { ALFA=0, ALLARD=1, AMDB4=2, APC=3, BANKVAN=4, BMW=5, BOXCAR=6, BOXTRUCK=7, BUG=8, BUICK=10, BUS=11, CAR15=15, CAR20=20, CAR43=43, CAR9=9, COPCAR=12, DART=13, EDSEL=14, EDSELFBI=84, FIAT=16, FIRETRUK=17, GRAHAM=18, GT24640=19, GTRUCK=21, GUNJEEP=22, HOTDOG=23, HOTDOG_D1=24, HOTDOG_D2=25, HOTDOG_D3=26, HOTDOG_D4=85, ICECREAM=27, ISETLIMO=28, ISETTA=29, JEEP=30, JEFFREY=31, KRSNABUS=86, LIMO=32, LIMO2=33, MEDICAR=34, MERC=35, MESSER=36, MIURA=37, MONSTER=38, MORGAN=39, MORRIS=40, PICKUP=41, RTYPE=42, SPIDER=44, SPRITE=45, STINGRAY=46, STRATOS=47, STRATOSB=48, STRIPETB=49, STYPE=50, STYPECAB=51, SWATVAN=52, T2000GT=53, TANK=54, TANKER=55, TAXI=56, TBIRD=57, TOWTRUCK=58, TRAIN=59, TRAINCAB=60, TRAINFB=61, TRANCEAM=62, TRUKCAB1=63, TRUKCAB2=64, TRUKCONT=65, TRUKTRNS=66, TVVAN=67, VAN=68, VESPA=69, VTYPE=70, WBTWIN=71, WRECK0=72, WRECK1=73, WRECK2=74, WRECK3=75, WRECK4=76, WRECK5=77, WRECK6=78, WRECK7=79, WRECK8=80, WRECK9=81, XK120=82, ZCX5=83 } CAR_MODEL; typedef enum CAR_ENGINE_STATE { BROKEN_DOESNT_WORK=0, ENGINE_OFF=1, ENGINE_OFF2=6, ENGINE_ON=3, LIGHTS_ON_BUT_ENGINE_OFF_NO_FUEL=7, REL_TO_CAR_SIREN=4, TURNING_OFF=2, TURN_ENGINE_OFF=5 } CAR_ENGINE_STATE; typedef enum CAR_SIREN_STATE { CAR_ALARM=8, SIREN_OFF=2, SIREN_ON=4, SIREN_UNK1=1, SIREN_UNK_10=16 } CAR_SIREN_STATE; typedef enum HORN { HORN_ON=248 } HORN; typedef enum WEAPON_INDEX { ARMY_GUN_JEEP=22, CAR_SMG=9, FIRE_TRUCK_GUN=20, GRENADE=5, MOLOTOV=4, PISTOL=0, ROCKET=2, SHOCKER=3, SMG=1, TANK_MAIN_GUN=19, UNK_WEAPON_6=6, UNK_WEAPON_7=7 } WEAPON_INDEX; struct WEAPON_PLAYER_LIST { undefined field_0x0; undefined field_0x1; undefined field_0x2; undefined field_0x3; undefined field_0x4; undefined field_0x5; undefined field_0x6; undefined field_0x7; undefined field_0x8; undefined field_0x9; undefined field_0xa; undefined field_0xb; undefined field_0xc; undefined field_0xd; undefined field_0xe; undefined field_0xf; undefined field_0x10; undefined field_0x11; undefined field_0x12; undefined field_0x13; undefined field_0x14; undefined field_0x15; undefined field_0x16; undefined field_0x17; undefined field_0x18; undefined field_0x19; undefined field_0x1a; undefined field_0x1b; undefined field_0x1c; undefined field_0x1d; undefined field_0x1e; undefined field_0x1f; undefined field_0x20; undefined field_0x21; undefined field_0x22; undefined field_0x23; undefined field_0x24; undefined field_0x25; undefined field_0x26; undefined field_0x27; undefined field_0x28; undefined field_0x29; undefined field_0x2a; undefined field_0x2b; undefined field_0x2c; undefined field_0x2d; undefined field_0x2e; undefined field_0x2f; undefined field_0x30; undefined field_0x31; undefined field_0x32; undefined field_0x33; undefined field_0x34; undefined field_0x35; undefined field_0x36; undefined field_0x37; undefined field_0x38; undefined field_0x39; undefined field_0x3a; undefined field_0x3b; undefined field_0x3c; undefined field_0x3d; undefined field_0x3e; undefined field_0x3f; undefined field_0x40; undefined field_0x41; undefined field_0x42; undefined field_0x43; undefined field_0x44; undefined field_0x45; undefined field_0x46; undefined field_0x47; undefined field_0x48; undefined field_0x49; undefined field_0x4a; undefined field_0x4b; undefined field_0x4c; undefined field_0x4d; undefined field_0x4e; undefined field_0x4f; uint bitMask; undefined field_0x54; undefined field_0x55; undefined field_0x56; undefined field_0x57; undefined field_0x58; undefined field_0x59; undefined field_0x5a; undefined field_0x5b; undefined field_0x5c; undefined field_0x5d; undefined field_0x5e; undefined field_0x5f; undefined field_0x60; undefined field_0x61; undefined field_0x62; undefined field_0x63; undefined field_0x64; undefined field_0x65; undefined field_0x66; undefined field_0x67; undefined field_0x68; undefined field_0x69; undefined field_0x6a; undefined field_0x6b; undefined field_0x6c; undefined field_0x6d; undefined field_0x6e; undefined field_0x6f; undefined field_0x70; undefined field_0x71; undefined field_0x72; undefined field_0x73; undefined field_0x74; undefined field_0x75; undefined field_0x76; undefined field_0x77; undefined field_0x78; undefined field_0x79; undefined field_0x7a; undefined field_0x7b; undefined field_0x7c; undefined field_0x7d; undefined field_0x7e; undefined field_0x7f; undefined field_0x80; undefined field_0x81; undefined field_0x82; undefined field_0x83; undefined field_0x84; undefined field_0x85; undefined field_0x86; undefined field_0x87; undefined field_0x88; undefined field_0x89; undefined field_0x8a; undefined field_0x8b; undefined field_0x8c; undefined field_0x8d; undefined field_0x8e; undefined field_0x8f; undefined field_0x90; undefined field_0x91; undefined field_0x92; undefined field_0x93; undefined field_0x94; undefined field_0x95; undefined field_0x96; undefined field_0x97; undefined field_0x98; undefined field_0x99; undefined field_0x9a; undefined field_0x9b; undefined field_0x9c; undefined field_0x9d; undefined field_0x9e; undefined field_0x9f; undefined field_0xa0; undefined field_0xa1; undefined field_0xa2; undefined field_0xa3; undefined field_0xa4; undefined field_0xa5; undefined field_0xa6; undefined field_0xa7; undefined field_0xa8; undefined field_0xa9; undefined field_0xaa; undefined field_0xab; undefined field_0xac; undefined field_0xad; undefined field_0xae; undefined field_0xaf; undefined field_0xb0; undefined field_0xb1; undefined field_0xb2; undefined field_0xb3; undefined field_0xb4; undefined field_0xb5; undefined field_0xb6; undefined field_0xb7; undefined field_0xb8; undefined field_0xb9; undefined field_0xba; undefined field_0xbb; undefined field_0xbc; undefined field_0xbd; undefined field_0xbe; undefined field_0xbf; undefined field_0xc0; undefined field_0xc1; undefined field_0xc2; undefined field_0xc3; undefined field_0xc4; undefined field_0xc5; undefined field_0xc6; undefined field_0xc7; undefined field_0xc8; undefined field_0xc9; undefined field_0xca; undefined field_0xcb; undefined field_0xcc; undefined field_0xcd; undefined field_0xce; undefined field_0xcf; undefined field_0xd0; undefined field_0xd1; undefined field_0xd2; undefined field_0xd3; undefined field_0xd4; undefined field_0xd5; undefined field_0xd6; undefined field_0xd7; undefined field_0xd8; undefined field_0xd9; undefined field_0xda; undefined field_0xdb; undefined field_0xdc; undefined field_0xdd; undefined field_0xde; undefined field_0xdf; undefined field_0xe0; undefined field_0xe1; undefined field_0xe2; undefined field_0xe3; undefined field_0xe4; undefined field_0xe5; undefined field_0xe6; undefined field_0xe7; undefined field_0xe8; undefined field_0xe9; undefined field_0xea; undefined field_0xeb; undefined field_0xec; undefined field_0xed; undefined field_0xee; undefined field_0xef; undefined field_0xf0; undefined field_0xf1; undefined field_0xf2; undefined field_0xf3; undefined field_0xf4; undefined field_0xf5; undefined field_0xf6; undefined field_0xf7; undefined field_0xf8; undefined field_0xf9; undefined field_0xfa; undefined field_0xfb; undefined field_0xfc; undefined field_0xfd; undefined field_0xfe; undefined field_0xff; undefined field_0x100; undefined field_0x101; undefined field_0x102; undefined field_0x103; undefined field_0x104; undefined field_0x105; undefined field_0x106; undefined field_0x107; undefined field_0x108; undefined field_0x109; undefined field_0x10a; undefined field_0x10b; undefined field_0x10c; undefined field_0x10d; undefined field_0x10e; undefined field_0x10f; undefined field_0x110; undefined field_0x111; undefined field_0x112; undefined field_0x113; undefined field_0x114; undefined field_0x115; undefined field_0x116; undefined field_0x117; undefined field_0x118; undefined field_0x119; undefined field_0x11a; undefined field_0x11b; undefined field_0x11c; undefined field_0x11d; undefined field_0x11e; undefined field_0x11f; undefined field_0x120; undefined field_0x121; undefined field_0x122; undefined field_0x123; undefined field_0x124; undefined field_0x125; undefined field_0x126; undefined field_0x127; undefined field_0x128; undefined field_0x129; undefined field_0x12a; undefined field_0x12b; undefined field_0x12c; undefined field_0x12d; undefined field_0x12e; undefined field_0x12f; undefined field_0x130; undefined field_0x131; undefined field_0x132; undefined field_0x133; undefined field_0x134; undefined field_0x135; undefined field_0x136; undefined field_0x137; undefined field_0x138; undefined field_0x139; undefined field_0x13a; undefined field_0x13b; undefined field_0x13c; undefined field_0x13d; undefined field_0x13e; undefined field_0x13f; undefined field_0x140; undefined field_0x141; undefined field_0x142; undefined field_0x143; undefined field_0x144; undefined field_0x145; undefined field_0x146; undefined field_0x147; undefined field_0x148; undefined field_0x149; undefined field_0x14a; undefined field_0x14b; undefined field_0x14c; undefined field_0x14d; undefined field_0x14e; undefined field_0x14f; undefined field_0x150; undefined field_0x151; undefined field_0x152; undefined field_0x153; undefined field_0x154; undefined field_0x155; undefined field_0x156; undefined field_0x157; undefined field_0x158; undefined field_0x159; undefined field_0x15a; undefined field_0x15b; undefined field_0x15c; undefined field_0x15d; undefined field_0x15e; undefined field_0x15f; undefined field_0x160; undefined field_0x161; undefined field_0x162; undefined field_0x163; undefined field_0x164; undefined field_0x165; undefined field_0x166; undefined field_0x167; undefined field_0x168; undefined field_0x169; undefined field_0x16a; undefined field_0x16b; undefined field_0x16c; undefined field_0x16d; undefined field_0x16e; undefined field_0x16f; undefined field_0x170; undefined field_0x171; undefined field_0x172; undefined field_0x173; undefined field_0x174; undefined field_0x175; undefined field_0x176; undefined field_0x177; undefined field_0x178; undefined field_0x179; undefined field_0x17a; undefined field_0x17b; undefined field_0x17c; undefined field_0x17d; undefined field_0x17e; undefined field_0x17f; undefined field_0x180; undefined field_0x181; undefined field_0x182; undefined field_0x183; undefined field_0x184; undefined field_0x185; undefined field_0x186; undefined field_0x187; undefined field_0x188; undefined field_0x189; undefined field_0x18a; undefined field_0x18b; undefined field_0x18c; undefined field_0x18d; undefined field_0x18e; undefined field_0x18f; undefined field_0x190; undefined field_0x191; undefined field_0x192; undefined field_0x193; undefined field_0x194; undefined field_0x195; undefined field_0x196; undefined field_0x197; undefined field_0x198; undefined field_0x199; undefined field_0x19a; undefined field_0x19b; undefined field_0x19c; undefined field_0x19d; undefined field_0x19e; undefined field_0x19f; undefined field_0x1a0; undefined field_0x1a1; undefined field_0x1a2; undefined field_0x1a3; undefined field_0x1a4; undefined field_0x1a5; undefined field_0x1a6; undefined field_0x1a7; undefined field_0x1a8; undefined field_0x1a9; undefined field_0x1aa; undefined field_0x1ab; undefined field_0x1ac; undefined field_0x1ad; undefined field_0x1ae; undefined field_0x1af; undefined field_0x1b0; undefined field_0x1b1; undefined field_0x1b2; undefined field_0x1b3; undefined field_0x1b4; undefined field_0x1b5; undefined field_0x1b6; undefined field_0x1b7; undefined field_0x1b8; undefined field_0x1b9; undefined field_0x1ba; undefined field_0x1bb; undefined field_0x1bc; undefined field_0x1bd; undefined field_0x1be; undefined field_0x1bf; undefined field_0x1c0; undefined field_0x1c1; undefined field_0x1c2; undefined field_0x1c3; undefined field_0x1c4; undefined field_0x1c5; undefined field_0x1c6; undefined field_0x1c7; undefined field_0x1c8; undefined field_0x1c9; undefined field_0x1ca; undefined field_0x1cb; undefined field_0x1cc; undefined field_0x1cd; undefined field_0x1ce; undefined field_0x1cf; undefined field_0x1d0; undefined field_0x1d1; undefined field_0x1d2; undefined field_0x1d3; undefined field_0x1d4; undefined field_0x1d5; undefined field_0x1d6; undefined field_0x1d7; undefined field_0x1d8; undefined field_0x1d9; undefined field_0x1da; undefined field_0x1db; undefined field_0x1dc; undefined field_0x1dd; undefined field_0x1de; undefined field_0x1df; undefined field_0x1e0; undefined field_0x1e1; undefined field_0x1e2; undefined field_0x1e3; undefined field_0x1e4; undefined field_0x1e5; undefined field_0x1e6; undefined field_0x1e7; undefined field_0x1e8; undefined field_0x1e9; undefined field_0x1ea; undefined field_0x1eb; undefined field_0x1ec; undefined field_0x1ed; undefined field_0x1ee; undefined field_0x1ef; undefined field_0x1f0; undefined field_0x1f1; undefined field_0x1f2; undefined field_0x1f3; undefined field_0x1f4; undefined field_0x1f5; undefined field_0x1f6; undefined field_0x1f7; undefined field_0x1f8; undefined field_0x1f9; undefined field_0x1fa; undefined field_0x1fb; undefined field_0x1fc; undefined field_0x1fd; undefined field_0x1fe; undefined field_0x1ff; undefined field_0x200; undefined field_0x201; undefined field_0x202; undefined field_0x203; undefined field_0x204; undefined field_0x205; undefined field_0x206; undefined field_0x207; undefined field_0x208; undefined field_0x209; undefined field_0x20a; undefined field_0x20b; undefined field_0x20c; undefined field_0x20d; undefined field_0x20e; undefined field_0x20f; undefined field_0x210; undefined field_0x211; undefined field_0x212; undefined field_0x213; undefined field_0x214; undefined field_0x215; undefined field_0x216; undefined field_0x217; undefined field_0x218; undefined field_0x219; undefined field_0x21a; undefined field_0x21b; undefined field_0x21c; undefined field_0x21d; undefined field_0x21e; undefined field_0x21f; undefined field_0x220; undefined field_0x221; undefined field_0x222; undefined field_0x223; undefined field_0x224; undefined field_0x225; undefined field_0x226; undefined field_0x227; undefined field_0x228; undefined field_0x229; undefined field_0x22a; undefined field_0x22b; undefined field_0x22c; undefined field_0x22d; undefined field_0x22e; undefined field_0x22f; undefined field_0x230; undefined field_0x231; undefined field_0x232; undefined field_0x233; undefined field_0x234; undefined field_0x235; undefined field_0x236; undefined field_0x237; undefined field_0x238; undefined field_0x239; undefined field_0x23a; undefined field_0x23b; undefined field_0x23c; undefined field_0x23d; undefined field_0x23e; undefined field_0x23f; undefined field_0x240; undefined field_0x241; undefined field_0x242; undefined field_0x243; undefined field_0x244; undefined field_0x245; undefined field_0x246; undefined field_0x247; undefined field_0x248; undefined field_0x249; undefined field_0x24a; undefined field_0x24b; undefined field_0x24c; undefined field_0x24d; undefined field_0x24e; undefined field_0x24f; undefined field_0x250; undefined field_0x251; undefined field_0x252; undefined field_0x253; undefined field_0x254; undefined field_0x255; undefined field_0x256; undefined field_0x257; undefined field_0x258; undefined field_0x259; undefined field_0x25a; undefined field_0x25b; undefined field_0x25c; undefined field_0x25d; undefined field_0x25e; undefined field_0x25f; undefined field_0x260; undefined field_0x261; undefined field_0x262; undefined field_0x263; undefined field_0x264; undefined field_0x265; undefined field_0x266; undefined field_0x267; undefined field_0x268; undefined field_0x269; undefined field_0x26a; undefined field_0x26b; undefined field_0x26c; undefined field_0x26d; undefined field_0x26e; undefined field_0x26f; undefined field_0x270; undefined field_0x271; undefined field_0x272; undefined field_0x273; undefined field_0x274; undefined field_0x275; undefined field_0x276; undefined field_0x277; undefined field_0x278; undefined field_0x279; undefined field_0x27a; undefined field_0x27b; undefined field_0x27c; undefined field_0x27d; undefined field_0x27e; undefined field_0x27f; undefined field_0x280; undefined field_0x281; undefined field_0x282; undefined field_0x283; undefined field_0x284; undefined field_0x285; undefined field_0x286; undefined field_0x287; undefined field_0x288; undefined field_0x289; undefined field_0x28a; undefined field_0x28b; undefined field_0x28c; undefined field_0x28d; undefined field_0x28e; undefined field_0x28f; undefined field_0x290; undefined field_0x291; undefined field_0x292; undefined field_0x293; undefined field_0x294; undefined field_0x295; undefined field_0x296; undefined field_0x297; undefined field_0x298; undefined field_0x299; undefined field_0x29a; undefined field_0x29b; undefined field_0x29c; undefined field_0x29d; undefined field_0x29e; undefined field_0x29f; undefined field_0x2a0; undefined field_0x2a1; undefined field_0x2a2; undefined field_0x2a3; undefined field_0x2a4; undefined field_0x2a5; undefined field_0x2a6; undefined field_0x2a7; undefined field_0x2a8; undefined field_0x2a9; undefined field_0x2aa; undefined field_0x2ab; undefined field_0x2ac; undefined field_0x2ad; undefined field_0x2ae; undefined field_0x2af; undefined field_0x2b0; undefined field_0x2b1; undefined field_0x2b2; undefined field_0x2b3; undefined field_0x2b4; undefined field_0x2b5; undefined field_0x2b6; undefined field_0x2b7; undefined field_0x2b8; undefined field_0x2b9; undefined field_0x2ba; undefined field_0x2bb; undefined field_0x2bc; undefined field_0x2bd; undefined field_0x2be; undefined field_0x2bf; undefined field_0x2c0; undefined field_0x2c1; undefined field_0x2c2; undefined field_0x2c3; undefined field_0x2c4; undefined field_0x2c5; undefined field_0x2c6; undefined field_0x2c7; undefined field_0x2c8; undefined field_0x2c9; undefined field_0x2ca; undefined field_0x2cb; undefined field_0x2cc; undefined field_0x2cd; undefined field_0x2ce; undefined field_0x2cf; undefined field_0x2d0; undefined field_0x2d1; undefined field_0x2d2; undefined field_0x2d3; undefined field_0x2d4; undefined field_0x2d5; undefined field_0x2d6; undefined field_0x2d7; undefined field_0x2d8; undefined field_0x2d9; undefined field_0x2da; undefined field_0x2db; undefined field_0x2dc; undefined field_0x2dd; undefined field_0x2de; undefined field_0x2df; undefined field_0x2e0; undefined field_0x2e1; undefined field_0x2e2; undefined field_0x2e3; undefined field_0x2e4; undefined field_0x2e5; undefined field_0x2e6; undefined field_0x2e7; undefined field_0x2e8; undefined field_0x2e9; undefined field_0x2ea; undefined field_0x2eb; undefined field_0x2ec; undefined field_0x2ed; undefined field_0x2ee; undefined field_0x2ef; undefined field_0x2f0; undefined field_0x2f1; undefined field_0x2f2; undefined field_0x2f3; undefined field_0x2f4; undefined field_0x2f5; undefined field_0x2f6; undefined field_0x2f7; undefined field_0x2f8; undefined field_0x2f9; undefined field_0x2fa; undefined field_0x2fb; undefined field_0x2fc; undefined field_0x2fd; undefined field_0x2fe; undefined field_0x2ff; undefined field_0x300; undefined field_0x301; undefined field_0x302; undefined field_0x303; undefined field_0x304; undefined field_0x305; undefined field_0x306; undefined field_0x307; undefined field_0x308; undefined field_0x309; undefined field_0x30a; undefined field_0x30b; undefined field_0x30c; undefined field_0x30d; undefined field_0x30e; undefined field_0x30f; undefined field_0x310; undefined field_0x311; undefined field_0x312; undefined field_0x313; undefined field_0x314; undefined field_0x315; undefined field_0x316; undefined field_0x317; undefined field_0x318; undefined field_0x319; undefined field_0x31a; undefined field_0x31b; undefined field_0x31c; undefined field_0x31d; undefined field_0x31e; undefined field_0x31f; undefined field_0x320; undefined field_0x321; undefined field_0x322; undefined field_0x323; undefined field_0x324; undefined field_0x325; undefined field_0x326; undefined field_0x327; undefined field_0x328; undefined field_0x329; undefined field_0x32a; undefined field_0x32b; undefined field_0x32c; undefined field_0x32d; undefined field_0x32e; undefined field_0x32f; undefined field_0x330; undefined field_0x331; undefined field_0x332; undefined field_0x333; undefined field_0x334; undefined field_0x335; undefined field_0x336; undefined field_0x337; undefined field_0x338; undefined field_0x339; undefined field_0x33a; undefined field_0x33b; undefined field_0x33c; undefined field_0x33d; undefined field_0x33e; undefined field_0x33f; undefined field_0x340; undefined field_0x341; undefined field_0x342; undefined field_0x343; undefined field_0x344; undefined field_0x345; undefined field_0x346; undefined field_0x347; undefined field_0x348; undefined field_0x349; undefined field_0x34a; undefined field_0x34b; undefined field_0x34c; undefined field_0x34d; undefined field_0x34e; undefined field_0x34f; undefined field_0x350; undefined field_0x351; undefined field_0x352; undefined field_0x353; undefined field_0x354; undefined field_0x355; undefined field_0x356; undefined field_0x357; undefined field_0x358; undefined field_0x359; undefined field_0x35a; undefined field_0x35b; undefined field_0x35c; undefined field_0x35d; undefined field_0x35e; undefined field_0x35f; undefined field_0x360; undefined field_0x361; undefined field_0x362; undefined field_0x363; undefined field_0x364; undefined field_0x365; undefined field_0x366; undefined field_0x367; undefined field_0x368; undefined field_0x369; undefined field_0x36a; undefined field_0x36b; undefined field_0x36c; undefined field_0x36d; undefined field_0x36e; undefined field_0x36f; undefined field_0x370; undefined field_0x371; undefined field_0x372; undefined field_0x373; undefined field_0x374; undefined field_0x375; undefined field_0x376; undefined field_0x377; undefined field_0x378; undefined field_0x379; undefined field_0x37a; undefined field_0x37b; undefined field_0x37c; undefined field_0x37d; undefined field_0x37e; undefined field_0x37f; undefined field_0x380; undefined field_0x381; undefined field_0x382; undefined field_0x383; undefined field_0x384; undefined field_0x385; undefined field_0x386; undefined field_0x387; undefined field_0x388; undefined field_0x389; undefined field_0x38a; undefined field_0x38b; undefined field_0x38c; undefined field_0x38d; undefined field_0x38e; undefined field_0x38f; undefined field_0x390; undefined field_0x391; undefined field_0x392; undefined field_0x393; undefined field_0x394; undefined field_0x395; undefined field_0x396; undefined field_0x397; undefined field_0x398; undefined field_0x399; undefined field_0x39a; undefined field_0x39b; undefined field_0x39c; undefined field_0x39d; undefined field_0x39e; undefined field_0x39f; undefined field_0x3a0; undefined field_0x3a1; undefined field_0x3a2; undefined field_0x3a3; undefined field_0x3a4; undefined field_0x3a5; undefined field_0x3a6; undefined field_0x3a7; undefined field_0x3a8; undefined field_0x3a9; undefined field_0x3aa; undefined field_0x3ab; undefined field_0x3ac; undefined field_0x3ad; undefined field_0x3ae; undefined field_0x3af; undefined field_0x3b0; undefined field_0x3b1; undefined field_0x3b2; undefined field_0x3b3; undefined field_0x3b4; undefined field_0x3b5; undefined field_0x3b6; undefined field_0x3b7; undefined field_0x3b8; undefined field_0x3b9; undefined field_0x3ba; undefined field_0x3bb; undefined field_0x3bc; undefined field_0x3bd; undefined field_0x3be; undefined field_0x3bf; undefined field_0x3c0; undefined field_0x3c1; undefined field_0x3c2; undefined field_0x3c3; undefined field_0x3c4; undefined field_0x3c5; undefined field_0x3c6; undefined field_0x3c7; undefined field_0x3c8; undefined field_0x3c9; undefined field_0x3ca; undefined field_0x3cb; undefined field_0x3cc; undefined field_0x3cd; undefined field_0x3ce; undefined field_0x3cf; undefined field_0x3d0; undefined field_0x3d1; undefined field_0x3d2; undefined field_0x3d3; undefined field_0x3d4; undefined field_0x3d5; undefined field_0x3d6; undefined field_0x3d7; undefined field_0x3d8; undefined field_0x3d9; undefined field_0x3da; undefined field_0x3db; undefined field_0x3dc; undefined field_0x3dd; undefined field_0x3de; undefined field_0x3df; undefined field_0x3e0; undefined field_0x3e1; undefined field_0x3e2; undefined field_0x3e3; undefined field_0x3e4; undefined field_0x3e5; undefined field_0x3e6; undefined field_0x3e7; undefined field_0x3e8; undefined field_0x3e9; undefined field_0x3ea; undefined field_0x3eb; undefined field_0x3ec; undefined field_0x3ed; undefined field_0x3ee; undefined field_0x3ef; undefined field_0x3f0; undefined field_0x3f1; undefined field_0x3f2; undefined field_0x3f3; undefined field_0x3f4; undefined field_0x3f5; undefined field_0x3f6; undefined field_0x3f7; undefined field_0x3f8; undefined field_0x3f9; undefined field_0x3fa; undefined field_0x3fb; undefined field_0x3fc; undefined field_0x3fd; undefined field_0x3fe; undefined field_0x3ff; undefined field_0x400; undefined field_0x401; undefined field_0x402; undefined field_0x403; undefined field_0x404; undefined field_0x405; undefined field_0x406; undefined field_0x407; undefined field_0x408; undefined field_0x409; undefined field_0x40a; undefined field_0x40b; undefined field_0x40c; undefined field_0x40d; undefined field_0x40e; undefined field_0x40f; undefined field_0x410; undefined field_0x411; undefined field_0x412; undefined field_0x413; undefined field_0x414; undefined field_0x415; undefined field_0x416; undefined field_0x417; undefined field_0x418; undefined field_0x419; undefined field_0x41a; undefined field_0x41b; undefined field_0x41c; undefined field_0x41d; undefined field_0x41e; undefined field_0x41f; undefined field_0x420; undefined field_0x421; undefined field_0x422; undefined field_0x423; undefined field_0x424; undefined field_0x425; undefined field_0x426; undefined field_0x427; undefined field_0x428; undefined field_0x429; undefined field_0x42a; undefined field_0x42b; undefined field_0x42c; undefined field_0x42d; undefined field_0x42e; undefined field_0x42f; undefined field_0x430; undefined field_0x431; undefined field_0x432; undefined field_0x433; undefined field_0x434; undefined field_0x435; undefined field_0x436; undefined field_0x437; undefined field_0x438; undefined field_0x439; undefined field_0x43a; undefined field_0x43b; undefined field_0x43c; undefined field_0x43d; undefined field_0x43e; undefined field_0x43f; undefined field_0x440; undefined field_0x441; undefined field_0x442; undefined field_0x443; undefined field_0x444; undefined field_0x445; undefined field_0x446; undefined field_0x447; undefined field_0x448; undefined field_0x449; undefined field_0x44a; undefined field_0x44b; undefined field_0x44c; undefined field_0x44d; undefined field_0x44e; undefined field_0x44f; undefined field_0x450; undefined field_0x451; undefined field_0x452; undefined field_0x453; undefined field_0x454; undefined field_0x455; undefined field_0x456; undefined field_0x457; undefined field_0x458; undefined field_0x459; undefined field_0x45a; undefined field_0x45b; undefined field_0x45c; undefined field_0x45d; undefined field_0x45e; undefined field_0x45f; undefined field_0x460; undefined field_0x461; undefined field_0x462; undefined field_0x463; undefined field_0x464; undefined field_0x465; undefined field_0x466; undefined field_0x467; undefined field_0x468; undefined field_0x469; undefined field_0x46a; undefined field_0x46b; undefined field_0x46c; undefined field_0x46d; undefined field_0x46e; undefined field_0x46f; undefined field_0x470; undefined field_0x471; undefined field_0x472; undefined field_0x473; undefined field_0x474; undefined field_0x475; undefined field_0x476; undefined field_0x477; undefined field_0x478; undefined field_0x479; undefined field_0x47a; undefined field_0x47b; undefined field_0x47c; undefined field_0x47d; undefined field_0x47e; undefined field_0x47f; undefined field_0x480; undefined field_0x481; undefined field_0x482; undefined field_0x483; undefined field_0x484; undefined field_0x485; undefined field_0x486; undefined field_0x487; undefined field_0x488; undefined field_0x489; undefined field_0x48a; undefined field_0x48b; undefined field_0x48c; undefined field_0x48d; undefined field_0x48e; undefined field_0x48f; undefined field_0x490; undefined field_0x491; undefined field_0x492; undefined field_0x493; undefined field_0x494; undefined field_0x495; undefined field_0x496; undefined field_0x497; undefined field_0x498; undefined field_0x499; undefined field_0x49a; undefined field_0x49b; undefined field_0x49c; undefined field_0x49d; undefined field_0x49e; undefined field_0x49f; undefined field_0x4a0; undefined field_0x4a1; undefined field_0x4a2; undefined field_0x4a3; undefined field_0x4a4; undefined field_0x4a5; undefined field_0x4a6; undefined field_0x4a7; undefined field_0x4a8; undefined field_0x4a9; undefined field_0x4aa; undefined field_0x4ab; undefined field_0x4ac; undefined field_0x4ad; undefined field_0x4ae; undefined field_0x4af; undefined field_0x4b0; undefined field_0x4b1; undefined field_0x4b2; undefined field_0x4b3; undefined field_0x4b4; undefined field_0x4b5; undefined field_0x4b6; undefined field_0x4b7; undefined field_0x4b8; undefined field_0x4b9; undefined field_0x4ba; undefined field_0x4bb; undefined field_0x4bc; undefined field_0x4bd; undefined field_0x4be; undefined field_0x4bf; undefined field_0x4c0; undefined field_0x4c1; undefined field_0x4c2; undefined field_0x4c3; undefined field_0x4c4; undefined field_0x4c5; undefined field_0x4c6; undefined field_0x4c7; undefined field_0x4c8; undefined field_0x4c9; undefined field_0x4ca; undefined field_0x4cb; undefined field_0x4cc; undefined field_0x4cd; undefined field_0x4ce; undefined field_0x4cf; undefined field_0x4d0; undefined field_0x4d1; undefined field_0x4d2; undefined field_0x4d3; undefined field_0x4d4; undefined field_0x4d5; undefined field_0x4d6; undefined field_0x4d7; undefined field_0x4d8; undefined field_0x4d9; undefined field_0x4da; undefined field_0x4db; undefined field_0x4dc; undefined field_0x4dd; undefined field_0x4de; undefined field_0x4df; undefined field_0x4e0; undefined field_0x4e1; undefined field_0x4e2; undefined field_0x4e3; undefined field_0x4e4; undefined field_0x4e5; undefined field_0x4e6; undefined field_0x4e7; undefined field_0x4e8; undefined field_0x4e9; undefined field_0x4ea; undefined field_0x4eb; undefined field_0x4ec; undefined field_0x4ed; undefined field_0x4ee; undefined field_0x4ef; undefined field_0x4f0; undefined field_0x4f1; undefined field_0x4f2; undefined field_0x4f3; undefined field_0x4f4; undefined field_0x4f5; undefined field_0x4f6; undefined field_0x4f7; undefined field_0x4f8; undefined field_0x4f9; undefined field_0x4fa; undefined field_0x4fb; undefined field_0x4fc; undefined field_0x4fd; undefined field_0x4fe; undefined field_0x4ff; undefined field_0x500; undefined field_0x501; undefined field_0x502; undefined field_0x503; undefined field_0x504; undefined field_0x505; undefined field_0x506; undefined field_0x507; undefined field_0x508; undefined field_0x509; undefined field_0x50a; undefined field_0x50b; undefined field_0x50c; undefined field_0x50d; undefined field_0x50e; undefined field_0x50f; undefined field_0x510; undefined field_0x511; undefined field_0x512; undefined field_0x513; undefined field_0x514; undefined field_0x515; undefined field_0x516; undefined field_0x517; undefined field_0x518; undefined field_0x519; undefined field_0x51a; undefined field_0x51b; undefined field_0x51c; undefined field_0x51d; undefined field_0x51e; undefined field_0x51f; undefined field_0x520; undefined field_0x521; undefined field_0x522; undefined field_0x523; undefined field_0x524; undefined field_0x525; undefined field_0x526; undefined field_0x527; undefined field_0x528; undefined field_0x529; undefined field_0x52a; undefined field_0x52b; undefined field_0x52c; undefined field_0x52d; undefined field_0x52e; undefined field_0x52f; undefined field_0x530; undefined field_0x531; undefined field_0x532; undefined field_0x533; undefined field_0x534; undefined field_0x535; undefined field_0x536; undefined field_0x537; undefined field_0x538; undefined field_0x539; undefined field_0x53a; undefined field_0x53b; undefined field_0x53c; undefined field_0x53d; undefined field_0x53e; undefined field_0x53f; undefined field_0x540; undefined field_0x541; undefined field_0x542; undefined field_0x543; undefined field_0x544; undefined field_0x545; undefined field_0x546; undefined field_0x547; undefined field_0x548; undefined field_0x549; undefined field_0x54a; undefined field_0x54b; undefined field_0x54c; undefined field_0x54d; undefined field_0x54e; undefined field_0x54f; undefined field_0x550; undefined field_0x551; undefined field_0x552; undefined field_0x553; undefined field_0x554; undefined field_0x555; undefined field_0x556; undefined field_0x557; undefined field_0x558; undefined field_0x559; undefined field_0x55a; undefined field_0x55b; undefined field_0x55c; undefined field_0x55d; undefined field_0x55e; undefined field_0x55f; undefined field_0x560; undefined field_0x561; undefined field_0x562; undefined field_0x563; undefined field_0x564; undefined field_0x565; undefined field_0x566; undefined field_0x567; undefined field_0x568; undefined field_0x569; undefined field_0x56a; undefined field_0x56b; undefined field_0x56c; undefined field_0x56d; undefined field_0x56e; undefined field_0x56f; undefined field_0x570; undefined field_0x571; undefined field_0x572; undefined field_0x573; undefined field_0x574; undefined field_0x575; undefined field_0x576; undefined field_0x577; undefined field_0x578; undefined field_0x579; undefined field_0x57a; undefined field_0x57b; undefined field_0x57c; undefined field_0x57d; undefined field_0x57e; undefined field_0x57f; undefined field_0x580; undefined field_0x581; undefined field_0x582; undefined field_0x583; undefined field_0x584; undefined field_0x585; undefined field_0x586; undefined field_0x587; undefined field_0x588; undefined field_0x589; undefined field_0x58a; undefined field_0x58b; undefined field_0x58c; undefined field_0x58d; undefined field_0x58e; undefined field_0x58f; undefined field_0x590; undefined field_0x591; undefined field_0x592; undefined field_0x593; undefined field_0x594; undefined field_0x595; undefined field_0x596; undefined field_0x597; undefined field_0x598; undefined field_0x599; undefined field_0x59a; undefined field_0x59b; undefined field_0x59c; undefined field_0x59d; undefined field_0x59e; undefined field_0x59f; undefined field_0x5a0; undefined field_0x5a1; undefined field_0x5a2; undefined field_0x5a3; undefined field_0x5a4; undefined field_0x5a5; undefined field_0x5a6; undefined field_0x5a7; undefined field_0x5a8; undefined field_0x5a9; undefined field_0x5aa; undefined field_0x5ab; undefined field_0x5ac; undefined field_0x5ad; undefined field_0x5ae; undefined field_0x5af; undefined field_0x5b0; undefined field_0x5b1; undefined field_0x5b2; undefined field_0x5b3; undefined field_0x5b4; undefined field_0x5b5; undefined field_0x5b6; undefined field_0x5b7; undefined field_0x5b8; undefined field_0x5b9; undefined field_0x5ba; undefined field_0x5bb; undefined field_0x5bc; undefined field_0x5bd; undefined field_0x5be; undefined field_0x5bf; undefined field_0x5c0; undefined field_0x5c1; undefined field_0x5c2; undefined field_0x5c3; undefined field_0x5c4; undefined field_0x5c5; undefined field_0x5c6; undefined field_0x5c7; undefined field_0x5c8; undefined field_0x5c9; undefined field_0x5ca; undefined field_0x5cb; undefined field_0x5cc; undefined field_0x5cd; undefined field_0x5ce; undefined field_0x5cf; undefined field_0x5d0; undefined field_0x5d1; undefined field_0x5d2; undefined field_0x5d3; undefined field_0x5d4; undefined field_0x5d5; undefined field_0x5d6; undefined field_0x5d7; undefined field_0x5d8; undefined field_0x5d9; undefined field_0x5da; undefined field_0x5db; undefined field_0x5dc; undefined field_0x5dd; undefined field_0x5de; undefined field_0x5df; undefined field_0x5e0; undefined field_0x5e1; undefined field_0x5e2; undefined field_0x5e3; undefined field_0x5e4; undefined field_0x5e5; undefined field_0x5e6; undefined field_0x5e7; undefined field_0x5e8; undefined field_0x5e9; undefined field_0x5ea; undefined field_0x5eb; undefined field_0x5ec; undefined field_0x5ed; undefined field_0x5ee; undefined field_0x5ef; undefined field_0x5f0; undefined field_0x5f1; undefined field_0x5f2; undefined field_0x5f3; undefined field_0x5f4; undefined field_0x5f5; undefined field_0x5f6; undefined field_0x5f7; undefined field_0x5f8; undefined field_0x5f9; undefined field_0x5fa; undefined field_0x5fb; undefined field_0x5fc; undefined field_0x5fd; undefined field_0x5fe; undefined field_0x5ff; undefined field_0x600; undefined field_0x601; undefined field_0x602; undefined field_0x603; undefined field_0x604; undefined field_0x605; undefined field_0x606; undefined field_0x607; undefined field_0x608; undefined field_0x609; undefined field_0x60a; undefined field_0x60b; undefined field_0x60c; undefined field_0x60d; undefined field_0x60e; undefined field_0x60f; undefined field_0x610; undefined field_0x611; undefined field_0x612; undefined field_0x613; undefined field_0x614; undefined field_0x615; undefined field_0x616; undefined field_0x617; undefined field_0x618; undefined field_0x619; undefined field_0x61a; undefined field_0x61b; undefined field_0x61c; undefined field_0x61d; undefined field_0x61e; undefined field_0x61f; undefined field_0x620; undefined field_0x621; undefined field_0x622; undefined field_0x623; undefined field_0x624; undefined field_0x625; undefined field_0x626; undefined field_0x627; undefined field_0x628; undefined field_0x629; undefined field_0x62a; undefined field_0x62b; undefined field_0x62c; undefined field_0x62d; undefined field_0x62e; undefined field_0x62f; undefined field_0x630; undefined field_0x631; undefined field_0x632; undefined field_0x633; undefined field_0x634; undefined field_0x635; undefined field_0x636; undefined field_0x637; undefined field_0x638; undefined field_0x639; undefined field_0x63a; undefined field_0x63b; undefined field_0x63c; undefined field_0x63d; undefined field_0x63e; undefined field_0x63f; undefined field_0x640; undefined field_0x641; undefined field_0x642; undefined field_0x643; undefined field_0x644; undefined field_0x645; undefined field_0x646; undefined field_0x647; undefined field_0x648; undefined field_0x649; undefined field_0x64a; undefined field_0x64b; undefined field_0x64c; undefined field_0x64d; undefined field_0x64e; undefined field_0x64f; undefined field_0x650; undefined field_0x651; undefined field_0x652; undefined field_0x653; undefined field_0x654; undefined field_0x655; undefined field_0x656; undefined field_0x657; undefined field_0x658; undefined field_0x659; undefined field_0x65a; undefined field_0x65b; undefined field_0x65c; undefined field_0x65d; undefined field_0x65e; undefined field_0x65f; undefined field_0x660; undefined field_0x661; undefined field_0x662; undefined field_0x663; undefined field_0x664; undefined field_0x665; undefined field_0x666; undefined field_0x667; undefined field_0x668; undefined field_0x669; undefined field_0x66a; undefined field_0x66b; undefined field_0x66c; undefined field_0x66d; undefined field_0x66e; undefined field_0x66f; undefined field_0x670; undefined field_0x671; undefined field_0x672; undefined field_0x673; undefined field_0x674; undefined field_0x675; undefined field_0x676; undefined field_0x677; undefined field_0x678; undefined field_0x679; undefined field_0x67a; undefined field_0x67b; undefined field_0x67c; undefined field_0x67d; undefined field_0x67e; undefined field_0x67f; undefined field_0x680; undefined field_0x681; undefined field_0x682; undefined field_0x683; undefined field_0x684; undefined field_0x685; undefined field_0x686; undefined field_0x687; undefined field_0x688; undefined field_0x689; undefined field_0x68a; undefined field_0x68b; undefined field_0x68c; undefined field_0x68d; undefined field_0x68e; undefined field_0x68f; undefined field_0x690; undefined field_0x691; undefined field_0x692; undefined field_0x693; undefined field_0x694; undefined field_0x695; undefined field_0x696; undefined field_0x697; undefined field_0x698; undefined field_0x699; undefined field_0x69a; undefined field_0x69b; undefined field_0x69c; undefined field_0x69d; undefined field_0x69e; undefined field_0x69f; undefined field_0x6a0; undefined field_0x6a1; undefined field_0x6a2; undefined field_0x6a3; undefined field_0x6a4; undefined field_0x6a5; undefined field_0x6a6; undefined field_0x6a7; undefined field_0x6a8; undefined field_0x6a9; undefined field_0x6aa; undefined field_0x6ab; undefined field_0x6ac; undefined field_0x6ad; undefined field_0x6ae; undefined field_0x6af; undefined field_0x6b0; undefined field_0x6b1; undefined field_0x6b2; undefined field_0x6b3; undefined field_0x6b4; undefined field_0x6b5; undefined field_0x6b6; undefined field_0x6b7; undefined field_0x6b8; undefined field_0x6b9; undefined field_0x6ba; undefined field_0x6bb; undefined field_0x6bc; undefined field_0x6bd; undefined field_0x6be; undefined field_0x6bf; undefined field_0x6c0; undefined field_0x6c1; undefined field_0x6c2; undefined field_0x6c3; undefined field_0x6c4; undefined field_0x6c5; undefined field_0x6c6; undefined field_0x6c7; undefined field_0x6c8; undefined field_0x6c9; undefined field_0x6ca; undefined field_0x6cb; undefined field_0x6cc; undefined field_0x6cd; undefined field_0x6ce; undefined field_0x6cf; undefined field_0x6d0; undefined field_0x6d1; undefined field_0x6d2; undefined field_0x6d3; undefined field_0x6d4; undefined field_0x6d5; undefined field_0x6d6; undefined field_0x6d7; undefined field_0x6d8; undefined field_0x6d9; undefined field_0x6da; undefined field_0x6db; undefined field_0x6dc; undefined field_0x6dd; undefined field_0x6de; undefined field_0x6df; undefined field_0x6e0; undefined field_0x6e1; undefined field_0x6e2; undefined field_0x6e3; undefined field_0x6e4; undefined field_0x6e5; undefined field_0x6e6; undefined field_0x6e7; undefined field_0x6e8; undefined field_0x6e9; undefined field_0x6ea; undefined field_0x6eb; undefined field_0x6ec; undefined field_0x6ed; undefined field_0x6ee; undefined field_0x6ef; undefined field_0x6f0; undefined field_0x6f1; undefined field_0x6f2; undefined field_0x6f3; undefined field_0x6f4; undefined field_0x6f5; undefined field_0x6f6; undefined field_0x6f7; undefined field_0x6f8; undefined field_0x6f9; undefined field_0x6fa; undefined field_0x6fb; undefined field_0x6fc; undefined field_0x6fd; undefined field_0x6fe; undefined field_0x6ff; undefined field_0x700; undefined field_0x701; undefined field_0x702; undefined field_0x703; undefined field_0x704; undefined field_0x705; undefined field_0x706; undefined field_0x707; undefined field_0x708; undefined field_0x709; undefined field_0x70a; undefined field_0x70b; undefined field_0x70c; undefined field_0x70d; undefined field_0x70e; undefined field_0x70f; undefined field_0x710; undefined field_0x711; undefined field_0x712; undefined field_0x713; undefined field_0x714; undefined field_0x715; undefined field_0x716; undefined field_0x717; struct WEAPON_PLAYER_LIST * weapons[22]; /* Created by retype action */ undefined field_0x770; undefined field_0x771; undefined field_0x772; undefined field_0x773; undefined field_0x774; undefined field_0x775; undefined field_0x776; undefined field_0x777; undefined field_0x778; undefined field_0x779; undefined field_0x77a; undefined field_0x77b; undefined field_0x77c; undefined field_0x77d; undefined field_0x77e; undefined field_0x77f; undefined field_0x780; undefined field_0x781; undefined field_0x782; undefined field_0x783; undefined field_0x784; undefined field_0x785; undefined field_0x786; undefined field_0x787; short count; /* Created by retype action */ }; struct Sprite { uint id; undefined field_0x4; undefined field_0x5; undefined field_0x6; undefined field_0x7; undefined field_0x8; undefined field_0x9; undefined field_0xa; undefined field_0xb; undefined field_0xc; undefined field_0xd; undefined field_0xe; undefined field_0xf; undefined field_0x10; undefined field_0x11; undefined field_0x12; undefined field_0x13; undefined field_0x14; undefined field_0x15; undefined field_0x16; undefined field_0x17; undefined field_0x18; undefined field_0x19; undefined field_0x1a; undefined field_0x1b; undefined field_0x1c; undefined field_0x1d; undefined field_0x1e; undefined field_0x1f; undefined field_0x20; undefined field_0x21; undefined field_0x22; undefined field_0x23; ushort maybe_id; undefined field_0x26; undefined field_0x27; undefined field_0x28; undefined field_0x29; undefined field_0x2a; undefined field_0x2b; undefined field_0x2c; undefined field_0x2d; undefined field_0x2e; undefined field_0x2f; undefined field_0x30; undefined field_0x31; undefined field_0x32; undefined field_0x33; undefined field_0x34; undefined field_0x35; undefined field_0x36; undefined field_0x37; undefined field_0x38; undefined field_0x39; undefined field_0x3a; undefined field_0x3b; undefined field_0x3c; undefined field_0x3d; undefined field_0x3e; undefined field_0x3f; short field_0x40; undefined field_0x42; undefined field_0x43; undefined field_0x44; undefined field_0x45; undefined field_0x46; undefined field_0x47; undefined field_0x48; undefined field_0x49; undefined field_0x4a; undefined field_0x4b; undefined field_0x4c; undefined field_0x4d; undefined field_0x4e; undefined field_0x4f; undefined field_0x50; undefined field_0x51; undefined field_0x52; undefined field_0x53; undefined field_0x54; undefined field_0x55; undefined field_0x56; undefined field_0x57; undefined field_0x58; undefined field_0x59; undefined field_0x5a; undefined field_0x5b; undefined field_0x5c; undefined field_0x5d; undefined field_0x5e; undefined field_0x5f; undefined field_0x60; undefined field_0x61; undefined field_0x62; undefined field_0x63; undefined field_0x64; undefined field_0x65; undefined field_0x66; undefined field_0x67; undefined field_0x68; undefined field_0x69; undefined field_0x6a; undefined field_0x6b; undefined field_0x6c; undefined field_0x6d; undefined field_0x6e; undefined field_0x6f; undefined field_0x70; undefined field_0x71; undefined field_0x72; undefined field_0x73; undefined field_0x74; undefined field_0x75; undefined field_0x76; undefined field_0x77; struct Sprite * maybeNext; undefined field_0x7c; undefined field_0x7d; undefined field_0x7e; undefined field_0x7f; struct Position * actualPosition; undefined field_0x84; undefined field_0x85; undefined field_0x86; undefined field_0x87; undefined field_0x88; undefined field_0x89; undefined field_0x8a; undefined field_0x8b; undefined field_0x8c; undefined field_0x8d; undefined field_0x8e; undefined field_0x8f; undefined field_0x90; undefined field_0x91; undefined field_0x92; undefined field_0x93; undefined field_0x94; undefined field_0x95; undefined field_0x96; undefined field_0x97; undefined field_0x98; undefined field_0x99; undefined field_0x9a; undefined field_0x9b; undefined field_0x9c; undefined field_0x9d; undefined field_0x9e; undefined field_0x9f; undefined field_0xa0; undefined field_0xa1; undefined field_0xa2; undefined field_0xa3; undefined field_0xa4; undefined field_0xa5; undefined field_0xa6; undefined field_0xa7; undefined field_0xa8; undefined field_0xa9; undefined field_0xaa; undefined field_0xab; undefined field_0xac; undefined field_0xad; undefined field_0xae; undefined field_0xaf; undefined field_0xb0; undefined field_0xb1; undefined field_0xb2; undefined field_0xb3; undefined field_0xb4; undefined field_0xb5; undefined field_0xb6; undefined field_0xb7; undefined field_0xb8; undefined field_0xb9; undefined field_0xba; undefined field_0xbb; undefined field_0xbc; undefined field_0xbd; undefined field_0xbe; undefined field_0xbf; undefined field_0xc0; undefined field_0xc1; undefined field_0xc2; undefined field_0xc3; undefined field_0xc4; undefined field_0xc5; undefined field_0xc6; undefined field_0xc7; undefined field_0xc8; undefined field_0xc9; undefined field_0xca; undefined field_0xcb; undefined field_0xcc; undefined field_0xcd; undefined field_0xce; undefined field_0xcf; undefined field_0xd0; undefined field_0xd1; undefined field_0xd2; undefined field_0xd3; undefined field_0xd4; undefined field_0xd5; undefined field_0xd6; undefined field_0xd7; undefined field_0xd8; undefined field_0xd9; undefined field_0xda; undefined field_0xdb; undefined field_0xdc; undefined field_0xdd; undefined field_0xde; undefined field_0xdf; undefined field_0xe0; undefined field_0xe1; undefined field_0xe2; undefined field_0xe3; undefined field_0xe4; undefined field_0xe5; undefined field_0xe6; undefined field_0xe7; undefined field_0xe8; undefined field_0xe9; undefined field_0xea; undefined field_0xeb; undefined field_0xec; undefined field_0xed; undefined field_0xee; undefined field_0xef; undefined field_0xf0; undefined field_0xf1; undefined field_0xf2; undefined field_0xf3; undefined field_0xf4; undefined field_0xf5; undefined field_0xf6; undefined field_0xf7; undefined field_0xf8; undefined field_0xf9; undefined field_0xfa; undefined field_0xfb; undefined field_0xfc; undefined field_0xfd; undefined field_0xfe; undefined field_0xff; }; struct Car { undefined field_0x0; undefined field_0x1; undefined field_0x2; undefined field_0x3; undefined field_0x4; undefined field_0x5; undefined field_0x6; undefined field_0x7; enum CAR_LIGHTS_AND_DOORS_BITSTATE carLights; undefined field_0xc; undefined field_0xd; undefined field_0xe; undefined field_0xf; undefined field_0x10; undefined field_0x11; undefined field_0x12; undefined field_0x13; undefined field_0x14; undefined field_0x15; undefined field_0x16; undefined field_0x17; undefined field_0x18; undefined field_0x19; undefined field_0x1a; undefined field_0x1b; undefined field_0x1c; undefined field_0x1d; undefined field_0x1e; undefined field_0x1f; undefined field_0x20; undefined field_0x21; undefined field_0x22; undefined field_0x23; uint bitMask2; undefined field_0x28; undefined field_0x29; undefined field_0x2a; undefined field_0x2b; undefined field_0x2c; undefined field_0x2d; undefined field_0x2e; undefined field_0x2f; undefined field_0x30; undefined field_0x31; undefined field_0x32; undefined field_0x33; undefined field_0x34; undefined field_0x35; undefined field_0x36; undefined field_0x37; undefined field_0x38; undefined field_0x39; undefined field_0x3a; undefined field_0x3b; int field_0x3c; undefined field_0x40; undefined field_0x41; undefined field_0x42; undefined field_0x43; undefined field_0x44; undefined field_0x45; undefined field_0x46; undefined field_0x47; undefined field_0x48; undefined field_0x49; undefined field_0x4a; undefined field_0x4b; int field_0x4c; struct Position * position; struct Ped * driver; /* Created by retype action */ struct MaybeCarEngine * maybeEngine; undefined field_0x5c; undefined field_0x5d; undefined field_0x5e; undefined field_0x5f; undefined field_0x60; undefined field_0x61; undefined field_0x62; undefined field_0x63; void * field_0x64; undefined field_0x68; undefined field_0x69; undefined field_0x6a; undefined field_0x6b; undefined field_0x6c; undefined field_0x6d; undefined field_0x6e; undefined field_0x6f; int driverPedId; /* Created by retype action */ undefined field_0x74; byte carDamagePercent; undefined field_0x76; undefined field_0x77; byte bitMask; undefined field_0x79; undefined field_0x7a; undefined field_0x7b; int field_0x7c; bool field_0x80; undefined field_0x81; undefined field_0x82; undefined field_0x83; enum CAR_MODEL carModel; undefined field_0x85; undefined field_0x86; undefined field_0x87; int field_0x88; undefined field_0x8c; undefined field_0x8d; undefined field_0x8e; undefined field_0x8f; undefined field_0x90; undefined field_0x91; undefined field_0x92; undefined field_0x93; undefined field_0x94; undefined field_0x95; undefined field_0x96; undefined field_0x97; byte locksDoor; /* 1 - locked, 2 - unlocked */ undefined field_0x99; undefined field_0x9a; undefined field_0x9b; enum CAR_ENGINE_STATE engineState; undefined field_0xa0; undefined field_0xa1; undefined field_0xa2; undefined field_0xa3; enum CAR_SIREN_STATE sirenState; undefined field_0xa5; undefined field_0xa6; enum HORN horn; }; struct Position { short rotation; undefined field_0x2; undefined field_0x3; struct Position * prev; int field_0x8; struct Position * next; int field_0x10; int x; /* Created by retype action */ int y; /* Created by retype action */ int z; /* Created by retype action */ short incFromS20; short field_0x22; short field_0x24; undefined field_0x26; undefined field_0x27; int field_0x28; byte field_0x2c; undefined field_0x2d; undefined field_0x2e; undefined field_0x2f; int field_0x30; int field_0x34; byte field_0x38; byte field_0x39; undefined field_0x3a; undefined field_0x3b; }; struct WEAPON_STRUCT { short ammo; byte timeToReload; undefined field_0x3; int field_0x4; undefined field_0x8; undefined field_0x9; undefined field_0xa; undefined field_0xb; undefined field_0xc; undefined field_0xd; undefined field_0xe; undefined field_0xf; undefined field_0x10; undefined field_0x11; undefined field_0x12; undefined field_0x13; int carId; /* Created by retype action */ struct WEAPON_STRUCT * nextWeapon; enum WEAPON_INDEX id; undefined field_0x20; undefined field_0x21; undefined field_0x22; undefined field_0x23; struct Ped * ped; undefined field_0x28; undefined field_0x29; undefined field_0x2a; undefined field_0x2b; byte field_0x2c; undefined field_0x2d; undefined field_0x2e; undefined field_0x2f; }; struct MaybeCarEngine { undefined field_0x0; undefined field_0x1; undefined field_0x2; undefined field_0x3; undefined field_0x4; undefined field_0x5; undefined field_0x6; undefined field_0x7; undefined field_0x8; undefined field_0x9; undefined field_0xa; undefined field_0xb; struct MaybeCarEngine * next; int field_0x10[2][4]; undefined field_0x30; undefined field_0x31; undefined field_0x32; undefined field_0x33; undefined field_0x34; undefined field_0x35; undefined field_0x36; undefined field_0x37; undefined field_0x38; undefined field_0x39; undefined field_0x3a; undefined field_0x3b; undefined field_0x3c; undefined field_0x3d; undefined field_0x3e; undefined field_0x3f; undefined field_0x40; undefined field_0x41; undefined field_0x42; undefined field_0x43; undefined field_0x44; undefined field_0x45; undefined field_0x46; undefined field_0x47; undefined field_0x48; undefined field_0x49; undefined field_0x4a; undefined field_0x4b; undefined field_0x4c; undefined field_0x4d; undefined field_0x4e; undefined field_0x4f; undefined field_0x50; undefined field_0x51; undefined field_0x52; undefined field_0x53; undefined field_0x54; undefined field_0x55; undefined field_0x56; undefined field_0x57; undefined field_0x58; undefined field_0x59; undefined field_0x5a; undefined field_0x5b; void * prev; undefined field_0x60; undefined field_0x61; undefined field_0x62; undefined field_0x63; undefined field_0x64; undefined field_0x65; undefined field_0x66; undefined field_0x67; undefined field_0x68; undefined field_0x69; undefined field_0x6a; undefined field_0x6b; undefined field_0x6c; undefined field_0x6d; undefined field_0x6e; undefined field_0x6f; undefined field_0x70; undefined field_0x71; undefined field_0x72; undefined field_0x73; undefined field_0x74; undefined field_0x75; undefined field_0x76; undefined field_0x77; undefined field_0x78; undefined field_0x79; undefined field_0x7a; undefined field_0x7b; undefined field_0x7c; undefined field_0x7d; undefined field_0x7e; undefined field_0x7f; undefined field_0x80; undefined field_0x81; undefined field_0x82; undefined field_0x83; undefined field_0x84; undefined field_0x85; undefined field_0x86; undefined field_0x87; undefined field_0x88; undefined field_0x89; undefined field_0x8a; undefined field_0x8b; undefined field_0x8c; undefined field_0x8d; undefined field_0x8e; undefined field_0x8f; undefined field_0x90; undefined field_0x91; byte field_0x92; bool IsAccelerateForward; bool IsAccelerateBackward; undefined field_0x95; undefined field_0x96; undefined field_0x97; undefined field_0x98; undefined field_0x99; undefined field_0x9a; undefined field_0x9b; undefined field_0x9c; undefined field_0x9d; undefined field_0x9e; undefined field_0x9f; undefined field_0xa0; undefined field_0xa1; undefined field_0xa2; undefined field_0xa3; undefined field_0xa4; undefined field_0xa5; undefined field_0xa6; undefined field_0xa7; undefined field_0xa8; undefined field_0xa9; undefined field_0xaa; undefined field_0xab; undefined field_0xac; undefined field_0xad; undefined field_0xae; undefined field_0xaf; }; struct Ped { byte field_0x0; byte field_0x1; undefined field_0x2; undefined field_0x3; undefined field_0x4; undefined field_0x5; undefined field_0x6; undefined field_0x7; undefined field_0x8; undefined field_0x9; undefined field_0xa; undefined field_0xb; undefined field_0xc; undefined field_0xd; undefined field_0xe; undefined field_0xf; undefined field_0x10; undefined field_0x11; undefined field_0x12; undefined field_0x13; undefined field_0x14; undefined field_0x15; undefined field_0x16; undefined field_0x17; undefined field_0x18; undefined field_0x19; undefined field_0x1a; undefined field_0x1b; undefined field_0x1c; undefined field_0x1d; undefined field_0x1e; undefined field_0x1f; undefined field_0x20; undefined field_0x21; undefined field_0x22; undefined field_0x23; undefined field_0x24; undefined field_0x25; undefined field_0x26; undefined field_0x27; undefined field_0x28; undefined field_0x29; undefined field_0x2a; undefined field_0x2b; struct Ped * elvisSomething; undefined field_0x30; undefined field_0x31; undefined field_0x32; undefined field_0x33; undefined field_0x34; undefined field_0x35; undefined field_0x36; undefined field_0x37; undefined field_0x38; undefined field_0x39; undefined field_0x3a; undefined field_0x3b; undefined field_0x3c; undefined field_0x3d; undefined field_0x3e; undefined field_0x3f; undefined field_0x40; undefined field_0x41; undefined field_0x42; undefined field_0x43; undefined field_0x44; undefined field_0x45; undefined field_0x46; undefined field_0x47; undefined field_0x48; undefined field_0x49; undefined field_0x4a; undefined field_0x4b; undefined field_0x4c; undefined field_0x4d; undefined field_0x4e; undefined field_0x4f; undefined field_0x50; undefined field_0x51; undefined field_0x52; undefined field_0x53; undefined field_0x54; undefined field_0x55; undefined field_0x56; undefined field_0x57; undefined field_0x58; undefined field_0x59; undefined field_0x5a; undefined field_0x5b; undefined field_0x5c; undefined field_0x5d; undefined field_0x5e; undefined field_0x5f; undefined field_0x60; undefined field_0x61; undefined field_0x62; undefined field_0x63; undefined field_0x64; undefined field_0x65; undefined field_0x66; undefined field_0x67; undefined field_0x68; undefined field_0x69; undefined field_0x6a; undefined field_0x6b; undefined field_0x6c; undefined field_0x6d; undefined field_0x6e; undefined field_0x6f; undefined field_0x70; undefined field_0x71; undefined field_0x72; undefined field_0x73; undefined field_0x74; undefined field_0x75; undefined field_0x76; undefined field_0x77; undefined field_0x78; undefined field_0x79; undefined field_0x7a; undefined field_0x7b; undefined field_0x7c; undefined field_0x7d; undefined field_0x7e; undefined field_0x7f; undefined field_0x80; undefined field_0x81; undefined field_0x82; undefined field_0x83; undefined field_0x84; undefined field_0x85; undefined field_0x86; undefined field_0x87; undefined field_0x88; undefined field_0x89; undefined field_0x8a; undefined field_0x8b; undefined field_0x8c; undefined field_0x8d; undefined field_0x8e; undefined field_0x8f; undefined field_0x90; undefined field_0x91; undefined field_0x92; undefined field_0x93; undefined field_0x94; undefined field_0x95; undefined field_0x96; undefined field_0x97; undefined field_0x98; undefined field_0x99; undefined field_0x9a; undefined field_0x9b; undefined field_0x9c; undefined field_0x9d; undefined field_0x9e; undefined field_0x9f; undefined field_0xa0; undefined field_0xa1; undefined field_0xa2; undefined field_0xa3; undefined field_0xa4; undefined field_0xa5; undefined field_0xa6; undefined field_0xa7; undefined field_0xa8; undefined field_0xa9; undefined field_0xaa; undefined field_0xab; undefined field_0xac; undefined field_0xad; undefined field_0xae; undefined field_0xaf; undefined field_0xb0; undefined field_0xb1; undefined field_0xb2; undefined field_0xb3; undefined field_0xb4; undefined field_0xb5; undefined field_0xb6; undefined field_0xb7; undefined field_0xb8; undefined field_0xb9; undefined field_0xba; undefined field_0xbb; undefined field_0xbc; undefined field_0xbd; undefined field_0xbe; undefined field_0xbf; undefined field_0xc0; undefined field_0xc1; undefined field_0xc2; undefined field_0xc3; undefined field_0xc4; undefined field_0xc5; undefined field_0xc6; undefined field_0xc7; undefined field_0xc8; undefined field_0xc9; undefined field_0xca; undefined field_0xcb; undefined field_0xcc; undefined field_0xcd; undefined field_0xce; undefined field_0xcf; undefined field_0xd0; undefined field_0xd1; undefined field_0xd2; undefined field_0xd3; undefined field_0xd4; undefined field_0xd5; undefined field_0xd6; undefined field_0xd7; undefined field_0xd8; undefined field_0xd9; undefined field_0xda; undefined field_0xdb; undefined field_0xdc; undefined field_0xdd; undefined field_0xde; undefined field_0xdf; undefined field_0xe0; undefined field_0xe1; undefined field_0xe2; undefined field_0xe3; undefined field_0xe4; undefined field_0xe5; undefined field_0xe6; undefined field_0xe7; undefined field_0xe8; undefined field_0xe9; undefined field_0xea; undefined field_0xeb; undefined field_0xec; undefined field_0xed; undefined field_0xee; undefined field_0xef; undefined field_0xf0; undefined field_0xf1; undefined field_0xf2; undefined field_0xf3; undefined field_0xf4; undefined field_0xf5; undefined field_0xf6; undefined field_0xf7; undefined field_0xf8; undefined field_0xf9; undefined field_0xfa; undefined field_0xfb; undefined field_0xfc; undefined field_0xfd; undefined field_0xfe; undefined field_0xff; undefined field_0x100; undefined field_0x101; undefined field_0x102; undefined field_0x103; undefined field_0x104; undefined field_0x105; undefined field_0x106; undefined field_0x107; undefined field_0x108; undefined field_0x109; undefined field_0x10a; undefined field_0x10b; undefined field_0x10c; undefined field_0x10d; undefined field_0x10e; undefined field_0x10f; undefined field_0x110; undefined field_0x111; undefined field_0x112; undefined field_0x113; undefined field_0x114; undefined field_0x115; undefined field_0x116; undefined field_0x117; undefined field_0x118; undefined field_0x119; undefined field_0x11a; undefined field_0x11b; undefined field_0x11c; undefined field_0x11d; undefined field_0x11e; undefined field_0x11f; undefined field_0x120; undefined field_0x121; undefined field_0x122; undefined field_0x123; undefined field_0x124; undefined field_0x125; undefined field_0x126; undefined field_0x127; undefined field_0x128; undefined field_0x129; undefined field_0x12a; undefined field_0x12b; short field_0x12c; short field_0x12e; short field_0x130; undefined field_0x132; undefined field_0x133; short field_0x134; undefined field_0x136; undefined field_0x137; undefined field_0x138; undefined field_0x139; undefined field_0x13a; undefined field_0x13b; undefined field_0x13c; undefined field_0x13d; undefined field_0x13e; undefined field_0x13f; int field_0x140; int field_0x144; int field_0x148; int field_0x14c; int field_0x150; struct Car * field_0x154; int field_0x158; struct WEAPON_PLAYER_LIST * playerWeapons; struct Ped * nextPed; struct Ped * ElvisOrTarget; /* Created by retype action */ struct Sprite * pedSprite; struct Car * currentCar; struct WEAPON_STRUCT * selectedWeapon; void * ptrToWeapon; int field_0x178; int field_0x17c; int field_0x180; undefined field_0x184; undefined field_0x185; undefined field_0x186; undefined field_0x187; undefined field_0x188; undefined field_0x189; undefined field_0x18a; undefined field_0x18b; int field_0x18c; int field_0x190; int field_0x194; undefined field_0x198; undefined field_0x199; undefined field_0x19a; undefined field_0x19b; undefined field_0x19c; undefined field_0x19d; undefined field_0x19e; undefined field_0x19f; undefined field_0x1a0; undefined field_0x1a1; undefined field_0x1a2; undefined field_0x1a3; int field_0x1a4; struct Ped * elvisLeader; int x; int y; int z; struct Ped * field_0x1b8; struct Ped * field_0x1bc; struct Ped * field_0x1c0; struct Ped * field_0x1c4; struct Ped * field_0x1c8; struct Ped * field_0x1cc; void * field_0x1d0; void * field_0x1d4; void * field_0x1d8; undefined field_0x1dc; undefined field_0x1dd; undefined field_0x1de; undefined field_0x1df; undefined field_0x1e0; undefined field_0x1e1; undefined field_0x1e2; undefined field_0x1e3; undefined field_0x1e4; undefined field_0x1e5; undefined field_0x1e6; undefined field_0x1e7; undefined field_0x1e8; undefined field_0x1e9; undefined field_0x1ea; undefined field_0x1eb; undefined field_0x1ec; undefined field_0x1ed; undefined field_0x1ee; undefined field_0x1ef; undefined field_0x1f0; undefined field_0x1f1; undefined field_0x1f2; undefined field_0x1f3; undefined field_0x1f4; undefined field_0x1f5; undefined field_0x1f6; undefined field_0x1f7; undefined field_0x1f8; undefined field_0x1f9; undefined field_0x1fa; undefined field_0x1fb; undefined field_0x1fc; undefined field_0x1fd; undefined field_0x1fe; undefined field_0x1ff; int id; int field_0x204; ushort Invulnerability; /* 9999 = infinity */ short CopLevel; /* 600 = 1 star, 1600 = 2 */ short field_0x20c; short field_0x20e; undefined field_0x210; undefined field_0x211; undefined field_0x212; undefined field_0x213; undefined field_0x214; undefined field_0x215; short health; short field_0x218; short field_0x21a; enum PED_BIT_STATE bitStateInvisOnFireEtc; /* invisibilty, electrofingers on fire and more */ undefined field_0x220; undefined field_0x221; undefined field_0x222; undefined field_0x223; undefined field_0x224; byte field_0x225; byte field_0x226; byte field_0x227; byte field_0x228; undefined field_0x229; undefined field_0x22a; undefined field_0x22b; int field_0x22c; int field_0x230; byte eq99; undefined field_0x235; undefined field_0x236; undefined field_0x237; uint bitState2; byte field_0x23c; undefined field_0x23d; undefined field_0x23e; undefined field_0x23f; enum OCUPATION occupation; byte field_0x244; undefined field_0x245; undefined field_0x246; undefined field_0x247; int field_0x248; byte field_0x24c; undefined field_0x24d; undefined field_0x24e; undefined field_0x24f; undefined field_0x250; undefined field_0x251; undefined field_0x252; undefined field_0x253; undefined field_0x254; undefined field_0x255; undefined field_0x256; undefined field_0x257; int field_0x258; int field_0x25c; undefined field_0x260; byte field_0x261; byte field_0x262; byte field_0x263; byte field_0x264; byte field_0x265; undefined field_0x266; undefined field_0x267; undefined field_0x268; undefined field_0x269; undefined field_0x26a; undefined field_0x26b; int field_0x26c; int field_0x270; undefined field_0x274; undefined field_0x275; undefined field_0x276; undefined field_0x277; enum PED_STATE state; enum PED_STATE2 state2; enum PED_STATE state1_2; /* 0 on start, 3 when getting to a car */ enum PED_STATE2 state2_2; int field_0x288; int field_0x28c; int relToMultiplayer; }; ]] ffi.cdef[[ int __cdecl HelloFFI(int, int, int); typedef Ped* (__stdcall GetPedById)(int); typedef enum GAME_STATUS { GAME_PAUSED=2, GAME_RUN=1 } GAME_STATUS; typedef struct { enum GAME_STATUS gameStatus; void * slots[6]; int alsoCurrentSlot; char field_0x20; char slotIndex; int field_0x24; int field_0x28; int field_0x2c; void * currentSlot; } Game; ]] local pGame = ffi.cast( "Game**", 0x005eb4fc ) local pGetPedById = ffi.cast("GetPedById*", 0x0043ae10) function api.GetGameStatus() log(tostring(pGame)) log(tostring(pGame[0])) if pGame[0] == nil then return 0, "GAME_NOT_STARTED" elseif pGame[0].gameStatus == 1 then return 1, "GAME_RUN" else return 2, "GAME_PAUSED" end end function api.SetGameStatus( status ) if status ~= 1 and status ~= 2 then return end if api.GetGameStatus() ~= 0 then pGame[0].gameStatus = status end end function api.GetNextPedId() local p = ffi.cast("int*", 0x00591e84) return p[0] end function api.IncrByNextPedId( incr ) local p = ffi.cast("int*", 0x00591e84) p[0] = p[0] + incr return p[0]; end function api.GetPedById( id ) if pGame[0] == nil then return 0, "GAME_NOT_STARTED" end local ped = pGetPedById(id) return ped end local user_gbh_BeginScene = nil function api.HookBeginScene( fn ) user_gbh_BeginScene = fn end function gbh_BeginScene( dt ) if(user_gbh_BeginScene) then user_gbh_BeginScene(dt) return true end return false end return api
local decoder = sjson.decoder() --test1 --data1='{"channel":{"id":846323,"latitude":"0.0","longitude":"0.0"}}' --decoder:write(data1) --ret= decoder:result() --print(ret["channel"]["id"]) --print(ret["channel"]["latitude"]) --test2 --data1='{"channel":{"id":846323,"latitude":"0.0","longitude":"0.0"},"feeds":[{"created_at":"2019-09-17T16:30:22Z","entry_id":4404,"field1":"1","field2":"2"}]}' data1='{"feeds":[{"created_at":"2019-09-17T16:30:22Z","entry_id":4404,"field1":"1","field2":"2"}]}' data1='{"channel":{"id":846323,"latitude":"0.0","longitude":"0.0"},"feeds":[{"created_at":"2019-09-17T16:30:22Z","entry_id":4404,"field1":"1","field2":"2"}]}'; decoder:write(data1) ret= decoder:result() a = ret["feeds"][1]["field2"] print(a..type(a)) a = ret["channel"]["latitude"] print(a..type(a))
--[[--------------------------------------------------------------------------- gName-Changer | SERVER SIDE CODE This addon has been created & released for free by Gaby Steam : https://steamcommunity.com/id/EpicGaby -----------------------------------------------------------------------------]] --[[------------------------------------------------------------------------- string, string goodCaligraphy(string firstname, string lastname) : Returns the character strings entered in parameter under a good caligraphy (first letter in upper case, then in lower case) ---------------------------------------------------------------------------]] function gNameChanger:goodCaligraphy(firstname, lastname) -- First, be sure that everything is lower-cased firstname, lastname = firstname:lower(), lastname:lower() -- Now uppercase only first letter firstname = firstname:gsub("%a", string.upper, 1) lastname = lastname:gsub("%a", string.upper, 1) return firstname, lastname end --[[------------------------------------------------------------------------- bool isBlacklisted(string firstname, string lastname) : Returns false if string isn't blacklisted, true if ---------------------------------------------------------------------------]] function gNameChanger:isBlacklisted(firstname, lastname) if not self.blacklist_active then return false end if not firstname or not lastname then return true end local blacklist = {} local _first, _last = string.lower(firstname), string.lower(lastname) for _string in string.gmatch(string.lower(self.blacklisted), "[^;]+") do blacklist[_string] = true end -- The string is blacklisted if blacklist[_first] or blacklist[_last] then return true end return false end --[[------------------------------------------------------------------------- bool canChange(Player ply, bool npc = true) : Returns true if the user can change his RPName, false if not ---------------------------------------------------------------------------]] function gNameChanger:canChange(ply, npc) if npc == nil then npc = true end -- Player is launching derma without using entity (or player is too far from entity) if npc == true then if not ply.usedNPC or ply.usedNPC:GetPos():DistToSqr(ply:GetPos()) >= self.distance^2 then return false end end -- The countdown isn't finished if not ply.gNameLastNameChange then return true end local possible = ply.gNameLastNameChange + self.delay if CurTime() < possible then DarkRP.notify(ply, 1, 6, self:LangMatch(self.Language.needWait)) return false end return true end --[[------------------------------------------------------------------------- bool rpNameChange(number len, Player ply, bool first = false, bool npc = true) : Changes the darkrp Name of a player given in arg return true if name was changed succesfully, false if not ---------------------------------------------------------------------------]] function gNameChanger:rpNameChange(_, ply, first, npc) if first == nil then first = false end if npc == nil then npc = true end if not self:canChange(ply, npc) then return false end local firstname = net.ReadString() local lastname = net.ReadString() local canChangeName, reason = hook.Call("CanChangeRPName", GAMEMODE, ply, firstname .. " " .. lastname) if canChangeName == false then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "RPname", reason or "")) return false end if self:isBlacklisted(firstname, lastname) then DarkRP.notify(ply, 1, 6, self.Language.nameBlacklist) return false end if self.caligraphy then firstname, lastname = self:goodCaligraphy(firstname, lastname) end local name = firstname .. " " .. lastname if first == true then DarkRP.retrieveRPNames(name, function(taken) if taken then gNameChanger:forceNameSendPanel(ply) DarkRP.notify(ply, 1, 5, DarkRP.getPhrase("unable", "RPname", DarkRP.getPhrase("already_taken"))) else DarkRP.storeRPName(ply, name) ply:setDarkRPVar("rpname", name) if gNameChanger.globalNotify then DarkRP.notifyAll(2, 6, DarkRP.getPhrase("rpname_changed", ply:SteamName(), name)) end end end) return true else if not ply:canAfford(self.price) then DarkRP.notify(ply, 1, 6, self:LangMatch(self.Language.needMoney)) return false else DarkRP.retrieveRPNames(name, function(taken) if taken then gNameChanger:forceNameSendPanel(ply) DarkRP.notify(ply, 1, 5, DarkRP.getPhrase("unable", "RPname", DarkRP.getPhrase("already_taken"))) else ply:addMoney(-self.price) DarkRP.storeRPName(ply, name) ply:setDarkRPVar("rpname", name) if gNameChanger.globalNotify then DarkRP.notifyAll(2, 6, DarkRP.getPhrase("rpname_changed", ply:SteamName(), name)) end end end) return true end end ply.gNameLastNameChange = CurTime() end
----------------------------------- -- Area: Lower Jeuno -- NPC: Chetak -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Lower_Jeuno/IDs") require("scripts/globals/shop") function onTrade(player, npc, trade) end function onTrigger(player, npc) local stock = { 12466, 20000, -- Red Cap 12467, 45760, -- Wool Cap 12474, 11166, -- Wool Hat 12594, 32500, -- Gambison 12610, 33212, -- Cloak 12595, 68640, -- Wool Gambison 12602, 18088, -- Wool Robe 12609, 9527, -- Black Tunic 12722, 16900, -- Bracers 12738, 15732, -- Linen Mitts 12730, 10234, -- Wool Cuffs 12737, 4443, -- White Mitts } player:showText(npc, ID.text.CHETAK_SHOP_DIALOG) tpz.shop.general(player, stock) end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) end
local t = Def.ActorFrame{ Font("mentone","24px") .. { Name="Above"; -- was Artist InitCommand=function(self) self:y(-8):zoom(0.8):horizalign(left):vertalign(bottom):NoStroke():shadowlength(1):maxwidth(SCREEN_CENTER_X*0.75) end; SetCommand=function(self) local text = ""; if GAMESTATE:GetCurrentSong() then text = GAMESTATE:GetCurrentSong():GetDisplayArtist(); elseif GAMESTATE:GetCurrentCourse() then local trail = GAMESTATE:GetCurrentTrail(GAMESTATE:GetMasterPlayerNumber()) if trail then local artists = trail:GetArtists(); text = join(", ", artists); end; end; self:settext( text ); end; CurrentSongChangedMessageCommand=function(self) self:playcommand("Set") end; CurrentCourseChangedMessageCommand=function(self) self:playcommand("Set") end; CurrentTrailP1ChangedMessageCommand=function(self) self:playcommand("Set") end; CurrentTrailP2ChangedMessageCommand=function(self) self:playcommand("Set") end; OffCommand=function(self) self:bouncebegin(0.35):addy(-SCREEN_CENTER_Y*1.25) end; }; Font("mentone","24px") .. { Name="Below"; -- was Genre InitCommand=function(self) self:y(8):zoom(0.8):horizalign(left):vertalign(top):NoStroke():shadowlength(1):maxwidth(SCREEN_CENTER_X*0.75) end; SetCommand=function(self) local text = ""; if GAMESTATE:GetCurrentSong() then text = GAMESTATE:GetCurrentSong():GetGenre(); elseif GAMESTATE:GetCurrentCourse() then local numStages = GAMESTATE:GetCurrentCourse():GetEstimatedNumStages(); if numStages == 1 then text = string.format(ScreenString("%i stage"),numStages) else text = string.format(ScreenString("%i stages"),numStages) end; end; self:settext( text ); end; CurrentSongChangedMessageCommand=function(self) self:playcommand("Set") end; CurrentCourseChangedMessageCommand=function(self) self:playcommand("Set") end; OffCommand=function(self) self:bouncebegin(0.35):addy(SCREEN_CENTER_Y*1.25) end; }; }; return t;
local status, treesitter = pcall(require, "nvim-treesitter.configs") if (not status) then return end treesitter.setup { ensure_installed = {}, -- one of "all", "maintained" (parsers with maintainers), or a list of languages sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) highlight = { enable = true, -- false will disable the whole extension additional_vim_regex_highlighting = false, }, indent = { enable = true } } local parsers = require'nvim-treesitter.parsers' function _G.ensure_treesitter_language_installed() local lang = parsers.get_buf_lang() if parsers.get_parser_configs()[lang] and not parsers.has_parser(lang) then vim.schedule_wrap(function() vim.cmd("TSInstall "..lang) end)() end end vim.cmd[[autocmd FileType * :lua ensure_treesitter_language_installed()]]
--[[ This is to test turtle scripts from IDEs outside of computercraft MIT License (MIT) 2014 Robert David Alkire II ]] turtle = {} local mockTurtle= turtle --- number or "unlimited" local fuelLevel = 50 turtle.popCount = 5 turtle.itms = {} local itms = turtle.itms local slts turtle.selected = 1 -- Slot Num local function getItemName(indx) local itm = turtle. getItemDetail( indx ) local rtn = nill if itm then rtn = itm.name end return rtn end turtle.compareTo= function( indx ) local thisItm = getItemName( turtle.selected ) local thatItm = getItemName(indx) return thisItm == thatItm end turtle.craft = function() print("Pretending to craft.") for i, v in pairs(turtle.itms)do print(i, v.name, v.count) end end turtle.dig = function() return true end turtle.digDown = function() return true end turtle.digUp = function() return true end local function checkAndDecrementFuel() local rtrn = true local whyNot = nil if fuelLevel ~= "unlimited" then if fuelLevel <= 0 then rtrn = false whyNot = "Out of fuel" else fuelLevel = fuelLevel - 1 end end return rtrn, whyNot end turtle.back = function() return checkAndDecrementFuel() end turtle.down = function() return checkAndDecrementFuel() end turtle.drop = function( amt ) if amt then slts[turtle.selected] = slts[turtle.selected]- amt else amt = slts[turtle.selected] slts[turtle.selected] = 0 end itms[turtle.selected] = nill print("Pretended to drop: ", amt) end turtle.forward = function() return checkAndDecrementFuel() end -- Can return a number or "unlimited" turtle.getFuelLevel= function() return fuelLevel end turtle.getItemCount = function( slotNum ) local rtrn = 0 if slotNum then rtrn = slts[slotNum] else rtrn = slts[turtle.selected] end return rtrn end turtle.getItemDetail = function( slot ) if slot == nil then slot= turtle.selected end return itms[slot] end turtle.getItemSpace= function(slt) local rtrn = 0 if slt then rtrn = 64 - slts[slt] else rtrn= 64- slts[turtle.selected] end return rtrn end turtle.getSelectedSlot = function() return turtle.selected end turtle.inspect = function() local itm = {} itm.name = "minecraft:log" return true, itm end turtle.inspectDown = function() local itm = {} itm.name = "minecraft:lava" itm.state= {} itm.state.level= 1 return true, itm end turtle.inspectUp = function() local itm = {} itm.name = "minecraft:log" return true, itm end local function adjstInvFromPlacing() local slctd = turtle.selected if slts[slctd] > 0 then slts[slctd] = slts[slctd] - 1 if slts[slctd] == 0 then itms[slctd] = nil else local itm = itms[slctd] itm.count = slts[slctd] end end end turtle.place = function() adjstInvFromPlacing() end turtle.placeDown = function() adjstInvFromPlacing() end turtle.refuel = function() if fuelLevel ~= "unlimited" then fuelLevel = fuelLevel + 400 end return true end turtle.select= function( slotNum ) turtle.selected = slotNum end turtle.suck = function() print("fake suction", turtle.popCount) local isAble = false if turtle.popCount > 1 then turtle.popCount = turtle.popCount - 1 isAble = true end return isAble end -- end suck turtle.turnRight = function() print("Play-turning right.") end turtle.turnLeft = function() print("Play-turning left.") end --[[ This function derived from: http://stackoverflow.com/a/641993/2620333 ]] local function shallow_copy(t) local t2 = {} for k,v in pairs(t) do t2[k] = v end return t2 end turtle.transferTo = function( slot, quantity ) local isAble = true local slctdItem= itms[ turtle.selected] local destItem = itms[ slot ] if (not quantity) or (slts[turtle.selected] < quantity) then quantity= slts[turtle.selected] end -- Checks compatiblity and room local destRoom = 64-slts[slot] if slts[slot] >= 64 or slts[turtle.selected]<= 0 or ( destItem ~= nill and slctdItem.name ~= destItem.name) then isAble = false elseif quantity > destRoom then quantity= destRoom end if isAble then -- Update the source slts[turtle.selected] = slts[turtle.selected] - quantity if slts[turtle.selected] == 0 then itms[turtle.selected] = nill else slctdItem.value = slts[turtle.selected] end -- If the destination slot type was -- nill, update it slts[slot] = slts[slot] + quantity if itms[slot] == nill then destItem= shallow_copy( slctdItem ) itms[slot] = destItem end destItem.count = slts[slot] end return isAble end turtle.up = function() return checkAndDecrementFuel() end turtle.init = function() -- Initializes the inventory -- with 4 kinds of items slts = { 25, 50, 42, 43, 0, 50, 0, 44, 25, 50, 0, 45, 25, 0, 0, 46 } --[[ Other item names: minecraft:melon_block minecraft:melon minecraft:iron_ingot ]] itms[1] = { name = "minecraft:carrot", count = slts[1], damage = 0, } itms[2] = { name = "minecraft:wheat_seeds", count = slts[2], damage = 0, } itms[3] = { name = "minecraft:potato", count = slts[3], damage = 0, } itms[4] = { name = "minecraft:wheat_seeds", count = slts[4], damage = 0, } for i = 5, 16 do local ref = (i % 4) + 1 if slts[i] ~= 0 then local nw= shallow_copy(itms[ref]) nw.count = slts[i] itms[i] = nw else itms[i] = nil end end slts[14] = 1 itms[14] = { name = "minecraft:water_bucket", count = slts[14], damage = 0, } end turtle.init() print("turtle 0.5.1") return mockTurtle
local unpack = unpack or table.unpack local lexer_search_path do local parts = { } for part in package.path:gmatch('[^;]+') do local _continue_0 = false repeat if not (part:match("%?%.lua$")) then _continue_0 = true break end table.insert(parts, (part:gsub("%?%.lua", "syntaxhighlight/lexers/?.lua"))) table.insert(parts, (part:gsub("%?%.lua", "syntaxhighlight/textadept/?.lua"))) _continue_0 = true until true if not _continue_0 then break end end lexer_search_path = table.concat(parts, ";") end local searchpath searchpath = function(name, path) local tried = { } for part in path:gmatch("[^;]+") do local filename = part:gsub("%?", name) if loadfile(filename) then return filename end tried[#tried + 1] = string.format("no file '%s'", filename) end return nil, table.concat(tried, "\n") end local lexer_mod local load_lexer load_lexer = function() if lexer_mod then return end lexer_mod = require("syntaxhighlight.textadept.lexer") lexer_mod.property = { ["lexer.lpeg.home"] = lexer_search_path:gsub("/%?%.lua", "") } lexer_mod.property_int = setmetatable({ }, { __index = function(self, k) return tonumber(lexer_mod.property[k]) or 0 end, __newindex = function(self) return error("read-only property") end }) end local lexers = setmetatable({ }, { __index = function(self, name) if not (lexer_mod) then load_lexer() end local source_path = searchpath(name, lexer_search_path) local mod if source_path then mod = lexer_mod.load(name) else mod = false end self[name] = mod return self[name] end }) local tag_tokens tag_tokens = function(source, tokens) local position = 1 local current_type return (function() local _accum_0 = { } local _len_0 = 1 for _index_0 = 1, #tokens do local _continue_0 = false repeat local token = tokens[_index_0] local _exp_0 = type(token) if "number" == _exp_0 then local chunk = source:sub(position, token - 1) position = token _accum_0[_len_0] = { (assert(current_type, "got position without type")), chunk } elseif "string" == _exp_0 then current_type = token _continue_0 = true break else _accum_0[_len_0] = error("unknown token type: " .. tostring(type(token))) end _len_0 = _len_0 + 1 _continue_0 = true until true if not _continue_0 then break end end return _accum_0 end)() end local parse_extra_styles parse_extra_styles = function(s) local _accum_0 = { } local _len_0 = 1 for t in s:gmatch("%$%(style%.([^)]+)%)") do _accum_0[_len_0] = t _len_0 = _len_0 + 1 end return _accum_0 end local classes_for_chunk_type classes_for_chunk_type = function(lex, chunk_type, alias_cache) do local out = alias_cache and alias_cache[chunk_type] if out then return out end end local out if lex._EXTRASTYLES and lex._EXTRASTYLES[chunk_type] then local other_tags = parse_extra_styles(lex._EXTRASTYLES[chunk_type]) out = { chunk_type, unpack(other_tags) } else out = { chunk_type } end if alias_cache then alias_cache[chunk_type] = out end return out end local merge_adjacent merge_adjacent = function(tuples) local out = { } for _index_0 = 1, #tuples do local t = tuples[_index_0] local last = out[#out] if last and last[1] == t[1] then out[#out] = { last[1], last[2] .. t[2] } else table.insert(out, t) end end return out end local highlight_to_html highlight_to_html = function(language, code, opts) if opts == nil then opts = { } end local lex = lexers[language] local class_prefix = opts.class_prefix or "sh_" if not (lex) then return nil, "failed to find lexer for " .. tostring(language) end local tokens, err = lex:lex(code) if not (tokens) then return nil, err end local cache = { } local tagged_tokens = merge_adjacent(tag_tokens(code, tokens)) local escape_text escape_text = require("web_sanitize.html").escape_text local buffer = { } if not (opts.bare) then table.insert(buffer, '<pre class="') table.insert(buffer, escape_text:match(class_prefix)) table.insert(buffer, 'highlight">') end for _index_0 = 1, #tagged_tokens do local _des_0 = tagged_tokens[_index_0] local chunk_type, chunk chunk_type, chunk = _des_0[1], _des_0[2] if chunk_type == "whitespace" then table.insert(buffer, escape_text:match(chunk)) else local classes = classes_for_chunk_type(lex, chunk_type, cache) table.insert(buffer, '<span class="') for idx, c in ipairs(classes) do if idx > 1 then table.insert(buffer, ' ') end table.insert(buffer, escape_text:match(class_prefix .. c)) end table.insert(buffer, '">') table.insert(buffer, escape_text:match(chunk)) table.insert(buffer, '</span>') end end if not (opts.bare) then table.insert(buffer, '</pre>') end return table.concat(buffer) end return { lexers = lexers, highlight_to_html = highlight_to_html, VERSION = "1.0.0" }
local glyphsets = { a = "abcdefghijklmnopqrstuvwxyz", A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", d = "0123456789", s = " " } local glyphs = {} -- TODO support all utf8 private use areas function glyphs.getPrivateUsePoint(i) return string.char(238, 128, 129 + i) end local function subfn(op, num) num = tonumber(num) local t = type(num) if op == "u" and t == "number" then local result = {} for i = 1, num do table.insert(result, glyphs.getPrivateUsePoint(i)) end return table.concat(result) elseif op == "u_" and t == "number" then return glyphs.getPrivateUsePoint(num) else return glyphsets[op] or "" end end return setmetatable(glyphs, { __index = function(_, key) return string.gsub(key, "([aAdsu]%_?)(%d*)", subfn) end, __newindex = function() end })
local setmetatable = setmetatable local tostring = tostring local setfenv = setfenv local concat = table.concat local assert = assert local open = io.open local load = load local type = type local HTML_ENTITIES = { ["&"] = "&amp;", ["<"] = "&lt;", [">"] = "&gt;", ['"'] = "&quot;", ["'"] = "&#39;", ["/"] = "&#47;" } local CODE_ENTITIES = { ["{"] = "&#123;", ["}"] = "&#125;" } local caching, ngx_var, ngx_capture, ngx_null = true local template = { _VERSION = "1.3", cache = {}, concat = concat } local function read_file(path) local file = open(path, "rb") if not file then return nil end local content = file:read("*a") file:close() return content end local function load_lua(path) return read_file(path) or path end local function load_ngx(path) local file, location = path, ngx_var.template_location if file:sub(1) == "/" then file = file:sub(2) end if location and location ~= "" then if location:sub(-1) == "/" then location = location:sub(1, -2) end local res = ngx_capture(location .. '/' .. file) if res.status == 200 then return res.body end end local root = ngx_var.template_root or ngx_var.document_root if root:sub(-1) == "/" then root = root:sub(1, -2) end return read_file(root .. "/" .. file) or path end if ngx then template.print = ngx.print or print template.load = load_ngx ngx_var, ngx_capture, ngx_null = ngx.var, ngx.location.capture, ngx.null else template.print = print template.load = load_lua end local load_chunk if _VERSION == "Lua 5.1" then local context = { __index = function(t, k) return t.context[k] or t.template[k] or _G[k] end } if jit then load_chunk = function(view) return assert(load(view, nil, "tb", setmetatable({ template = template }, context))) end else load_chunk = function(view) local func = assert(loadstring(view)) setfenv(func, setmetatable({ template = template }, context)) return func end end else local context = { __index = function(t, k) return t.context[k] or t.template[k] or _ENV[k] end } load_chunk = function(view) return assert(load(view, nil, "tb", setmetatable({ template = template }, context))) end end function template.caching(enable) if enable ~= nil then caching = enable == true end return caching end function template.output(s) if s == nil or s == ngx_null then return "" end if type(s) == "function" then return template.output(s()) end return tostring(s) end function template.escape(s, c) if type(s) == "string" then if c then s = s:gsub("[}{]", CODE_ENTITIES) end return s:gsub("[\">/<'&]", HTML_ENTITIES) end return template.output(s) end function template.new(view, layout) assert(view, "view was not provided for template.new(view, layout).") local render, compile = template.render, template.compile if layout then return setmetatable({ render = function(self, context) local context = context or self context.view = compile(view)(context) render(layout, context) end }, { __tostring = function(self) local context = context or self context.view = compile(view)(context) return compile(layout)(context) end }) end return setmetatable({ render = function(self, context) render(view, context or self) end }, { __tostring = function(self) return compile(view)(context or self) end }) end function template.precompile(view, path, strip) local chunk = string.dump(template.compile(view), strip ~= false) if path then local file = io.open(path, "wb") file:write(chunk) file:close() end return chunk end function template.compile(view, key, plain) assert(view, "view was not provided for template.compile(view, key, plain).") if key == "no-cache" then return load_chunk(template.parse(view, plain)), false end key = key or view local cache = template.cache if cache[key] then return cache[key], true end local func = load_chunk(template.parse(view, plain)) if caching then cache[key] = func end return func, false end function template.parse(view, plain) assert(view, "view was not provided for template.parse(view, plain).") if not plain then view = template.load(view) if view:sub(1, 1):byte() == 27 then return view end end local c = { "context=... or {}", "local ___,blocks,layout={},blocks or {}" } local i, j, s, e = 0, 0, view:find("{", 1, true) while s do local t = view:sub(s, e + 1) if t == "{{" then local x, y = view:find("}}", e + 2, true) if x then if j ~= s then c[#c+1] = "___[#___+1]=[=[" .. view:sub(j, s - 1) .. "]=]" end c[#c+1] = "___[#___+1]=template.escape(" .. view:sub(e + 2, x - 1) .. ")" i, j = y, y + 1 end elseif t == "{*" then local x, y = view:find("*}", e + 2, true) if x then if j ~= s then c[#c+1] = "___[#___+1]=[=[" .. view:sub(j, s - 1) .. "]=]" end c[#c+1] = "___[#___+1]=template.output(" .. view:sub(e + 2, x - 1) .. ")" i, j = y, y + 1 end elseif t == "{%" then local x, y = view:find("%}", e + 2, true) if x then if j ~= s then c[#c+1] = "___[#___+1]=[=[" .. view:sub(j, s - 1) .. "]=]" end c[#c+1] = view:sub(e + 2, x - 1) if view:sub(y + 1, y + 1) == "\n" then i, j = y + 1, y + 2 else i, j = y, y + 1 end end elseif t == "{(" then local x, y = view:find(")}", e + 2, true) if x then if j ~= s then c[#c+1] = "___[#___+1]=[=[" .. view:sub(j, s - 1) .. "]=]" end local file = view:sub(e + 2, x - 1) local a, b = file:find(',', 2, true) if a then c[#c+1] = '___[#___+1]=template.compile([=[' .. file:sub(1, a - 1) .. ']=])(' .. file:sub(b + 1) .. ')' else c[#c+1] = '___[#___+1]=template.compile([=[' .. file .. ']=])(context)' end i, j = y, y + 1 end elseif t == "{-" then local x, y = view:find("-}", e + 2, true) if x then local a, b = view:find(view:sub(e, y), y, true) if a then if j ~= s then c[#c+1] = "___[#___+1]=[=[" .. view:sub(j, s - 1) .. "]=]" end c[#c+1] = 'blocks["' .. view:sub(e + 2, x - 1) .. '"]=template.compile([=[' .. view:sub(y + 1, a - 1) .. ']=], "no-cache", true)(context)' i, j = b, b + 1 end end elseif t == "{#" then local x, y = view:find("#}", e + 2, true) if x then if j ~= s then c[#c+1] = "___[#___+1]=[=[" .. view:sub(j, s - 1) .. "]=]" end i, j = y, y + 1 end end i = i + 1 s, e = view:find("{", i, true) end c[#c+1] = "___[#___+1]=[=[" .. view:sub(j) .. "]=]" c[#c+1] = "return layout and template.compile(layout)(setmetatable({view=template.concat(___),blocks=blocks},{__index=context})) or template.concat(___)" return concat(c, "\n") end function template.render(view, context, key, plain) assert(view, "view was not provided for template.render(view, context, key, plain).") return template.print(template.compile(view, key, plain)(context)) end return template
local util = {} function util.rgb(r, g, b) return {r / 255, g / 255, b / 255} end local floor, ceil = math.floor, math.ceil function util.round(x) if x % 1 >= 0.5 then return ceil(x) else return floor(x) end end function util.mapData(tab) local out = {} for k, v in pairs(tab) do for i = 1, v do out[#out + 1] = k end end return out end function util.pop(tab) local v = tab[#tab] tab[#tab] = nil return v end function util.publishPriority(namespace, levels, ...) namespace[#namespace + 1] = 0 for i = 1, levels do namespace[#namespace] = i local result = glue:publish(namespace, ...) if #result > 0 then return result end end namespace[#namespace] = "low" return glue:publish(namespace, ...) end return util
local symbol = {} _G.LV_SYMBOL_AUDIO = "\xef\x80\x81"-- 61441, 0xF001 _G.LV_SYMBOL_VIDEO = "\xef\x80\x88"-- 61448, 0xF008 _G.LV_SYMBOL_LIST = "\xef\x80\x8b"-- 61451, 0xF00B _G.LV_SYMBOL_OK = "\xef\x80\x8c"-- 61452, 0xF00C _G.LV_SYMBOL_CLOSE = "\xef\x80\x8d"-- 61453, 0xF00D _G.LV_SYMBOL_POWER = "\xef\x80\x91"-- 61457, 0xF011 _G.LV_SYMBOL_SETTINGS = "\xef\x80\x93"-- 61459, 0xF013 _G.LV_SYMBOL_HOME = "\xef\x80\x95"-- 61461, 0xF015 _G.LV_SYMBOL_DOWNLOAD = "\xef\x80\x99"-- 61465, 0xF019 _G.LV_SYMBOL_DRIVE = "\xef\x80\x9c"-- 61468, 0xF01C _G.LV_SYMBOL_REFRESH = "\xef\x80\xa1"-- 61473, 0xF021 _G.LV_SYMBOL_MUTE = "\xef\x80\xa6"-- 61478, 0xF026 _G.LV_SYMBOL_VOLUME_MID = "\xef\x80\xa7"-- 61479, 0xF027 _G.LV_SYMBOL_VOLUME_MAX = "\xef\x80\xa8"-- 61480, 0xF028 _G.LV_SYMBOL_IMAGE = "\xef\x80\xbe"-- 61502, 0xF03E _G.LV_SYMBOL_EDIT = "\xef\x8C\x84"-- 62212, 0xF304 _G.LV_SYMBOL_PREV = "\xef\x81\x88"-- 61512, 0xF048 _G.LV_SYMBOL_PLAY = "\xef\x81\x8b"-- 61515, 0xF04B _G.LV_SYMBOL_PAUSE = "\xef\x81\x8c"-- 61516, 0xF04C _G.LV_SYMBOL_STOP = "\xef\x81\x8d"-- 61517, 0xF04D _G.LV_SYMBOL_NEXT = "\xef\x81\x91"-- 61521, 0xF051 _G.LV_SYMBOL_EJECT = "\xef\x81\x92"-- 61522, 0xF052 _G.LV_SYMBOL_LEFT = "\xef\x81\x93"-- 61523, 0xF053 _G.LV_SYMBOL_RIGHT = "\xef\x81\x94"-- 61524, 0xF054 _G.LV_SYMBOL_PLUS = "\xef\x81\xa7"-- 61543, 0xF067 _G.LV_SYMBOL_MINUS = "\xef\x81\xa8"-- 61544, 0xF068 _G.LV_SYMBOL_EYE_OPEN = "\xef\x81\xae"-- 61550, 0xF06E _G.LV_SYMBOL_EYE_CLOSE = "\xef\x81\xb0"-- 61552, 0xF070 _G.LV_SYMBOL_WARNING = "\xef\x81\xb1"-- 61553, 0xF071 _G.LV_SYMBOL_SHUFFLE = "\xef\x81\xb4"-- 61556, 0xF074 _G.LV_SYMBOL_UP = "\xef\x81\xb7"-- 61559, 0xF077 _G.LV_SYMBOL_DOWN = "\xef\x81\xb8"-- 61560, 0xF078 _G.LV_SYMBOL_LOOP = "\xef\x81\xb9"-- 61561, 0xF079 _G.LV_SYMBOL_DIRECTORY = "\xef\x81\xbb"-- 61563, 0xF07B _G.LV_SYMBOL_UPLOAD = "\xef\x82\x93"-- 61587, 0xF093 _G.LV_SYMBOL_CALL = "\xef\x82\x95"-- 61589, 0xF095 _G.LV_SYMBOL_CUT = "\xef\x83\x84"-- 61636, 0xF0C4 _G.LV_SYMBOL_COPY = "\xef\x83\x85"-- 61637, 0xF0C5 _G.LV_SYMBOL_SAVE = "\xef\x83\x87"-- 61639, 0xF0C7 _G.LV_SYMBOL_CHARGE = "\xef\x83\xa7"-- 61671, 0xF0E7 _G.LV_SYMBOL_PASTE = "\xef\x83\xAA"-- 61674, 0xF0EA _G.LV_SYMBOL_BELL = "\xef\x83\xb3"-- 61683, 0xF0F3 _G.LV_SYMBOL_KEYBOARD = "\xef\x84\x9c"-- 61724, 0xF11C _G.LV_SYMBOL_GPS = "\xef\x84\xa4"-- 61732, 0xF124 _G.LV_SYMBOL_FILE = "\xef\x85\x9b"-- 61787, 0xF158 _G.LV_SYMBOL_WIFI = "\xef\x87\xab"-- 61931, 0xF1EB _G.LV_SYMBOL_BATTERY_FULL = "\xef\x89\x80"-- 62016, 0xF240 _G.LV_SYMBOL_BATTERY_3 = "\xef\x89\x81"-- 62017, 0xF241 _G.LV_SYMBOL_BATTERY_2 = "\xef\x89\x82"-- 62018, 0xF242 _G.LV_SYMBOL_BATTERY_1 = "\xef\x89\x83"-- 62019, 0xF243 _G.LV_SYMBOL_BATTERY_EMPTY = "\xef\x89\x84"-- 62020, 0xF244 _G.LV_SYMBOL_USB = "\xef\x8a\x87"-- 62087, 0xF287 _G.LV_SYMBOL_BLUETOOTH = "\xef\x8a\x93"-- 62099, 0xF293 _G.LV_SYMBOL_TRASH = "\xef\x8B\xAD"-- 62189, 0xF2ED _G.LV_SYMBOL_BACKSPACE = "\xef\x95\x9A"-- 62810, 0xF55A _G.LV_SYMBOL_SD_CARD = "\xef\x9F\x82"-- 63426, 0xF7C2 _G.LV_SYMBOL_NEW_LINE = "\xef\xA2\xA2"-- 63650, 0xF8A2 _G.LV_SYMBOL_DUMMY = "\xEF\xA3\xBF"-- _G.LV_SYMBOL_BULLET = "\xE2\x80\xA2"-- 20042, 0x2022 return symbol
use_lightsys = 0 -- v.gravity = btVector3(0,0,0) p = Plane(0,1,0) p.col = "#333333" p.pre_sdl = [[ plane { <0,1,0>,0]] if (use_lightsys == 1) then p.post_sdl = [[ pigment{ checker rgb ReferenceRGB(Gray20) rgb ReferenceRGB(Gray60) } } ]] else p.post_sdl = [[ pigment { checker rgb <0.2,0.2,0.2>, rgb <0.6,0.6,0.6> } } ]] end v:add(p) cu = Cube() cu.col = "#ff0000" cu.pos = btVector3(0, 0.5, 0); v:add(cu) cy = Cylinder() cy.col = "#00ff00" cy.pos = btVector3(1, 0.5, 0) v:add(cy) sp = Sphere() sp.col = "#ffff00" sp.pos = btVector3(0.5, 1.5, 0) sp.pre_sdl = [[ sphere { <.0,.0,.0>, 0.5 ]] sp.post_sdl = [[ texture { uv_mapping pigment { tiling 6 color_map { [ 0.0 color rgb<1,1,1>] [ 1.0 color rgb<0,0,0>] } scale 0.10/4 rotate<-90,0,0> scale<1/1.6,2,1> } finish { phong 1} } } ]] v:add(sp) c = Cam() v:cam(c) v:preDraw(function(N) c.pos = btVector3(8,8,8) c.look = cy.pos - btVector3(0,0,0) end)
x = 10 local i = 1 -- local to the chunk while i <= x do local x = i * 2 -- local to the while body print(x) --> 2, 4, 6, 8, ... i = i + 1 end print("\n*****************************\n") if i > 20 then local x -- local to the "then" body x = 20 print(x + 2) else print(x) --> 10 (the global one) end print(x) --> 10 (the global one)
------------------------------------------------------------------------------- -- Collation test ------------------------------------------------------------------------------- hash = box.schema.space.create('tweedledum') tmp = hash:create_index('primary', { type = 'hash', parts = {{1, 'string', collation = 'unicode_ci'}}, unique = true}) tmp = hash:create_index('secondary', { type = 'hash', parts = {{2, 'scalar', collation = 'unicode_ci'}}, unique = true}) hash:insert{'Ёж', 'Hedgehog'} hash:insert{'Ёлка', 'Spruce'} hash:insert{'Jogurt', 'Йогурт'} hash:insert{'Один', 1} hash.index.primary:get('ёж') hash.index.primary:get('елка') hash.index.secondary:get('spruce') hash.index.secondary:get('йогурт') hash.index.secondary:get(1) hash.index.secondary:get('иогурт') hash.index.secondary:get(2) hash:drop()
-- -- TEXT OUT - Quick Print -- module(..., package.seeall) function table.in_table(tbl, item) for key, value in pairs(tbl) do if value == item then return key end end return false end function table.val_to_str ( v ) if "string" == type( v ) then v = string.gsub( v, "\n", "\\n" ) if string.match( string.gsub(v,"[^'\"]",""), '^"+$' ) then return "'" .. v .. "'" end return '"' .. string.gsub(v,'"', '\\"' ) .. '"' else return "table" == type( v ) and table.tostring( v ) or tostring( v ) end end function table.key_to_str ( k ) if "string" == type( k ) and string.match( k, "^[_%a][_%a%d]*$" ) then return k else return "[" .. table.val_to_str( k ) .. "]" end end function table.tostring( tbl ) local result, done = {}, {} for k, v in ipairs( tbl ) do table.insert( result, table.val_to_str( v ) ) done[ k ] = true end for k, v in pairs( tbl ) do if not done[ k ] then table.insert( result, table.key_to_str( k ) .. "=" .. table.val_to_str( v ) ) end end return "{" .. table.concat( result, "," ) .. "}" end local fontSize = display.contentWidth/25 local tempTxt = display.newText("Ty", 0, 0, nil, fontSize) local starty = 0 local spacing = tempTxt.height * 0.25 tempTxt:removeSelf() local currenty = starty function textout(text) if type(text) == "table" then text = table.tostring(text) end print(text) if currenty > display.contentHeight * 0.8 then currenty = starty end if currenty == starty then local background = display.newRect( display.contentWidth/2, display.contentHeight/2, display.contentWidth, display.contentHeight ) background:setFillColor(0.9, 0.9, 0.9) end local myText = display.newText( text, 0, currenty, display.contentWidth, 0, nil, fontSize ) myText:setTextColor(0.3, 0.3, 0.6) myText.anchorX = 0 myText.anchorY = 0 currenty = currenty + myText.height + spacing end
-- Copyright (c) 2016 David Ulrich -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -- SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER -- RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT -- , NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH -- THE USE OR PERFORMANCE OF THIS SOFTWARE. local modname = "brewing" local modpath = minetest.get_modpath(modname) local formspec = "size[8,9;]".. "button[1,1;2,1;stir;Stir]".. "list[current_name;invS;3,1;1,1;]".. "button[1,2;2,1;pour_c;Pour]".. "list[current_name;invC;3,2;1,1;]".. "button[1,3;2,1;heat;Heat]".. "list[current_name;invF;3,3;1,1;]".. "button[5,1;2,1;ingredient;Ingredient]".. "list[current_name;invI;4,1;1,1;]".. "button[5,2;2,1;pour_v;Pour]".. "list[current_name;invV;4,2;1,1;]".. "list[current_player;main;0,5;8,4;]" minetest.register_node("brewing:station_basic", { description = "Basic Brewing Station", tiles = { "default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", "default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png" }, paramtype2 = "facedir", groups = {cracky=2}, legacy_facedir_simple = true, is_ground_content = false, sounds = default.node_sound_stone_defaults(), }) minetest.register_abm({ nodenames = {"brewing:station_basic"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) local meta = minetest.get_meta(pos) -- -- Inizialize inventory -- local inv = meta:get_inventory() for listname, size in pairs({ invS = 1, invC = 1, invF = 1, invI = 1, invV = 1, }) do if inv:get_size(listname) ~= size then inv:set_size(listname, size) end end -- local srclist = inv:get_list("src") -- local fuellist = inv:get_list("fuel") -- local dstlist = inv:get_list("dst") meta:set_string("formspec", formspec) end, })
local isActive = true local AWSBehaviorS3DownloadTest = {} function AWSBehaviorS3DownloadTest:OnActivate() -- Listen for the master entity events. local runTestsEventId = GameplayNotificationId(self.entityId, "Run Tests") self.GamePlayHandler = GameplayNotificationBus.Connect(self, runTestsEventId) -- Listen for the AWS behavior notification. self.S3DownloadHandler =AWSBehaviorS3DownloadNotificationsBus.Connect(self, self.entityId) end function AWSBehaviorS3DownloadTest:OnEventBegin() if isActive == false then Debug.Log("AWSBehaviorS3DownloadTest not active") self:NotifyMainEntity("success") return end -- Download the file AWSBehaviorS3Download = AWSBehaviorS3Download() AWSBehaviorS3Download.bucketName = "CloudGemAWSBehavior.s3nodeexamples" --Specify a bucket name AWSBehaviorS3Download.keyName = "s3example.txt" --Specify a key name AWSBehaviorS3Download.localFileName = "CloudGemSamples/Levels/AWSBehaviorExamples/testdata/s3downloadexample.txt" --Specify a local file name AWSBehaviorS3Download:Download() end function AWSBehaviorS3DownloadTest:OnDeactivate() self.GamePlayHandler:Disconnect() self.S3DownloadHandler:Disconnect() end function AWSBehaviorS3DownloadTest:OnSuccess(resultBody) Debug.Log(resultBody) self:NotifyMainEntity("success") end function AWSBehaviorS3DownloadTest:OnError(errorBody) Debug.Log(errorBody) self:NotifyMainEntity("fail") end function AWSBehaviorS3DownloadTest:NotifyMainEntity(message) local entities = {TagGlobalRequestBus.Event.RequestTaggedEntities(Crc32("Main"))} GameplayNotificationBus.Event.OnEventBegin(GameplayNotificationId(entities[1], "Run Tests"), message) end return AWSBehaviorS3DownloadTest
_G.CTH = _G.CTH or {} -- default settings CTH.settings = { ['cth_infiniteties'] = true, ['cth_numsync'] = false, ['cth_hidehud'] = false, ['cth_increasefollowers'] = 3 } -- save and load function function CTH:savesettings() local f = io.open(CTH.savefile, 'w+') if f then f:write(json.encode(CTH.settings)) f:close() end end function CTH:loadsettings() local f = io.open(CTH.savefile, 'r') if f then local tbl = json.decode(f:read('*all')) if tbl ~= nil and type(tbl) == 'table' then for k, v in pairs(tbl) do CTH.settings[k] = v end end f:close() end end
local function settrap_hounds(inst) local pt = Vector3(inst.Transform:GetWorldPosition()) local ents = TheSim:FindEntities(pt.x, pt.y, pt.z, 20) local staff_hounds = {} for k,v in pairs(ents) do if v and v.sg and v:HasTag("hound") then v.components.sleeper.hibernate = true v.sg:GoToState("forcesleep") table.insert(staff_hounds, v) end end return staff_hounds end local function TriggerTrap(inst, scenariorunner, hounds) --Here we wake the dogs up if they exist then stop waiting to spring the trap. local player = GetPlayer() player.components.sanity:DoDelta(-TUNING.SANITY_HUGE) GetWorld().components.seasonmanager:ForcePrecip() for wakeup = 1, #hounds do hounds[wakeup].components.sleeper.hibernate = false inst:DoTaskInTime(math.random(1,3), function() hounds[wakeup].sg:GoToState("wake") end) end scenariorunner:ClearScenario() end local function OnLoad(inst, scenariorunner) local hounds = settrap_hounds(inst) inst.scene_putininventoryfn = function() TriggerTrap(inst, scenariorunner, hounds) end inst:ListenForEvent("onputininventory", inst.scene_putininventoryfn) end local function OnDestroy(inst) if inst.scene_putininventoryfn then inst:RemoveEventCallback("onputininventory", inst.scene_putininventoryfn) inst.scene_putininventoryfn = nil end end return { OnLoad = OnLoad, OnDestroy = OnDestroy }
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterNetEvent('h4ci:giveparachute') AddEventHandler('h4ci:giveparachute', function() local _source = source local xPlayer = ESX.GetPlayerFromId(source) local price = 1000 local xMoney = xPlayer.getMoney() if xPlayer.hasWeapon('GADGET_PARACHUTE') then TriggerClientEvent('esx:showNotification', source, "Sie haben bereits einen Fallschirm.") else if xMoney >= price then xPlayer.removeMoney(price) xPlayer.addWeapon('GADGET_PARACHUTE', 42) TriggerClientEvent('esx:showNotification', source, "~g~Fallschirm erhalten! ~r~-1000$") else TriggerClientEvent('esx:showNotification', source, "Sie haben nicht genug ~r~Geld!") end end end)
--[[ Version 0.01 5/10/2017 Changelog 0.01 - Rewriting. 0.02 - Code Fixing ]]-- -- Area local distance = 0 local distanceApart = 0 local distanceApartCount = 0 local backwardsCount = 0 local forwardsCount = 0 -- Misc local noFuelNeeded = 0 local LorR = 0 -- if 0 then left if 1 then right local Mines = 0 local onlight = 0 local missingItems = 0 -- Inventory local chests = 0 local fuelSlot = 0 local torch = 0 -- ItemCheck local function itemCount() fuelSlot = turtle.getItemCount(1) chests = turtle.getItemCount(2) torch = turtle.getItemCount(3) missingItems = 0 end -- Checking local function check() if noFuelNeeded == 0 then if fuelSlot == 0 then print("Turtle has no fuel") print("Put fuel in First") missingItems = 1 else print("Turtle has Fuel") end end if chests == 0 then print("No chests in turtle") print("Put chests in 1 slot") missingItems = 1 else print("Turtle has chest") end if missingItems == 1 then print("Items are missing please try again") print("Turtle will recheck in 3 sec") end end -- Refuel local function refuel() if noFuelNeeded == 0 then repeat if turtle.getFuelLevel() < 120 then if fuelSlot > 0 then turtle.select(1) turtle.refuel(1) fuelSlot = fuelSlot - 1 else print("out of fuel") os.shutdown() end end until turtle.getFuelLevel() > 120 end end -- ItemDump local function chestDump() if turtle.getItemCount(16)> 0 then -- If slot 16 in turtle has item slot 4 to 16 will go to chest turtle.digDown() turtle.select(2) turtle.placeDown() chests = chests - 1 for slot = 5, 16 do turtle.select(slot) sleep(0.6) -- Small fix for slow pc because i had people problem with this turtle.dropDown() end turtle.select(4) if chests == 0 then print("Out Of chests") os.shutdown() end end end -- Every 8 block it place torch local function placeTorch() if torch > 0 then turnAround() turtle.select(3) turtle.place() turnAround() torch = torch - 1 onlight = 0 end end local function turnAround() turtle.turnLeft() turtle.turnLeft() end local function dig() repeat refuel() chestDump() if turtle.detect() then turtle.dig() end if turtle.forward() then -- sometimes sand and gravel and block and mix-up distance forwardsCount = forwardsCount + 1 onlight = onlight + 1 end if turtle.detectUp() then turtle.digUp() end if onlight == 8 then placeTorch() end until forwardsCount == distance end --Back Program local function back() turtle.up() turnAround() repeat if turtle.forward() then -- sometimes sand and gravel and block and mix-up distance backwardsCount = backwardsCount + 1 end if turtle.detect() then -- Sometimes sand and gravel can happen and this will fix it if backwardsCount ~= distance then turtle.dig() end end until backwardsCount == distance end -- Multimines Program local function nextMine() if LorR == 1 then turtle.turnLeft() turtle.down() else turtle.turnRight() turtle.down() end repeat if turtle.detect() then turtle.dig() end if turtle.forward() then distanceApartCount = distanceApartCount + 1 end if turtle.detectUp() then turtle.digUp() end until distanceApartCount == distanceApart if LorR == 1 then turtle.turnLeft() else turtle.turnRight() end end -- Reset local function reset() backwardsCount = 0 forwardsCount = 0 distanceApartCount = 0 onlight = 0 end local function main() repeat dig() back() reset() Mines = Mines - 1 until Mines == 0 print("Turtle is done") end -- Starting local function start() print("Welcome to Mining Turtle Program") print("Slot 1: Fuel, Slot 2: Chests, Optional Slot 3: Torchs") print("Note: turtle will still work when there is no more torchs") print("How many block far does each mine be") distance = tonumber(read()) print("Left or Right") print("0 = Left and 1 = Right") LorR = tonumber(read()) print("How many mines: ") Mines = tonumber(read()) print("Distance Apart from each Mine") distanceApart = tonumber(read()) distanceApart = distanceApart + 1 if turtle.getFuelLevel() == "unlimited" then print("Your turtle config does need fuel") noFuelNeed = 1 end repeat itemCount() check() sleep(3) until missingItems == 0 main() end start()
local _, Engine = ... local Handler = Engine:NewHandler("Tooltip") Handler.OnEnable = function(self) end
PI = 3.1415926; ParamValueMissing = -16777216; debug = 0; function printTable(params) local result = {}; for index, value in pairs(params) do if (value ~= ParamValueMissing) then print(index..':'..value); end end end -- *********************************************************************** -- FUNCTION : SSI / SummerSimmerIndex -- *********************************************************************** -- *********************************************************************** function SSI(columns,rows,len,params,extParams) local result = {}; local simmer_limit = 14.5; if (len ~= 2) then return result; end local inIdx = 1; local outIdx = 1; for r=1,rows do for c=1,columns do local rh = params[inIdx]; local temp = params[inIdx+1]; if (temp == ParamValueMissing or rh == ParamValueMissing) then result[outIdx] = ParamValueMissing; else temp = temp - 273.15; if (temp <= simmer_limit) then result[outIdx] = temp; else local rh_ref = 50.0 / 100.0; local r = rh / 100.0; result[outIdx] = (1.8 * temp- 0.55 * (1 - r) * (1.8 * temp - 26) - 0.55 * (1 - rh_ref) * 26) / (1.8 * (1 - 0.55 * (1 - rh_ref))); end end inIdx = inIdx + 2; outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : SSI_COUNT / SummerSimmerIndex -- *********************************************************************** -- This is an internal function used by FEELS_LIKE function. -- *********************************************************************** function SSI_COUNT(rh,t) local simmer_limit = 14.5; if (t <= simmer_limit) then return t; end if (rh == ParamValueMissing) then return ParamValueMissing; end if (t == ParamValueMissing) then return ParamValueMissing; end local rh_ref = 50.0 / 100.0; local r = rh / 100.0; local value = (1.8 * t - 0.55 * (1 - r) * (1.8 * t - 26) - 0.55 * (1 - rh_ref) * 26) / (1.8 * (1 - 0.55 * (1 - rh_ref))); return value; end -- *********************************************************************** -- FUNCTION : FEELS_LIKE -- *********************************************************************** function FEELS_LIKE(columns,rows,len,params,extParams) local result = {}; if (len ~= 4) then return result; end local inIdx = 1; local outIdx = 1; for r=1,rows do for c=1,columns do local temp = params[inIdx]; local wind = params[inIdx+1]; local rh = params[inIdx+2]; local rad = params[inIdx+3]; if (temp == ParamValueMissing or wind == ParamValueMissing or rh == ParamValueMissing) then result[outIdx] = ParamValueMissing; else temp = temp - 273.15; -- Calculate adjusted wind chill portion. Note that even though -- the Canadien formula uses km/h, we use m/s and have fitted -- the coefficients accordingly. Note that (a*w)^0.16 = c*w^16, -- i.e. just get another coefficient c for the wind reduced to 1.5 meters. local a = 15.0; -- using this the two wind chills are good match at T=0 local t0 = 37.0; -- wind chill is horizontal at this T local chill = a + (1 - a / t0) * temp + a / t0 * math.pow(wind + 1, 0.16) * (temp - t0); -- Heat index local heat = SSI_COUNT(rh, temp); -- Add the two corrections together local feels = temp + (chill - temp) + (heat - temp); -- Radiation correction done only when radiation is available -- Based on the Steadman formula for Apparent temperature, -- we just inore the water vapour pressure adjustment if (rad ~= ParamValueMissing) then -- Chosen so that at wind=0 and rad=800 the effect is 4 degrees -- At rad=50 the effect is then zero degrees local absorption = 0.07; feels = feels + 0.7 * absorption * rad / (wind + 10) - 0.25; end result[outIdx] = feels; end inIdx = inIdx + 4; outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : WIND_CHILL -- *********************************************************************** -- Return the wind chill, e.g., the equivalent no-wind temperature -- felt by a human for the given wind speed. -- -- The formula is the new official one at FMI taken into use in 12.2003. -- See: http://climate.weather.gc.ca/climate_normals/normals_documentation_e.html -- -- Note that Canadian formula uses km/h: -- -- W = 13.12 + 0.6215 × Tair - 11.37 × V10^0.16 + 0.3965 × Tair × V10^0.16 -- W = Tair + [(-1.59 + 0.1345 × Tair)/5] × V10m, when V10m < 5 km/h -- -- \param wind The observed wind speed in m/s -- \param temp The observed temperature in degrees Celsius -- \return Equivalent no-wind temperature -- *********************************************************************** function WIND_CHILL(columns,rows,len,params,extParams) local result = {}; if (len ~= 2) then return result; end local inIdx = 1; local outIdx = 1; for r=1,rows do for c=1,columns do local temp = params[inIdx]; local wind = params[inIdx+1]; if (temp == ParamValueMissing or wind == ParamValueMissing or wind < 0) then result[outIdx] = ParamValueMissing; else temp = temp - 273.15; local kmh = wind * 3.6; if (kmh < 5.0) then result[outIdx] = temp + (-1.59 + 0.1345 * temp) / 5.0 * kmh; else local wpow = math.pow(kmh, 0.16); result[outIdx] = 13.12 + 0.6215 * temp - 11.37 * wpow + 0.3965 * temp * wpow; end end inIdx = inIdx + 2; outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : C2F -- *********************************************************************** -- The function converts given Celcius degrees to Fahrenheit degrees. -- *********************************************************************** function C2F(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then result[index] = value*1.8 + 32; else result[index] = ParamValueMissing; end end -- printTable(result); return result; end -- *********************************************************************** -- FUNCTION : WIND_SPEED -- *********************************************************************** -- Counts the size of the hypotenuse assuming that params[0] and params[1] -- represents vectors and the angle between them is 90 degrees. -- *********************************************************************** function WIND_SPEED(columns,rows,len,params,extParams) local result = {}; local simmer_limit = 14.5; if (len ~= 2) then return result; end local inIdx = 1; local outIdx = 1; for r=1,rows do for c=1,columns do local p1 = params[inIdx]; local p2 = params[inIdx+1]; if (p1 == ParamValueMissing or p2 == ParamValueMissing) then result[outIdx] = ParamValueMissing; else result[outIdx] = math.sqrt(p1*p1 + p2*p2); end inIdx = inIdx + 2; outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : WIND_DIR -- *********************************************************************** -- Counts the direction of the wind (wind blows FROM this direction, not -- TO this direction). -- *********************************************************************** function WIND_DIR(columns,rows,u,v,angles) local result = {}; for index, value in pairs(v) do a = angles[index]; b = math.atan(v[index]/u[index]); if (u[index] >= 0 and v[index] >= 0) then c = b; end if (u[index] < 0 and v[index] >= 0) then c = b + PI; end if (u[index] < 0 and v[index] < 0) then c = b + PI; end if (u[index] >= 0 and v[index] < 0) then c = b; end if (a < (PI/2)) then d = c - a else d = c - (PI-a); end result[index] = 270-((d*180)/PI); end return result; end -- *********************************************************************** -- FUNCTION : WIND_TO_DIR -- *********************************************************************** -- Counts the direction of the wind (wind blows TO this direction, not -- FROM this direction). -- *********************************************************************** function WIND_TO_DIR(columns,rows,u,v,angles) local result = {}; for index, value in pairs(v) do a = angles[index]; b = math.atan(v[index]/u[index]); if (u[index] >= 0 and v[index] >= 0) then c = b; end if (u[index] < 0 and v[index] >= 0) then c = b + PI; end if (u[index] < 0 and v[index] < 0) then c = b + PI; end if (u[index] >= 0 and v[index] < 0) then c = b; end if (a < (PI/2)) then d = c - a else d = c - (PI-a); end result[index] = ((d*180)/PI); end return result; end -- *********************************************************************** -- FUNCTION : WIND_V -- *********************************************************************** -- *********************************************************************** function WIND_V(columns,rows,u,v,angles) local result = {}; for index, value in pairs(v) do a = angles[index]; b = math.atan(v[index]/u[index]); hh = math.sqrt(u[index]*u[index] + v[index]*v[index]); if (u[index] >= 0 and v[index] >= 0) then c = b; end if (u[index] < 0 and v[index] >= 0) then c = b + PI; end if (u[index] < 0 and v[index] < 0) then c = b + PI; end if (u[index] >= 0 and v[index] < 0) then c = b; end if (a < (PI/2)) then d = c - a else d = c - (PI-a); end val = hh * math.sin(d); result[index] = val; end return result; end -- *********************************************************************** -- FUNCTION : WIND_U -- *********************************************************************** function WIND_U(columns,rows,u,v,angles) local result = {}; for index, value in pairs(v) do a = angles[index]; b = math.atan(v[index]/u[index]); hh = math.sqrt(u[index]*u[index] + v[index]*v[index]); if (u[index] >= 0 and v[index] >= 0) then c = b; end if (u[index] < 0 and v[index] >= 0) then c = b + PI; end if (u[index] < 0 and v[index] < 0) then c = b + PI; end if (u[index] >= 0 and v[index] < 0) then c = b; end if (a < (PI/2)) then d = c - a else d = c - (PI-a); end val = hh * math.cos(d); result[index] = val; end return result; end -- *********************************************************************** -- FUNCTION : C2K -- *********************************************************************** -- The function converts given Celcius degrees to Kelvin degrees. -- *********************************************************************** function C2K(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then -- print(index..':'..value); result[index] = value + 273.15; else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : F2C -- *********************************************************************** -- The function converts given Fahrenheit degrees to Celcius degrees. -- *********************************************************************** function F2C(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then -- print(index..':'..value); result[index] = 5*(value - 32)/9; else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : F2K -- *********************************************************************** -- The function converts given Fahrenheit degrees to Kelvin degrees. -- *********************************************************************** function F2K(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then -- print(index..':'..value); result[index] = 5*(value - 32)/9 + 273.15; else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : K2C -- *********************************************************************** -- The function converts given Kelvin degrees to Celcius degrees. -- *********************************************************************** function K2C(columns,rows,len,params,extParams) print("K2C"); local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then result[index] = value - 273.15; else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : K2F -- *********************************************************************** -- The function converts given Kelvin degrees to Fahrenheit degrees. -- *********************************************************************** function K2F(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then -- print(index..':'..value); result[index] = (value - 273.15)*1.8 + 32; else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : DEG2RAD -- *********************************************************************** -- The function converts given degrees to radians. -- *********************************************************************** function DEG2RAD(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then -- print(index..':'..value); result[index] = 2*PI*value/360; else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : RAD2DEG -- *********************************************************************** -- The function converts given radians to degrees. -- *********************************************************************** function RAD2DEG(columns,rows,len,params,extParams) local result = {}; if (len ~= 1) then return result; end for index, value in pairs(params) do if (value ~= ParamValueMissing) then -- print(index..':'..value); result[index] = 360*value/(2*PI); else result[index] = ParamValueMissing; end end return result; end -- *********************************************************************** -- FUNCTION : IN_PRCNT -- *********************************************************************** -- Notice that there is also C++ implementation of this function and it -- is used when generating virtual files. -- *********************************************************************** function IN_PRCNT(columns,rows,len,params,extParams) print("IN_PRCNT"); local result = {}; local inIdx = 1; local outIdx = 1; local min = extParams[1]; local max = extParams[2]; for r=1,rows do for c=1,columns do local agree = 0; local cnt = 0; for i=1,len do value = params[inIdx]; if (value ~= ParamValueMissing) then cnt = cnt + 1; if (value >= min and value <= max) then agree = agree + 1; end end inIdx = inIdx + 1; end if (cnt > 0) then result[outIdx] = agree / len; else result[outIdx] = ParamValueMissing; end outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : OUT_PRCNT -- *********************************************************************** -- Notice that there is also C++ implementation of this function and it -- is used when generating virtual files. -- *********************************************************************** function OUT_PRCNT(columns,rows,len,params,extParams) local result = {}; local inIdx = 1; local outIdx = 1; local min = extParams[1]; local max = extParams[2]; for r=1,rows do for c=1,columns do local agree = 0; local cnt = 0; for i=1,len do value = params[inIdx]; if (value ~= ParamValueMissing) then cnt = cnt + 1; if (value < min or value > max) then agree = agree + 1; end end inIdx = inIdx + 1; end if (cnt > 0) then result[outIdx] = agree / len; else result[outIdx] = ParamValueMissing; end outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : MIN -- *********************************************************************** -- Notice that there is also C++ implementation of this function and it -- is used when generating virtual files. -- *********************************************************************** function MIN(columns,rows,len,params,extParams) print("MIN"); local result = {}; local inIdx = 1; local outIdx = 1; for r=1,rows do for c=1,columns do local min = ParamValueMissing; for i=1,len do value = params[inIdx]; if (value ~= ParamValueMissing and (min == ParamValueMissing or value < min)) then min = value; end inIdx = inIdx + 1; end result[outIdx] = min; outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : MAX -- *********************************************************************** -- Notice that there is also C++ implementation of this function and it -- is used when generating virtual files. -- *********************************************************************** function MAX(columns,rows,len,params,extParams) print("MAX"); local result = {}; local inIdx = 1; local outIdx = 1; for r=1,rows do for c=1,columns do local max = ParamValueMissing; for i=1,len do value = params[inIdx]; if (value ~= ParamValueMissing and (max == ParamValueMissing or value > max)) then max = value; end inIdx = inIdx + 1; end result[outIdx] = max; outIdx = outIdx + 1; end end return result; end -- *********************************************************************** -- FUNCTION : FRACTILE -- *********************************************************************** -- Calculate fractile values from ensemble -- Algorithm matches that in Himan: -- https://github.com/fmidev/himan/blob/master/doc/plugin-fractile.md -- *********************************************************************** function FRACTILE(columns,rows,len,params,extParams) local result = {} local inIdx = 1 local outIdx = 1 local fractile = extParams[1] for r=1,rows do for c=1,columns do local list = {} for i=1,len do value = params[inIdx]; if (value ~= ParamValueMissing) then list[#list+1] = value end inIdx = inIdx + 1 end local N = #list if (N == 0) then result[outIdx] = ParamValueMissing else table.sort(list) list[#list+1] = 0.0 local x if (fractile / 100.0 <= 1.0 / (N + 1)) then x = 1.0 elseif (fractile / 100.0 >= (N) / (N+1)) then x = N else x = fractile / 100.0 * (N + 1) end x = math.floor(x) + 1 result[outIdx] = list[x - 1] + math.fmod(x, 1.0) * (list[x] - list[x-1]) end outIdx = outIdx + 1 end end return result end -- *********************************************************************** -- FUNCTION : getFunctionNames -- *********************************************************************** -- The function returns the list of available functions in this file. -- In this way the query server knows which function are available in -- each LUA file. -- -- Each LUA file should contain this function. The 'type' parameter -- indicates how the current LUA function is implemented. -- -- Type 1 : -- Function takes two parameters as input: -- - numOfParams => defines how many values is in the params array -- - params => Array of float values -- Function returns two parameters: -- - result value (function result or ParamValueMissing) -- - result string (=> 'OK' or an error message) -- -- Type 4 : -- Function takes five parameters as input: -- - columns => Number of the columns in the grid -- - rows => Number of the rows in the grid -- - params1 => Grid 1 values (= Array of float values) -- - params2 => Grid 2 values (= Array of float values) -- - params3 => Grid point angles to latlon-north (= Array of float values) -- Function returns one parameter: -- - result array => Array of float values (must have the same -- number of values as the input 'params1'. -- Can be use for example in order to calculate new Wind U- and V- -- vectors when the input vectors point to grid-north instead of -- latlon-north. -- -- Type 5 : -- Function takes three parameters as input: -- - language => defines the used language -- - numOfParams => defines how many values is in the params array -- - params => Array of float values -- Function returns two parameters: -- - result value (string) -- - result string (=> 'OK' or an error message) -- Can be use for example for translating a numeric value to a string -- by using the given language. -- -- Type 6 : -- Function takes two parameters as input: -- - numOfParams => defines how many values is in the params array -- - params => Array of string values -- Function returns one parameters: -- - result value (string) -- This function takes an array of strings and returns a string. It -- is used for example in order to get additional instructions for -- complex interpolation operations. -- -- Type 9: Takes vector<float[len]> as input and returns vector<float> as output -- - columns => Number of the columns in the grid -- - rows => Number of the rows in the grid -- - len => Number of the values in the array -- - params => Grid values (vector<float[len]>) -- - extParams => Additional parameters (= Array of float values) -- Function returns one parameter: -- - result array => Array of float values. -- -- *********************************************************************** function getFunctionNames(type) local functionNames = ''; if (type == 4) then functionNames = 'WIND_V,WIND_U,WIND_DIR,WIND_TO_DIR'; end if (type == 9) then functionNames = 'FEELS_LIKE,SSI,WIND_CHILL,WIND_SPEED,C2F,C2K,F2C,F2K,K2C,K2F,DEG2RAD,RAD2DEG,IN_PRCNT,OUT_PRCNT,GT_PRCNT,LT,_PRCNT,MIN,MAX,FRACTILE'; end return functionNames; end
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Wanted Speed", desc = "Adds a command which sets maxWantedSpeed.", author = "GoogleFrog", date = "11 November 2018", license = "GNU GPL, v2 or later", layer = -9999999999, -- Before every state toggle gadget. enabled = false -- loaded by default? } end ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- local CMD_WANTED_SPEED = 38825 local wantedCommand = { [CMD_WANTED_SPEED] = true, } local getMovetype = Spring.Utilities.getMovetype local mcGetTag = Spring.MoveCtrl.GetTag local units = {} ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- local function SetUnitWantedSpeed(unitID, unitDefID, wantedSpeed) if not unitDefID then return end if not units[unitID] then if not wantedSpeed then return end local ud = UnitDefs[unitDefID] local moveType = getMovetype(ud) units[unitID] = { unhandled = (moveType ~= 1) and (moveType ~= 2), -- Planes are unhandled. moveType = moveType, } end if units[unitID].unhandled or units[unitID].lastWantedSpeed == wantedSpeed or (Spring.MoveCtrl.GetTag(unitID) ~= nil and Spring.MoveCtrl.GetTag(unitID) == 1) then return end units[unitID].lastWantedSpeed = wantedSpeed --Spring.Utilities.UnitEcho(unitID, wantedSpeed) if units[unitID].moveType == 1 then Spring.MoveCtrl.SetGunshipMoveTypeData(unitID, "maxWantedSpeed", (wantedSpeed or 2000)) elseif units[unitID].moveType == 2 then Spring.MoveCtrl.SetGroundMoveTypeData(unitID, "maxWantedSpeed", (wantedSpeed or 2000)) end end local function MaintainWantedSpeed(unitID) if (not (units[unitID] and units[unitID].lastWantedSpeed)) or (Spring.MoveCtrl.GetTag(unitID) ~= nil and Spring.MoveCtrl.GetTag(unitID) == 1) then return end if units[unitID].moveType == 1 then Spring.MoveCtrl.SetGunshipMoveTypeData(unitID, "maxWantedSpeed", units[unitID].lastWantedSpeed) elseif units[unitID].moveType == 2 and not mcGetTag(unitID) then Spring.MoveCtrl.SetGroundMoveTypeData(unitID, "maxWantedSpeed", units[unitID].lastWantedSpeed) end end ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- -- Command Handling function gadget:AllowCommand(unitID, unitDefID, teamID, cmdID, cmdParams, cmdOptions) if cmdID ~= CMD_WANTED_SPEED then MaintainWantedSpeed(unitID) return true end local wantedSpeed = cmdParams[1] local teamID = Spring.GetUnitTeam(unitID) if not (wantedSpeed and teamID) then return false end wantedSpeed = (wantedSpeed > 0) and wantedSpeed SetUnitWantedSpeed(unitID, unitDefID, wantedSpeed) -- Overkill? --for i = 2, #cmdParams do -- if teamID == Spring.GetUnitTeam(cmdParams[i]) then -- SetUnitWantedSpeed(cmdParams[i], Spring.GetUnitDefID(cmdParams[i]), wantedSpeed) -- end --end return false end ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- -- Cleanup function gadget:UnitDestroyed(unitID) units[unitID] = nil end ------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end AddRemoteEvent("SeeIdCard", function(player) -- Coming soon: job and jobTitle -- CallRemoteEvent(player, "OnCardDataLoaded", PlayerData[player].name, playerInfo['company']['name'], playerInfo['job']) CallRemoteEvent(player, "OnCardDataLoaded", PlayerData[player].accountid, PlayerData[player].name, PlayerData[player].driver_license == 1, PlayerData[player].gun_license == 1, PlayerData[player].helicopter_license == 1, PlayerData[player].age) end) AddRemoteEvent("ShowIdCard", function(player) local nearestPlayer = GetNearestPlayer(player, 115) if(nearestPlayer ~= nil) then CallRemoteEvent(nearestPlayer, "OnCardDataLoaded", PlayerData[player].accountid, PlayerData[player].name, PlayerData[player].driver_license == 1, PlayerData[player].gun_license == 1, PlayerData[player].helicopter_license == 1, PlayerData[player].age) else CallRemoteEvent(player, "MakeNotification", _("no_players_around"), "linear-gradient(to right, #ff5f6d, #ffc371)") end -- Coming soon: job and jobTitle -- CallRemoteEvent(player, "OnCardDataLoaded", PlayerData[player].name, playerInfo['company']['name'], playerInfo['job']) end)
local collision_mask_util_extended = require("data.collision-mask-util-extended") local pathing_collision_mask = { "water-tile", "colliding-with-tiles-only", "not-colliding-with-itself" } if mods["space-exploration"] then local spaceship_collision_layer = collision_mask_util_extended.get_named_collision_mask("moving-tile") local empty_space_collision_layer = collision_mask_util_extended.get_named_collision_mask("empty-space-tile") table.insert(pathing_collision_mask, spaceship_collision_layer) table.insert(pathing_collision_mask, empty_space_collision_layer) end local constructron_pathing_dummy = { type = "simple-entity", name = "constructron_pathing_dummy", icon = "__core__/graphics/empty.png", icon_size = 1, icon_mipmaps = 0, flags = {"placeable-neutral", "not-on-map"}, order = "z", max_health = 1, collision_box = {{-3, -3}, {3, 3}}, selection_box = {{-3, -3}, {3, 3}}, render_layer = "object", collision_mask = pathing_collision_mask, pictures = { { filename = "__core__/graphics/empty.png", width = 1, height = 1 } } } local constructron_pathing_dummy_item = { type = "item", flags = { "hidden" }, name = "constructron_pathing_dummy", icon = "__core__/graphics/empty.png", icon_size = 1, order = "z", place_result = "constructron_pathing_dummy", stack_size = 1 } data:extend({constructron_pathing_dummy, constructron_pathing_dummy_item}) local constructron = table.deepcopy(data.raw["spider-vehicle"]["spidertron"]) constructron.name = "constructron" local constructron_item = table.deepcopy(data.raw["item-with-entity-data"]["spidertron"]) constructron_item.name = "constructron" constructron_item.place_result = "constructron" constructron_item.order = constructron_item.order .. "b" constructron.minable = {hardness = 0.5, mining_time = 1, result = "constructron"} local constructron_recipe = { type = "recipe", name = "constructron", enabled = false, ingredients = { {"raw-fish", 1}, {"rocket-control-unit", 16}, {"low-density-structure", 150}, {"effectivity-module-3", 2}, {"rocket-launcher", 4}, {"fusion-reactor-equipment", 2}, {"exoskeleton-equipment", 4}, {"radar", 2}, }, result = "constructron", result_count = 1, energy = 1 } local constructron_easy_recipe = { type = "recipe", name = "constructron", enabled = false, ingredients = { {"spidertron", 1}, }, result = "constructron", result_count = 1, energy = 1 } if settings.startup["constructron-easy-recipe-toggle"].value then data:extend({constructron, constructron_item, constructron_easy_recipe}) else data:extend({constructron, constructron_item, constructron_recipe}) end table.insert(data.raw["technology"]["spidertron"].effects, { type = "unlock-recipe", recipe = "constructron" })
function Mob:ForeachHateList(func, cond) cond = cond or function(ent, hate, damage, frenzy) return true end; local lst = self:GetHateList(); for ent in lst.entries do local cv = cond(ent.ent, ent.hate, ent.damage, ent.frenzy); if(cv) then func(ent.ent, ent.hate, ent.damage, ent.frenzy); end end end function Mob:CountHateList(cond) cond = cond or function(ent, hate, damage, frenzy) return true end; local lst = self:GetHateList(); local ret = 0; for ent in lst.entries do local cv = cond(ent.ent, ent.hate, ent.damage, ent.frenzy); if(cv) then ret = ret + 1; end end return ret; end function Mob:CastedSpellFinished(spell_id, target) -- note, we do have a server side function (not exported) called this too ... self:SendBeginCast(spell_id, 0); self:SpellFinished(spell_id, target); end
corellia_swamp_gurrcat_lair_neutral_medium = Lair:new { mobiles = {{"swamp_gurrcat",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_rock_shelter_small_evil_fire_red.iff"}, buildingsEasy = {"object/tangible/lair/base/poi_all_lair_rock_shelter_small_evil_fire_red.iff"}, buildingsMedium = {"object/tangible/lair/base/poi_all_lair_rock_shelter_small_evil_fire_red.iff"}, buildingsHard = {"object/tangible/lair/base/poi_all_lair_rock_shelter_small_evil_fire_red.iff"}, buildingsVeryHard = {"object/tangible/lair/base/poi_all_lair_rock_shelter_small_evil_fire_red.iff"}, } addLairTemplate("corellia_swamp_gurrcat_lair_neutral_medium", corellia_swamp_gurrcat_lair_neutral_medium)
-- local MissingDesc = "The description for this module/setting is missing. Someone should really remind Kkthnx to do his job!" local ModuleNewFeature = [[|TInterface\OptionsFrame\UI-OptionsFrame-NewFeatureIcon:0:0:0:0|t]] -- Used for newly implemented features. -- local PerformanceIncrease = "|n|nDisabling this may slightly increase performance|r" -- For semi-high CPU options -- local RestoreDefault = "|n|nRight-click to restore to default" -- For color pickers local _G = _G _G.KkthnxUIConfig["ruRU"] = { -- Menu Groups Display Names ["GroupNames"] = { -- Let's Keep This In Alphabetical Order, Shall We? ["ActionBar"] = "Панели команд", ["Announcements"] = "Оповещения", ["Arena"] = "Арена", ["Auras"] = "Ауры", ["Automation"] = "Автоматизация", ["Boss"] = "Боссы", ["Chat"] = "Чат", ["DataBars"] = "Инфо-полосы", ["DataText"] = "Инфо-текст", ["Filger"] = "Кулдауны", ["General"] = "Общее", ["Inventory"] = "Сумки", ["Loot"] = "Добыча", ["Minimap"] = "Миникарта", ["Misc"] = "Разное", ["Nameplate"] = "Полосы здоровья", ["Party"] = "Группа", ["PulseCooldown"] = "Pulse Cooldown", ["QuestNotifier"] = "Квесты", ["Raid"] = "Рейд", ["Skins"] = "Шкурки", ["Tooltip"] = "Подсказка", ["UIFonts"] = "Шрифты", ["UITextures"] = "Текстуры", ["Unitframe"] = "Рамки персонажей", ["WorldMap"] = "Карта мира", }, -- Actionbar Local ["ActionBar"] = { ["Cooldowns"] = { ["Name"] = "Показывать кулдауны", }, ["Count"] = { ["Name"] = "Показывать кол-во предметов", }, ["DecimalCD"] = { ["Name"] = "Округлять кулдауны до целых чисел", }, ["DefaultButtonSize"] = { ["Name"] = "Размер кнопок главной панели", }, ["DisableStancePages"] = { ["Name"] = "Выключить панели стоек (Друид & Разбойник)", }, ["Enable"] = { ["Name"] = "Включить модуль Панелей команд", }, ["EquipBorder"] = { ["Name"] = "Индикатор надетой вещи", }, ["FadeRightBar"] = { ["Name"] = "Затенять Правую панель 1", }, ["FadeRightBar2"] = { ["Name"] = "Затенять Правую панель 2", }, ["HideHighlight"] = { ["Name"] = "Скрывать вспышку перезарядки заклинания", }, ["Hotkey"] = { ["Name"] = "Показывать Горячие клавиши", }, ["Macro"] = { ["Name"] = "Показывать имена макросов", }, ["MicroBar"] = { ["Name"] = "Показывать Микропанель", }, ["MicroBarMouseover"] = { ["Name"] = "Микропанель при наведении мыши", }, ["OverrideWA"] = { ["Name"] = "Скрывать кулдауны в WeakAuras", }, ["RightButtonSize"] = { ["Name"] = "Размер кнопок на Правой панели", }, ["StancePetSize"] = { ["Name"] = "Размер кнопок на панелях стоек и пета", } }, -- Announcements Local ["Announcements"] = { ["PullCountdown"] = { ["Name"] = "Говорить отсчёт пулла (/pc #)", }, ["SaySapped"] = { ["Name"] = "Сказать если на вас Ошеломление", }, ["Interrupt"] = { ["Name"] = "Сказать о прерывании", }, ["RareAlert"] = { ["Name"] = "Announce Rares, Chests & War Supplies", }, ["ItemAlert"] = { ["Name"] = "Announce Items Being Placed", } }, -- Automation Local ["Automation"] = { ["AutoBubbles"] = { ["Name"] = "Выключать облачка сообщений", ["Desc"] = "Автоматически выключает отображение облачков сообщений, если вы находитесь в подземелье/рейде." }, ["AutoCollapse"] = { ["Name"] = "Скрывать список заданий", }, ["AutoInvite"] = { ["Name"] = "Принимать приглашения от друзей и членов гильдии", }, ["AutoDisenchant"] = { ["Name"] = "Автораспыление вещей при нажатии 'ALT'", }, ["AutoQuest"] = { ["Name"] = "Автоматически принимать и сдавать задания", }, ["AutoRelease"] = { ["Name"] = "Выходить из тела на полях боя и аренах", }, ["AutoResurrect"] = { ["Name"] = "Автоматически принимать запрос на воскрешение", }, ["AutoResurrectThank"] = { ["Name"] = "Говорить 'Thank You' при воскрешении", }, ["AutoReward"] = { ["Name"] = "Автоматически выбирать награду за задания", }, ["AutoSetRole"] = { ["Name"] = "Auto Set Your Role In Groups", }, ["AutoTabBinder"] = { ["Name"] = "По 'Tab' выбирать только враждебных игроков", }, ["BuffThanks"] = { ["Name"] = "Благодарить за баффы (везде кроме инстов/рейдов)", }, ["BlockMovies"] = { ["Name"] = "Блокировать ролики, которые вы уже смотрели", }, ["DeclinePvPDuel"] = { ["Name"] = "Отклонять запросы на PVP-дуэли", }, ["WhisperInvite"] = { ["Name"] = "Ключевое слово для приглашений", ["Desc"] = "Если вам в приват напишут это слово, вы автоматически примете этого игрока в группу" }, }, -- Bags Local ["Inventory"] = { ["AutoSell"] = { ["Name"] = "Автоматически продавать серое", ["Desc"] = "При посещении торговца, весь серый лут будет автоматически продан.", }, ["BagBar"] = { ["Name"] = "Показывать Панель сумок", }, ["BagBarMouseover"] = { ["Name"] = "Панель сумок при наведении мыши", }, ["Enable"] = { ["Name"] = "Включить модуль сумок", ["Desc"] = "Включает/выключает модуль отображения сумок.", }, ["ClassRelatedFilter"] = { ["Name"] = "Фильтровать классовые предметы", }, ["ScrapIcon"] = { ["Name"] = "Show Scrap Icon", }, ["UpgradeIcon"] = { ["Name"] = "Show Upgrade Icon", }, ["QuestItemFilter"] = { ["Name"] = "Фильтровать предметы для заданий", }, ["TradeGoodsFilter"] = { --Перевести ["Name"] = "Filter Trade/Goods Items", }, ["BagsWidth"] = { ["Name"] = "Ячеек на строку в сумках", }, ["BankWidth"] = { ["Name"] = "Ячеек на строку в банке", }, ["DeleteButton"] = { ["Name"] = "Кнопка режима удаления", }, ["GatherEmpty"] = { ["Name"] = "Собирать пустые ячейки в одну", }, ["IconSize"] = { ["Name"] = "Размер иконки", }, ["ItemFilter"] = { ["Name"] = "Фильтрация предметов", }, ["ItemSetFilter"] = { ["Name"] = "Включить фильтр Предпочтений", }, ["ReverseSort"] = { ["Name"] = "Обратная сортировка", }, ["ShowNewItem"] = { ["Name"] = "Show New Item Glow", }, ["BagsiLvl"] = { ["Name"] = "Показывать уровень предметов", ["Desc"] = "Показывает уровень на носимых предметах.", }, ["AutoRepair"] = { ["Name"] = "Автоматический ремонт", }, }, -- Auras Local ["Auras"] = { ["BuffSize"] = { ["Name"] = "Размер иконок баффов", }, ["BuffsPerRow"] = { ["Name"] = "Количество баффов на строку", }, ["DebuffSize"] = { ["Name"] = "Размер иконок дебаффов", }, ["DebuffsPerRow"] = { ["Name"] = "Количество дебаффов на строку", }, ["Enable"] = { ["Name"] = "Включить модуль аур", }, ["Reminder"] = { ["Name"] = "Напоминания о баффах (Крик/Интеллект/Яды и т.д.)", }, ["ReverseBuffs"] = { ["Name"] = "Рост баффов вправо", }, ["ReverseDebuffs"] = { ["Name"] = "Рост дебаффов вправо", }, }, -- Chat Local ["Chat"] = { ["Background"] = { ["Name"] = "Показывать фон чата", }, ["BackgroundAlpha"] = { ["Name"] = "Прозрачность фона", }, ["BlockAddonAlert"] = { ["Name"] = "Блокировать ошибки аддонов", }, ["ChatItemLevel"] = { ["Name"] = "Показывать уровень предметов в чате", }, ["Enable"] = { ["Name"] = "Включить модуль чата", }, ["EnableFilter"] = { ["Name"] = "Включить фильтр чата", }, ["Fading"] = { ["Name"] = "Скрывать чат при неактивности", }, ["FadingTimeFading"] = { ["Name"] = "Длительность анимации скрытия", }, ["FadingTimeVisible"] = { ["Name"] = "Время неактивности для скрытия", }, ["Height"] = { ["Name"] = "Высота чата", }, ["QuickJoin"] = { -- Перевести ["Name"] = "Quick Join Messages", ["Desc"] = "Show clickable Quick Join messages inside of the chat." }, ["ScrollByX"] = { ["Name"] = "Скроллить на '#' строк", }, ["ShortenChannelNames"] = { ["Name"] = "Короткие имена каналов", }, ["TabsMouseover"] = { ["Name"] = "Имена вкладок при наведении мыши", }, ["WhisperSound"] = { ["Name"] = "Звук приватного сообщения", }, ["Width"] = { ["Name"] = "Ширина чата", }, }, -- Databars Local ["DataBars"] = { ["Enable"] = { ["Name"] = "Включить модуль инфо-полос", }, ["ExperienceColor"] = { ["Name"] = "Цвет полосы Опыта", }, ["Height"] = { ["Name"] = "Высота полос", }, ["HonorColor"] = { ["Name"] = "Цвет полосы Чести", }, ["MouseOver"] = { ["Name"] = "Полосы при наведении мыши", }, ["RestedColor"] = { ["Name"] = "Цвет Отдыха на полосе опыта", }, ["Text"] = { ["Name"] = "Показывать текст значений", }, ["TrackHonor"] = { ["Name"] = "Показывать Честь", }, ["Width"] = { ["Name"] = "Ширина полос", }, }, -- DataText Local ["DataText"] = { ["Battleground"] = { ["Name"] = "Информация о полях боя", }, ["LocalTime"] = { ["Name"] = "12-часовой формат времени", }, ["System"] = { ["Name"] = "Показать FPS и латентность", }, ["Time"] = { ["Name"] = "Показывать время на миникарте", }, ["Time24Hr"] = { ["Name"] = "24-часовой формат времени", }, }, -- Filger Local ["Filger"] = { ["BuffSize"] = { ["Name"] = "Размер иконок баффов", }, ["CooldownSize"] = { ["Name"] = "Размер иконок кулдаунов", }, ["DisableCD"] = { ["Name"] = "Выключить слежение за кулдаунами", }, ["DisablePvP"] = { ["Name"] = "Выключить слежение в режиме PVP", }, ["Expiration"] = { ["Name"] = "Сортировать по истекающему времени", }, ["Enable"] = { ["Name"] = "Включить модуль кулдаунов", }, ["MaxTestIcon"] = { ["Name"] = "Максимум иконок в режиме Теста", }, ["PvPSize"] = { ["Name"] = "Размер иконок в PvP", }, ["ShowTooltip"] = { ["Name"] = "Показывать подсказки при наведении", }, ["TestMode"] = { ["Name"] = "Режим Теста", }, }, -- General Local ["General"] = { ["ColorTextures"] = { ["Name"] = "Раскрасить границы KkthnxUI", }, ["DisableTutorialButtons"] = { ["Name"] = "Отключить кнопки обучения", }, ["FixGarbageCollect"] = { -- Перевести ["Name"] = "Fix Garbage Collection", }, ["FontSize"] = { ["Name"] = "Размер основного шрифта", }, ["HideErrors"] = { ["Name"] = "Скрыть 'некоторые' ошибки интерфейса", }, ["LagTolerance"] = { -- Перевести ["Name"] = "Auto Lag Tolerance", }, ["MoveBlizzardFrames"] = { ["Name"] = "Двигать окна интерфейса", }, ["ReplaceBlizzardFonts"] = { ["Name"] = "Заменить 'некоторые' шрифты игры", }, ["TexturesColor"] = { ["Name"] = "Цвет текстур", }, ["Welcome"] = { ["Name"] = "Показывать приветственное сообщение", }, ["NumberPrefixStyle"] = { ["Name"] = "Стиль сокращений цифровых значений", }, ["PortraitStyle"] = { ["Name"] = "Стиль портретов на рамках", }, }, -- Loot Local ["Loot"] = { ["AutoConfirm"] = { ["Name"] = "Автоматические подтверждения в окнах диалогов", }, ["AutoGreed"] = { ["Name"] = "Автоматически 'Не откажусь' на зеленые вещи", }, ["Enable"] = { ["Name"] = "Включить модуль лута", }, ["FastLoot"] = { ["Name"] = "Быстрый автолут", }, ["GroupLoot"] = { ["Name"] = "Включить групповой лут", }, }, -- Minimap Local ["Minimap"] = { ["Calendar"] = { ["Name"] = "Показать календарь", }, ["Enable"] = { ["Name"] = "Включить модуль миникарты", }, ["ResetZoom"] = { ["Name"] = "Сбрасывать увеличение", }, ["ResetZoomTime"] = { ["Name"] = "Таймер сброса увеличения", }, ["ShowRecycleBin"] = { ["Name"] = "Показать корзину с кнопками", }, ["Size"] = { ["Name"] = "Размер миникарты", }, ["BlipTexture"] = { ["Name"] = "Blip Icon Styles", ["Desc"] = "Change the minimap blip icons for nodes, party and so on.", }, ["LocationText"] = { ["Name"] = "Location Text Style", ["Desc"] = "Change settings for the display of the location text that is on the minimap.", }, }, -- Miscellaneous Local ["Misc"] = { ["AFKCamera"] = { ["Name"] = "AFK режим", }, ["ColorPicker"] = { ["Name"] = "Улучшенное окно выбора цвета интерфейса", }, ["EnhancedFriends"] = { ["Name"] = "Улучшенные цвета (в окнах Друзей/Гильдии +)", }, ["GemEnchantInfo"] = { ["Name"] = "Показывать зачарования в окне персонажа", }, ["ItemLevel"] = { ["Name"] = "Показывать уровень предметов в окне персонажа", }, ["KillingBlow"] = { ["Name"] = "Показывать инфо о финальном ударе", }, ["PvPEmote"] = { ["Name"] = "Эмоция при убийстве другого игрока", }, ["ShowWowHeadLinks"] = { ["Name"] = "Показывать ссылку на wowhead в окне заданий", }, ["SlotDurability"] = { ["Name"] = "Показывать прочность вещей в окне персонажа", }, ["EnchantmentScroll"] = { ["Name"] = "Create Enchantment Scrolls With A Single Click" }, ["ImprovedStats"] = { ["Name"] = "Display Character Frame Full Stats" }, ["NoTalkingHead"] = { ["Name"] = "Remove And Hide The TalkingHead Frame" } }, -- Nameplates Local ["Nameplates"] = { ["GoodColor"] = { ["Name"] = "Цвет угрозы 'хорошо'", }, ["NearColor"] = { ["Name"] = "Цвет угрозы 'опасность'", }, ["BadColor"] = { ["Name"] = "Цвет угрозы 'срыв'", }, ["OffTankColor"] = { ["Name"] = "Цвет угрозы для оффтанка", }, ["Clamp"] = { ["Name"] = "Закрепить на экране", ["Desc"] = "Закрепить полосы у краёв экрана, если цель за его пределами." }, ["ClassResource"] = { ["Name"] = "Показывать классовые ресурсы (мана и т.д.)", }, ["Combat"] = { ["Name"] = "Показывать полосы в бою", }, ["Enable"] = { ["Name"] = "Включить модуль полос здоровья", }, ["HealthValue"] = { ["Name"] = "Показывать количество здоровья", }, ["Height"] = { ["Name"] = "Высота полос", }, ["NonTargetAlpha"] = { ["Name"] = "Прозрачность невыбранных как Цель", }, ["QuestInfo"] = { ["Name"] = "Показывать значок квестовых мобов", }, ["SelectedScale"] = { ["Name"] = "Масштаб Цели", }, ["Smooth"] = { ["Name"] = "Плавные полосы", }, ["TankMode"] = { ["Name"] = "Режим танка", }, ["Threat"] = { ["Name"] = "Угроза на полосах", }, ["TrackAuras"] = { ["Name"] = "Показывать баффы/дебаффы", }, ["Width"] = { ["Name"] = "Высота полос", }, ["HealthbarColor"] = { ["Name"] = "Формат цвета полос здоровья", }, ["LevelFormat"] = { ["Name"] = "Формат уровня моба", }, ["TargetArrowMark"] = { ["Name"] = "Стрелки на полосе Цели", }, ["HealthFormat"] = { ["Name"] = "Формат значения здоровья", }, ["ShowEnemyCombat"] = { --Перевести ["Name"] = "Show Enemy Combat", }, ["ShowFriendlyCombat"] = { --Перевести ["Name"] = "Show Friendly Combat", }, ["LoadDistance"] = { ["Name"] = "Load Distance", }, ["ShowHealPrediction"] = { ["Name"] = "Show Health Prediction Bars", }, ["VerticalSpacing"] = { ["Name"] = "Vertical Spacing", } }, -- Skins Local ["Skins"] = { ["ChatBubbles"] = { ["Name"] = "Оформить облачка сообщений", }, ["DBM"] = { ["Name"] = "DeadlyBossMods", }, ["Details"] = { ["Name"] = "Details", }, ["Hekili"] = { ["Name"] = "Hekili", }, ["Skada"] = { ["Name"] = "Skada", }, ["TalkingHeadBackdrop"] = {--Перевести (в Классике такой функции нет в общем-то) ["Name"] = "Show TalkingHead Backdrop", }, ["WeakAuras"] = { ["Name"] = "WeakAuras", }, }, -- Unitframe Local ["Unitframe"] = { ["AdditionalPower"] = { ["Name"] = "Показывать ману друидов при смене формы", }, ["CastClassColor"] = { ["Name"] = "Полосы заклинаний по цвету класса", }, ["CastReactionColor"] = { ["Name"] = "Полосы заклинаний по цвету реакции", }, ["CastbarLatency"] = { ["Name"] = "Показывать задержку на полосе заклинаний", }, ["Castbars"] = { ["Name"] = "Показывать полосы заклинаний", }, ["ClassResources"] = { ["Name"] = "Show Class Resources", }, ["Stagger"] = { ["Name"] = "Show |CFF00FF96Monk|r Stagger Bar", }, ["PlayerPowerPrediction"] = { ["Name"] = "Show Player Power Prediction", }, ["CombatFade"] = { ["Name"] = "Показывать рамки только во время боя", }, ["CombatText"] = { ["Name"] = "Текст боя по краям экрана", }, ["DebuffHighlight"] = { --Перевести ["Name"] = "Show Health Debuff Highlight", }, ["DebuffsOnTop"] = { ["Name"] = "Показывать дебаффы цели сверху", }, ["Enable"] = { ["Name"] = "Включить модуль рамок персонажей", }, ["EnergyTick"] = { ["Name"] = "Показывать тики энергии (Друид / Разбойник)", }, ["GlobalCooldown"] = { ["Name"] = "Показывать Глобальный Кулдаун", }, ["HideTargetofTarget"] = { ["Name"] = "Скрыть Цель Цели", }, ["OnlyShowPlayerDebuff"] = { ["Name"] = "Показывать только ваши дебаффы", }, ["PlayerBuffs"] = { ["Name"] = "Показывать баффы внизу рамки Игрока", }, ["PlayerCastbarHeight"] = { ["Name"] = "Высота полосы заклинаний Игрока", }, ["PlayerCastbarWidth"] = { ["Name"] = "Ширина полосы заклинаний Игрока", }, ["PortraitTimers"] = { --Перевести ["Name"] = "Portrait Spell Timers", }, ["PvPIndicator"] = { ["Name"] = "Show PvP Indicator on Player / Target", }, ["ShowHealPrediction"] = { --Перевести ["Name"] = "Show HealPrediction Statusbars", }, ["ShowPlayerLevel"] = { ["Name"] = "Показывать ваш уровень", }, ["ShowPlayerName"] = { ["Name"] = "Показывать ваше имя", }, ["Smooth"] = { ["Name"] = "Плавные полосы", }, ["Swingbar"] = { ["Name"] = "Показывать полосу автоатак", }, ["SwingbarTimer"] = { ["Name"] = "Таймер полосы автоатак", }, ["TargetCastbarHeight"] = { ["Name"] = "Высота полосы заклинаний Цели", }, ["TargetCastbarWidth"] = { ["Name"] = "Ширина полосы заклинаний Цели", }, ["TotemBar"] = { ["Name"] = "Показывать панель тотемов", }, ["HealthbarColor"] = { ["Name"] = "Формат цвета здоровья", }, ["PlayerHealthFormat"] = { ["Name"] = "Формат значения здоровья Игрока", }, ["PlayerPowerFormat"] = { ["Name"] = "Формат значения ресурса Игрока", }, ["TargetHealthFormat"] = { ["Name"] = "Формат значения здоровья Цели", }, ["TargetPowerFormat"] = { ["Name"] = "Формат значения ресурса Цели", }, ["TargetLevelFormat"] = { ["Name"] = "Формат уровня Цели", }, }, -- Arena Local ["Arena"] = { ["Castbars"] = { ["Name"] = "Показывать полосу заклинаний", }, ["Enable"] = { ["Name"] = "Включить модуль арены", }, ["Smooth"] = { ["Name"] = "Плавные полосы", }, }, -- Boss Local ["Boss"] = { ["Castbars"] = { ["Name"] = "Показывать полосу заклинаний", }, ["Enable"] = { ["Name"] = "Включить модуль боссов", }, ["Smooth"] = { ["Name"] = "Плавные полосы", }, }, -- Party Local ["Party"] = { ["Castbars"] = { ["Name"] = "Показывать полосу заклинаний", }, ["Enable"] = { ["Name"] = "Включить модуль группы", }, ["HorizonParty"] = { ["Name"] = "Horizontal Party Frames", }, ["PortraitTimers"] = { --Перевести ["Name"] = "Portrait Spell Timers", }, ["ShowBuffs"] = { ["Name"] = "Показывать баффы группы", }, ["ShowHealPrediction"] = { --Перевести ["Name"] = "Show HealPrediction Statusbars", }, ["ShowPlayer"] = { ["Name"] = "Показывать вас в группе", }, ["Smooth"] = { ["Name"] = "Плавные полосы", }, ["TargetHighlight"] = { --Перевести ["Name"] = "Show Highlighted Target", }, ["HealthbarColor"] = { ["Name"] = "Формат цвета здоровья", }, ["PartyHealthFormat"] = { ["Name"] = "Формат значений здоровья", }, ["PartyPowerFormat"] = { ["Name"] = "Формат значений ресурсов", }, }, ["PulseCooldown"] = { ["Enable"] = { ["Name"] = "Enable PulseCooldown", }, ["HoldTime"] = { ["Name"] = "How Long To Display", }, ["MinTreshold"] = { ["Name"] = "Minimal Threshold Time", }, ["Size"] = { ["Name"] = "Icon Size", }, ["Sound"] = { ["Name"] = "Play Sound On Pulse", }, }, -- QuestNotifier Local ["QuestNotifier"] = { ["Enable"] = { ["Name"] = "Включить список заданий", }, ["QuestProgress"] = { ["Name"] = "Прогресс квеста в чат", ["Desc"] = "Информирует о прогрессе заданий в чат группы. Спаммит, поэтому лучше не использовать в группе с незнакомцами!", }, ["OnlyCompleteRing"] = { --Перевести ["Name"] = "Only Complete Sound", ["Desc"] = "Only play the complete sound at the end of completing the quest" }, }, -- Raidframe Local ["Raid"] = { ["SpecRaidPos"] = { ["Name"] = "Save Raid Posions Based On Specs", }, ["ShowTeamIndex"] = { ["Name"] = "Show Group Number Team Index", }, ["ReverseRaid"] = { ["Name"] = "Reverse Raid Frame Growth", }, ["HorizonRaid"] = { ["Name"] = "Horizontal Raid Frames", }, ["NumGroups"] = { ["Name"] = "Number Of Groups to Show", }, ["AuraDebuffIconSize"] = { ["Name"] = "Размер иконок дебаффов", }, ["AuraWatch"] = { --Перевести ["Name"] = "Show AuraWatch Icons", }, ["AuraWatchIconSize"] = { --Перевести ["Name"] = "AuraWatch Icon Size", }, ["AuraWatchTexture"] = { --Перевести ["Name"] = "Show Color AuraWatch Texture", }, ["Enable"] = { ["Name"] = "Включить модуль рейда", }, ["Height"] = { ["Name"] = "Высота ячейки рейда", }, ["MainTankFrames"] = { ["Name"] = "Показывать главных танков", }, ["ManabarShow"] = { ["Name"] = "Показывать ману", }, ["MaxUnitPerColumn"] = { ["Name"] = "Максимум ячеек на столбец", }, ["RaidUtility"] = { ["Name"] = "Показывать окно управления рейдом", }, ["ShowGroupText"] = { ["Name"] = "Показывать вашу группу #", }, ["ShowNotHereTimer"] = { ["Name"] = "Показывать статус 'отошел'", }, ["ShowRolePrefix"] = { ["Name"] = "Показывать значки танков/лекарей", }, ["Smooth"] = { ["Name"] = "Плавные полосы", }, ["TargetHighlight"] = { --Перевести ["Name"] = "Show Highlighted Target", }, ["Width"] = { ["Name"] = "Ширина ячейки рейда", }, ["HealthbarColor"] = { ["Name"] = "Формат цвета здоровья", }, ["RaidLayout"] = { ["Name"] = "Раскладка рейда", }, ["GroupBy"] = { ["Name"] = "Сортировка в рейде", }, ["HealthFormat"] = { ["Name"] = "Формат значений здоровья", }, }, -- Worldmap Local ["WorldMap"] = { ["AlphaWhenMoving"] = { -- Нет применения в данной версии, MapFader ниже не то же самое? ["Name"] = "Alpha When Moving", }, ["Coordinates"] = { ["Name"] = "Показывать ваши и курсора координаты", }, ["FadeWhenMoving"] = { ["Name"] = "Прозрачность карты при движении", }, ["MapScale"] = { ["Name"] = "Масштаб карты", }, ["SmallWorldMap"] = { ["Name"] = "Показывать уменьшенную карту", }, ["WorldMapPlus"] = { ["Name"] = "Показывать дополнительные значки на карте", }, }, -- Tooltip Local ["Tooltip"] = { ["AzeriteArmor"] = { ["Name"] = "Show Azerite Tooltip Traits", }, ["ClassColor"] = { ["Name"] = "Рамка по цвету качества", }, ["CombatHide"] = { ["Name"] = "Скрывать подсказки в бою", }, ["Cursor"] = { ["Name"] = "Возле курсора", }, ["FactionIcon"] = { ["Name"] = "Показывать иконку фракции", }, ["HideJunkGuild"] = { ["Name"] = "Сокращать имена гильдий", }, ["HideRank"] = { ["Name"] = "Скрыть ранг в гильдии", }, ["HideRealm"] = { ["Name"] = "Показывать имя сервера при зажатом SHIFT", }, ["HideTitle"] = { ["Name"] = "Скрыть титулы", }, ["Icons"] = { ["Name"] = "Показывать иконки предметов", }, ["ShowIDs"] = { ["Name"] = "Показывать ID предметов", }, ["LFDRole"] = { ["Name"] = "Показывать выбранную роль для подземелий", }, ["SpecLevelByShift"] = { ["Name"] = "Показывать спек/уровень предметов при зажатом SHIFT", }, ["TargetBy"] = { ["Name"] = "Показывать выбранную цель", }, }, -- Fonts Local ["UIFonts"] = { ["ActionBarsFonts"] = { ["Name"] = "Панели команд", }, ["AuraFonts"] = { ["Name"] = "Ауры", }, ["ChatFonts"] = { ["Name"] = "Чат", }, ["DataBarsFonts"] = { ["Name"] = "Инфо-полосы", }, ["DataTextFonts"] = { ["Name"] = "Инфо-текст", }, ["FilgerFonts"] = { ["Name"] = "Шрифт кулдаунов", }, ["GeneralFonts"] = { ["Name"] = "Общее", }, ["InventoryFonts"] = { ["Name"] = "Сумки", }, ["MinimapFonts"] = { ["Name"] = "Миникарта", }, ["NameplateFonts"] = { ["Name"] = "Полосы здоровья", }, ["QuestTrackerFonts"] = { ["Name"] = "Список заданий", }, ["SkinFonts"] = { ["Name"] = "Шкурки", }, ["TooltipFonts"] = { ["Name"] = "Подсказка", }, ["UnitframeFonts"] = { ["Name"] = "Рамки персонажей", }, }, -- Textures Local ["UITextures"] = { ["DataBarsTexture"] = { ["Name"] = "Инфо-полосы", }, ["FilgerTextures"] = { ["Name"] = "Кулдауны", }, ["GeneralTextures"] = { ["Name"] = "Общее", }, ["LootTextures"] = { ["Name"] = "Добыча", }, ["NameplateTextures"] = { ["Name"] = "Полосы здоровья", }, ["QuestTrackerTexture"] = { ["Name"] = "Список заданий", }, ["SkinTextures"] = { ["Name"] = "Шкурки", }, ["TooltipTextures"] = { ["Name"] = "Подсказка", }, ["UnitframeTextures"] = { ["Name"] = "Рамки персонажей", }, ["HealPredictionTextures"] = { ["Name"] = "Полоса отхила", }, } }
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Small Oil Tank" ENT.Author = "Server" ENT.Contact = "" ENT.Information = "Fill this with oil!" ENT.Category = "Harbor" ENT.Spawnable = true ENT.AdminSpawnable = true
----------------------------------------------- -- material.lua -- Represents a material when it is in the world -- Created by HazardousPeach ----------------------------------------------- local game = require 'game' local collision = require 'hawk/collision' local Item = require 'items/item' local utils = require 'utils' local file = require 'items/materials' local Material = {} Material.__index = Material Material.isMaterial = true --- -- Creates a new material object -- @return the material object created function Material.new(node, collider) local material = {} setmetatable(material, Material) material.name = node.name material.type = 'material' local file = utils.require( 'nodes/materials/' .. material.name) material.width = file.width or 24 material.height = file.height or 24 material.image = love.graphics.newImage('images/materials/'..node.name..'.png') material.image_q = love.graphics.newQuad( 0, 0, material.width, material.height, material.image:getWidth(),material.image:getHeight() ) material.foreground = node.properties.foreground material.collider = collider material.bb = collider:addRectangle(node.x, node.y, node.width, node.height) material.bb.node = material collider:setSolid(material.bb) collider:setPassive(material.bb) material.position = {x = node.x, y = node.y} material.velocity = {x = 0, y = 0} material.width = node.width material.height = node.height material.bb_offset_x = (24 - node.width) / 2 -- positions bb for materials smaller than 24px material.touchedPlayer = nil material.exists = true material.dropping = false return material end --- -- Draws the material to the screen -- @return nil function Material:draw() if not self.exists then return end love.graphics.draw(self.image, self.image_q, self.position.x, self.position.y) end function Material:keypressed( button, player ) if button ~= 'INTERACT' then return end local itemNode = utils.require( 'items/materials/' .. self.name ) itemNode.type = 'material' local item = Item.new(itemNode, self.quantity) local callback = function() self.exists = false self.containerLevel:saveRemovedNode(self) self.containerLevel:removeNode(self) self.collider:remove(self.bb) end player.inventory:addItem(item, true, callback) end --- -- Called when the material begins colliding with another node -- @return nil function Material:collide(node, dt, mtv_x, mtv_y) if node and node.character then self.touchedPlayer = node end end --- -- Called when the material finishes colliding with another node -- @return nil function Material:collide_end(node, dt) if node and node.character then self.touchedPlayer = nil end end --- -- Updates the material and allows the player to pick it up. function Material:update(dt, player, map) if not self.exists then return end if self.dropping then local nx, ny = collision.move(map, self, self.position.x, self.position.y, self.width, self.height, self.velocity.x * dt, self.velocity.y * dt) self.position.x = nx self.position.y = ny -- X velocity won't need to change self.velocity.y = self.velocity.y + game.gravity*dt self.bb:moveTo(self.position.x + self.width / 2 + self.bb_offset_x, self.position.y + self.height / 2) end -- Item has finished dropping in the level if not self.dropping and self.dropped and not self.saved then self.containerLevel:saveAddedNode(self) self.saved = true end end function Material:drop(player) if player.footprint then self:floorspace_drop(player) return end self.dropping = true self.dropped = true end function Material:floorspace_drop(player) self.dropping = false self.position.y = player.footprint.y - self.height self.bb:moveTo(self.position.x + self.width / 2 + self.bb_offset_x, self.position.y + self.height / 2) self.containerLevel:saveAddedNode(self) end function Material:floor_pushback() if not self.exists or not self.dropping then return end self.dropping = false self.velocity.y = 0 self.collider:setPassive(self.bb) end return Material
--[[if script.ClassName == "LocalScript" then if game.PlaceId == 178350907 then script:Destroy() else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end if script ~= true then print("Success! This script is immune to g/nol/all or g/nos/all!") else print("Failed! This script is removable by g/nol/all or g/nos/all!") end local Player = game:GetService("Players").LocalPlayer while not Player.Character or Player.Character.Parent ~= workspace do wait() end ]] -------------------------------------------------------- pls = game:GetService'Players' rs = game:GetService'RunService' uinps = game:GetService'UserInputService' lp = pls.LocalPlayer mouse = lp:GetMouse() c = lp.Character rayModel = Instance.new("Model",c) human = c.Humanoid Cone = nil human.MaxHealth = 10000 wait() human.Health = 10000 c.Health:Destroy() c.Head.face.Texture = "http://www.roblox.com/asset/?id=381193106" -------------------------------------------------------- Debounces = { FPS = 0; isAttacking = false; isMoving = false; isSprinting = false; Debounce = false; isTyping = false; isJumping = false; isFlash = false; } -------------------------------------------------------- numLerp = function(start, goal, alpha) return(((goal - start) * alpha) + start) end CFrameZero = function() return CFrame.new(Vector3.new()) end local function a() local t=tick(); local l=t%1*3; local t=.5*math.pi*(l%1); if l<1 then return Color3.new(1,1-math.cos(t),1-math.sin(t)); elseif l<2 then return Color3.new(1-math.sin(t),1,1-math.cos(t)); else return Color3.new(1-math.cos(t),1-math.sin(t),1); end; end; rad = function(value) return math.rad(value) end CFAngles = function(Vector) return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) end -------------------------------------------------------- AnimStat = { lerpSpeed = .2; lerpSpeed2 = .35; lerpTween = 0; } Joints = { c.HumanoidRootPart.RootJoint; c.Torso.Neck; c.Torso['Left Shoulder']; c.Torso['Right Shoulder']; c.Torso['Left Hip']; c.Torso['Right Hip']; } JointTargets = { CFrameZero(); CFrameZero(); CFrameZero(); CFrameZero(); CFrameZero(); CFrameZero(); } -------------------------------------------------------- prepareCharacter = function() music = Instance.new("Sound",c.HumanoidRootPart) music.SoundId = "rbxassetid://335958739" --394144904 music.Looped = true music.Volume = 1 music2 = Instance.new("Sound",c) music2.SoundId = "rbxassetid://259613634" music2.Looped = true music2.Volume = 1 music3 = Instance.new("Sound",c.HumanoidRootPart) music3.SoundId = "rbxassetid://266530326" music3.Looped = true music3.Volume = 1 music4 = Instance.new("Sound",c.HumanoidRootPart) music4.SoundId = "rbxassetid://155738252" music4.Looped = true music4.Volume = 1 music5 = Instance.new("Sound",c.HumanoidRootPart) music5.SoundId = "rbxassetid://215391212" music5.Looped = true music5.Volume = 1 human.WalkSpeed = 0 human.JumpPower = 0 --[[for i,v in pairs (c:children()) do if v:isA"Hat" then v:Destroy() end if v:FindFirstChild("roblox") then v.roblox:Destroy() end if v.Name == "Head" then v.Transparency = 1 for _,x in pairs (v:children()) do if x.ClassName == "Sound" then x:Destroy() end end end if v:FindFirstChild("face") then v.face:Destroy() end if v:isA"Part" then v.BrickColor = BrickColor.new("White") end end ]] local shirt = c:FindFirstChild("Shirt") or Instance.new("Shirt",c) local pants = c:FindFirstChild("Pants") or Instance.new("Pants",c) shirt.ShirtTemplate = "rbxassetid://344089667" pants.PantsTemplate = "rbxassetid://344084364" local Head = Instance.new("Part",c) Head.Size = Vector3.new(2.5,2.5,1) Head.Transparency = 1 Head:BreakJoints() local hw = Instance.new("Weld",c.Head) hw.Part0 = c.Head hw.Part1 = Head hw.C0 = CFrame.new(0,.3,0) local Anim = human:FindFirstChild("Animator") if Anim then Anim:Destroy() end end setJointCFrames = function(table) for i = 1,#table do JointTargets[i] = table[i] end end triWave = function(x) --> triangular sine local pi2 = math.pi/2 return math.abs((x/pi2)%4-2)-1 end setLerp = function(speed) AnimStat.lerpSpeed = speed end setTween = function(tween) AnimStat.lerpTween = tween end playSound = function(id,part,vol,pitch) local vol = vol or 1 local pitch = pitch or 1 local x = Instance.new("Sound",part) x.Volume = vol x.Pitch = pitch x.SoundId = "rbxassetid://"..id spawn(function() wait() x:Play() wait(x.TimeLength + .2) x:Destroy() end) end lerpBoom = function() if Cone then Cone.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p + c.HumanoidRootPart.Velocity) * CFrame.Angles(-math.pi/2,0,0) cMesh.Scale = Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20) Cone.Transparency = 1-c.HumanoidRootPart.Velocity.magnitude/1000 else Cone = Instance.new("Part",c) Cone.Anchored = true Cone.CanCollide = false Cone.Transparency = math.random(50,70)/100 Cone.Size = Vector3.new(1,1,1) Cone.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p + c.HumanoidRootPart.Velocity) * CFrame.Angles(-math.pi/2,0,0) cMesh = Instance.new("SpecialMesh",Cone) cMesh.MeshId = "rbxassetid://1033714" cMesh.Scale = Vector3.new(20,50,20) end end noBoom = function() if Cone then local x = Cone Cone = nil for i = 1,20 do wait() x.Mesh.Scale = x.Mesh.Scale + Vector3.new(-.5,1,-.5) x.Transparency = x.Transparency + 1/30 end end end sets1 = Instance.new("Sound",c.Torso) sets1.SoundId="rbxassetid://400523331" sets1.Volume=100 sets1.Pitch=0.7 sets = Instance.new("Sound",c.Torso) sets.SoundId="rbxassetid://400523331" sets.Volume=100 sets.Pitch=0.7 gasterBlast = function(tCFrame,aimPos,charge) local aimTarget if aimPos then aimTarget = CFrame.new(tCFrame,aimPos) else aimTarget = tCFrame end local gast = Instance.new("Part",c) gast.Size = Vector3.new(12,.2,12) gast.CanCollide = false gast.Anchored = true gast.Transparency = 1 --[[if charge then playSound(400523331,gast,math.random(90,110)/100) end]] sets1:Play() --wait() gast.CFrame = CFrame.new(aimTarget.p - Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10)) spawn(function() local tarCFrame = gast.CFrame local isLooping = true spawn(function() while rs.RenderStepped:wait() and isLooping do gast.CFrame = gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60)) end end) for i = 1,30 do wait() tarCFrame = gast.CFrame:lerp(aimTarget,.24) end isLooping = false local ray = Ray.new(aimTarget.p,aimTarget.lookVector.unit * 999) local _, pos = workspace:FindPartOnRay(ray,c) local dis = (aimTarget.p - pos).magnitude local rayCFrame = CFrame.new(gast.CFrame.p + (pos - gast.CFrame.p).unit * (dis/2 + 200),gast.CFrame.p + (pos - gast.CFrame.p).unit * dis * 2) * CFrame.Angles(0,math.pi/2,0) local rayPart = Instance.new("Part",rayModel) rayPart.Material = "Neon" rayPart.FormFactor = "Custom" rayPart.BrickColor = BrickColor.new("Really red") --Color = a(); rayPart.Anchored = true rayPart.CanCollide = false rayPart.Shape = "Cylinder" rayPart.Size = Vector3.new(dis + 400,8,8) rayPart.CFrame = rayCFrame gast:Destroy() end) end largegasterBlast = function(tCFrame,aimPos) local aimTarget if aimPos then aimTarget = CFrame.new(tCFrame,aimPos) else aimTarget = tCFrame end local gast = Instance.new("Part",c) gast.Size = Vector3.new(25,.2,25) gast.CanCollide = false gast.Anchored = true gast.Transparency = 1 --playSound(400523331,gast,math.random(85,97)/100) sets:Play() wait() gast.CFrame = CFrame.new(aimTarget.p - Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10)) spawn(function() local tarCFrame = gast.CFrame local isLooping = true spawn(function() while rs.RenderStepped:wait() and isLooping do gast.CFrame = gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60)) end end) for i = 1,40 do wait() tarCFrame = gast.CFrame:lerp(aimTarget,.18) end --playSound(340722848,gast,math.random(80,95)/100) isLooping = false local ray = Ray.new(aimTarget.p,aimTarget.lookVector.unit * 999) local _, pos = workspace:FindPartOnRay(ray,c) local dis = (aimTarget.p - pos).magnitude local rayCFrame = CFrame.new(gast.CFrame.p + (pos - gast.CFrame.p).unit * (dis/2 + 200),gast.CFrame.p + (pos - gast.CFrame.p).unit * dis * 2) * CFrame.Angles(0,math.pi/2,0) local rayPart = Instance.new("Part",rayModel) rayPart.Material = "Neon" rayPart.FormFactor = "Custom" rayPart.BrickColor = BrickColor.new("Really red") --Color = a(); rayPart.Anchored = true rayPart.CanCollide = false rayPart.Shape = "Cylinder" rayPart.Size = Vector3.new(dis + 400,17,17) rayPart.CFrame = rayCFrame gast:Destroy() end) end -------------------------------------------------------- prepareCharacter() -------------------------------------------------------- spawn(function() local sine = 0 while wait() do if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.Debounce == false and Debounces.isJumping == false then setLerp(.8) local spasm = math.abs(math.sin(tick()*20))*1.1 local spasm2 = math.abs(math.sin(tick()*20-2))*1.1 local spasm3 = math.abs(math.sin(tick()*20-2.3))*1.1 setJointCFrames({ CFrame.new(Vector3.new(0, 0-spasm, 0)) * CFAngles(Vector3.new(0, 0, 0)); CFrame.new(Vector3.new(0, 1.5, 0)) * CFAngles(Vector3.new(-0.011, -0.502, -1.177)); CFrame.new(Vector3.new(-1.5-spasm2^2/3, -0.001, 0)) * CFAngles(Vector3.new(-2.344, 7.899, -2.82+spasm3^2*-60)); CFrame.new(Vector3.new(1.569+spasm2^2/3, 0, -0.1)) * CFAngles(Vector3.new(4.822, 1.123, 6.383+spasm3^2*60)); CFrame.new(Vector3.new(-0.61, -2+spasm/1.01, -.15)) * CFAngles(Vector3.new(-2.206, 0.767, -0.582)); CFrame.new(Vector3.new(0.55, -2+spasm/1.01, -.1)) * CFAngles(Vector3.new(-0.026, 0.463, 3.184)); }) elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.Debounce == false and Debounces.isSprinting == false and Debounces.isJumping == false then sine = tick()*18 human.WalkSpeed = 45 setLerp(.35) setJointCFrames({ CFrame.new(Vector3.new(0, math.sin(sine)/50-.3, 0)) * CFAngles(Vector3.new(-30-math.sin(sine*2)*3, math.sin(sine*2)*15, 0)); CFrame.new(Vector3.new(0, 1.48, 0.099)) * CFAngles(Vector3.new(14.999, -0.001, 0)); CFrame.new(Vector3.new(-1.5, -0.001, 0.2+math.sin(sine*2+math.pi)*1.2)) * CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90, 0, -15)); CFrame.new(Vector3.new(1.5, -0.001, 0.2+math.sin(sine*2)*1.2)) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-90, -0.001, 14.999)); CFrame.new(Vector3.new(-0.501, -2+math.cos(sine*2+math.pi)/3, .3+math.sin(sine*2))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-70, 0, -0.001)); CFrame.new(Vector3.new(0.499, -2+math.cos(sine*2)/3, .3+math.sin(sine*2+math.pi))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*70, 0, 0)); }) elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.Debounce == false and Debounces.isSprinting == true and Debounces.isJumping == false then sine = tick()*28 human.WalkSpeed = 30 lerpBoom() setLerp(.65) setJointCFrames({ CFrame.new(Vector3.new(0, math.sin(sine)/50-.3, 0)) * CFAngles(Vector3.new(-30-math.sin(sine*2)*3, math.sin(sine*2)*15, 0)); CFrame.new(Vector3.new(0, 1.48, 0.099)) * CFAngles(Vector3.new(14.999, -0.001, 0)); CFrame.new(Vector3.new(-1.5, -0.001, 0.2+math.sin(sine*2+math.pi)*1.2)) * CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90, 0, -15)); CFrame.new(Vector3.new(1.5, -0.001, 0.2+math.sin(sine*2)*1.2)) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-90, -0.001, 14.999)); CFrame.new(Vector3.new(-0.501, -2+math.cos(sine*2+math.pi)/3, .3+math.sin(sine*2))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*-70, 0, -0.001)); CFrame.new(Vector3.new(0.499, -2+math.cos(sine*2)/3, .3+math.sin(sine*2+math.pi))) * CFAngles(Vector3.new(-25+math.sin(sine*2)*70, 0, 0)); }) elseif Debounces.isJumping == true and Debounces.Debounce == false then setLerp(.14) human.WalkSpeed = 45 setJointCFrames({ CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0)); CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306)); CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704)); CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416)); CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249)); CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776)); }) end end end) human.Changed:connect(function(prop) if prop == "MoveDirection" then if human.MoveDirection.magnitude > .02 then Debounces.isMoving = true else Debounces.isMoving = false end end end) uinps.InputBegan:connect(function(InputObj) if InputObj.KeyCode == Enum.KeyCode.Slash then local finishEvent = nil Debounces.isTyping = true finishEvent = uinps.InputBegan:connect(function(InputObj) if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then Debounces.isTyping = false finishEvent:disconnect() end end) end end) mouse.KeyDown:connect(function(key) if key == "0" then Debounces.isSprinting = true --playSound(160248522,c.Torso) sets:Play() for i = 1,3 do spawn(function() local e = Instance.new("Part",c) e.Size = Vector3.new(1,1,1) e.Material = "Neon" e.BrickColor = BrickColor.new("Really red") --Color = a(); e.Anchored = true e.CFrame = c.HumanoidRootPart.CFrame * CFrame.Angles(0,0,-math.pi/2) e.CanCollide = false local rm = Instance.new("SpecialMesh",e) rm.MeshType = "FileMesh" rm.MeshId = "rbxassetid://3270017" rm.Scale = Vector3.new(3.2,3.2,10) for x = 1,30 do wait() rm.Scale = rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1) e.Transparency = x/30+.5 end end) end c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector * 200 end end) mouse.KeyUp:connect(function(key) if key == "0" then Debounces.isSprinting = false end end) mouse.KeyDown:connect(function(key) if key == "v" then --playSound(201858087,c.Torso,math.random(90,120)/100) sets:Play() local oldPos = c.HumanoidRootPart.CFrame.p local mHit = mouse.Hit.p for i = 1,2 do spawn(function() local pos if i == 1 then pos = oldPos else pos = mHit end local p = Instance.new("Part",workspace) p.Anchored = true p.CanCollide = false p.BrickColor = BrickColor.new("Really red") --Color = a(); p.FormFactor = "Custom" p.CFrame = CFrame.new(pos + Vector3.new(0,500,0)) p.Transparency = .4 p.Size = Vector3.new(20,1000,20) for i = 1,20 do wait() p.Transparency = .4 + (i/10)*.6 p.Size = Vector3.new(20-i*1.5,1000,20-i*1.5) p.CFrame = CFrame.new(pos + Vector3.new(0,500,0)) end p:Destroy() end) end if Debounces.isMoving then c.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p + Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z)) else c.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p + Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z)) end end end) mouse.KeyDown:connect(function(key) if key == "r" then local pointTarget = mouse.Hit.p for i = 1,20 do wait() gasterBlast(CFrame.new(pointTarget + Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget)) end wait() largegasterBlast(CFrame.new(pointTarget + Vector3.new(0,35,0),pointTarget)) end end) mouse.KeyDown:connect(function(key) if key == "f" then local pointTarget = mouse.Hit.p for i = 1,20 do wait() gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p + Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i))) end largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p + Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25))) end end) mouse.Button1Down:connect(function() Debounces.isFlash = true end) mouse.Button1Up:connect(function() Debounces.isFlash = false end) mouse.KeyDown:connect(function(key) if key == "k" then if music.isPlaying then music:Stop() else music:Play() end end end) mouse.KeyDown:connect(function(key) if key == "j" then if music2.isPlaying then music2:Stop() else music2:Play() end end end) mouse.KeyDown:connect(function(key) if key == "l" then if music3.isPlaying then music3:Stop() else music3:Play() end end end) mouse.KeyDown:connect(function(key) if key == "p" then if music4.isPlaying then music4:Stop() else music4:Play() end end end) mouse.KeyDown:connect(function(key) if key == "o" then if music5.isPlaying then music4:Stop() else music5:Play() end end end) mouse.KeyDown:connect(function(key) if key == "e" then gasterBlast(c.Torso.CFrame.p + Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true) end end) mouse.KeyDown:connect(function(key) if key == "c" then largegasterBlast(c.Torso.CFrame.p + Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p) end end) mouse.KeyDown:connect(function(key) if key == "q" then for i = 1,5 do wait() gasterBlast(c.Torso.CFrame.p + Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p) end largegasterBlast(c.Torso.CFrame.p + Vector3.new(0,25,0),mouse.Hit.p) end end) mouse.KeyDown:connect(function(key) if key == "t" then local pointTarget = mouse.Hit.p for i = 1,20 do gasterBlast(pointTarget + Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget) end wait(.2) for i = 1,10 do largegasterBlast(pointTarget + Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget) end end end) human.StateChanged:connect(function(os,ns) if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then Debounces.isJumping = false end end) for i = 1,#Joints do Joints[i].C1 = CFrameZero() end rs.RenderStepped:connect(function() Debounces.FPS = 1/rs.RenderStepped:wait() if Debounces.FPS < 30 then Debounces.FPS = 30 end if Debounces.isSprinting then lerpBoom() else noBoom() end for _,v in pairs (rayModel:children()) do v.Transparency = v.Transparency + .06/(Debounces.FPS/60) if v.Transparency > .99 then v:Destroy() return end v.CanCollide = true local tParts = v:GetTouchingParts() v.CanCollide = false local vCFrame = v.CFrame v.Size = v.Size + Vector3.new(0,1,1)/(Debounces.FPS/60) v.CFrame = vCFrame for _,x in pairs (tParts) do if x and x.Parent and x.Parent:FindFirstChild("Humanoid") and x.Parent.Humanoid:isA'Humanoid' and x.Parent ~= c then x.Parent.Humanoid:TakeDamage(1,2) end end end local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60) for i = 1,#Joints do Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp) end end)
return { entities = { {"transport-belt", {x = 9.5, y = -14.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 9.5, y = -15.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 5.5, y = -12.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = -12.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 6.5, y = -12.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 9.5, y = -13.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 9.5, y = -12.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 8.5, y = -12.5}, {dir = "west", dead = 0.6, }}, {"lab", {x = -10.5, y = -9.5}, {dead = 0.6, }}, {"lab", {x = -6.5, y = -9.5}, {dead = 0.6, }}, {"fast-inserter", {x = -4.5, y = -10.5}, {dir = "west", dead = 0.6, }}, {"lab", {x = -2.5, y = -9.5}, {dead = 0.6, }}, {"lab", {x = 1.5, y = -9.5}, {dead = 0.6, }}, {"fast-inserter", {x = 3.5, y = -10.5}, {dir = "west", }}, {"fast-inserter", {x = 5.5, y = -11.5}, {}}, {"lab", {x = 5.5, y = -9.5}, {dead = 0.6, }}, {"fast-inserter", {x = 6.5, y = -11.5}, {}}, {"small-electric-pole-remnants", {x = -4.5, y = -9.5}, {}}, {"fast-inserter", {x = -0.5, y = -8.5}, {dir = "west", dead = 0.6, }}, {"small-electric-pole-remnants", {x = 3.5, y = -9.5}, {}}, {"fast-inserter", {x = 3.5, y = -8.5}, {dir = "west", }}, {"transport-belt", {x = 13.5, y = -8.5}, {dead = 0.6, }}, {"fast-inserter", {x = -10.5, y = -7.5}, {dir = "south", dead = 0.6, }}, {"lab", {x = -10.5, y = -5.5}, {dead = 0.6, }}, {"small-electric-pole-remnants", {x = -8.5, y = -7.5}, {}}, {"fast-inserter", {x = -8.5, y = -6.5}, {dir = "east", dead = 0.6, }}, {"lab", {x = -6.5, y = -5.5}, {dead = 0.6, }}, {"fast-inserter", {x = -4.5, y = -6.5}, {dir = "east", dead = 0.6, }}, {"lab", {x = -2.5, y = -5.5}, {dead = 0.6, }}, {"lab", {x = 1.5, y = -5.5}, {dead = 0.6, }}, {"fast-inserter", {x = 3.5, y = -6.5}, {dir = "east", dead = 0.6, }}, {"fast-inserter", {x = 4.5, y = -7.5}, {dead = 0.6, }}, {"small-electric-pole-remnants", {x = 5.5, y = -7.5}, {}}, {"lab", {x = 5.5, y = -5.5}, {dead = 0.6, }}, {"fast-inserter", {x = 6.5, y = -7.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -7.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -6.5}, {dead = 0.6, }}, {"small-electric-pole-remnants", {x = -4.5, y = -5.5}, {}}, {"small-electric-pole-remnants", {x = -0.5, y = -5.5}, {}}, {"small-electric-pole-remnants", {x = 3.5, y = -5.5}, {}}, {"fast-inserter", {x = 3.5, y = -4.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -5.5}, {}}, {"transport-belt", {x = 13.5, y = -4.5}, {dead = 0.6, }}, {"transport-belt", {x = -11.5, y = -3.5}, {dir = "east", }}, {"transport-belt", {x = -10.5, y = -3.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -9.5, y = -3.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -8.5, y = -3.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -7.5, y = -3.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -6.5, y = -3.5}, {dir = "east", }}, {"transport-belt", {x = -5.5, y = -3.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -4.5, y = -3.5}, {dir = "south", }}, {"transport-belt", {x = -4.5, y = -2.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -3.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -2.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = -1}, {}}, {"train-stop-remnants", {x = -11, y = -1}, {}}, {"transport-belt", {x = -4.5, y = -1.5}, {dir = "south", }}, {"transport-belt", {x = -4.5, y = -0.5}, {dir = "south", dead = 0.6, }}, {"small-electric-pole-remnants", {x = 5.5, y = -1.5}, {}}, {"radar", {x = 7.5, y = 0.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -1.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = -0.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 1}, {}}, {"transport-belt", {x = -4.5, y = 0.5}, {dir = "south", }}, {"transport-belt", {x = -4.5, y = 1.5}, {dir = "south", dead = 0.6, }}, {"stone-furnace", {x = -1, y = 2}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = 0.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = 1.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 3}, {}}, {"transport-belt", {x = -8.5, y = 2.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -7.5, y = 2.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -6.5, y = 2.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -4.5, y = 2.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -4.5, y = 3.5}, {dead = 0.6, }}, {"transport-belt", {x = -5.5, y = 3.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = -5.5, y = 2.5}, {dir = "south", }}, {"transport-belt", {x = -3.5, y = 2.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = -3.5, y = 3.5}, {dir = "south", dead = 0.6, }}, {"stone-furnace", {x = -1, y = 4}, {dead = 0.6, }}, {"small-electric-pole-remnants", {x = 0.5, y = 3.5}, {}}, {"fast-inserter", {x = 0.5, y = 2.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 3.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 13.5, y = 2.5}, {dead = 0.6, }}, {"transport-belt", {x = 13.5, y = 3.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 5}, {}}, {"small-electric-pole-remnants", {x = -2.5, y = 5.5}, {}}, {"transport-belt", {x = -3.5, y = 5.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = -3.5, y = 4.5}, {dir = "south", dead = 0.6, }}, {"fast-inserter", {x = -2.5, y = 4.5}, {dir = "west", }}, {"stone-furnace", {x = -1, y = 6}, {dead = 0.6, }}, {"fast-inserter", {x = 0.5, y = 4.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 4.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 5.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 4.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 5.5}, {dead = 0.6, }}, {"transport-belt", {x = 9.5, y = 4.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = 8.5, y = 4.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = 11.5, y = 4.5}, {dir = "east", dead = 0.6, }}, {"transport-belt", {x = 10.5, y = 4.5}, {dir = "east", }}, {"transport-belt", {x = 13.5, y = 4.5}, {}}, {"transport-belt", {x = 12.5, y = 4.5}, {dir = "east", dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 7}, {}}, {"transport-belt", {x = -3.5, y = 6.5}, {dir = "south", dead = 0.6, }}, {"fast-inserter", {x = -2.5, y = 6.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = -3.5, y = 7.5}, {dir = "south", dead = 0.6, }}, {"stone-furnace", {x = -1, y = 8}, {dead = 0.6, }}, {"small-electric-pole-remnants", {x = 0.5, y = 7.5}, {}}, {"transport-belt", {x = 1.5, y = 6.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 7.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 6.5}, {dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 7.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 9}, {}}, {"transport-belt", {x = -3.5, y = 9.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = -3.5, y = 8.5}, {dir = "south", dead = 0.6, }}, {"stone-furnace", {x = -1, y = 10}, {dead = 0.6, }}, {"fast-inserter", {x = 0.5, y = 8.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 8.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 9.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 8.5}, {}}, {"transport-belt", {x = 7.5, y = 9.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 11}, {}}, {"small-electric-pole-remnants", {x = -2.5, y = 11.5}, {}}, {"transport-belt", {x = -3.5, y = 11.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = -3.5, y = 10.5}, {dir = "south", dead = 0.6, }}, {"fast-inserter", {x = -2.5, y = 10.5}, {dir = "west", dead = 0.6, }}, {"stone-furnace", {x = -1, y = 12}, {dead = 0.6, }}, {"small-electric-pole-remnants", {x = 0.5, y = 11.5}, {}}, {"transport-belt", {x = 1.5, y = 11.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 10.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 10.5}, {}}, {"transport-belt", {x = 7.5, y = 11.5}, {dead = 0.6, }}, {"straight-rail-remnants", {x = -13, y = 13}, {}}, {"fast-inserter", {x = -2.5, y = 12.5}, {dir = "west", }}, {"transport-belt", {x = -3.5, y = 13.5}, {dir = "south", dead = 0.6, }}, {"transport-belt", {x = -3.5, y = 12.5}, {dir = "south", dead = 0.6, }}, {"stone-furnace", {x = -1, y = 14}, {}}, {"transport-belt", {x = 1.5, y = 13.5}, {dir = "south", dead = 0.6, }}, {"fast-inserter", {x = 0.5, y = 12.5}, {dir = "west", dead = 0.6, }}, {"fast-inserter", {x = 0.5, y = 13.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 1.5, y = 12.5}, {dir = "south", dead = 0.6, }}, {"assembling-machine-2", {x = 4.5, y = 13.5}, {dead = 0.6, }}, {"fast-inserter", {x = 2.5, y = 13.5}, {dir = "west", dead = 0.6, }}, {"transport-belt", {x = 7.5, y = 12.5}, {dead = 0.6, }}, {"fast-inserter", {x = 6.5, y = 12.5}, {dir = "west", dead = 0.6, }}, }, }
do TestSkynetIADSAbstractDCSObjectWrapper = {} function TestSkynetIADSAbstractDCSObjectWrapper:setUp() self.abstractObjectWrapper = SkynetIADSAbstractDCSObjectWrapper:create(Unit.getByName('EW-SA-6')) end function TestSkynetIADSAbstractDCSObjectWrapper:tearDown() end function TestSkynetIADSAbstractDCSObjectWrapper:testGetName() lu.assertEquals(self.abstractObjectWrapper:getName(), 'EW-SA-6') self.abstractObjectWrapper.dcsObject = nil --test to see if name is still returned after object wrapped is nil lu.assertEquals(self.abstractObjectWrapper:getName(), 'EW-SA-6') end function TestSkynetIADSAbstractDCSObjectWrapper:testGetTypeName() lu.assertEquals(self.abstractObjectWrapper:getTypeName(), 'Kub 1S91 str') self.abstractObjectWrapper.dcsObject = nil lu.assertEquals(self.abstractObjectWrapper:getTypeName(), 'Kub 1S91 str') end function TestSkynetIADSAbstractDCSObjectWrapper:testIsExist() lu.assertEquals(self.abstractObjectWrapper:isExist(), true) self.abstractObjectWrapper.dcsObject = nil lu.assertEquals(self.abstractObjectWrapper:isExist(), false) end function TestSkynetIADSAbstractDCSObjectWrapper:testGetDCSRepesentation() lu.assertEquals(self.abstractObjectWrapper:getDCSRepresentation(), Unit.getByName('EW-SA-6')) end end
------------------------------------------------------------------------------- -- ElvUI Raid Markers Bar By Crackpotx -- Contains modifications graciously provided by Dridzt! ------------------------------------------------------------------------------- local E, _, V, P, G, _ = unpack(ElvUI) local L = LibStub("AceLocale-3.0"):GetLocale("ElvUI_RaidMarkers", false) local DT = E:GetModule("DataTexts") local TargetFrame = CreateFrame("Frame", "ElvUI_RaidMarkersDatatextTargetFrame", E.UIParent, "UIDropDownMenuTemplate") local LocationFrame = CreateFrame("Frame", "ElvUI_RaidMarkersDatatextLocationFrame", E.UIParent, "UIDropDownMenuTemplate") -- local api cache local IsShiftKeyDown = _G["IsShiftKeyDown"] local PlaceRaidMarker = _G["PlaceRaidMarker"] local SetRaidTarget = _G["SetRaidTarget"] local UIDropDownMenu_AddButton = _G["UIDropDownMenu_AddButton"] local UnitExists = _G["UnitExists"] local join = string.join local wipe = table.wipe local displayString = "" local markerMap = { [1] = {Name = L["Star"], RT = 1, WM = 5}, -- yellow/star [2] = {Name = L["Circle"], RT = 2, WM = 6}, -- orange/circle [3] = {Name = L["Diamond"], RT = 3, WM = 3}, -- purple/diamond [4] = {Name = L["Triangle"], RT = 4, WM = 2}, -- green/triangle [5] = {Name = L["Moon"], RT = 5, WM = 7}, -- white/moon [6] = {Name = L["Square"], RT = 6, WM = 1}, -- blue/square [7] = {Name = L["Red X"], RT = 7, WM = 4}, -- red/cross [8] = {Name = L["Skull"], RT = 8, WM = 8}, -- white/skull [9] = {Name = L["Remove Marker"], RT = 0, WM = 0}, -- clear target/flare } local function TargetClick(button, id) SetRaidTarget(UnitExists("target") and "target" or "player") end local function CreateTargetMenu(self, level) for i = 9, 1, -1 do UIDropDownMenu_AddButton({ text = markerMap[i].Name, icon = i == 9 and "Interface\\BUTTONS\\UI-GroupLoot-Pass-Up" or ("Interface\\TargetingFrame\\UI-RaidTargetingIcon_%d"):format(i), func = TargetClick, arg1 = markerMap[i].RT, hasArrow = false, notCheckable = true, }, 1) end end local function LocationClick(button, id) PlaceRaidMarker(id) end local function CreateLocationMenu(self, level) for i = 9, 1, -1 do UIDropDownMenu_AddButton({ text = markerMap[i].Name, icon = i == 9 and "Interface\\BUTTONS\\UI-GroupLoot-Pass-Up" or ("Interface\\TargetingFrame\\UI-RaidTargetingIcon_%d"):format(i), func = LocationClick, arg1 = markerMap[i].WM, hasArrow = false, notCheckable = true, }, 1) end end local function OnEvent(self, ...) self.text:SetText(displayString:format(L["Raid Markers"])) end local function OnEnter(self) DT:SetupTooltip(self) DT.tooltip:AddLine(("%s%s|r |cffffffff%s|r"):format(hexColor, L["ElvUI"], L["Raid Markers"])) DT.tooltip:AddLine(" ") DT.tooltip:AddDoubleLine(L["Left Click"], L["Open Target Marker List"], 1, 1, 0, 1, 1, 1) --DT.tooltip:AddDoubleLine(L["Right Click"], L["Open Location Marker List"], 1, 1, 0, 1, 1, 1) DT.tooltip:AddDoubleLine(L["Shift + Left Click"], L["Clear Target Marker"], 1, 1, 0, 1, 1, 1) --DT.tooltip:AddDoubleLine(L["Shift + Right Click"], L["Clear All Location Markers"], 1, 1, 0, 1, 1, 1) DT.tooltip:Show() end local function OnClick(self, button) DT.tooltip:Hide() if button == "LeftButton" then if IsShiftKeyDown() then TargetClick(button, 0) else -- show the target menu CreateTargetMenu() ToggleDropDownMenu(1, nil, TargetFrame, self, 0, 0) end elseif button == "RightButton" then if IsShiftKeyDown() then LocationClick(button, 0) else -- show the location marker menu --CreateLocationMenu() --ToggleDropDownMenu(1, nil, LocationFrame, self, 0, 0) end end end local function ValueColorUpdate(hex, r, g, b) displayString = join("", hex, "%s|r") hexColor = hex if lastPanel ~= nil then OnEvent(lastPanel, "ELVUI_COLOR_UPDATE") end end E["valueColorUpdateFuncs"][ValueColorUpdate] = true TargetFrame:RegisterEvent("PLAYER_ENTERING_WORLD") TargetFrame:SetScript("OnEvent", function(self, event, ...) self.initialize = CreateTargetMenu self.displayMode = "MENU" self:UnregisterEvent("PLAYER_ENTERING_WORLD") end) LocationFrame:RegisterEvent("PLAYER_ENTERING_WORLD") LocationFrame:SetScript("OnEvent", function(self, event, ...) self.initialize = CreateLocationMenu self.displayMode = "MENU" self:UnregisterEvent("PLAYER_ENTERING_WORLD") end) DT:RegisterDatatext("Raid Markers", nil, {"PLAYER_ENTERING_WORLD"}, OnEvent, nil, OnClick, OnEnter, nil, L["Raid Markers"]) --DT:RegisterDatatext(L["Raid Markers"], {"PLAYER_ENTERING_WORLD"}, OnEvent, nil, OnClick, OnEnter)
--------------------------------- -- INIT --------------------------------- --get the addon namespace local addon, ns = ... --get rBBS namespace local rBBS = ns.rBBS or rBBS --get the cfg local cfg = ns.cfg --------------------------------- -- SPAWN --------------------------------- --spawn the drag frame local dragframe = rBBS:spawnDragFrame(addon, cfg.dragframe) --spawn actionbar background rBBS:spawnFrame(addon, cfg.actionbarbg, dragframe) --spawn angel rBBS:spawnFrame(addon, cfg.angel, dragframe) --spawn demon rBBS:spawnFrame(addon, cfg.demon, dragframe)