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

  1. K

    Lua (LuaInterface::luaGetPlayerFlagValue) Player not found

    Try it. In this case you wanna check if the creature is a monster so you don't run the rest of the code (specially getPlayerFlagValue()) exhaustion = { check = function(cid, storage) if isMonster(cid) then return false end if (getPlayerFlagValue(cid...
  2. K

    Lua (LuaInterface::luaGetPlayerFlagValue) Player not found

    In your exhaustion functions, it's probably in data/libs/ Yeah, I know, the solution to your problem is the first code I sent, in the exhaustion functions. The second code fixes another error that could eventually occur.
  3. K

    Lua (LuaInterface::luaGetPlayerFlagValue) Player not found

    The error is probably in your exhaustion functions. I suppose you're using this spell in a monster and when your exhaustion functions check if the player has a no exhaustion flag the error pops. So consider adding right on the top of your exhaustion functions a checking if the creature is a...
  4. K

    TFS 1.X+ invisible Wall of poi tfs 1.5 7.72

    Press O to show non-walkable sqms
  5. K

    How to compile ddraw dll

    Install dev-c++ and follow the building description in the repo
  6. K

    spell absorb the target's ability.

    Could you give more details? Didn't understand about the summoners, in the video it absorbs player's spells. Are these spells learnable (needlearn="1" in spells.xml)? If yes then, it would be kinda easy to do with doPlayerLearnInstantSpell.
  7. K

    Lua [TFS 0.X] Find player by IP

    getPlayerIp returns an int. Then, first you need to convert the Ip param to an int. Also, you could use getPlayersByIP. Here's how I'd use: function onSay(cid, words, param, channel) if tonumber(param) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Param must be an...
  8. K

    TFS 0.X How can i improve this script?

    I think this should work: Action function onUse(cid, item, fromPosition, itemEx, toPosition) local from, to = {x = 1635, y = 1574, z = 8}, {x = 1538, y = 1620, z = 8} local newPos = {x = 1643, y = 1585, z = 8} local afterPos = {x = 1634, y = 1604, z = 8} local kickTime = 6 * 60...
  9. K

    TFS 0.X How can i improve this script?

    in remove creature case, try using addevent like this: addEvent(function() if isMonster(monster) then doRemoveCreature(monster) end end, 5 *60 * 1000) in the player teleport case, you can create a movements for the teleport that set a storage for the player to check if the...
  10. K

    need help with npc quest script

    Try it. I couldn't test because i don't have and idk your engine local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function...
Back
Top