• 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

    On Trade Accept Create Log.txt

    Very nice, added to the script function Player:onTradeAccept(target, item, targetItem) file = io.open('data/logs/trade.log',"a") file:write(""..os.date("%c")..": "..self:getName().." traded:") if item:isContainer() then local pitems = searchContainer(item) for i = 1...
  2. Aled

    On Trade Accept Create Log.txt

    Eeuuuuughhhhhhh thats what you call overthinking (or not reading about functions properly and just whacking them in).. fixed Thanks a lot EDIT: Is there a function that returns the items contained in the container and will it return items in the container within the container? How would you go...
  3. Aled

    onspawn

    What do you mean by that?
  4. Aled

    Miss System

    The spell does need a target to cast It's probably better done with storages anyway, let GarQet help you I was only trying to offer an alternative
  5. Aled

    TFS 1.2 Talkaction add storage and remove storage

    I did it for him anyway function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local split = param:split(",") if split[2] == nil or split[3] ==...
  6. Aled

    Miss System

    could be because I used CONDITION_NONE but I couldn't think of another appropriate try CONDITION_PARALYZE instead EDIT: updated
  7. Aled

    Miss System

    lol sorry forgot to change registerCreatureEvent(target, "blind") to registerCreatureEvent(player, "blind") fixed EDIT: why does onLogin even have a target argument (when does a player who just logged in have a target?) EDIT: seems that was just a mistake on my part, carry on
  8. Aled

    onspawn

    Let me be clear, it is important that you specified hunters spawn locations in hunterpos = { {x=1011,y=1005,z=6}, {x=1013,y=1005,z=6} } and killed a hunter that was spawned from those locations If you cast '/m hunter' and kill it IT WILL NOT RESPAWN I found another solution for you...
  9. Aled

    On Trade Accept Create Log.txt

    Try above, updated
  10. Aled

    Miss System

    Try it with a condition spell.lua local blindtime = 8*1000 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, GROUNDDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 34) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 38) local condition =...
  11. Aled

    onspawn

    I gave him a script that works and he's still not happy EDIT: on that note, does 0.4 have onDeath?
  12. Aled

    On Trade Accept Create Log.txt

    That's one thing I couldn't be bothered to do EDIT: I don't know if this will work or what it will look like: function Player:onTradeAccept(target, item, targetItem) local currenttime = tonumber(os.date("%H%M", os.time())) file = io.open('data/logs/tradelog.txt',"w")...
  13. Aled

    Solved Spell help [TFS 1.2]

    Sorry I forgot 1 line, fixed
  14. Aled

    Lua Distance weapon adds DoT?

    I don't know why you get that error, I made changes, it looks messier but it should suffice as a workaround
  15. Aled

    Solved Spell help [TFS 1.2]

    I don't know why that stupid function isn't working but I found a workaround for you function onCastSpell(cid, variant) local summon = cid:getMaster() ~= 0 if not summon then return false end local target = cid:getTarget() local targetPos = target:getPosition()...
  16. Aled

    Lua Distance weapon adds DoT?

    by this I assume you mean what your asking for is very straightforward, you just need to clarify in weapons.xml change <distance id="2544" action="removecount"/> <!-- arrow --> for <distance id="2544" action="removecount" script="arrow.lua"/> <!-- arrow --> and in arrow.lua: local...
  17. Aled

    Solved Spell help [TFS 1.2]

    What do you mean by 'not working'?
  18. Aled

    On Trade Accept Create Log.txt

    Sorry, updated
  19. Aled

    Lua Distance weapon adds DoT?

    What _EXACTLY_ do you want to happen
  20. Aled

    Miss System

    then a if not target ~=0 then is needed, I have updated
Back
Top