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

    Summon Commands

    combat:execute(creature, Variant(creature:getSummons(i))) There is no param for getSummons. This is taken from compat.lua function getCreatureSummons(cid) local c = Creature(cid) if c == nil then return false end local result = {} for _, summon in...
  2. C

    Hoster Dedicated server PC

    Its very unlikely someone will give all of their work to a complete stranger even if your intentions are honorable. The majority of the people building servers including myself are not just building them for the love of making them, we are building them to make money even if its just enough to...
  3. C

    Lua 1 NPC dont sell me the items

    upload your npc lib directory
  4. C

    Lua Spell help / skill tries [TFS 1.2]

    You can finish the script I am sure, its been fun. :) local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) local rate =...
  5. C

    Lua Spell help / skill tries [TFS 1.2]

    Thanks I didn't even know they existed!
  6. C

    addEvent & stopEvent

    Another way to handle this is to use a global table but instead of resetting all the event id's you just stop the ones which were assigned by the creature who executed them. -- same as before test = {} -- defined in global.lua -- defined inside the script -- get the creature's id and store it...
  7. C

    Lua Spell help / skill tries [TFS 1.2]

    Unfortunately there is no method to get the extra stats of an item that I am aware of elementFire is an attribute of the fire sword but there is no direct means of getting that value aside from using an onHealthChange/onManaChange the worse part about this is that if you are to use either of...
  8. C

    Lua Spell help / skill tries [TFS 1.2]

    This requires more than simply casting of a spell because you are looking for confirmation of damage done to the creature from the server. The callback function doesn't send this information. What you need is an additional script in creature events. Especially since you want to add skills if the...
  9. C

    Lua Spell help / skill tries [TFS 1.2]

    Sorry I don't understand. You asked for it to add skills if it had a target. Do you want it to not damage the creature if there is no target?
  10. C

    Lua Spell help / skill tries [TFS 1.2]

    Try this I haven't tested it at all. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) local rate = configManager.getNumber(configKeys.RATE_SKILL) local...
  11. C

    Item.xml atribute and Moveevent script together

    This might work. item-movement attribute
  12. C

    addEvent & stopEvent

    You can use anything global to set the event id to and check it later, either use a global table or as @ond suggested you can use a global storage. As a global table test = {} -- defined in global.lua -- see if test holds any values if next(test) then -- cycle through all event id's...
  13. C

    doSummonCreature Execution

    Its removed from the game.
  14. C

    addEvent & stopEvent

    I found this earlier I think it might answer all your questions regarding onHealthChange/onManaChange [TFS 1.0] Critical Hit % - Permanent addEvent returns an event id that is another way of seeing if it is active, just create a global table and store the return value in the table.
  15. C

    Solved [TFS 1.2] - Spell does not show amount healed

    Why use? math.max(math.random(min, max)) math.random returns a random number between min and max not multiple numbers so math.max is an extra step which does nothing for your formula.
  16. C

    Item.xml atribute and Moveevent script together

    If you told people what server version you are using it would be easier to help you.
  17. C

    STOP add HP&MP after rebirths?

    Add the health and mana as a condition on login, just as you would give people infinite mana shield. And stop calling people names in other threads.
  18. C

    [France] [8.60] Frozeria High Exp Custom OT | War&RPG | Ferumbras Ascension

    I may have just signed up on friday but I've been reading these forums for years. Of course there is no point in responding because you no valid rebuttal. To everyone else who has an issue with this server or others like it, welcome to life where everything cost money and your opinion of a...
  19. C

    [France] [8.60] Frozeria High Exp Custom OT | War&RPG | Ferumbras Ascension

    I think you are the last person on this forum who should be calling people immature just about every post you make is degrading someone which is the most childish idiotic thing to do. Look people there is no need to keep with the name calling and fighting. You don't want to play a server like...
  20. C

    Lua Mana shield not working

    Actually I looked through the sources and the only check I found that asks the question whether a player has manshield on or not is in game.cpp forgottenserver/game.cpp at master · otland/forgottenserver · GitHub And this is only if the primary damage type is less than or equal to 0...
Back
Top