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

    Lua talkactions guildpoints.lua error

    The script is written for TFS 1.0 or above. Which version are you using?
  2. forgee

    When premium end player to back city 1.2

    You can do this, if player set town in premium zone he will be teleported to a default town. If he set home town in free zone he will be teleported home. local defaultTown = "Thais" -- default town where player is teleported if his home town is in premium area local freeTowns = {"Ab'Dendriel"...
  3. forgee

    Lua What is worng? Why this error msg?

    if playerSpells == nil or #playerSpells == 0 then return false end
  4. forgee

    Windows [ZNOTE] Enable sandbox mode in PayPal

    You need to send the form to the sandbox endpoint (www.sandbox.paypal.com). https://github.com/Znote/ZnoteAAC/blob/master/buypoints.php#L31 To my understanding you need a developer account with PayPal and then create test accounts to create test payments from...
  5. forgee

    Raspberry PI - can start Open Tibia Server?

    I used Raspbian but no desktop environment loaded. To be honest I don't remember very well how long it took to start, but what took the most time was loading the map. With the default map it wasn't terribly slow though. I believe the largest map I used was about 7 mb and took around 150 seconds...
  6. forgee

    Solved offline letters

    I just had a look and tile:queryAdd does not seem to work. What does work is item:moveTo(position). I made this test talk action (/test Name), if you face a mailbox it sends a parcel to the player whose name matches param. Hard code the position of your "secret" mailbox and put the receiver's...
  7. forgee

    Solved offline letters

    Did you use tile:queryAdd(thing[, flags]) to put the parcel on the mailbox?
  8. forgee

    Solved offline letters

    https://github.com/otland/forgottenserver/blob/master/src/mailbox.cpp#L112-L122 As this section shows, sending mail through mailboxes creates a "dummy" player object for offline players. You could add a new Lua function that works the same way. If you don't want to edit the source a possible...
  9. forgee

    Solved script stop working after logout (exp amulet)

    Change this line: local timeTable = os.date('*t', timeLeft) to: local timeTable = os.date('*t', timeLeft - (os.time() + 3600)) The message you got: "You still have 22 hours 40 minutes 35 seconds left of extra experience." Is actually the time when your extra experience will end, 22:40:35...
  10. forgee

    Windows How portunlock on huawei e5573s [help]

    Perhaps one of these will help. http://portforward.com/english/routers/port_forwarding/Huawei/E5776/Tibia.htm http://portforward.com/english/routers/port_forwarding/Huawei/E5577s/Tibia.htm
  11. forgee

    Problem with a href

    I reiterate. You have only a closing parenthesis between the 'a' tags, so of course that is all it shows. Put </a> inside the parenthesis and the name between <a> and </a>. I'm simply not going to spoon feed you any more than that, if you can't figure it out: http://www.w3schools.com/tags/tag_a.asp
  12. forgee

    Problem with a href

    Close the href string and opening 'a' tag, ">. You may also want to include the name between the 'a' tags. <a href="url">Name</a>
  13. forgee

    Lua SCript Change outfit Guild

    newOutfit.lookMount = 0
  14. forgee

    Solved script stop working after logout (exp amulet)

    There was a quote missing. Recopy the script.
  15. forgee

    Solved script stop working after logout (exp amulet)

    Thanks to @Printer for the string formatting. Should show how much time you have left if you have any, otherwise it uses the item and gives you 24 hours. local config = { rate = 3.0, time = 24, storage = 20011 } local function endExpRate(cid) if not isPlayer(cid) then...
  16. forgee

    How to check players online from the guild?

    I wrote this as an exercise for myself to practice SQL. It collects the information you need, but not exactly the same way as the ones you have. All you need is a tiny bit of general programming knowledge to make it work with your script. SELECT p.name, p.level, p.id, SUM(p.level) as...
  17. forgee

    How to check players online from the guild?

    He could have been more clear as all you see when you read the first post is TFS 0.4 and TFS 1.2. :P
  18. forgee

    How to check players online from the guild?

    How would you do that in PHP? o_O
  19. forgee

    How to check players online from the guild?

    "SELECT COUNT(1) as `people` FROM `guild_membership` WHERE `guild_id` = ".$guild_id." AND `player_id` IN (SELECT `player_id` FROM `players_online`)"
  20. forgee

    Solved Lever script conversion to 1.2

    Replace this line: local topItem = Tile(pos.altar):getTopTopItem() With this: local topItem = Tile(pos.altar):getTopVisibleThing(creature) I tested the script and Tile:getTopTopItem() and Tile:getTopDownItem() returns nil for some reason.
Back
Top