mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Added basic table.equals, dontSignal param to combobox calls & spell methods.
This commit is contained in:
@@ -182,3 +182,14 @@ function table.collect(t, func)
|
||||
return res
|
||||
end
|
||||
|
||||
function table.equals(t, comp)
|
||||
local equals = false
|
||||
if type(t) == "table" and type(comp) == "table" then
|
||||
for k,v in pairs(t) do
|
||||
if v == comp[k] then
|
||||
equals = true
|
||||
end
|
||||
end
|
||||
end
|
||||
return equals
|
||||
end
|
Reference in New Issue
Block a user