• 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

    Lua Clones Dungeon [Quest]

    For all of the boxes on your map, say, itemid == 1738 and put actionid == 1000 then do in actions function onUse(player, item, fromPosition, target, toPosition, isHotkey) doTransformItem(item, 2250) doSummonCreature(monster,fromPosition)...
  2. Aled

    [C++] Adventure's Blessing

    This seems achievable in LUA Update: locate droploot.lua in creaturescripts, If your droploot.lua looks like this, function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) if getPlayerFlagValue(player, PlayerFlag_NotGenerateLoot) or...
  3. Aled

    Lua Teleport scroll tfs 1.2

    GitHub says CONDITIONID is optional Though who knows, might work
  4. Aled

    Lua Minion of Gaz'haragoth teleport script

    Would probably better off with onDeath() <event type="death" name="TpGaz" script="tpgaz.lua" /> tpgaz.lua local toPos = Position(100,100,7) -- location to teleport local timer = 3 -- minutes till teleport poff function onDeath(cid, corpse, killer, mostDamageKiller, unjustified...
  5. Aled

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

    EDIT: I see you have this if not player then return end nevermind, my bad
  6. Aled

    [LUA Request] Modal Window changemap with votes

    In talkactions.xml <talkaction words="!vote" script="vote.lua" /> in vote.lua votemapconfig = { storage = 2000, -- player storage value, to store votes globalstorage = 2000, -- global storage value, for map change cooldown timer1 = 10, -- seconds to teleport everybody timer2 = 1, -- minutes per...
  7. Aled

    onspawn

    try this instead hunterconfig = { respawntime = 10*1000,-- MAKE SAME AS SPAWN TIME ON MAP chance2 = 50, chance3 = 25, chance4 = 5, monster1 = 'Hunter1', monster2 = 'Hunter2', monster3 = 'Hunter3', monster4 = 'Hunter4' } hunters = {} hunterpos = {} function...
  8. Aled

    [TFS 0.4] 2x SPELL REQUEST

    As far as I know, TFS 1.x marked the introduction of metamethods which is what prompted the change from cid to creature/player and so on. But they are just arbitrary variables, what matters is its position in the function onCastSpell(arg1,arg2) It doesn't matter what name you use, so long as its...
  9. Aled

    Lua Teleport scroll tfs 1.2

    I do not know why =/ Let me rewrite it What is in your actions.xml? Try this anyway: savePos = {} local function sendEffects(pos, eff, pid) if savePos[pid] then local player = Player(pid) if isPlayer(player) then pos:sendMagicEffect(eff, player)...
  10. Aled

    [TFS 0.4] 2x SPELL REQUEST

    If you are in danger call the police
  11. Aled

    Lua Clones Dungeon [Quest]

    What happens exactly when the boxes are 'destroyed'? You use an item to transform them to trash or something? or is it just a storage value somewhere?
  12. Aled

    [TFS 0.4] 2x SPELL REQUEST

    I did mention that but then I changed my mind and just put addEvent(function() if creature then setPlayerStorageValue(creature,storage,-1) end end,cooldown*1000) There is no reason that script will not work for TFS 0.4 function onCastSpell(creature...
  13. Aled

    Lua Teleport scroll tfs 1.2

    savePos = {} local function sendEffects(pos, eff, pid) if savePos[pid] then local player = Player(pid) if isPlayer(player) then pos:sendMagicEffect(eff, player) addEvent(sendEffects, 400, pos, eff, pid) end end end function onUse(player...
  14. Aled

    [TFS 0.4] 2x SPELL REQUEST

    Probably best done with storage values function onCastSpell(creature, variant) local cooldown = 8 -- seconds local target = getCreatureTarget(player) local storage = 1500 addEvent(function() if creature then setPlayerStorageValue(creature,storage,-1)...
  15. Aled

    Lua Teleport scroll tfs 1.2

    Yeah do that ^ if player:getCondition(CONDITION_INFIGHT) then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'You may not use this while you are in battle.') return false end That's what I thought I had :P
  16. Aled

    Lua Teleport scroll tfs 1.2

    put this if player:isPzLocked() then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'You may not use this while you are in battle.') return false end directly below function onUse(player, item, fromPosition, target, toPosition, isHotkey)
  17. Aled

    Houses

    Np, you will learn through experience how to avoid these kinds of mistakes Nice mapping by the way
  18. Aled

    Gooey Mass ITEM

    This collection of items has totalrate = rate + rate + rate = 70 + 25 + 5 = 100 you dont have to worry, it does it for you just make sure rate add up to 100
  19. Aled

    Gooey Mass ITEM

    no, it appears 4745 is ((4745/totalrate)*100)% so if your totalrate = 100 and RHrate = 5 then rhrate = (5/100)*100 = 5%
  20. Aled

    Houses

    Remove the door and replace, maybe you have another door underneath or sth also I think the tile the door is on needs to be house tile too
Back
Top