Hiya!
How i make new commands??
Ex:
!garfield
!daynews
etc etc etc ???
Thanks!
;)
click here (http://www.lua.org/manual/4.0/manual.html)
little template for ya
function DataArrival(user,data)
if strsub(vardy, 1, 1) == "<" then local vardy=strsub(vardy,1,strlen(vardy)-1)
local s,e,cmd = strfind(vardy, "%b<>%s+(%S+)")
if cmd == "!acommand" then
--//todo code
elseif cmd == "!bcommand" then
--//todo code
end; end; end;
cya
Thanks.....
But. one more question..
where i put this code (uk-kingdom)pH?tt? ?(
??????Hawk??????
Thanks for manual, but my english isin't good... it's very hard to me understand all the words there! :P
;(
in a file with a extension .lua
Try to explain what you want those commands to do and we can provide better examples ..
**Snooze
- Wanna learn lua ?
- Just hang here for a few weeks :D