• 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!

Search results

  1. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    It's my function: function advanceSave.onAdvance(player, skill, oldLevel, newLevel) Your script is using cid instead of player, example: function advanceSave.onAdvance(cid, skill, oldLevel, newLevel) Under function add this line: local player = Player(cid) or change cid to player but you will...
  2. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    local tibia_coin = Action() function tibia_coin.onUse(player) local count = player:getItemCount(24774) if count >= 1 then if player:removeItem(24774, count) then db.query("UPDATE `znote_accounts` SET `points` = `points` + " .. count .. " WHERE `id` = " ...
  3. a Shadou

    Solved Letters have no message

    Hi, I have a small problem. My letters doesn't have name who writed message and there is no message after i send it to someone through mailbox. Does anyone have any idea what could be a problem? Parcels working fine, labels still have name and message. Using: opentibiabr/otservbr-global...
  4. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Paste it into creaturescripts/others/advance_save.lua local lv = player:getLevel() -- rewards for lvl local storage = 999000 if skill == SKILL_LEVEL then if lv >= 50 then if player:getStorageValue(storage) ~= 1 then...
  5. a Shadou

    TFS 1.X+ Perfect paralyze rune

    I've made script for paralyze rune but i have one problem. This script requires target to calculate how much speed it has to decrease. Problem is that you can't throw rune without targeting someone. Example: you won't be able to use rune through battle list. Does anyone know better way to find...
  6. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    local config = { [ITEM_GOLD_COIN] = {changeTo = ITEM_PLATINUM_COIN}, [ITEM_PLATINUM_COIN] = {changeTo = ITEM_CRYSTAL_COIN, changeBack = ITEM_GOLD_COIN}, [ITEM_CRYSTAL_COIN] = {changeBack = ITEM_PLATINUM_COIN} } local changegold = Action() function changegold.onUse(player, item...
  7. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Does anyone know where to find raceId if it is missing? Example for monster "Werehyaena". monster.raceId = 1142 monster.Bestiary = { class = "Lycanthrope", race = BESTY_RACE_LYCANTHROPE, toKill = 1000, FirstUnlock = 50, SecondUnlock = 500, CharmsPoints = 25, Stars =...
  8. a Shadou

    Mysql Error Out of range value for column 'manaspent' at row 1 (1264)

    I know it's outdated but i just had this error and fixed it quick, so for future help here is answer. You need to change structure of table manaspent from int(11) to bigint(20), because int is too small for information that server is trying to save.
  9. a Shadou

    need help convert this script to tfs 1.3

    local function getEligiblePlayers() local list = {} local eligiblePlayers = {} for k,v in pairs(Game.getPlayers()) do local player = Player(v) if player then local IP = player:getIp() if not list[IP] then list[IP] = true...
  10. a Shadou

    Lua Paralyze rune

    I will share my code. This script will always set movement speed to 40, doesn't matter if you have any bonus movement speed from items, mounts or spells. Don't add dispel haste condition, because if you dispel haste, it will instantly remove players speed to minimum and he won't be able to move...
  11. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    I want this script to give storage to all players who attacked "The Mutated Pumpkin" but it gives only to 1 player who killed this monster, is it possible? local mutated_pumpkin_kill = CreatureEvent("KillMutatedPumpkin") function mutated_pumpkin_kill.onKill(player, target) if...
  12. a Shadou

    Lua SLEEP implementation

    Update for TFS 1.3? When used sleep cannot: Move Use spell Additional: Cannot be used outside protection zone Every 1s talktype monster "zZzZ" Secondary use of command removes sleep When kicked or logout removes sleep
  13. a Shadou

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    onTime local global_save = GlobalEvent("global_save") local function ServerSave() Game.setGameState(GAME_STATE_SHUTDOWN) updateGlobalStorage(DailyReward.storages.lastServerSave, os.time()) end local function ServerSaveWarning(time) local remaningTime = tonumber(time) - 60000...
Back
Top