Search results

  1. Togu

    C++ How to make critical hit works for wands damage?

    Could you share with us that Lua solution?
  2. Togu

    C++ How to make critical hit works for wands damage?

    Some codes just execute on C++ OR on Lua scripts. I think thats the case. You have to duplicate the system to the staff.lua script or make it execute on C++ AND on Lua script.
  3. Togu

    How to change manaGain and healthGain during game

    Next
  4. Togu

    How to change manaGain and healthGain during game

    I was looking on sources where to change theses values but I couldn't find. It looks like these addCondition, updateCondition and setParam are a little hard to understand. Do you guys have some tips? I want to make it based on skills
  5. Togu

    [OTClient] How to add new lua libraries?

    Worked for a simple file but not for the lua socket lib :/ ERROR: command failed: ...ojetos\OpenTibia\TheForgottenTibia\Client\lua\socket.lua:12: module 'socket.core' not found: no module 'socket.core' no field package.preload['socket.core'] no file '.\socket\core.lua' no file...
  6. Togu

    [OTClient] How to add new lua libraries?

    Loool Copy and paste that on lua terminal: os.execute("start http://reaper.fm") It totally fits my needs haha
  7. Togu

    Lua Function Game.loadMapChunk(path, position, remove)

    I was thinking it was some kind of system like /reload monsters /reload weapons But it is more like a "changeable map event", and that is a great work too! But dont fit my needs :(
  8. Togu

    [OTClient] How to add new lua libraries?

    Niceeeee, I was going to ask this now... "where to include the files of the socket library" hahahah I'm gonna try! Thanks!
  9. Togu

    Lua Function Game.loadMapChunk(path, position, remove)

    @Delusion if you want you can download here also GustavoContreiras/TheForgottenTibia (https://github.com/GustavoContreiras/TheForgottenTibia)
  10. Togu

    [OTClient] How to add new lua libraries?

    So, I want to create a button on client that download a file from internet, I need the "socket" library for that, I tried using socker = require("socket") on terminal on cliente but received: ERROR: command failed: :1: module 'socket' not found: no module 'socket' no field...
  11. Togu

    Shouldn't the map editor create a item.xml file?

    7.1 maps stores every tile in xml haha Would be good if someone develop an IDsChecker for .otbm files. Maybe a little window just with a list with setter and getter.
  12. Togu

    How to allowClone / disableKickOnLogin for specific players?

    I was looking for the "You are already login" string, REPLACE_KICK_ON_LOGIN and ALLOW_CLONES flags haha, should have simply read the method. COMPLETE SYSTEM: https://github.com/GustavoContreiras/TheForgottenTibia/commit/b19b901689b26aa0e3b015d2ef74bc9165fbb75b
  13. Togu

    Shouldn't the map editor create a item.xml file?

    If I could I'd give you best answer for that haha
  14. Togu

    Lua Function Game.loadMapChunk(path, position, remove)

    Can I simply make a big giant line of tiles from my map to the position (0,0,0)? Or add 1 tile at (0,0,0)? By the way, awesome! Edit: added 1 tile at (0,0,0): <globalevent name="ReloadMap" time="21:04:00" script="reloadmap.lua"/> function onTime(interval) broadcastMessage("Reloading...
  15. Togu

    How to allowClone / disableKickOnLogin for specific players?

    Is there an easy way to do that? Any suggestion?
  16. Togu

    Shouldn't the map editor create a item.xml file?

    When you save a map it creates a map-spawn.xml and a map-house.xml. Why don't it have a map-item.xml with all action and unique ids? It would be much better for editing and checking. Something like: <?xml version="1.0"?> <items> <item itemid="1748" actionid="2000" uniqueid="0" posx="33124"...
  17. Togu

    fatal error C1083: Cannot open include file: 'bitset': No such file or directory

    I tried to retarget with all versions I have. I have to be careful cause I use this machine to compile also OTClient and it's hard to config that environment.
  18. Togu

    fatal error C1083: Cannot open include file: 'bitset': No such file or directory

    Yeah I'm trying to "repair" it right now, downloading and installing 9 GB of files If that dont work only reinstalling windows
  19. Togu

    fatal error C1083: Cannot open include file: 'bitset': No such file or directory

    Looking at the internet and I'm the only person in the world with this issue
Top