Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
isWater(getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid) and water
To
water and isWater(getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid)
and add isWater func
No it is not the same. Just add for yourself higher skill than you declared in table, but in your script this will work correct. so nvm.
but if you wanna script like in topic then:
local monstersConfig = { -- Should be organized by ascending skillLevel
[{1, 10} ] = 'Orc',
[{11, 20}] =...
Improvement with crash possibility and fuk up function, from script with table loaded once, you created function creating all the time the same table, this is fuk optimize and logic not improvement. Xd
Btw.. Don't send userdata in addEvent.
Better solution is just add addEvent in transform...
This script is correct on my eye.. so if you tell me that this not working then you don't have request storage value or you don't have register event to player.
Ps. remove lower()
Then increase maybe this amount onkill.
Add else and do somethink like this:
setStorage(cid, monster.storage, getStorage(cid, monster.storage)+1)
Or set this storage to 999 in another script.
Define min and max before condition.
Ex.
local min, max = 0
Then in condition overwrite this var without local:
min =
max =
https://www.lua.org/pil/4.2.html
What the... Xd try to use attackerPlayer instead of player.
And use creature instead of cid.. you dont have cid declared in function.
You don't have to create userdate "Creature(target)" because tfx 1.x return userdate to function.
Try to think what you write in script.
reverse engineering.
Hook the necessary places where parseAttack occurs and send same information with addional byte.
I don't have source, but base is here(whatever):
https://github.com/SaiyansKing/Tibia-Extended-Client-Library
@lulek1337
local config = {
tempo = 10, --tempo em segundos
mensagem = {
texto ="[TOP]", -- não use mais de 9 caracteres
efeito = TEXTCOLOR_LIGHTBLUE -- efeito para a função doSendAnimatedText
},
efeito = 30 -- efeito da função doSendMagicEffect
}
function...
local checkMc = {}
for i = 1, #config.playerPositions do
playerTile = Tile(config.playerPositions[i]):getTopCreature()
local getIp = playerTile:getIp()
if checkMc[getIp] == true then
return false -- here is someone with mc
end
checkMc[getIp] = true
end
Write on phone.. so.. xd