• 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. Jack Parsons

    [TFS 1.0] !openhole command (Open a hole for a price)

    It's not unusual to have 1k in the bp (Considering OT Servers, it's not unusual players that don't use the bank at all). Also, it's easy to make it work for free (Actually, just a matter of one line), and experienced players would have a shovel with them.
  2. Jack Parsons

    [TFS 1.0] !openhole command (Open a hole for a price)

    I've developed a talkaction that allows a player to open a shovel hole for a price (I've decided that 1k is a fair price, considering the player's stupidity of not having a shovel). The script detects whether there's a hole in front of the player or not, and then checks whether the player has...
  3. Jack Parsons

    [TFS 1.0] "/closeserver shutdown" not working.

    It worked! Thank you very much. I was afraid to mess with the type column, since I hadn't read about it in any thread.
  4. Jack Parsons

    [TFS 1.0] "/closeserver shutdown" not working.

    My "accounts" table has no group_id column, only page_access (And changing it to 5 makes no difference). Nevertheless, the "players" table has a group_id column, but changing it to 6 renders the player useless (Since the terminal states that such group_id does not exist). I've tried 3 and this...
  5. Jack Parsons

    [TFS 1.0] - The server does not save house changes.

    Yeah, that's exactly what I'm doing (Closing it the wrong way), since it's just an application running on a terminal (There's no way to input any commands). I'm testing the server with a 5 vocation player (Master Sorcerer), and there's no "Game Master" vocation. The /closeserver command just...
  6. Jack Parsons

    [TFS 1.0] - The server does not save house changes.

    I've downloaded the 1.0 version of the Forgotten Server, and for some reason it does not save any house changes. I'm creating a new map from scratch, and I've created some houses already (It's perfectly possible to buy them with !buyhouse). Nevertheless, when I close the server and open it...
  7. Jack Parsons

    TalkAction [TFS 1.0] - If you say "Bloody Mary" to a mirror, you die.

    Max hp is a good idea, much more coherent than -100000 haha. I chose to leave it like this. No messages, no creatures, no NPCs. It sounds more cryptic / mysterious.
  8. Jack Parsons

    TalkAction [TFS 1.0] - If you say "Bloody Mary" to a mirror, you die.

    I've created a script that kills the player if he stands in front of a wall mirror and speaks "Bloody Mary" (Without quotes). It works with any wall mirror, no matter if it's on the ground or not (Some wall mirrors can be pushed to the ground). The script: function onSay(cid, words, param)...
  9. Jack Parsons

    Solved Lottery Ticket

    Well, the script is working, so you can change the math as you see fit (As well as the prizes).
  10. Jack Parsons

    Solved Lottery Ticket

    Well, I've developed a script for you. I've tested here with TFS 1.0, but probably it'll work on TFS 1.2 as well. function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local p = Player(cid) local prizes = {5958, 2421} if math.random(100) <= 25 then...
  11. Jack Parsons

    [Reflection] A function to print all the functions of a given table.

    I grew somewhat tired of reading compat.lua to learn the available functions (Since they're mostly "shortcuts"), so I came up with this solution. Just introduce this function to your global.lua: function listFunctions(t) for i, v in pairs(t) do if type(v) == "function" then...
  12. Jack Parsons

    Solved Cant create database table in phpmyadmin

    It's a matter of preference (Xampp vs Uniserver), if you're just testing the server. You could also install Apache and MySQL separately and manually, and access the databases via console or an external software like HeidiSQL. If you know the root password, be sure you're logged in with it...
  13. Jack Parsons

    Solved Cant create database table in phpmyadmin

    Right there... "command denied to user ''@'localhost'". You're trying to access the databases with a ghost user ('' (Which is actually fine in MySQL)), nevertheless, this nameless user doesn't have the proper privileges in order to access anything. You're not going to make it even with HeidiSQL...
  14. Jack Parsons

    Solved Cant create database table in phpmyadmin

    I suggest you to use HeidiSQL, it's free and better than phpmyadmin. The error message is clear enough, "No database selected". In order to create / drop / alter tables, you need to select a database (If you were on the raw console, you'd need to type "USE database_name;". It does not matter if...
  15. Jack Parsons

    [Lua] How do I get the answer that I gave to the NPC?

    I eventually solved it doing exactly that (Parsing / filtering the message). I've posted the NPC I was creating already: https://otland.net/threads/tfs-1-0-summon-any-creature-in-the-game-for-a-bloody-price.241608/ I've used a little split function: function split(inputstr, sep) if sep ==...
  16. Jack Parsons

    NPC [TFS 1.0] Summon any creature in the game for a bloody price.

    I've just created a "Summoner" NPC. I've never seen anything like it in any OT that I've played, so I thought it would be interesting to implement one. Instructions: Say 'hi'. Say 'Summon Creature' (Where "Creature" is Demon or any other creature, no quotes) Say 'yes' The price depends on...
  17. Jack Parsons

    How do I make an item "countable"?

    Oh, that's terrible. I thought it depended only on the server.
  18. Jack Parsons

    How do I make an item "countable"?

    I'm trying to make the "Magic Crystal" item countable (100 of them in the same slot). <item id="12508" article="a" name="magic crystal"> <attribute key="description" value="It is able to store memories and thoughts." /> <attribute key="weight" value="10" /> </item> The problem is...
  19. Jack Parsons

    [Lua] How do I get the answer that I gave to the NPC?

    I'm having difficulties finding how to access the answer that I gave to the NPC. Let us use this script as an example: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid)...
Back
Top