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

    Dor that closes after 5 sec

    replace if itemX then with if itemX and itemX.uid > 0 then
  2. Snavy

    Dor that closes after 5 sec

    tested in 0.4 3777 local config = { fromId = 5736, toId = 5737 } function onUse(cid, item, frompos, item2, topos) doTransformItem(item.uid, config.toId) addEvent(function(pos) local itemX = getTileItemById(pos, config.toId) if itemX then...
  3. Snavy

    Lua Help with script

    o.0 local piedra = Action() function piedra.onUse(player, item, fromPosition, target, toPosition, isHotkey) if target:getId() == 7518 then player:teleportTo(Position(32423, 32448, 7)) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end return true end...
  4. Snavy

    Dor that closes after 5 sec

    The error says that It is unable to find item2. In your case you should use item instead of item2 since item2 parameter is the item on the target tile, for example; using machete on spider web would have the spider web in item2 parameter. try: function onUse(cid, item, frompos, item2, topos)...
  5. Snavy

    Solved STEP 5 Set Admin Account error

    Unknown column 'salt' in 'field list' accounts table is missing column salt. Try: ALTER TABLE `accounts` ADD `salt` varchar(100) DEFAULT NULL
  6. Snavy

    RevScripts [otbr] Boss arena

    This seems to be for that purpose leverCanUse = playerPosition == tile:getPosition() But can't know for sure since mr walltimer hasn't said how he wants this to work.
  7. Snavy

    RevScripts [otbr] Boss arena

    Removing that part of the code will definitely solve the problem but I'm guessing he wishes to verfiy that the player stands on one of the tiles: local leverCanUse = false local playerPosition = player:getPosition() for _, tile in pairs(configQuest.players) do leverCanUse =...
  8. Snavy

    Solved STEP 5 Set Admin Account error

    Go to index.php and change define('DEBUG_DATABASE', false); to define('DEBUG_DATABASE', true); This should give more information
  9. Snavy

    RevScripts [otbr] Boss arena

    So this was a lie... I just tested and it stops here: local leverCanUse = false local playerPosition = player:getPosition() for _, tile in pairs(configQuest.players) do leverCanUse = playerPosition == tile:getPosition() if leverCanUse then break...
  10. Snavy

    RevScripts [otbr] Boss arena

    make sure the lever you are trying to use has the actionid: action:aid(configQuest.actionId)
  11. Snavy

    RevScripts [otbr] Boss arena

    Try adding print('lever used') at the beginning of onUse function. If this prints 'lever used' in console then go ahead and verify the positions in configQuest.players: local leverCanUse = false local playerPosition = player:getPosition() for _, tile in pairs(configQuest.players) do...
  12. Snavy

    Lua Check if target.x offset == an item

    made a typo on line 3 function leuseItem.onUse(... should've been function useItem.onUse(...
  13. Snavy

    Lua Check if target.x offset == an item

    (Assuming you are using TFS 1.3): local useItem = Action() function useItem.onUse(player, item, fromPosition, itemEx, toPosition) local destinationTile = Tile(toPosition.x - 9, toPosition.y, toPosition.z) if destinationTile then local itemAtDestination =...
  14. Snavy

    Noob spriter gallery

    "Noob" spriter These are not noob sprites :D #1 & #3 👌
  15. Snavy

    TFS 1.X+ Runes Firebomb etc make dmg only playes, not monsters

    Care to share the solution to your problem? Someone else might need it in the future.
  16. Snavy

    npc in two languages

    :confused: wooot /en, /pl or / en, / pl ? xD
  17. Snavy

    npc in two languages

    The player has to execute the talkaction before speaking to the npc. Have you done that?
  18. Snavy

    How can i remove the runes on target and leave them for use only on yourself?

    in onCastSpell you could compare variant to caster/creature function onCastSpell(creature, var, isHotkey) if isHotkey then local target = Player(var.number) -- Don't allow the rune to be used on a different creature if target_var and target_var:getId() ~=...
  19. Snavy

    Any people that likes Evolera? (2011 Edition)

    my amigo, mahmud, is all about evolera
  20. Snavy

    RevScripts Lever Shop, change payment to item and amount

    by executing the following query: Get premium points: (maybe there's already a method for this somewhere 🤔 ) local resultId = db.query('SELECT `premium_points` FROM `accounts` WHERE `id` = ' .. player:getAccountId()) if resultId then local points = result.getNumber(resultId...
Back
Top