• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. imkingran

    [tfs 1.2] creature script help

    What do you mean when you say it doesn't work? Any errors in the console?
  2. imkingran

    Solved [tfs 1.0] Experience from killing higher level players

    attackPlayer:getTile():hasFlag(TILESTATE_PVPZONE) Will return true or false depending on the situation.
  3. imkingran

    Need Help with script creaturescripts

    On line 17, change: config.timeToRemove to config.time
  4. imkingran

    wrong with tables?

    Try: db.query("ALTER TABLE `accounts` ADD COLUMN `secret` CHAR(16) NULL AFTER `password`") Source: https://github.com/otland/forgottenserver/blob/master/data/migrations/18.lua
  5. imkingran

    Tfs 1.2 Versperoth (add unique id to tp)

    change: if holeItem then holeItem:transform(1387) end to if holeItem then holeItem:transform(1387) holeItem:setActionId(12345) -- depreciated -- holeItem:setAttribute(ITEM_ATTRIBUTE_UNIQUEID, 12345) end
  6. imkingran

    Change item image in acc maker

    You can save the image to a folder in your server and then if the item has that id you can tell it to use a different path: if itemID == 3341 then --- use this folder path www.yourwebsiteaddress/path/to/your/new_images/ else --- use this http://item-images.ots.me/960/ end If you have more...
  7. imkingran

    Lua NPCs mixing player requests

    Try to store answer choice in a different table: CURRENT_OUTFIT = {} Replace this line: config = generalConfig[msg] with CURRENT_OUTFIT[player:getGuid()] = msg Then any time in the process that it needs to remember what the outfit it was: local curOutfit =...
  8. imkingran

    help with my house table

    The column world_id is missing from your table. You can either add it to your table or just don't even check for it when you run your query. (if you're not running multiple worlds that is)
  9. imkingran

    It refuses to teleporting players

    The script you pasted is an interval based Globalevent script. What your script does is create the TP every given interval of time. What Xeraphus is saying is that the part that actually teleports the players would be the Movement script associated with the Teleport you created with the AID of...
  10. imkingran

    Limit the amount of money that can put in the Bank

    You can edit this function at the top of your script: local function isValidMoney(money) if isNumber(money) == TRUE and money > 0 and money < 999999999 then return TRUE end return FALSE end Change the "999999999" to "1000000000" and you should be all good. (although I'm...
  11. imkingran

    TFS 1.X Bounty Hunter System

    Oops, nice find, you're the lab rat in this operation! :p Change: if player:getBankBalance() >= amount then return true end To: if player:getBankBalance() >= amount then return...
  12. imkingran

    TFS 1.X Bounty Hunter System

    Hey I actually didn't test it on TFS 1.2 but I updated the script on the main page and fixed the issue I think you guys were having with the fake names. The database is different now so make sure you install the new table as well! Let me know if you get any problems while using it since I...
  13. imkingran

    TFS 1.X Bounty Hunter System

    @Oualid Hey man I just got back home from a long trip. I'll set up a TFS 1.2 environment tomorrow and update the main page. I may even re-do it since this thread was posted at a time where I was very nooby/new to the OT world, I'm still a noob but a little less, so I 'll try to make it a lot...
  14. imkingran

    [Game] Code Audit

    @Red I like this thread idea, I think it will be a fun way to learn new things! Unwanted Behavior: (tested with TFS 1.1) Initially I thought that calling item:getActionId() after the item was already deleted would be the problem but I actually just tested it and seems to work fine. So I guess...
  15. imkingran

    The Forgotten Server 1.2

    Nice release! Thanks for keeping up the great work!
  16. imkingran

    Xan Mapping Thread

    Really amazing work, the lighting on all your pictures is fire! :D
  17. imkingran

    UPDATE TO 10.97 TFS

    Thanks Gunz
  18. imkingran

    Thexamx Mapping Thread

    I'm no mapping expert but it looks nice enough imo. This is your start now let's see how you progress over time! Keep going and improving! :)
  19. imkingran

    Complaint Why I can't create new thread

    Maybe this: https://otland.net/threads/cant-create-thread-in-advertisement.215675/
  20. imkingran

    Otservlist

    It's only against the rules if they use NO-LOGOUT tiles in their trainers and people are exit-logged training on those types of tiles and they are sending them as online to Otservlist. (meaning they didn't edit their TFS to not do that) Having 100 people in trainers using anti-kick features of...
Back
Top