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

    Help with Fear spell please!

    -- >>Script by Tabz!<< -- --{Credits:} -- Level 1 - 10 -- --.::.CONFIG.::.-- local feared_time = 2.5 --.::.CONFIG.::.-- local function fear(cid) local cpos = getCreaturePosition(cid) local dir = {} if queryTileAddThing(cid, {x=cpos.x,y=cpos.y-1,z=cpos.z}) == 1 then table.insert(dir...
  2. Zyntax

    Help with Fear spell please!

    try those functions "fear" and "allowMove" local function fear(cid) local cpos = getCreaturePosition(cid) local dir = math.random(0,3) if dir == 0 then if queryTileAddThing(cid, {x=cpos.x,y=cpos.y-1,z=cpos.z}) == 1 then doMoveCreature(cid, dir) end elseif dir == 1...
  3. Zyntax

    Potions not disappear , i need it disappear

    just remove every "doPlayerAddItem(cid, EMPTY_POT_NAME) "
  4. Zyntax

    Lua item charges

    setActionIDs, would be easier to handle i guess? doSetItemActionId(item.uid, 10) for an onLook function do like if AID > 0 then sendPlayerDescription("Charges: "..aid.." left.")
  5. Zyntax

    tfs1.0 copy backpack (+insides!)?

    If I do it your way @Dalkon I get the error message with the parent. It could really be the case that I have to use the new source from github since :clone() has been changed/fixed.
  6. Zyntax

    tfs1.0 copy backpack (+insides!)?

    Aight, Ill compile the new one later, thanks for the hint @zbizu One thing though, i tried like 10000 combinations until now and I noticed, if i do local z = Item(p:getSlotItem(3)):getUniqueId() d:addItemEx(z) then it tells me that "z" may be a "nil" value, BUT it copies the whole BP like it...
  7. Zyntax

    tfs1.0 copy backpack (+insides!)?

    WAAAA! those metamethods drive me crazy!!!! I can't get this damn thing to work... local p = Player(cid) local d = Container(corpse) local z = Item(p:getSlotItem(3):getUniqueId()) d:addItemEx(z:clone()) Error: item already has a parent WTF is a PARENT xD
  8. Zyntax

    tfs1.0 copy backpack (+insides!)?

    Thanks for the response guys! @zbizu I solved it with @Limos help, he reminded me of the "doCopyItem()" function. It worked perfectly that way! @Dalkon I can't seem to get the correct syntax... i am at tfs1.0 I'm trying: local p = Player(cid) local d = Container(corpse) local i =...
  9. Zyntax

    tfs1.0 copy backpack (+insides!)?

    Giving this a BUMP. Would really be needed! If you have any hints please let me know!
  10. Zyntax

    TheImaginedServer & TheImaginedClient (custom TFS and Client) - Updated 1/16/2015

    Absolutely right, but I'm such a lazy scripter that I want it as easy as possible xD I'm using those functions already, can't hurt to have them in every global.lua file? :D I could copy/paste them myself into the github global though.... but I'd need to install the github things and stuff...
  11. Zyntax

    TheImaginedServer & TheImaginedClient (custom TFS and Client) - Updated 1/16/2015

    hi @Flatlander , I'd have another request. Could you readd (either hardcoded or at global.lua) the function "exhaustion.set/get" ? I dunno why but it seems the devs removed it from the 1.0 branch, I can't seem to find it. here's the code: exhaustion = { check = function (cid, storage)...
  12. Zyntax

    tfs1.0 copy backpack (+insides!)?

    Noone has a clue? Really? :(
  13. Zyntax

    tfs1.0 copy backpack (+insides!)?

    update: I'm as far as scanning for every BPs UID. How to know which backpack belongs where and how to stack them backwards? local function scanBp(uid, t) local con = Container(uid) print("scanbp "..#t.." size: "..con:getSize().." uid = "..uid) for i = (con:getSize()-1),0, -1 do local...
  14. Zyntax

    tfs1.0 player:getSlotItem(slotId)

    item:getUniqueId() thanks ninja, i totally missed that :) Everythings clear now. EDIT: is it possible to slot = player:getSlotItem(slotID):getUniqueId() ? 3rdEdit: best solution local k = Item(p:getSlotItem(4):getUniqueId()) print(k:getName())
  15. Zyntax

    tfs1.0 player:getSlotItem(slotId)

    quick question. Why is it possible to do this local i = Item(getPlayerSlotItem(cid, 4).uid) print(i:getName()) print(i:getId()) but not this local p = Player(cid) local i = Item(p:getSlotItem(4).uid) print(i:getName()) If i try to use the 2nd method i end up with a [nil] value Where's the...
  16. Zyntax

    send broadcast text to players with storage

    No arguing there, Game.getPlayers() would fit better and save some ressources. I'll may get used to the new metamethods and befriend them... sometime... maybe ... :D for i,k in ipairs(getOnlinePlayers()) do if getSOMETHING(k) > THIS then doSomethingWith(k) end end That's better :)
  17. Zyntax

    send broadcast text to players with storage

    getOnlinePlayers() still works, why change it to the new syntax? I can't get along with some of the new functions.
  18. Zyntax

    send broadcast text to players with storage

    if the thread creator is unable to define his server version then he'll get a script for the latest server version (TFS1.0) I am well aware that nearly every svn has its own syntax, i've been with OTs long enough, but well thank you for pointing that out. @Summ thanks, i wrote that without...
  19. Zyntax

    send broadcast text to players with storage

    Well thank you ^^ I always hope they work as intended, I didn't test this one :P
  20. Zyntax

    send broadcast text to players with storage

    local k = getOnlinePlayers() for i = 1,#k do local p = getPlayerByName(k[i]) if getPlayerVipDays(p) > 0 then doPlayerSendTextMessage(p, 20, "YOUR MESSAGE") end end should do it
Back
Top