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

    [LUA] Attempting to create a global table

    Dear victor... will not work. The lua states are not the same. You have to understand, all states load ONCE the global.lua If you change something in global and the load a module will be there when you use. but if they load and then you change in file will not happen nothing. You can use a...
  2. Mock

    Function getTableInAlphabeticalOrder

    I think the borest part of the function is:
  3. Mock

    GlobalEvent Anti-Dupe - Delete all items with duplicated serial from your database.

    Since tfs 0.3.4 we have to free the results because every db.getResult open a new connection, you checked if its really true about it? I already tested on 0.3.4, if you run like 500 db.getResult the mysql block the new connections and some times close the server db connection.
  4. Mock

    GlobalEvent Anti-Dupe - Delete all items with duplicated serial from your database.

    Are you crazy? Install a new mysql will not fix the problem. Your code idea is good... but the code still a mess. You open mysql connections but don't close. function generateSerial() --[[local strings = "AaBbCcDdEeFfGgHhIiJjKkLlMmOoPpQqRrSsTtUuVvWwXxYyZz" local newSerialStr...
  5. Mock

    getSocket(cid) function [To audio module]

    is not exactly simple... #SHARED_STATES true is not this... you have to remake like 30% of lua envoriment in server.
  6. Mock

    A little question about item class in open tibia.

    Do anyonw know why when you move a item his UID changes? Not the UID related the uid you set on the map yes the item.uid
  7. Mock

    CreatureEvent [Lua&C++]Absolute anti clon system!

    just fiex... is the return true missing. but the creaturescript do not work well in tfs 0.4... better not use on 0.4 you can crash your server
  8. Mock

    [Lua] Writing shorter scripts

    Add this too :D Syntax sugar: msg = "omg" msg = string.gsub(msg,'m','-') print(msg) --> o-g With syntax sugar: msg = "omg" msg = msg:gsub(msg,'m','-') print(msg) Lower print(("omg"):gsub(msg,'m','-'))
  9. Mock

    CreatureEvent [Lua&C++]Absolute anti clon system!

    ow every 2 sec save the house when move a item inside a house :P
  10. Mock

    CreatureEvent [Lua&C++]Absolute anti clon system!

    Well i know the whole systems is inneficient. however there are people desperate for a quick solution. The save house is only to save things if player remove something on the house... But i can create another thing, not a console but a file :w00t:. When crashes server read the file and etc... if...
  11. Mock

    CreatureEvent [Lua&C++]Absolute anti clon system!

    i Think the my onMoveItem is call on trade but if didn't...: function onTradeAccept(cid, target, item) doSavePlayer(cid) doSavePlayer(target) end Only works on tfs 0.3.4+ and 0.4.x
  12. Mock

    CreatureEvent [Lua&C++]Absolute anti clon system!

    This system require this creraturescript: http://otland.net/f35/creaturescript-onmoveitem-moveitem-frompos-position-cid-96742/ When you install this creaturescript just add this code and you will never worry about item clon in your server: function onMoveItem(moveItem, frompos, position, cid)...
  13. Mock

    Simple tool for addEvent

    If you are a script you know how to delay some actions using addEvent, but if you use something like: addEvent(doCreatureSay,5000,cid,'hail',1) you know if the player logout durig the interval you will got a error in console and you have to do it to avoid errors...
  14. Mock

    Better Notepad++ Lua Lexer and a few other things.

    for open tibia scriptiong use the scrite, just edit the lua.xml to highlight the otserv functions. :P is a basic and fast editor. If you want he works as hex editor.
  15. Mock

    Better Notepad++ Lua Lexer and a few other things.

    scite is better to edit lua
  16. Mock

    [Uncomplete] Build you own house.

    i know about all, i said the code was a mess, i done it when i was a noob scripter and there is too many things cloud be fixed. this script only was released because too many ppls asked me for it, to start i will not release it but i am not selling this code so it is getting old on my pc so i...
  17. Mock

    [Uncomplete] Build you own house.

    the script running is amazing but the code is a mess :P
  18. Mock

    [Uncomplete] Build you own house.

    there is no need use PHP in npcs... You mean SQL? just create a db using this structure:
  19. Mock

    [Uncomplete] Build you own house.

    yes i know, there is no roof xD laziness... o.o i don't think o0 @dgprado nop. simple script made by a simple mind...
Back
Top