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

    PHP Powergamers

    $znotePlayers = mysql_select_multi('SELECT * FROM players WHERE group_id < 2 ORDER BY experience - exphist_lastexp DESC LIMIT 5;'); echo '<span style="float: right;">'.coloured_value($player['experience']-$player['exphist_lastexp']).'</span></li>'; You seem to be subtracting the experience...
  2. Leftwing

    Best Database For TFS 1.2 - 10.98 - "Soft Whitelisted"?

    Honestly though unless you are hosting 500+ or multiple servers with 20-50 each then don't bother. Dedicated hosting is a stupid choice for 99% of people, they simply don't need the performance. If you're using OVH get a $5 box for testing or a $20 box for a small server. Most people should...
  3. Leftwing

    Best Database For TFS 1.2 - 10.98 - "Soft Whitelisted"?

    You could just rent a small Linux distro and setup a Nginx webserver for the site. If you have 10 or less players why pay $110 a month? I understand if performance is a must with a decent player count and some custom source edits like increased enemy event interval changes, but even with those...
  4. Leftwing

    [10.77][TFS 1.2] ORTS, a real map project

    I can't be certain but you must also change something to do with the expected packet size for the specific client version, I'm not quite sure if that's right or if that's all that has to be done to make the client version compatible, that may not even be the case. If you are compiling by windows...
  5. Leftwing

    Questing based server

    Such a great explanation of why Tibia was fun for me, I didn't care for hunting and leveling until PvP was my thing, for the first couple years I played Tibia all I cared about was exploring and learning the story. I died to lured GS so many times trying to explore the mainland as a noob, but...
  6. Leftwing

    About BRazilian LEECHERS

    I thought the issue was that the BR forums back in the day didn't really have tutorials and a lot of content in Portuguese, thus they would come to English forums, ask for help, get it, then leave. Since then they have some bigger communities and have been contributing. How many people here...
  7. Leftwing

    The Forgotten Tibia

    It's not that you need to read the whole book, just find your problem and read the relevant content. What's so hard about that? :)
  8. Leftwing

    The Forgotten Tibia

    I really like the ideas and would be capable of helping with TFS sources and scripts, I haven't touched OTClient stuff yet so not quite sure how quickly I could help with that. One thing I'd like to see is a point-assignment modal window which gives you button options and displays your...
  9. Leftwing

    TFS 1.X+ Distance weapons not working

    Fixed, just recompiled TFS branch 1.2 and added my edits again, tested archery before and after and it now works. That's strange.
  10. Leftwing

    TFS 1.X+ Distance weapons not working

    As the title says my TFS 1.2 distro with minor source edits doesn't have working archery with any distance weapons. Unfortunately I did not test before making my edits whether archery worked (I didn't make any big modifications), so I'm not sure. Going to compile a fresh release and test myself...
  11. Leftwing

    TFS 1.X+ How to display effect above character

    Okay, what you really mean is you want it to appear to be "above", but positioning wise, it's actually -1 along the Y axis. That is doable, but in order to do that, you will need to edit the Y value of the player position before passing it to your doSendMagicEffect call. I'm not quite sure if...
  12. Leftwing

    TFS 1.X+ How to display effect above character

    Okay, can you explain what you mean by above? Do you want the effect on top of the character? CTRL-A your entire file. Insert in this post a code block, and label it Lua. I'll modify it for you to work.
  13. Leftwing

    TFS 1.X+ Is it possible to make effect not so slow

    Something maybe like a method that when you move the character, you pass the new coordinates to as an argument to send the effect to that new square. Every time the player moves, send effect to his new position?
  14. Leftwing

    TFS 1.X+ How to display effect above character

    first you'll need a player = Player(cid) variable, then you can do: player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
  15. Leftwing

    TFS 1.X+ How much mana/health gain on potion heal.

    Here's your script with a couple changes, might not be ideal but I did it anyway: local config = { lvl = 1, -- the multiplier for how much level matters. Default 1. mlvl = 2, -- the mulitplier for how much mlvl matters. Default 1. forMin = 1.0, -- forumula multiplier for MIN/max range. Default...
  16. Leftwing

    TFS 1.X+ How much mana/health gain on potion heal.

    For instance: local healthToAdd = ( math.random((((healthmax/100)*hpPercent ) + ((level/12)*config.lvl ) + ((mlevel/18)*config.mlvl ))*config.forMin, ((((healthmax/100)*hpPercent ) + ((level/12)*config.lvl )+ ((mlevel/18))*config.mlvl )*config.forMax))) if health == true then...
  17. Leftwing

    Scripter looking for someone that can fix my inq

    So either the kill creaturescript isn't written, incomplete, or it's broken and not outputting errors to console. In your creaturescripts.xml, there should be an kill event trigger set up for the quest, which should link to a file in the scripts folder. Inside that, you can insert the necessary...
  18. Leftwing

    TFS 1.X+ How much mana/health gain on potion heal.

    Make a variable to hold it, calculate it once, pass it to the relevant callback functions to output text. It'll clean up your code and make it more readable if your equation is outside the if, and is only done once. It can then be used. As it stands you are generating different random numbers...
  19. Leftwing

    What do you think about my custom open-tibia project?

    Learning to script is easy, programming not so much. You can simply examine existing code for scripts and mimic their functionality yourself. Programming in Lua : 6.3 for basic programming and LUA specific features. Programming is a little harder, it requires knowledge of the IDE, compiling...
  20. Leftwing

    Lua What is a callback function?

    http://javascriptissexy.com/understand-javascript-callback-functions-and-use-them/ A JavaScript resource, but callbacks are a common concept in interpreted languages, like LUA. Callback Functions in Lua Better explanation of what is possible with Lua specifically. It's just a function called...
Back
Top