• 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!

Recent content by LaloHao

  1. L

    Flying mount system TFS 1.2

    lol This actually adds another layer of difficulty to pvp and makes it kinda interesting, i made this so instead of outfits you use a broom with duration, dragons can fly and you can make raids in the air, etc EDIT: exani hur needs to be fixed tho, since flying in a tile close to an edge...
  2. L

    simple trick - making a table /reload proof

    Have you managed to fix this when reloading creaturescripts? Example: function onLogin(cid) registerCreatureEvent(cid, "lootMessage") end After reloading the events are lost and players need to relogin (or iterate for each player online and reregister the events, but that might lag if...
  3. L

    Flying mount system TFS 1.2

    There's no createTile in OTHire, but the doAreaCombatHealth seems to be bugged too and it works. When i first looked at the code i thought doAreaCombatHealth was supposed to get the player in battle so he couldn't logout lol
  4. L

    Generating maps?

    I was trying to make it a brush like RME too, for example with buildings: You set a pallete You set a position "p" (the tile where you would click on RME) Then it would just iterate over the 3x3 surrounding tiles of course it doesn't check and remove yet but it seems to work
  5. L

    Lua Function Monster onSelectTarget(self, target)

    Maybe if you have the teddy bear from annihilator make an orshabaal not target you the first time then remove the item? I'm curious about the last past: to get an array of the current players on the screen, is there a faster way than LUA iterating all tiles or is there already a way (C++ code?)...
  6. L

    Generating maps?

    Nice, i was trying to make something like this but got stuck on the simplest task: autoborder/wall If i remember correctly when i last saw your script it didnt have it either (maybe another version?) You've improved it a lot Here's another technique in case you havent seen it...
  7. L

    Flying mount system TFS 1.2

    Did you modify the Game.createItem function/sources? By default you can't create an item (the walkable id 460) if theres no floor already
  8. L

    [TFS 1.2] Luascript channel

    It grabs whats in your clipboard and sends it to the luascript channel (or talkaction in my case since OTHire doesnt have channels)
  9. L

    [Lua] Format your SQL queries with db.formatQuery

    Account:Create returns the account metatable if created or false if it already exists Account:Load(id) returns the account metatable if loaded or false if it doesn't exists Account:getId() Account:getPassword() Account:getEmail() Account:getPremend() Account:getBlocked() Account:getWarnings()...
  10. L

    [TFS 1.2] Luascript channel

    Im thinking about giving the players the ability to execute a small sandbox that allows them to play their character, like a programmers tibia war but who knows if anyone would play that, anyway i made a small shell script that sends selected text to OTClient, as a tool that might someday get to...
  11. L

    Lua Function Monster onSelectTarget(self, target)

    I actually wanted to ask for a use case too :p
  12. L

    Lua Function Monster onSelectTarget(self, target)

    Wouldnt that allow the player to kill those monsters without being attacked?
  13. L

    [Lua] Autoloot system for OTHIRE

    It doesn't find items in bags, but with this function it does Use local loot = getContents2(corpse) Instead of local loot = getContents(corpse) in actions/scripts/autoloot.lua
Back
Top