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

storage

  1. J

    Globalevent with storage comparison problem

    TFS 1.2 We have this function on our server, where you pull 1 of 3 levers to set a global storage in db where each lever has its dedicated storage number. What we need, is a global event to check which of the global storages that have the highest value, eg: Lever 1 = 3201 Lever 2 = 3202 Lever...
  2. A

    Vip with 30 days storage

    I have 2 scripts that are giving vip to the player. and i need help to fix them 1- Vip through the Store, I edited it a little and left it that. However it seems that the Storage is not going out alone over time, I need the player to lose the storage after 30 days. because I'm using the Storage...
  3. namco

    addEvent setStorageValue won't work when player logs out

    I need some help, please. When the player logs out, the Storage won't turn back to its normal state because the addEvent won't trigger. What should I do? showWayshrine = MoveEvent() local function cooldown(playerId) local player = Player(playerId) if not player then...
  4. Mateus Robeerto

    Script to give attributes to mounts

    could someone get me a script to add attributes to my mounts? like, +5 def, +10 speed and talz?, for my 8.6 server I already have the mounts all working, I just need to put some attributes to differentiate and give an up on them PLEASE! I AM NOT VERY WELL SPEAKING IN ENGLISH .. RSRS
  5. T

    [tfs 1.2] Global storage for specific time

    I would like to allow action only once per X time for a whole server (10 min for example), how could I do this? Scheme: local config = { monsterPos = {x=790, y=978, z=11}, exhaust = X -- ?? } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if game world...
  6. falls13

    Lua Use storage value to restrict the consumption of food

    put storage here, so the player will eat the food every 15 min. * all foods * and continue to fill life and mana. tfs 0.3.6 local FOODS = { [2362] = {8, "Crunch."}, [2666] = {15, "Munch."}, [2667] = {12, "Munch."}, [2668] = {10, "Mmmm."}, [2669] = {17, "Munch."}...
  7. bybbzan

    Boss teleport

    TFS 0.4 I need a boss teleport script that works like this: Player complete task, gets storage X If player storage X and enter boss tp, face boss X. Else "You did not complete the task" Player complete task, gets storage Y If player storage Y and enter boss tp, face boss Y. Else "You did not...
  8. Ochman

    Solved How to check if "storageID" is free

    Hello, I'm coding more and more custom content, and this one gives me a trouble. How do I know if any different quest/talkaction/whatever uses storageID I'm about to use? I do not mean how to check if player has storageID. This I know. I'm asking what's your suggestion on how to prevent...
  9. Togu

    C++ using getStorageValue in source code

    I've made an simple auto loot gold and platinum coins in sources but it don't have the option to be enabled or disabled by players. Then I've made a talkaction to set a true/false value in the player_storage in database. I was trying to use this storage value to enable or disable the auto loot...
  10. bitupx

    System Clan (Advanced Guild)

    World Of Shinobi Latin America Otx 2.9, 10.35 Hello Friends of Otland especially Tibia Creator and FanTibia Today I come to request a script based on a system similar to the war by guild system but this has several requirements such as: Guild By Storage assigned by an Npc, I require 7 Guild...
  11. Caduceus

    Solved Account Storage Funcion

    I know that their are several Account storage functions floating around. None of which work. When I try to use this function as player:getAccountStorage() I am getting an error in console as player is a nil value on line "local playerAccount = player:getAccountId()". Player is defined above, I...
  12. A

    NPC Script with storage time

    Hello! I am looking for script npc: - When we have item 9999 then npc remove item 9999 and will teleport us on pos x=4242 y= 1412 z=7 and give storage xxxx for 5 minutes, after 5 minutes of end storage we will back to npc - pos x= 2204 x= 1069 z=6 (back teleport) can anyone help me? :/
  13. S

    Spell Storage Target - Help [TFS 0.4]

    Hi people, I'm trying to create a spell AREA that adds storages in TARGETS per 5 sec, its possible? local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)...
  14. ibkfly

    Unable To Level Up Without Storage

    Hey, I was wondering if anyone has any idea how to make it so you cant level up without a certain storage value? Im thinking about making it impossible to gain experience at level 500 without completing a promotion quest. When you are promoted, you are able to gain experience again. Cheers...
  15. elnelson

    [0.4 lua] Timed based storage potion.

    Hello otlanders, im trying to do this script but i keep failing. I need a potion that with this conditions. -OnUse reduce current storage 12345 == 31 after use gets to ==21 (-10 current storage) -After 1 minute of usage the -10 storage resets (so get back from 21 to 31) -Potion has 1 minute...
  16. Snavy

    Find Outfit Storage ID's & Addons

    Is it possible to get a list of Outfits + Addons (0,1,2,3) & Storage ID for each outfit that the player has?
  17. Noupz

    C++ Storage to summon follow

    This is part of my monster.cpp i would like this part work with a storage, like this of course what i've done is wrong, but is the perfect example of what i want, someone could help me? this is the source i use MEGA
  18. M

    onHealthChange CreatureScripts

    From the name, I am guessing this function is being perfomed every time player hits an enemy (if it has been registered under player, not monster). Here is my question, I want to know if you can register certain events only for specific vocation, let us say we have login.lua and inside that...
  19. M

    C++ Global storage in c++ tfs 1.2

    How to check GLOBAL storage value in c++? This is for normal storage: int32_t value; if (attackerPlayer && attackerPlayer != this && getStorageValue(5000, value) == 1 && skillLoss getGlobalStorageValue(5000, value) == 1 <-not work game.getStorageValue(5000, value) == 1 <-not work...
  20. M

    C++ How to check storage in C++? tfs 1.2

    As in the topic. I need help: if (attackerPlayer && attackerPlayer->getStorageValue(uint64_t 60000) != 1 && attackerPlayer != this && skillLoss) { /tfs/ots/src/player.cpp: In member function 'virtual uint64_t Player::getGainedExperience(Creature*) const': /tfs/ots/src/player.cpp:3216:66...
Back
Top