Hello, i'm doing the biggest and most better open tibia functions lib. It will be called Open tibia advanced lib.
I'm finishing this project, my project it's only form otservers, but i need your help! My lib contais around 169 functions but if you want help show-me your lua function to i insert on the lib, i will not remove your credits!
I'm planning lunch it in around 4 days, Skyen hasus, magus, nord and others users from others forums is helping me with many functions like isWalkable, var_dump etc...
Here it's the current lua functions list:
Many unsefull functions, old luasql lib, lua ex, Lua socket (i will post an server chat you can connect in another server and create an channel with 2 servers, and you can trade items with servers not in same PC)
and many other functions.
If you want your function on this list it's just say
Tested in:
Open tibia
TFS 0.3.4 --> dont use on tfs 0.3.5 because TFS with or without lib crashes alot.
Self instalattion:
Otal's website http://otal.leadhoster.com/index.php
I'm finishing this project, my project it's only form otservers, but i need your help! My lib contais around 169 functions but if you want help show-me your lua function to i insert on the lib, i will not remove your credits!
I'm planning lunch it in around 4 days, Skyen hasus, magus, nord and others users from others forums is helping me with many functions like isWalkable, var_dump etc...
Here it's the current lua functions list:
LUA:
--- Xmls
xml:open(file[,kind])
xml:setSess(sessname,tagname,name)
xml:getSess(SessName)
xml:readSess(SessName)
xml:readFree(tagname)
--- Vip
vip.getVip(cid)
vip.getVipByAcc(acc)
vip.setVip(cid,time)
vip.getVipByAccount(acc)
vip.hasVip(cid)
vip.accountHasVip(acc)
vip.getDays(days)
vip.addVipByAccount(acc,time)
vip.setVipByAccount(acc,time)
vip.returnVipString(cid)
-- Tibia
doScrollMessage(uid, message)
doSummonCreatureWithCheck(name, pos)
isLevel(cid,level)
stringcontains(txt, str)
isWalkable(pos)
getStringCount(msg)
isOnline(name)
getAccountStorageValue(accid,value_id)
setAccountStorageValue(accid,value_id,value)
doInArea(pos,radius,luaString,var)
setPlayerName(cid,name,msg)
string.trim(str)
string.explode(str, sep[,limit])
doActionForAllPlayers(luaString)
isWeapon(uid)
isArmor(uid)
hasSqm(pos)
getFileString(file[,limit])
getPlayerInfo(cid,val)
executeInArea(cmd, pos, area)
math.percent(v, t, f)
math.module(x)
findItemById(pos, id)
math.interval(x, y)
doPlayerAddDepotItem(cid, item, count)
getInstantSpells(vocid)
setPlayerRecoveryKey(cid)
getPlayerTotalDefense(cid)
ddNumberOnArray(array, number)
getArrPosByName(array, name)
getCountOnArr(array, search)
doCalculateArray(array, calc)
changeLookDir(cid, dir)
getLuaFunctions()
doFindItemInPos(itens, pos)
doDelayAttack(cid, delay, min, max, type, effect, projectile, frompos, topos)
tableToString(tb)
saveTable(table,name)
getTable(name)
getItemIdByName2(name)
string.expand(s)
var_dump(...)
printT(tx,t)
string.impode(arr,sep)
doWriteLogFile(file, text,line)
getDirFiles(dir, ext)
getItemIdByName2(name)
getPlayerTotalArmor(cid)
getPlayerTotalAttack(cid)
--- Socket
-- Dns
socket.dns.toip(ip)
socket.dns.gethostname()
socket.dns.tohostname(address)
-- Mime functions
mime.normalize([marker])
mime.decode(vr)
mime.encode(vt)
mime.stuff()
mime.wrap("text" [, length])
mime.b64(C [, D])
mime.dot(m [, B])
mime.eol(C [, D, marker])
mime.qp(C [, D, marker])
mime.qpwrp(n [, B, length])
mime.unb64(C [, D])
mime.unqp(C [, D])
mime.wrp(n [, B, length])
-- Socket
socket.bind(address, port [, backlog])
socket.connect(address, port [, locaddr, locport])
socket.newtry(finalizer)
socket.protect(func)
socket.select(recvt, sendt [, timeout])
socket.sink(mode, socket)
socket.skip(d [, ret1, ret2 ... retN])
socket.sleep(time)
socket.source(mode, socket [, length])
socket.gettime()
socket.try(ret1 [, ret2 ... retN])
-- Tcp functions
socket.tcp()
server:accept()
master:bind(address, port)
master:close()
master:connect(address, port)
client:getpeername()
master:getsockname()
master:getstats()
master:listen(backlog)
client:receive([pattern [, prefix]])
client:send(data [, i [, j]])
client:setoption(option [, value])
master:setstats(received, sent, age)
master:settimeout(value [, mode])
client:shutdown(mode)
-- Udp functions
socket.udp()
connected:close()
connected:getpeername()
connected:getsockname()
connected:receive([size])
unconnected:receivefrom([size])
connected:send(datagram)
unconnected:sendto(datagram, ip, port)
unconnected:setpeername(address, port)
connected:setpeername('*')
unconnected:setsockname(address, port)
connected:setoption(option [, value])
connected:settimeout(value)
--- Ex lib
ex.getenv(name)
ex.setenv(name, value)
ex.environ()
ex.chdir(pathname)
ex.mkdir(pathname)
ex.currentdir()
ex.dir(pathname)
ex.dirent(pathname)
ex.lock(file, mode, offset, length)
ex.unlock(file, offset, length)
ex.pipe()
ex.sleep(interval, [unit])
ex.spawn(...)
ex.wait(proc)
--- Luasql
conn:close()
conn:commit()
conn:execute(statement)
conn:rollback()
conn:setautocommit(boolean)
cur:close()
cur:fetch([table[,modestring]])
cur:getcolnames()
cur:numrows()
env:connect(sourcename[,username[,password[,hostname[,port]]]])
--- Rings
rings.new (env)
state:close ()
state:dostring (string, ...)
remotedostring (string, ...)
stable.get (key)
stable.set (key, value)
--- Coexpcall [url]http://coxpcall.luaforge.net/index.htm[/url]
coxpcall(f, err)
copcall(f, ...)
--- Copas [url]http://www.keplerproject.org/copas/index.html[/url] (Coroutine Oriented Portable Asynchronous Services)
copas.addserver(server, handler[, timeout])
copas.addthread(thrd[, ...])
copas.loop(timeout)
copas.step(timeout)
copas.flush(skt)
copas.receive(skt, pattern)
copas.send(skt, data)
copas.wrap(skt)
Many unsefull functions, old luasql lib, lua ex, Lua socket (i will post an server chat you can connect in another server and create an channel with 2 servers, and you can trade items with servers not in same PC)
and many other functions.
If you want your function on this list it's just say
Tested in:
Open tibia
TFS 0.3.4 --> dont use on tfs 0.3.5 because TFS with or without lib crashes alot.
Self instalattion:
Otal's website http://otal.leadhoster.com/index.php
Last edited: