• 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. C

    Lua Item for random teleport

    I try but i have another error
  2. C

    Lua Item for random teleport

    Yes i removed because i testing with constant position. I try in different ways but i have still error "attempt to compare number with nil" i starting eat my hair! Thanks for showing interest
  3. C

    Lua Item for random teleport

    local random_positions = { {x = 29990, y = 30125, z = 7}, {x = 29990, y = 30133, z = 7}, {x = 29990, y = 30141, z = 7}, } local timeback = 5 local zxc = {x = 29997, y = 30112, z = 7} function back(cid) doTeleportThing(cid, old) end function onUse(cid, item, fromPosition, itemEx...
  4. C

    Lua Item for random teleport

    hi i want to make item for random teleport. After 5 seconds back to old position(where start teleport) i have this code local random_positions = { ["A1"] = {x = 29990, y = 30125, z = 7}, ["A2"] = {x = 29990, y = 30133, z = 7}, ["A3"] = {x = 29990, y = 30141, z = 7}, } local timeback = 5...
  5. C

    NPC - Say something

    Thanks, but when i copy all folder lib form orts to tfs I should have this functions. I try copy this -- VoiceModule VoiceModule = { voices = nil, voiceCount = 0, lastVoice = 0, timeout = nil, chance = nil, npcHandler = nil } -- Creates a new instance of VoiceModule...
  6. C

    NPC - Say something

    Hi I use tfs 1.2 I wonder, how to make fix for npc. I want to make npc say something at times. <?xml version="1.0" encoding="UTF-8"?> <npc name="xxx" script="xxx.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100" /> <look type="132" head="20" body="39" legs="45"...
  7. C

    VC14 for orts server

    Hi I use this data --> enter I need folder vc14 for compile tfs 1.2 orts. i try get vc14 from here. but when i try start server i get many errors
  8. C

    darkness on all floors

    In vs2015 i use function search. Im looking all files tfs (.cpp .h) i looking word "light" I don't find any code responsible for light on floors. I am blind? Anyone know wher is this ?
  9. C

    darkness on all floors

    thx for interessing. I fund this in protocolgame.cpp const Position& myPos = player->getPosition(); if (myPos.z <= 2) { //we are on ground level or above (7 -> 0) //view is from 7 -> 0 if (z > 7) { return false; } } else if (myPos.z >= 3)...
  10. C

    darkness on all floors

    hi i use ths 1.2, 10.97 actually floor 0-7 is day+night and 8-15 is darkness. How to make all floors(0-15) with darkness?
  11. C

    Spawn time > time

    Hi <monster name="H1" x="-1" y="0" z="8" spawntime="60" /> Spawn time is in the seconds? spawntime=60 = 60 seconds? I try to measure this and spawntime need more time than real time anyone know how seconds have "1" spawtime?
  12. C

    Lua First items dependent of vocation

    why here is " i= 1" for i = 1, #firstItems do and here is for _, for _, items in pairs(vocationItems) do
  13. C

    Lua First items dependent of vocation

    why this code is working player:addItem(1987, 1):addItem(2674, 1) and this isnt player:addItem(1987, 1):addItem(2674, 1):addItem(2120, 1):addItem(2689, 1) this dont work too player:addItem(1987, 1):addItem(2674, 1) player:addItem(2120, 1):addItem(2689, 1)
  14. C

    Lua First items dependent of vocation

    local firstItems = {2050, 2461, 2467, 2649, 2643} function onLogin(player) if player:getLastLoginSaved() == 0 then for i = 1, #firstItems do player:addItem(firstItems[i], 1) end if player:getVocation():getId() == 1 then...
  15. C

    Lua First items dependent of vocation

    hi i want give items on first login dependent of vocation i make this code: local firstItems = {2050, 2382} function onLogin(player) if player:getLastLoginSaved() == 0 then for i = 1, #firstItems do player:addItem(firstItems[i], 1) end...
  16. C

    Remove "mount" and "color palete"

    i fix problem. i just remove line with addons. thx for help
  17. C

    Remove "mount" and "color palete"

    my code looks like: NextOutfitButton < NextButton PrevOutfitButton < PreviousButton MainWindow !text: tr('Select Outfit') size: 338 375 @onEnter: modules.game_outfit.accept() @onEscape: modules.game_outfit.destroy() // Creature Boxes Creature id: outfitCreatureBox...
  18. C

    Remove "mount" and "color palete"

    ok i find this. sorry for spaming
  19. C

    Remove "mount" and "color palete"

    Hi I want remove this : wher it is in otclient?
  20. C

    Compiling Error Compiling Otclient w/ MSV 2017

    Use this tutorial. Remember to remove Old Environment variables
Back
Top