-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathskrypty.lua
48 lines (39 loc) · 1.02 KB
/
skrypty.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
scripts = scripts or { ver = "4.93" }
scripts.event_handlers = scripts.event_handlers or {}
function alias_func_skrypty_help()
scripts:print_help()
end
function alias_func_skrypty_aliasy_help()
scripts:alias_print_help()
end
function alias_func_skrypty_bindy_help()
scripts.keybind:print_help()
end
function alias_func_skrypty_fake()
local s = matches[2]
s = string.gsub(s, "%$", "\n")
feedTriggers("\n" .. s .. "\n")
echo("\n")
end
function alias_func_skrypty_fake_combat(s)
s = string.gsub(s, "%$", "\n")
gmcp = {
gmcp_msgs = {
text = enc(s .. "\n"),
type = "combat.avatar"
}
}
raiseEvent("gmcp.gmcp_msgs", gmcp)
echo("\n")
end
function alias_func_skrypty_lua_code()
local f, e = loadstring("return " .. matches[2])
if not f then
f, e = assert(loadstring(matches[2]))
end
local r = f()
if r ~= nil then display(r) end
end
function timer_func_skrypty_lamp_info_timer()
scripts.inv.lamp:process_lamp_counter()
end