• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

O.T.A.L Open tibia advanced lib v 1.3

Mock

Mock the bear (MTB)
Joined
Jul 29, 2008
Messages
619
Reaction score
106
Location
Brazil
Well if you dont know wath is tihs pleas read this threads.

http://otland.net/f163/otal-open-tibia-advanced-lib-download-53792/
http://otland.net/f163/otal-open-tibia-advanced-lib-v-1-21-a-56771/

I will teach how to install on TFS 0.3.6 and post lib and changelog, another things send me a PM or read manual on lib folder.

To instal in TFS 0.3.6, open otal.rar, copy all content (with folder) and just paste on data/lib, so open your server (delete file OTAL-REINSTALL)

Changelog:
--- 1.1
=========New functions==========
math.factorial(n) -- By mock
isMoney(itemid) -- by shawak
doKillCreature(cid) -- by shawak
getCurrentPlayers() -- Colandus + shawak
===========Changes===========
--- 1.2
Changes in execute in area/ doActionForAllPlayers / doInArea
cmd can be string or function.
cmd = [[
doSendMagicEffect(pos,1)
]]
cmd = function(pos)
doSendMagicEffect(pos,1,)
end
====
Change in: string.impode
=========Features==========
Folder sql: put an .sql, .sqlite, .mysql file
and script will execute all sql querys and delete files
Folder install: put an luai file to install some script on your server.
=========LIB==========
Luagd: Lua-GD Reference Manual
--- 1.3
===========Changes===========
Change in too many functions like:
isWalkable
doInArea
doCalculateArray
findItemInPos
Otal adapted to TFS 0.3.6
=========DEL==========
GD lib has been excluded.
Adapted for new TFS
Delete check for updates
=========New functions==========
isInScreen(pos1, pos2)
string.levenshtein(sa, sb)
string.iupper(s)
assert_type(v,t,name,position)
isShield(uid)
getlocation(table, m, r)
math.exvar(min, max, ex)
isInSequence(table, n, r)
PosToStorage(pos, max)
StorageToPos(s)
table.maxIndex(array)
=========ADD==========
Matrix lib
=====Lib======
matrix.correct(m)
matrix.sqr(m)
matrix.lines(m)
matrix.columns(m)
matrix.addline(l1, l2)
matrix.column(m, n)
matrix.reverse(m)
matrix.addline(l1, l2)
matrix.addcolunm(m1, n1, m2, n2)
matrix.add
matrix.mulline(l1, l2)
matrix.mul(m1, m2)
matrix.concat(m)
matrix.det(m)
Multi-therads libs.
=====Lib======
thread:add(func,priority,...)
thread:run(interval)
Compat lib
===Compated===
string.contains = stringcontains
doFindItemInPos = findItemInPos
setItemName(uid,name)
setItemArmor(uid,name)
setItemDefense(uid,name)
setItemAttack(uid,name)
getItemAttack(uid)
getItemDefense(uid)
getItemArmor(uid)
All know bugs where fixed!

If you find an erro please report!
If someone want host an website to create luai files (auto instalattion scripts) to otal please msg me :peace:


You can create luai files (auto instalation script files) at this site:
http://lualand.net/luaifiles/index.php
Thanks for syntax :D
 

Attachments

Last edited:
well, installing on 0.3.6 was easy(because 0.3.6 auto reads everything in lib renaming of index.lua and thats all)
but new and updated functions can be useful
thx
 
Back
Top