• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Aled

    Tile with rebirth Help!!

    How to display CODE properly in your post Board Rules for Requests About Requests and Support
  2. Aled

    Lua [TFS 1.2] Capacity Affects Player Speed

    I am trying to help you, if you're going to be an asshole then you can wait for someone else to come along. However I am telling you nobody is going to assist you if you don't make it easy for them and that means including enough information. If you want to know how to submit a better request...
  3. Aled

    Lua [TFS 1.2] Capacity Affects Player Speed

    Next time, wrap your code with these It is an onThink() which corresponds to a creature event (Interface:Creature Events · otland/forgottenserver Wiki · GitHub)
  4. Aled

    Lua rewards for each vocation at certain level tfs 1.2

    then learn all the resources are here
  5. Aled

    I think i need a basic script.

    I can probably do this for you but you are going to have to make a better effort to translate what you want, currently I do not know exactly what you want to happen.
  6. Aled

    Simple onUse scripts

    For first with your map editor put the actionid of the tile to 1500, for the second thing put 1501 and third put 1502 then in actions.xml <action itemid="2553" script="scripts.lua" /> <action itemid="xxxx" script="scripts.lua" /> <action itemid="xxxx" script="scripts.lua" /> then in scripts.lua...
  7. Aled

    NPC task again every 3 days

    According to the thread I posted, it corresponds to time in seconds so yeah
  8. Aled

    NPC task again every 3 days

    Action - Time Chest (with random reward) after here player:setStorageValue(x.mstorage, -1) player:setStorageValue(x.storage, -1) player:setStorageValue(storage, -1) put exhaustion.set(cid, x.storage, 3*24*60*60) exhaustion.set(cid, x.mstorage...
  9. Aled

    Spell Effect each 2s

    but the spell works fine and you get the spell effects right? and the cooldown works as intended? Noticed some mistakes, change to this local res = 40 -- block percentage % function onStatsChange(cid, attacker, type, combat, value) if getPlayerStorageValue(cid,99) == 1 then if type...
  10. Aled

    Spell Effect each 2s

    what do you mean 'nothing' ..
  11. Aled

    Lua Distance weapon adds DoT?

    lol, I found the problem, do this local bowid = 22418 local condition = createConditionObject(CONDITION_FIRE) addDamageCondition(condition, 10, 2000, -10) setConditionParam(condition, CONDITION_PARAM_DELAYED, true) local combat = createCombatObject() setCombatParam(combat...
  12. Aled

    Spell Effect each 2s

    do this instead resistance.lua function onStatsChange(cid, attacker, type, combat, value) if isPlayer(cid) and (type == STATSCHANGE_HEALTHLOSS or STATSCHANGE_MANALOSS) and getPlayerStorageValue(cid, 99) == 1 and (combat == COMBAT_PHYSICALDAMAGE or combat == COMBAT_DEATHDAMAGE) then...
  13. Aled

    Adding Roaming Monsters

    Friend, that is amazing, a marvel.
  14. Aled

    onspawn

    It's not impossible, I did it for you, but either your distro doesn't support it (which it should) or you are too stupid to implement it
  15. Aled

    [C++] Adventure's Blessing

    You want golden boxes on all your equipment slots while this bless is active?
  16. Aled

    Spell Effect each 2s

    change the spell script to local timer = 1 -- every 1 second will be special effect, you can set to 2 or smth local cooldown = 8 -- spell exhaust time local times = 8 -- how long this spell exist (in seconds) function onCastSpell(cid, var) registerCreatureEvent(cid, 'Resistance')...
  17. Aled

    [C++] Adventure's Blessing

    I do not know what you mean
  18. Aled

    [C++] Adventure's Blessing

    Only newbies will get that bless (first login). Once you attack another player, you lose it. Once you reach level 21 you will not lose it, but it will no longer take effect. You will not lose any other bless, items or aol while that bless is active.
  19. Aled

    Lua [TFS 0.4] Monster attack other monsters

    You do not need that function, just remove that line
  20. Aled

    Lua [TFS 0.4] Monster attack other monsters

    just put <script> <event name="attackmonster"/> </script> in your monster xml and <event type="think" name="attackmonster" script="attackmonster.lua" /> in creaturescripts.xml
Back
Top