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

    Attack all players but if they are not in pz

    I found here script that attacks all player on screen for Elfbot. Yes, it's working but if there is PZ zone and one enemy stand into temple and another stand not info temple, sometimes script won't attack this player who is not standing into pz zone but still trying attack player who is in...
  2. W

    Lua Disallow player to attacking some players

    Hello, I want to disallow player to attacking other palyers with e.g. StorageValue==1000. Using TFS 0.4 I might put this codition in creatrurescripts, but now I'm using TFS 1.2 and doCombat doesn't exist in creaturescripts. Where can I do something like that?
  3. W

    Lua Remove conditions

    local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 10) local condition2 = createConditionObject(CONDITION_ATTRIBUTES)...
  4. W

    Lua Decrease magic level

    Hello guys, To increase magic level I can use e.g.: But I want to decrase magic level. I tried e.g.: But this doesn't decrase but increase magic level, so I cannot use this function like that. I can use something like this: But now, how to send to player's client that selected magic level...
  5. W

    Lua Item with own title

    I'm using TFS 1.2. I don't know why but adding healthGain and healthTicks to ring don't work, so I want to create my own script with regeneration in movements, but this ring should have duration. If i add in movements.xml: <movevent event="Equip" itemid="2166" slot="ring" script="ring.lua" /> so...
  6. W

    Lua Drop items into corps

    I've replaced standard tfs 1.2 drooploot.lua with this: function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local container = Container(corpse) if not Player(killer) or not container then return end container:addItem(5943, 1)...
  7. W

    TFS 1.X+ More info after click on player

    Hi, when you click on player you get info like this: "(...) He is a master sorcerer" or "(...) You are a master sorcerer". Where can I edit it and add more text there?
  8. W

    Lua Movements script with Event

    Hello, I have something like this: local runningEvents = {} local function gainHpAndMana(cid) local player = Player(cid) if player then player:addMana(100) player:addHealth(150) runningEvents[1] = addEvent(gainHpAndMana, 2000, player:getId()) end return...
Back
Top