• 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. Sir Islam

    CreatureEvent Pvp Arena TFS 1.x

    yes i forget to change it i fix it now :)
  2. Sir Islam

    doCreatureSetNoMove(cid,allow) tfs 1.x

    how to use it doCreatureSetNoMove(cid,true) doCreatureSetNoMove(cid,false) function doCreatureSetNoMove(cid,allow) if allow then local speed = Player(cid):getSpeed() Player(cid):changeSpeed(-speed) else doChangeSpeed(cid, getSpeed(cid, getPlayerLevel(cid)) - getCreatureSpeed(cid))...
  3. Sir Islam

    CreatureEvent Pvp Arena TFS 1.x

    don't register in login and don't forget to remove Pvp tool from arena in map editor in creaturescripts.xml put this code <event type="login" name="Arena_Login" script="Arena_Death.lua"/> <event type="preparedeath" name="Arena_Death" script="Arena_Death.lua"/> make file name Arena_Death.lua...
  4. Sir Islam

    [SOLVED][CreatureEvent] Tile anti death (when die by monsters) TFS 1.1

    i test it on my server tfs 10.76 and this work
  5. Sir Islam

    [SOLVED][CreatureEvent] Tile anti death (when die by monsters) TFS 1.1

    https://otland.net/threads/pvp-arena-test-on-tfs-10-76.234688/
  6. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    ummm ok this very easy give me some minuets
  7. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    i think u will get problem if Monster get killed by player yes ? if yes the fix is down function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local winnerPlayer = killer:getMaster() local loserPlayer = monster:getMaster() local reward =...
  8. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    :D xd yes u dont need to register it bc the register in action and no problem :)
  9. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    i will see in my server work or no
  10. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    xd :D give me some minuets i will put this event in my server and test it :)
  11. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    :) try now function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local reward = MonsterArena.reward if reward then doPlayerSendTextMessage(killer, MESSAGE_INFO_DESCR,'Your monster won the fight and earned a reward for you!')...
  12. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local reward = MonsterArena.reward if reward then doPlayerSendTextMessage(killer, MESSAGE_INFO_DESCR,'Your monster won the fight and earned a reward for you!')...
  13. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local reward = MonsterArena.reward if reward then Player(killer):sendTextMessage(MESSAGE_INFO_DESCR, 'Your monster won the fight and earned a reward for you!')...
  14. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local reward = MonsterArena.reward if reward then killer:sendTextMessage(MESSAGE_INFO_DESCR, 'Your monster won the fight and earned a reward for you!')...
  15. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local loserPlayer = monster:getMaster() local reward = MonsterArena.reward if reward then killer:sendTextMessage(MESSAGE_INFO_DESCR, 'Your monster won the fight and earned a...
  16. Sir Islam

    What is the lua function to create a monster?

    iam Right check this https://github.com/otland/forgottenserver/blob/1.0/data/talkactions/scripts/place_monster.lua
  17. Sir Islam

    Solved [ERROR] attempt to index local (a nil value)

    chnage winnerPlayer:addItem(reward.itemId, reward.count) to killer:addItem(reward.itemId, reward.count) if still not work change local winnerPlayer = killer:getMaster() to local winnerPlayer = killer
  18. Sir Islam

    What is the lua function to create a monster?

    doSummonCreature(name, pos)
  19. Sir Islam

    Guild save Error

    change isNumber to isNumeric in script save or put this code in save script function isNumber(str) return tonumber(str) ~= nil end
Back
Top