• 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] Bonus XP for using Client 12, instead of 10

    What I meant was, in your code you have this: local clientVersion = player:getClient() Change it to this: local clientVersion = player:getClient().version
  2. imkingran

    [TFS 1.2] Bonus XP for using Client 12, instead of 10

    @d0gw4r https://github.com/otland/forgottenserver/blob/master/src/luascript.cpp#L9717 This function player:getClient() returns a table that holds 2 things, the OS and the client version. So you can use player:getClient().version to get the client version.
  3. imkingran

    [USA & FRANCE] [10.00] Middle Earth OTS | New world opens June 15th!

    New World opens on June 15th @ 18:00 CEST
  4. imkingran

    [USA & FRANCE] [10.00] Middle Earth OTS | New world opens June 15th!

    New World opens on June 15th @ 18:00 CEST
  5. imkingran

    [USA & FRANCE] [10.00] Middle Earth OTS | New world opens June 15th!

    I'm so happy to hear you're having fun! Thanks for your positive review!
  6. imkingran

    [USA & FRANCE] [10.00] Middle Earth OTS | New world opens June 15th!

    https://na2.middlearth.net/account/createaccount
  7. imkingran

    Lua Firestorm event rewards

    @Phemus Yup good job! Except, now we also need the item count for the function doPlayerAddItem(cid, itemID, itemCount), which is in our second index in from our rewards table: configFireStormEvent.rewards = {{2160, 10}, {9020, 5}} configFireStormEvent.rewards[1] = {2160, 10} -->...
  8. imkingran

    Lua Firestorm event rewards

    @Phemus Apply the the same concept as in the first error, it's the same thing. :)
  9. imkingran

    Lua Firestorm event rewards

    Change the two instances of: getItemNameById(configFireStormEvent.rewards[prize]) To: getItemNameById(configFireStormEvent.rewards[prize][1])
  10. imkingran

    TFS 1.X+ Powergamer stats - Restart every 24h

    In the TFS 1.x series the Global Storage function does not save to the database, meaning it is reset at each server save. So your script is seeing each restart as a new day. To fix that you could add this table to your database and the functions as shown here: Solved - Global Storage + TFS 1.2...
  11. imkingran

    TFS 0.X Players with expboost cant login

    [0:45:22.070] data/creaturescripts/scripts/expvouncher.lua:2: attempt to compare number with string if getCreatureStorage(cid, 3024776) > 1 and getCreatureStorage(cid, 3024776) < os.time() and getCreatureStorage(cid, 3024777) > 0 then My guess would be that one of those storage values is...
  12. imkingran

    [USA & FRANCE] [10.00] Middle Earth OTS | New world opens June 15th!

    Here are the Top 10 Powergamers over the last week on both servers! Did you make the list? :p
  13. imkingran

    Searching for a boss script.

    Use this example of the Warzone Boss kills: ninjalulz/FORGOTTENSERVER-ORTS (https://github.com/ninjalulz/FORGOTTENSERVER-ORTS/blob/master/data/creaturescripts/scripts/quests/bigfoot%20burden/WarzoneKill.lua)
  14. imkingran

    [USA & FRANCE] [10.00] Middle Earth OTS | New world opens June 15th!

    Thank you mate, I appreciate that! <3
  15. imkingran

    TFS 1.2 Lua script (House Scroll)

    Just change the return FALSE to return TRUE, then you can see the messages: function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getPremiumDays() <= 0 then player:sendCancelMessage("You need a premium account.") return true end local...
Back
Top