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

    Lua attempt to compare number with table (checking item on position)

    I want to detect if an item is on a position or not. the script (177 line): local redFlagPos = {x = 961, y = 1062, z = 7} local blueFlagPos = {x = 973, y = 1062, z = 7} local redFlagID = 1435 local blueFlagID = 4990 if getTileItemById(redFlagPos, redFlagID).uid > 0 then...
  2. waqmaz

    Remove other players for cid from an area.

    first player is standing on position, second player doesn't see him, but he is still there. i need this for arena
  3. waqmaz

    Remove other players for cid from an area.

    I wonder if it is possible without editing source to remove player from the map for other player, but those players are still playing. It is because, I do not want to create many same maps.
  4. waqmaz

    Solved Death problem

    I've found a problem. It happens, when the player has lower max health than required max health for his level. For example: level 999, max health 50.
  5. waqmaz

    Solved Death problem

    How have you solved it?
  6. waqmaz

    Lua AddOutfitCondition to many players with storages.

    ok, got it. but i cannot post a solution, because it was because of other script.
  7. waqmaz

    Lua AddOutfitCondition to many players with storages.

    Hello. I have a problem. This script adds only first condition ( red male ) to a red male player: local conditionRedMale = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionRedMale, CONDITION_PARAM_TICKS, 15*60*1000) addOutfitCondition(conditionRedMale, {lookType = 136...
  8. waqmaz

    Lua Storage Problem urgent

    I can't help you unless I do not see the full scripts and I am not sure that I understand what have you said.
  9. waqmaz

    Lua Storage Problem urgent

    Please, show your script that I can see what's going on.
  10. waqmaz

    Lua Storage Problem urgent

    Please read the post carefully, you will see: "data/creaturescripts/scripts/login.lua". And I've edited the post. Use the new version of my script. if getCreatureStorage(cid, 8825) ~= -1 then doCreatureSetStorage(cid, 8825, -1) print('8825: '..getCreatureStorage(cid, 8825)) end /edit Does it...
  11. waqmaz

    Lua Storage Problem urgent

    TFS 0.3.6: data/creaturescripts/scripts/login.lua above: return true end add: if getCreatureStorage(cid, 8825) ~= -1 then doCreatureSetStorage(cid, 8825, -1) print('8825: '..getCreatureStorage(cid, 8825)) end It means that even if getCreatureStorage(target, 8826) ~= -1 then after login your...
  12. waqmaz

    Lua When should I check storage using ipairs(getPlayersOnline())?

    Example: 3 players have the same storage In the example above, I do not use ipairs online, because those 3 players are treated as single players, yes? I use ipairs only when I want to do something to every online players, yes? /EDIT I think there should be used ipairs online, because they arent...
  13. waqmaz

    Lua When should I check storage using ipairs(getPlayersOnline())?

    Hello. I am confused a little. When should I use for _, cid in ipairs(getPlayersOnline())? I've asked, because this works the same: if(getPlayerStorageValue(cid, storage) == 1) then -- do something end like this: for _, cid in...
  14. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    It works, lol. My main language is PHP, there is inbuild print_r function. Completely forgot that it has to be done in lua too. I can say only one thing: THANK YOU SO MUCH. YOU HAVE SAVED ME A FEW DAYS OF WORK FOR SURE! :)
  15. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    I use TFS 0.3.6 CryingDamson for Tibia version 8.6. It returns null: local t = { ['orc'] = { {pos = {x = 950, y = 1063, z = 7}, id = 1037}, {pos = {x = 951, y = 1063, z = 7}, id = 1037} }, ['troll'] = { {pos = {x = 953, y = 1070, z = 7}, id = 5154}...
  16. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    I will be glad, it is really important for me, because our game bases on object oriented programming. Here in Europe it's 22:30. I will be back at 20:00 tomorrow. See you, friend.
  17. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    function onKill(cid, target) if t[getCreatureName(target)] then for i = 1, #t[getCreatureName(target)] do -- print(t[getCreatureName(target)], #t[getCreatureName(target)]) end end print(t[getCreatureName(target)], #t[getCreatureName(target)])...
  18. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    Thank you for that worthfull text. According to what you have said, I've done an example: function onKill(cid, target) if t[getCreatureName(target)] then for i = 1, #t[getCreatureName(target)] do print(t[getCreatureName(target)][i].pos) end end return...
  19. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    Thanks for trying, but your script does not work. I really lose my mind at it.
  20. waqmaz

    Lua TFS 0.3.6 pass all array variables as a one param through doRemoveItem TFS function.

    print("Position: ".. v[i].pos) What should be instead of "v"? I ask, because these doesnt work: for i = 1, #t, 1 do print(t[i].pos) end for i = 1, #t, 1 do print(tmp[i].pos) end for i = 1, #t, 1 do print(name[i].pos)...
Back
Top