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!
@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
Nie, problemem u ciebie jest "corrupted storage"
Ja byś sobie wypisywał printem jakie jest storage, to pewnie wyjdą znaczki, w bazie danych sobie sprawdź jak to się zapisało.
Chyba, że jakiś twój skrypt zmienia te storage na jakiś text.
Problemem jest getCreatureStorage/getPlayerStorageValue...
local failposition = Position(770, 934, 6)
function onStepIn(creature, item, position, fromPosition)
if not creature:isPlayer() then
return false
end
if creature:getPremiumDays() <= 0 then
creature:teleportTo(failposition)...
btw:
here you have what you want in cpp, simple changes:
https://github.com/otland/forgottenserver/pull/2750
and here in lua:
https://github.com/otland/forgottenserver/pull/3049
-.-
If you use custom systems.. just use function created by actor, he remove Game.getExpiericenceStage
And add
getRateFromTable(experienceStages, player:getLevel(), configManager.getNumber(configKeys.RATE_EXP))
This is Stats system not Sets.
This system give you STATIC bonus to Item if you kill monster.
Are you looking for this?
https://otland.net/threads/tfs-1-3-item-sets.263693/
I know that this is for 1.3, but this is what you want? xD
Eh.. it doesn't even matter, but if you want xd
local function isArmor(uid) -- Function by Mock the bear.
if isInArray(conf.byPass, uid.itemid) or (getItemInfo(uid.itemid).armor ~= 0) and (getItemWeaponType(uid.uid) == 0) then
return true
end
return false
end
Ofc remove...
if not isInArray(conf.byPass, itemEx.itemid)[...]
This part of code skip "isArmor" function if you type id in byPass table, because this check if table is not empty then return false, else.. go check other shit, BUT if you type id your boots in byPass it return false and dont check other...
Add new table to conf.. for example "byPass"
byPass = {idBoots,otherid,etc}
And change this:
if isInArray(conf.ignoredIds, itemEx.itemid)
or (not getItemWeaponType(itemEx.uid) or getItemWeaponType(itemEx.uid) > 5)
or (getItemWeaponType(itemEx.uid) == 0 and not isArmor(itemEx))...
ym... did you use maybe this function?:
loadVipData
you have definitely empty cache.
Hm.. add maybe:
player:loadVipData()
player:updateVipTime()
in creaturescripts/scripts/login.lua
and this should help you.
so... this:
function Player.getVipDays(self)
return VipData[self:getId()]...