• 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

    [MyAAC][Plugin] Gesior Shop System

    Corret :) I had curl, but I have to install php-curl. Now works correct :) Nice work and thanks!
  3. 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?
  4. W

    [MyAAC][Plugin] Gesior Shop System

    Hello guys. I have a problem :/ I've downloaded and configured myaac-gesior-shop-system-v2.0. Everything is fine, but I have a problem with paypal. I've set email etc in config file. Then on page, I can send donation. Donations are sending but when I back to the page, I don't get any points...
  5. W

    Lua Remove conditions

    I've showed you just example here. I use this knowledge to create large code and there will be necessary something like this :)
  6. W

    Lua Remove conditions

    Thanks for answer, but I was looking something else and I think I found it. Second param is conditionId so: player:removeCondition(CONDITION_ATTRIBUTES, condition, 1)
  7. 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)...
  8. W

    Lua Decrease magic level

    Never mind, I used:
  9. 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...
  10. 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...
  11. W

    Lua Drop items into corps

    So I found it. You cannot use Container at corpse. Just use: corpse:addItem(x,1)
  12. W

    Lua Drop items into corps

    It desn't matter like in C++. I can remove it: function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local container = Container(corpse) container:addItem(5943, 1) return true end Return error: 'corpse' is unknown? Why does it return null? Or...
  13. W

    Lua Drop items into corps

    ref
  14. 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)...
  15. 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?
  16. W

    Lua Movements script with Event

    actually, not working :/ sometimes works, sometimes not :/ When you equip item and logout and login, doesn't gain hp and mana. Is this any idea how to repair this without using global storage?
  17. W

    Lua Movements script with Event

    hmm, so events can be reach not only from script that exectutes them? oh, thanks, it's working :) and thanks for remove global storage :)
  18. 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