• 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

    Solved Spell help [TFS 1.2]

    Sorry, I didn't know you wanted it to cast on target, change to local area ={{0, 1, 0}, {1, 3, 1}, {0, 1, 0}} function onCastSpell(cid, variant)...
  2. Aled

    Miss System

    can be done with onStatsChange In spell.lua local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, GROUNDDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 34) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 38) local blindtime = 8*1000 function...
  3. Aled

    Solved Spell help [TFS 1.2]

    This is probably a better way to do what you want local area ={{0, 1, 0}, {1, 2, 1}, {0, 1, 0}} function onCastSpell(cid, variant) local...
  4. Aled

    Miss System

    That's more like a 'silence' but give me a sec I will try
  5. Aled

    Miss System

    can you explain exactly what you want
  6. Aled

    On Trade Accept Create Log.txt

    In events/scripts/player.lua put function Player:onTradeAccept(target, item, targetItem) local currenttime = tonumber(os.date("%H%M", os.time())) file = io.open('data/logs/tradelog.txt',"w") file:write(""..currenttime..": "..player:getName().." traded "..item:getName().." for...
  7. Aled

    Lua Distance weapon adds DoT?

    uh yeah
  8. Aled

    Lua Clones Dungeon [Quest]

    To achieve 'all playes kicked from quest' putregisterCreatureEvent(cid, kickondeath) for each player in whatever script initiates the quest then <event type="death" name="kickondeath" script="kickondeath.lua" /> then in kickondeath.lua dofile('data/xxxevents/scripts/quest.lua') local pos =...
  9. Aled

    Lua Distance weapon adds DoT?

    That was important information, the above should be good now though
  10. Aled

    Lua Distance weapon adds DoT?

    try this local bowid = 22418 local combat = createCombatObject() local combatnodot = createCombatObject() for i, c in ipairs({combat,combatnodot}) do setCombatParam(c, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(c, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)...
  11. Aled

    Lua Distance weapon adds DoT?

    We do understand each other here, you did something wrong what distro are you using? EDIT: reeks of 0.4, one sec
  12. Aled

    Lua action script 0.4 tfs

    My attempt, tell me if it works local cfg = { ClickHere = 8669, -- Item you click. GATE_ID = 8836, -- The gate item id. ClickUID = 5074, -- Item you click, unique ID. gateTime = 60, -- Minutes to leave gate open. gatePos = {x=2114, y=458, z=11} --...
  13. Aled

    Solved Spell help [TFS 1.2]

    You were going in some weird ass direction trying to achieve what you want, I did this: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_YALAHARIGHOST) setCombatParam(combat...
  14. Aled

    Lua Distance weapon adds DoT?

    <distance id="2546" action="removecount" script="arrowdot.lua" /> local combat = Combat() local combatnodot = Combat() for i, c in ipairs({combat, combatnodot}) do c:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) c:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)...
  15. Aled

    onspawn

    I can't think of any reason why it would work for me but not work for you make sure everything is correct and that you have <script> <event name="hunterdeath"/> </script> after <monster name="Hunter" nameDescription="a hunter" race="blood" experience="150" speed="195"...
  16. Aled

    onspawn

    Ok, after testing it myself I discovered many mistakes but I got it working for me on TFS 1.2 globalevents lua hunterpos = { {x=1011,y=1005,z=6}, {x=1013,y=1005,z=6} } hunterconfig = { respawntime = 10*1000, chance2 = 25, chance3 = 10, chance4 = 5, monster1 =...
  17. Aled

    onspawn

    lol sorry, put return true before last end in your creaturescripts lua I.E. like this: dofile('data/globalevents/scripts/FILENAME.lua') function onDeath(cid, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) for i, hunterid in pairs(hunters) do if cid == hunterid...
  18. Aled

    onspawn

    yes and remove them from yourmap_spawns.xml EDIT: if its a lot of work test it out with a couple of spawns first to see if it works as intended
  19. Aled

    onspawn

    Sorry I don't know why I keep forgetting things, you also need hunterpos = { {x=1000,y=1000,z=7}, {x=1005,y=1005,z=7} } with all the positions where you want hunters to spawn
  20. Aled

    onspawn

    Sorry, I missed some commas You need to do this: but with this addition You're 1 line of code in creaturescripts.xml would be <event type="death" name="hunterdeath" script="FILENAME.lua" /> so long as you put <script> <event name="hunterdeath"/> </script> in your...
Back
Top