• 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. Evil Hero

    TFS 1.x Ingame Account Manager [Searching Testers] UPDATED

    I havn't tried adding it at the latest master, but the code base should still be working just fine, if you encounter problems then let me know and I'll give this a full review.
  2. Evil Hero

    Lua [Lua Error] At login (TFS 0.4)

    It's not a classic error you get in a normal file, so I was pretty sure that it had to be a mod file causing this.
  3. Evil Hero

    Tibian - An OTServ List for 2020

    What I would really like to see is a sort by ping in ms option, so you directly see to which server you have the best connection.
  4. Evil Hero

    Lua [Lua Error] At login (TFS 0.4)

    It seems to be a mod file causing this, check the files in your mod folder.
  5. Evil Hero

    TFS 1.X+ onSpawn for one monster

    The spawning for lua monsters works exactly the same as for xml monsters, what he meant was, that you just have to edit the monsters.xml file for your rme and include the name of the monster there. That way you can place it normaly in rme and it'll be spawned just correct in your server.
  6. Evil Hero

    TFS 1.X+ onSpawn for one monster

    You don't, because that's how you create Monsters completly in lua instead of xml.
  7. Evil Hero

    TFS 1.X+ onSpawn for one monster

    onSpawn is an Event, so it cannot be bound to a single monster as a CreatureEvent. However you could use onCreatureAppear in this case which does exactly what you want. Take a look at data/monsters/lua/#example.lua to see what I mean.
  8. Evil Hero

    trying revscript doesnt work?

    Well you are missing to asign the onStatsChange to the creatureevent method creatureevent.onStatsChange = function(...) that's the step you're missing
  9. Evil Hero

    Lua All players that do damage gain storage (Function onKill)

    You can use onDeath(cid, corpse, deathList) deathList will give you exactly what you search for.
  10. Evil Hero

    TFS 1.X+ OnChangeOutfit + table, help!

    local login = CreatureEvent("CheckOutfit") login.onLogin = function(player) if player:hasOutfit(lookType, 3) then -- he has the outfit end return true end login:register()
  11. Evil Hero

    Lua [TFS 1.x] How to get player in onAddItem event?

    You can use Player:onItemMoved(item, count, fromPosition, toPosition, fromCylinder, toCylinder) or Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) from Events.
  12. Evil Hero

    Weird problem executing theforgottenserver

    are the dll files all correctly placed inside the data folder?
  13. Evil Hero

    Weird problem executing theforgottenserver

    Most of the times such things are caused because people don't use the default data pack and just place something else they just found inside, so the folder structure or other stuff is odd or missing.
  14. Evil Hero

    Lua tfs 1.2 odd bug

    The order doesn't really matter in this case, the chunk is loaded once the scripting system gets initialized but the execution which is important is once the interface is called. That brings me back to the example I've just posted, if the function is called inside the interface (or an underlying...
  15. Evil Hero

    Lua tfs 1.2 odd bug

    as of latest master, you could simply use this as monster type verification if Game.getMonsterTypes()[name] then no need to push monster types in some kind of table anymore
  16. Evil Hero

    Lua tfs 1.2 odd bug

    Just to clear up for future reference. Monsters are loaded after the Scripting Interface (classic or revscriptsys doesn't matter) The problem in this case was a flaw of design in the script itself, which @forgee pointed out pretty well just now. There is a huge difference between those 3 pieces...
  17. Evil Hero

    How to register/add new talkaction script tfs 1.3

    Make a new lua file in data/scripts/ and then put the script in the file /reload scripts or restart the server and it'll work. EDIT: local talk = TalkAction("/addtp") talk.onSay = function(player, words, param, channel) local split = param:split(",") local destination =...
  18. Evil Hero

    TFS 1.X+ Problem with libmariadb

    https://otland.net/threads/vcpkg-libmariadb.268599/#post-2593584
  19. Evil Hero

    TFS 1.X+ [TFS 1.3] onHealthChange problems

    You could also do local mType = MonsterType("rat") mType:registerEvent("eventName") This would fire for all monsters of that type. or you take a look at https://github.com/otland/forgottenserver/pull/2798 where you have the necessary function to make something like this now: local...
  20. Evil Hero

    RevScripts How to register creature event dynamically

    ok that's absolutely weird, it's good to know that such a problem exists, feel free to write a bug report on github about it.
Back
Top