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

    Gdb Crash - Otx

    Your stack back trace is almost the same as tiag0_bn, but his is much more detailed. You both should look at ConjureSpell::internalConjureItem. Do you have the code of this method to post here?
  2. danilopucci

    Gdb Crash - Otx

    To interpret the GDB back trace, you should follow the #'s in reverse order. From #20 to #7 there is nothing worthy. #6 is saying that something happend when a player say "exevo con": #5 is same as #6 (Game:: playerSay was interpreted that the say words was a spell, so it goes to Spells...
  3. danilopucci

    Retrocores serious privacy violation ! Watch out !

    The otclient has a "feature" to make a screenshot of the map framebuffer, so it would not be necessary to implement a "high level" screenshot
  4. danilopucci

    Convert a 7.4 map to be compatible with 7.6/7.72

    Hello! Maybe I can help. I am sending you a PM.
  5. danilopucci

    TFS 1.2 Looking for healing monsters spell

    Try to add some debug-code to check if it is being called. As an example, it put some prints on your code. local config = { level = 500, magicLevel = 300 } local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_DISPEL...
  6. danilopucci

    Lua Very large script, how to reduce?

    I would start reducing the if-elses in onGetFormulaValues. You can use a lookup table to get its value. local formulaLookupTable = { 1.87, 1.91, 1.95, 1.99, 2.03, 2.07, 2.11, 2.15, 2.19, 2.23 } function onGetFormulaValues(player, level, magicLevel) local storageTierRune =...
  7. danilopucci

    Item that repairs boots

    What you need, 1 or 2? 1- A item, like a "obsidian knife", to use on your worn soft-boots and it will transform to a brand new soft-boots? 2 - Use a worn soft boots and it will transform to a brand new soft boots? I searched on the declaration of doTransformItem(uid, newItemId). The first...
  8. danilopucci

    Item that repairs boots

    Are you looking the output program to catch any error? Because the code that you pasted seems that not run correctly. There is a if to check if the item exists. There is a lost else that executes "doPlayerSendCancel(cid, RET_NOTENOUGHMONEY)" Maybe you need something like this: [CODE=lua]local...
  9. danilopucci

    TFS 0.X help (luaDoTeleportThing) Thing not found

    Hi! Great, you are learning so will write here some advices. First of all, you need to understand what is happening. You must know what the functions that code are calling does. Do not simple copy-and-paste code from somewhere, things are not 100% compatible and is not why "it is working" that...
  10. danilopucci

    TFS 0.X help (luaDoTeleportThing) Thing not found

    The "thing not found" errors says that the cid is not valid. Try to make some assertions before calling the doTeleportThing() and doPlayerSetTown(). Try to make some debug code to help you to track the error. Something like this: if Player(cid) == nil then print('player is nil') else...
  11. danilopucci

    Lua onLook Script, no errors; only runs the last checks.

    As forgee said, you mistyped math operators and the string text looks inverted. You did right on the code comment but wrong on the math operators. VIP Players: vocation 5 to 8 Non VIP: vocation 1 to 4 if isPlayer(thing.uid) then -- Yes Guild/Yes VIP [Vocation is greater than 4.]...
  12. danilopucci

    TFS 0.X NPC System OTX2 - Need to be improved?

    Glad to see your advancements on this problem. Yes, looking on this method implementation for "find" the node in list, it is notable that it is not optmized. I checked on lastest version of TFS and even on the branch otvserv2 implementation, this method looks to be replaced by...
  13. danilopucci

    Scripter Looking for someone to optimize Server

    As you already have these measurements, you can simple make a profiling on your server binary. It would give you some smell on where things are critical and you can maybe improve by yourself. If you are using linux there is a tool that you can use: perf-tool. I don't remmember the correct words...
  14. danilopucci

    OTClient - Bug Borders

    I don't think that it is about the item.xml. The fix is about get your current items.otb and just "Reload item attributes" this way, the file itselfs won't be affected
  15. danilopucci

    Source's custom OT game engine (TypeScriptFTW)

    Shame on me, I was with some crazy version of tibia-cip files. I had a monster.db with 38KB which looks like a binary file. Now I checked the version from otland and yeah, it is a human-readable file. Thank you so much anyway!
  16. danilopucci

    Source's custom OT game engine (TypeScriptFTW)

    Great project! I see you are interested about be a better coder... Well, a great source to guide your way is Clean Code by Uncle Bob (Robert Cecil Martin) and The Mythical Man-Month by Fred Brooks! These books are essential for any developer. By the way, do you have any details on how to read...
  17. danilopucci

    OTClient Rect Class

    Oh, now I got it! It is the width/height in terms of pixelcount/pixel origin Thank you so much for your attention and clear illustration!
  18. danilopucci

    OTClient Rect Class

    Hello guys, I am currently experimenting some codes on OTClient and I have a conceptual question about width/height in Rect class There is a bunch of "+1" and "-1" corrections on its values, which does not look right. I am blowing my mind trying to understand that and why and how it works as...
  19. danilopucci

    Nostalrius or Othire?

    I did fork ItemEditor from ottools adding compatibillity to older versions of items.otb. I really don't know about the alwaysOnTopOrder because I never used it too much, but it has all the features from last version of ottools
  20. danilopucci

    OTClient Graphics Discussion (Anyone out there more knowledgeable than me?)

    Any news? After two+ years maybe a lot of new stuff became and maybe someone has something say or even to contribute now
Back
Top