• 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!

Search results

  1. Shadowsong

    Lua Spells and Animations

    My bad, that +1 should be inside the brackets. But yeah, will need to change this for xInc = 1, 3 do for yInc = 1,3 do table.insert(myPositions, Position(r.x+xInc, r.y+yInc, r.z)) end end because this will do the effect on all the...
  2. Shadowsong

    Lua Spells and Animations

    Sure, I'm mainly interested in becoming a bit more knowledgeable with the new TFS scripting style. As far as I can tell on the surface level, the new one is making use of object oriented styled code as opposed to old TFS. It bums me out that this error doesn't show a line number and I'm not...
  3. Shadowsong

    Lua Spells and Animations

    Okay try this local function sendEffc(cid) if cid then local player = Player(cid) local r = player:getPosition() local nextPos; local myPositions = {} for xInc = 1, 3 do for yInc = 1,3 do table.insert(myPositions...
  4. Shadowsong

    Lua Spells and Animations

    Lol sorry, change r1 = cid:getPosition() to local r = cid:getPosition()
  5. Shadowsong

    teleport script

    Well I formatted your script a bit better, but other than that, just by looking at it, there doesn't seem to be anything wrong. You may want to change npos2 = {x=601, y=574, z=7} to local npos2 = {x=601, y=574, z=7} Because in your case, it's a global variable and that can mess things up for...
  6. Shadowsong

    Force client to open zoomed and without bars

    In gameinterface.lua there are several instance of this function being called: setupViewMode(0) By default, every time you log in and log out, it sets the view mode to be "0", which is the default look. This look of yours, I assume is either view mode "2", or some custom scripted view mode...
  7. Shadowsong

    Lua Spells and Animations

    Can you try this too? Just curious if it will work. local function sendEffc(cid) if cid then local cid = Player(cid) r1 = cid:getPosition() local nextPos; local myPositions ={} for xInc = 1, 3 do for yInc = 1,3 do...
  8. Shadowsong

    Fixing transform effect position.

    Did you translate the other function to your TFS? It probably won't work if you just paste it like this, and as I noted up there, I'm not experienced with this new tfs so I may have written something in a way it's not supposed to be. In 0.3.6 it works fine. If any other reader on this thread...
  9. Shadowsong

    When do you suspect the whole of tibia will come to its untimely demise?

    Come on dude wait at least until February to post stuff like this, we already had a "dying" thread in January :D
  10. Shadowsong

    Fixing transform effect position.

    I have a bit of a hack for situations like this with larger effects. Wrote a wrapper for send magic effect: 0.3.X: function doEff(position, number, offsetx, offsety) if offsetx ~= nil then position.x = position.x + offsetx end if offsety ~= nil then position.y =...
  11. Shadowsong

    [USA] CreativeTibia | Everyone Is GM | 11.44 Custom client | RL Map | Starts Jan 19, 2018

    During all my time in the OT community, I've never seen an OT approached this way. Maybe something like it existed, but it passed me by in that case. You will definitely get bonus points from everyone for this unique aspect, however, I hope you have the technical proficiency to maintain and...
  12. Shadowsong

    Lua Little help with this system

    You can set a new duration to an item created this way, and make it start decaying so if it's not used until a certain time, it will disappear. doItemSetAttribute(addItem, "duration", 3600) doDecayItem(addItem) Alternatively, if you want more control over what happens with the item, you can...
  13. Shadowsong

    Some help? :)

    If literally everything is going to be percentages, assuming that a maximum amount of something is 100%, then you could say that just changing every creature's max. mana and HP to 100, and making costs and damages of all mechanics use (between 1 and 100) resource would be a very easy way to go...
  14. Shadowsong

    players cant logout on my server

    This is how you become Kayaba Akihiko accidentally
Back
Top