mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
Add/get table functions implemented on ext charlist
This commit is contained in:
@@ -244,6 +244,22 @@ function fromboolean(boolean)
|
||||
end
|
||||
end
|
||||
|
||||
function booleantonumber(boolean)
|
||||
if boolean then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
function numbertoboolean(number)
|
||||
if number ~= 0 then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
function signalcall(param, ...)
|
||||
if type(param) == 'function' then
|
||||
local status, ret = pcall(param, ...)
|
||||
|
||||
Reference in New Issue
Block a user