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

    TFS 1.X+ Not sure how to handle nils on slotItems IFs

    Been trying for a while now, works fine till you have none of the items equipped, which then makes the getSlotItem return nil. Not really sure how to proceed in with the nils, been bashing my head into the wall with this for a while now. I know there might be a real dumb easy way to handle that...
  2. Oneda

    [Weapon] TFS 1.3 Chance to double hit (commented)

    Hey bois, just made a script for double-hitting weapons with configurable chance, this is literally pretty simple and was made for study purposes only, so if yall find any mistakes or anything that could had been better implemented, please let me know! Commented most likely every single line of...
  3. Oneda

    TFS 1.X+ Best approach for loops with delays inbetween?

    Hey bois, just wondering whats the best approach to make a loop with delays inbetween. I.E: I want a magic effect to be sent every second untill 10 seconds have been reached. I kinda tried looking into addEvent and onThink but couldnt really find much useful info around them
  4. Oneda

    Solved 1.3 local variable returning nil, not sure why.

    So, I'm trying to parse a var in a getItemCount, but its returning nil, not really sure what I'm doing wrong here. if I replace player:getItemCount(aucItem) with player:getItemCount(2160) for example, the script runs well. Pretty confused why the var itself is returning nil. function...
  5. Oneda

    Custom name on talkaction based Private Message?

    Hey bois. Wondering how would I set the name of the PM sender through this code. Couldn't really figure out the "speaker" part, I want it to be a custom string not a player name or anything: player:sendPrivateMessage(speaker, text[, type])
  6. Oneda

    Oneda's Gallery [Private]

    Hello everyone, call me Oneda. I am an aspiring spriter so feel free to give me your feedback as it might help alot. Had to open this gallery topic to post the sprites that aren't free. Will update this thread with all my training progress. First ever creature attempt (Dog) Small update on...
  7. Oneda

    Oneda's Gallery [Free to use]

    In contribution to the community just as @marek12, the sprites posted on this topic will be free for everyone to use. Keep in mind I am still learning and sprites will NOT be perfect, will appreciate any criticism that will help me improve. Thanks in advance, Oneda. First outfit I ever made...
  8. Oneda

    C++ TFS 1.3 + accented characters (Quick question)

    Hey everyone, I've managed to translate the onLook events successfully after converting the document to ASCII, not really sure what to do in the source code tho, could someone give me a light? (that "Vocãaãc" is supposed to also be "você")
  9. Oneda

    OTClient Compiling OTC fails

    Trying to compile a different version of OTC and its failing, giving me these errors: Any ideas why? The client I'm trying to compile: therubyproject/rubyclient 1>c:\users\oneda\desktop\ruby\cliente\rubyclient\src\framework\net\connection.cpp(102): error C2440: '<function-style-cast>': cannot...
  10. Oneda

    Lua Small problem with "getTarget" in a new function

    So guys, How should I get the player target inside a new function I'm making? (Target isnt a creature, should be a tile/item) function isGathered(cid, decayId) for _, tPlayer in ipairs(Game.getPlayers()) do local target = cid:getTarget() target:transform(decayId)...
  11. Oneda

    Spell Spell which can be cast only if you have X item on X slot.

    Hey guys, I just modified a berserk spell so it can only be cast if you have a Winged Helmet or a Warrior Helmet in your CONST_SLOT_HEAD. Have in mind, this is just a base spell so you can check out how to limit spells to be used only if you have X item equipped on X slottype. local combat =...
  12. Oneda

    Action Alive Skinning - Simple TFS 1.2 Script

    Hey guys! I've been developing my lua skills and I just finished a script which allows you to use your obsidian knife on alive creatures (which you can config. which creatures you would like to be skinnable when alive) This version is still pretty simple, but could be used as a base for...
  13. Oneda

    Lua Help with a simple Gather System TFS 1.2 Tables

    Hey guys! I got a small problem here, I made a real simple base gather system for TFS 1.2, which has a table for bush IDs on it, and I just CANT remember how do I use tables at all. function onUse(player, item, fromPosition, target, toPosition, isHotkey) local bushIds = {2769, 2768}...
  14. Oneda

    Looking for RPG scripts ideas!

    Hello everyone, I'm Oneda. I'm planning on studying some LUA and C, and I thought that the best way of doing it, was to create RPG scripts, that could be later used in a server or released publicly here. Feel free to let your ideas down here! Don't forget to be as specific as you can when...
  15. Oneda

    Lua Need SetTown function.

    Ey everyone! I need a setPlayerTown function for TFS 0.36, the one I'm using didn't come with it. Thanks for the help! Att, Oneda.
  16. Oneda

    Solved Fresh TFS 1.2 crashes at "Loading Script Systems"

    Well, so. This is a FRESH (I mean it) TFS 1.2 which I just compiled [64bits], with fresh scripts and everything. No idea what I'm doing wrong, and if I try to compile it as 32bits it fails, says I'm missing some BOOST library file, which is weird, as I do have BOOST and it compiles fine as 64bits.
  17. Oneda

    How to add new text colors in TFS 1.1?

    How am I supposed to add new text colors in TFS 1.1? Also, if possible, could someone link me a image with all colors and their respective IDs? Att, Oneda.
  18. Oneda

    Compiling Compiling problem.

    When trying to compile, just at the end of the compiling proccess, I get these errors. What am I missing? Using VC13 TFS 1.1 (9.86 version) (There's way more errors, but they're basically the same ones)
  19. Oneda

    Lua Why isnt this action adding the mount it should?

    function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) doPlayerPopupFYI(cid, "You created a steelbeak mount, it consumed one royal steel piece.") if not player:hasMount(34) then player:addMount(34)...
  20. Oneda

    Solved How should I make a teleportPlayerToMonster function?

    Well, I would like to create a function that would be something like: teleportPlayerToMonster(monstername) Is there anyone who could help me with it? Don't even know where to start from. TFS 1.1 btw Tried it making like this: function teleportOutTarrasque(cid) local tarrasquePos =...
Back
Top