• 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

    Add distanceeffect on spell

    local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, 16) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true) combat:setParameter(COMBAT_PARAM_USECHARGES, true) combat:setArea(createCombatArea(AREA_CIRCLE3X3)) local combat2 =...
  2. Apollos

    TFS 1.X+ Help Channel message when open

    Window isn't fully open during onJoin so this message is being sent but won't be seen. Try this instead: function onJoin(player) addEvent(function(cid) local player = Player(cid) if not player then return end player:sendChannelMessage("", "MESSAGE"...
  3. Apollos

    Add distanceeffect on spell

    Do you want the AoE to stay around the casting player but send a distance effect going to all tiles in area or are you converting this to a distance shot that sends distance effect to target and then AoE around that target?
  4. Apollos

    [QUESTION]About Enigma Virtual Box, is it good?

    What do you mean by "any file extractor"?
  5. Apollos

    TFS 1.X+ onTradeRequest?

    It's in data/events/scripts/player.lua
  6. Apollos

    OTClient Module doesnt load after restarting otclient

    Did you add it here too? edubart/otclient (https://github.com/edubart/otclient/blob/1addf3e1766ca3fe43bdf1114c0655a971123291/modules/game_interface/interface.otmod)
  7. Apollos

    Help with this script

    From reading oen's thread I see you are not using onItemMoved like he specifies. If you set everything up correctly besides this, it's probably easier just to add the commit to your server for onItemMoved. Player:onItemMoved event (#2474) · otland/forgottenserver@5438d50...
  8. Apollos

    TFS 1.X Level Cap per Stages

    Untested, let me know how it works for you. -- Put this in data/global.lua function getExpForLevel(level) level = level - 1 return ((50 * level * level * level) - (150 * level * level) + (400 * level)) / 3 end -- Put this in data/events/scripts/player.lua before Player:onGainExperience...
  9. Apollos

    transforming item

    Best way is to do something like this: local transform_id = 2659 function onUse(player, item, fromPosition, target, toPosition, isHotkey) item:transform(transform_id) item:decay() return true end Then in items.xml you set a decayTo and duration on the item it transformed into that...
  10. 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...
  11. 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.
  12. 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...
  13. 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).
  14. Apollos

    Error when starting up server

    He just linked it in his post. Download the latest TFS and pull it from the zip.
  15. 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...
  16. 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...
  17. 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)
  18. 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...
  19. 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.
  20. 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...
Back
Top