• 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!

sql

  1. K

    Sqlite Error

    Could somebodby help me, i have 2 little problem :( I don't know what this error is [6/7/2020 23:7:17] sqlite3_prepare_v2(): SQLITE ERROR: no such table: castle_dono (SELECT "guild_id" FROM "castle_dono" WHERE "guild_id" > 0) And this is the other error, it happens when a player log out...
  2. Lurk

    Lua how to get accountId using lua

    Hello, I have this code function getAccountPoints(cid) local id = db.getResult("SELECT `account_id` FROM `players` WHERE `name` = '" ..getPlayerName(cid).. "';") print("id: " ..id.. "") local res = db.getResult('select `points` from `znote_accounts` where `account_id` = \''..id..'\'')...
  3. J

    Globalevent with storage comparison problem

    TFS 1.2 We have this function on our server, where you pull 1 of 3 levers to set a global storage in db where each lever has its dedicated storage number. What we need, is a global event to check which of the global storages that have the highest value, eg: Lever 1 = 3201 Lever 2 = 3202 Lever...
  4. VagosClubTM

    C++ I NEED HELP WITH YUROTS XML 7.6

    Hello friends, I would like to know if someone on the forum knows or is more involved in this area of OTS, although we know YurOTS 7.6 xml is obsolete. but my server has been online for more than 11 years and I need my database, I would like to know if it is possible that my XML database can be...
  5. N

    Thread with this ID does not exits.

    en - Whenever I post a news on lastnews.php nothing happens, and if I try to post on forum.php it returns me a page written just that, "Thread with this ID does not exits." pt - Sempre que vou posta uma news no lastnews.php nada acontece, e se eu tento postar pelo forum.php me retorna uma pagina...
  6. maksumic

    Interesting SQL Queries: Server Statistics

    Find Average Look Type Color The query finds how many players use a look type and the average colors for that look type. SELECT COUNT(`looktype`) AS `NumberOfPlayers`, `looktype` AS `Type`, ROUND(AVG(`lookhead`), 0) AS `Head`, ROUND(AVG(`lookbody`)...
  7. BUMP

    Looking for stable TFS 8.0 client SQL version

    Hello! I'm looking for stable The Forgotten Server for Tibia client 8.0.
  8. Lurk

    TFS 0.X SQL Query to change depot items

    Hello, I had some depots in certain towns linked wrong and now a player has different items in different depots at the same city. Is there a SQL Query that would allow me to send all the items my players have from one depot to another? Example: I have 30 itens in the depot of town 1 and 50 in...
  9. P

    OTClient [7.72] OTHire 0.0.3 SQL setup

    I am having a lot of trouble getting the server [7.72] OTHire 0.0.3 to work. All I need is for it to run locally with only my machine connected. I cant get the SQL to work and this is such a jungle to me. I have no previous experience in SQL however I do have some basic knowledge in...
  10. P

    [SQL] how to create fk int in TABLE

    Filme COD (int, pk) nome(varchar 20, not null) nascimento(datetime, not null) obs(tinybit, not null) obs2(int, fk, not null) I thought of something of the type create table filme ( COD int PRIMARY KEY AUTO_INCREMENT, nome varchar(200) NOT NULL, nascimento datetime NOT NULL, obs tinyint NOT...
  11. V

    How to change server language (7.6)

    Hi, well the title says pretty much what I need, I just downloaded a server in polish, and I want to change it to english, so everyone world wide can play easily, also im looking for some help with sql servers pretty basic stuffs.
  12. Rorschach2

    Programmer Searching for SQL Programmer - update database to new tibia version

    Hello, I am searching for someone that can update my 8.4 server database to 10.98 server database. I have payed for several services already, JoeRod and Raggaer being the ones I worked together the most. Thanks for the atention, PM me if interested.
  13. V

    Interested in being part of a tf 7.6 proyect?

    Hi, im looking for someone capable or interested in helping creating a 7.6 tf server, like the one Becks had many years ago, of course we want the server to be sql or so, or even the xml type, the only problem with the xml servers we have is that they have an automatic afk check system that we...
  14. V

    Interested in 7.6 Server Proyect

    Hi, im looking for someone capable or interested in helping creating a 7.6 tf server, like the one Becks had many years ago, of course we want the server to be sql or so, or even the xml type, the only problem with the xml servers we have is that they have an automatic afk check system that we...
  15. V

    Server 7.6 HELP URGENT

    Hi, im looking for someone capable or interested in helping creating a 7.6 tf server, like the one Becks had many years ago, of course we want the server to be sql or so, or even the xml type, the only problem with the xml servers we have is that they have an automatic afk check system that we...
  16. GhostWD

    TFS 0.X SQL Query to get item count in backpacks of id

    Hi OTLanders, I've got problem with making query that returns items count for backpacks of id what i need is getting pid of container, itemCount and correct itemtype I've used SELECT pid, COUNT(*) FROM player_items GROUP BY pid HAVING pid in (SELECT DISTINCT pid FROM player_items WHERE...
  17. Sacarus

    Lua Return number of rows from select in lua

    Hi, sorry for the dumb question, but I just cant get the number of rows returned by a select. I tried using while result.next(data) and it loops just two times, executing the same code in sql returns 4 rows. The following code prints "false". Does anyone know how to get that COUNT(*) ?? Any...
  18. Codex NG

    God account on TFS 1.3 + premium, via sql

    If you are testing a server locally and just looking to create a new account without having to setup an AAC, these 2 sql queries will do that for you. This is just to help you speed up your work flow :) The username and password is 1/1. 1st thing you want to do is create the account, go into...
  19. Dzoqa

    Team [5€] every finished job for OTS + place in team

    Hi guys, Im looing for people who would join to our Project of Tibia Server. We offer you: - ~5€ for every finished job, - joining to our management, - great and funny team of 4 men with you, - stable job if u'll do what u have to :) - ur private ts3 Server, - mooooney $$$ =) How to? Step...
  20. Kuzyn

    Solved ZnoteACC and houses (RME)

    Hey. How I can add houses to the ZnoteACC? I tried adding house in RME but as I predicted, didnt work :P
Top