• 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. Apollos

    How i can make it?

    Untested, let me know how it works out. local offer_pos, reward_pos = Position(32342, 32236, 6), Position(32344, 32236, 6) local config = { [2154] = 2140, [2155] = 2137, } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local tile = Tile(offer_pos) if...
  2. Apollos

    OTClient Unable to create item with invalid id

    Could be because the ware id in otb isn't the same as in dat. Try reloading the item in itemeditor to fix it or change it manually to 23726.
  3. Apollos

    Storage for equip actionid

    You need to use player instead of self here. Also I'm not 100% with onEquip/onDeEquip sure but you may just be able to register the action id in movements.xml instead of the itemid so you can exclude the getActionId check within. I think it may be better to just check slots of player when...
  4. Apollos

    How to give PZ lock to spell Tfs 1.3

    You probably have to make a new function in player.h, luascript.cpp, and luascript.h for setPzLocked(true/false).
  5. Apollos

    Error when starting up server

    He just linked it in his post. Download the latest TFS and pull it from the zip.
  6. Apollos

    OTClient Idle Animations

    Animate always is for creatures like bonelord or fire elemental, where the idle and walking animations are the same. If you want it to have an idle animation and walking animation separate you need to have animations set up for both idle and walking. Although the idle animations are broken in...
  7. Apollos

    TFS 1.2 Standing in specific tile/pos saying specific word triggers NPC Spawn

    talkactions/talkactions.xml <talkaction words="apple" script="hidden_npc.lua" /> talkactions/scripts/hidden_npc.lua local config = { npc_name = "Alice", npc_pos = Position(1000, 1001, 7), required_pos = Position(1000, 1000, 7), duration = 1 -- in minutes } function onSay(player...
  8. Apollos

    Tfs 1.2 On level up gives full hp/mana

    My bad. Change this line: save_exhaust[player.uid] = time + (save_exhaust_time * 60) To this: save_exhaust[player.uid] = time + (config.save_exhaust_time * 60)
  9. Apollos

    Event onStepIn not found in movements

    The reason they want you to use multiple threads is because they cater to everyone on otland instead of only the individual. If you solve an issue about doors at the bottom of this thread, later down the road when others are searching for the same solution, they will never come across this...
  10. Apollos

    Event onStepIn not found in movements

    Discussion if you just wanna talk about your project. Advertising if you want to show releases. There isn't anything for support of a project besides individual threads. For doors there is already an action for doors, it's doors.lua.
  11. Apollos

    Tfs 1.2 On level up gives full hp/mana

    Yeah it goes in lib/core/player.lua You can either use it in the script like this: if config.save and not player:hasExhaustion(8000) then player:save() player:setExhaustion(8000, 10 * 60) -- Uses seconds so this is 10 minutes end Or using the same concept the function...
  12. Apollos

    Tfs 1.2 On level up gives full hp/mana

    Depends on the experience rate of the server and how often players will be leveling. Like some servers you'll go from level 8-30 in one kill and that will cause a lot of unnecessary saves. You could add an exhaustion to make sure they don't save too often. Here are these functions if you don't...
  13. Apollos

    Target Training Monk

    In player event Player:onGainSkillTries you can do something like this: local target = self:getTarget() if target and target:getName() == "Training Monk" then tries = math.ceil(tries / 2) end
  14. Apollos

    Event onStepIn not found in movements

    This is assuming you are using TFS 1.X: No need to check for players position since you already have the fail pos declared. Looks like you made a typo with storage key 2632637 Player userdata is already in the function parameters, cid is used in older distros. Both fail positions can be...
  15. Apollos

    Tfs 1.2 On level up gives full hp/mana

    Comment out these lines, just a few lines up from where Sun referenced. health = healthMax; mana = manaMax;
  16. Apollos

    Passing tile only possible wearing specific item id TFS 1.2

    Try this: local required_armor = 2463 function onStepIn(creature, item, toPosition, fromPosition) local player = creature:getPlayer() if not player then return true end local armor = player:getSlotItem(CONST_SLOT_ARMOR) if armor and armor.itemid == required_armor then...
  17. Apollos

    Passing tile only possible wearing specific item id TFS 1.2

    The armor or a new item removed along with the requirement for armor?
  18. Apollos

    Linux ubuntu 18.04 installing server.

    This is from an old tutorial by Damon or w/e his name is that I use. #Install LAMP Linux Apache MySQL PHP sudo apt-get -y install apache2 sudo systemctl enable apache2 sudo systemctl start apache2 sudo systemctl status apache2 sudo apt-get -y install mysql-server mysql-client sudo systemctl...
  19. Apollos

    Need admin /save command

    Use the serversave.lua in globalevents and just change the onTime/onThink to an onSay function then register it as /save in talkactions.xml.
  20. Apollos

    attempt to index global storage a nil value and more

    Change anywhere it says storage[cid] to craft_storage[cid]. Which looks like lines 63 and 64.
Back
Top