Add it on 050-functions.lua
(last line)
Use like this:
Or:
(last line)
LUA:
function choose(...) -- by mock
local arg = {...}
return arg[math.random(1,#arg)]
end
LUA:
--> lower:
function choose(...) -- by mock
return ({...})[math.random(1,#arg)]
end
LUA:
doSendMagicEffect(pos,choose(50,29,11,49))
LUA:
doCreatureSay(cid,'I am '..choose('a bear','a man','a LOL'),1)
Last edited: