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

    TFS 1.X+ create tile on no ground tile 1.5

    local switchBridge = Action() local leverOn = 1946 local leverOff = 1945 local bridgeTile = 405 local effect = CONST_ME_POFF local bridgePos = {Position({ x = 1090, y = 1003, z = 8 }), Position({ x = 1091, y = 1003, z = 8 })} local leverTile = {Position({ x = 1089...
  2. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    Yea, I know. I will fix up the script and get back to you!
  3. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    So happy it helped friend! Good luck with your project! Btw : on line 6 add : local effect = CONST_ME_POFF on line 45 add : bridgePos1:sendMagicEffect(effect) bridgePos2:sendMagicEffect(effect) If you want that visual effect aswell.
  4. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    Error?
  5. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    Ohh, this is a revscript btw. So it should be located in data/scripts/actions not data/actions/scrips 1679417004 Oh and Im like gigga stupid. I used actionId's so you'll have to put actionid "32191" on the levers for mine to work.
  6. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExZTkwMGMyZDVlOTQ5NGQ3MjViZDA0YjdjNzBkZjBjYmRhNDY0NTQwZiZjdD1n/ruPsPXzZSz7UmUuo1t/giphy.gif Hmm thats very weird. This should work. You sure you put the correct positions at bridgePos1 and 2? With Position() before?
  7. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    local switchBridge = Action() local leverOn = 1946 local leverOff = 1945 local bridgeTile = 405 local bridgePos1 = Position({ x = 1090, y = 1003, z = 8 }) local leverTile1 = Position({ x = 1089, y = 1002, z = 8 }) local bridgePos2 = Position({ x = 1091, y =...
  8. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    function Position:createItem(itemid, count) local toTile = Tile(self) if not toTile or not toTile:getItems() or not toTile:getGround() then doAreaCombatHealth(0, 0, self, 0, 0, 0, CONST_ME_NONE) Game.createItem(itemid, count, self) end end function onUse(cid, item...
  9. Sprrw

    TFS 1.X+ create tile on no ground tile 1.5

    https://otland.net/threads/creating-items-on-no-ground-tile.284321/#post-2719160 In short this is the solution : function Position:createItem(itemid, count) local toTile = Tile(self) if not toTile or not toTile:getItems() or not toTile:getGround() then doAreaCombatHealth(0, 0...
  10. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Hey man! Thanks a lot for your reply as usual! ^^ Are there any noob friendly documentation on tfs functions? (I do understand that I can look through the code and test etc), just asking incase I can save myself some struggle ^^ I did manage to find this : docs/tfs-documentation at master ·...
  11. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Duhhh, thanks for stating the obv. Im a slow thinker XD
  12. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Oh actually I get it, but now I only have the problem of the npc not seeming to care about z levels. It doesnt make sense for the npc to "see" you if youre above it. How'd I go about this issue?
  13. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Actually I ran into a bit of a problem. Well Seems like I spoke too soon, maybe Im still confused about Npc scripts. But this script only seems to be called when the server launches so the npc will only check if there is a player near it once + Im getting this error : Im not sure if we're using...
  14. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Yea this looks way better. Was just at this moment trying to understand your priest onThink script (the one where he cured and healed you if you had below 30% hp). Only reason I went with @oserc 's way was cuz I find npc scripts so confusing for some reason... But now that Im looking at it, it...
  15. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Well I actually already went ahead and tested your way out and Im not sure if this is what you meant but I this is what I've got so far : local npcEnterFocus = MoveEvent("npcEnterFocus") local rightBottomCorner = Position({ x = 1062, y = 970, z = 7 }) local leftTopCorner =...
  16. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    Ohh thats interesting. Ima give it a go. Thanks a lot! Ps, that list is crazy good! For sure bookmarking that thread <3
  17. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    You know what, this aint a bad idea at all. I will give it a go! Thanks a lot m8.
  18. Sprrw

    Lua Hello folks! How would I go about an alternativ way of adding npc focus?

    So basically Im looking for ways to enter a npc convo without having to speak. Example: Enter a room and the npc says "Hello, and welcome. Please browse my shop". Idk if thats a super good idea but you kinda get the feel of it. Im asuming this is not doable thorugh a normal moveevent. Would this...
  19. Sprrw

    Lua Display effect on client side TFS 1.4

    This is beutiful! 🥹 Thanks a lot man!
  20. Sprrw

    Lua Display effect on client side TFS 1.4

    Thanks a lot! <3
Back
Top