• 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 Show storage of few players to these players does not work after setting storage to -1.

    for _, pid in ipairs(getPlayersOnline()) do doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerName(pid)..': '..getCreatureStorage(pid, 11005)) print('getCreatureStorage(pid: '..getCreatureStorage(pid, 11005))...
  2. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    Yes, I want to show the storages to the players whos been reset.
  3. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    BEFORE and then do reset. I want to display both players storages to them both. It is damage done to a monster for all people who were hitting a monster, so all have to see damage done of all people. I've edited post before, check it with "next". It is mind confusing script...
  4. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    Men, ALMOST got it. Look, please: https://imgur.com/NK53GFZ The code: local z = 0 for _, pid in ipairs(getPlayersOnline()) do z = z + 1 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerName(pid)..'...
  5. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    local z = 0 for _, pid in ipairs(getPlayersOnline()) do z = z + 1 doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerName(pid)..': '..getCreatureStorage(pid, 11005)) doCreatureSetStorage(pid, 11005...
  6. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    for _, pid in ipairs(getPlayersOnline()) do doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerName(pid)..': '..getCreatureStorage(pid, 11005)) doCreatureSetStorage(pid, 11005, -1) end Pids everywhere does: :( https://imgur.com/7tt8p3k
  7. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    thank you, but that doesnt work too: for _, pid in ipairs(getPlayersOnline()) do doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerName(pid)..': '..getCreatureStorage(pid, 11005)) doCreatureSetStorage(pid, 11005, -1)...
  8. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    the problem is the loop does one time then reset storage and again loop. it must be loop, loop, reset, not loop, reset, loop. for _, pid in pairs(getPlayersOnline()) do -- this is the message I want to be displayed before setting storage to -1...
  9. waqmaz

    Lua Show storage of few players to these players does not work after setting storage to -1.

    TFS 0.3.6 How can I reset storages of all players and still display message from a loop? function onKill(cid, target) if isMonster(target) and isPlayer(cid) then local tmp = bossHighestDmg[getCreatureName(target):lower()] local players = {} if tmp then...
  10. waqmaz

    Lua 2 questions about function onThink(cid, interval)

    yes, i understand functions, but still thanks, y
  11. waqmaz

    Lua 2 questions about function onThink(cid, interval)

    i do it this way local buffBgHealPos = {x = 869, y = 1064, z = 7} local buffBgHealStorage = 29740 local buffBgSpeedPos = {x = 888, y = 1084, z = 7} local buffBgSpeedStorage = 31741 local buffBgSpeedBluePos = {x = 876, y = 1137, z = 6} -- mana local buffBgSpeedBlueStorage = 31742 local...
  12. waqmaz

    Lua 2 questions about function onThink(cid, interval)

    I've created animations on position x, y , z. Those animations uses onThink, because it must be repeated each 1 second. I hope it does not lag.
  13. waqmaz

    Lua 2 questions about function onThink(cid, interval)

    CREATURESCRIPTS onThink(cid, interval) GLOBALEVENTS onThink(interval, lastExecution, thinkInterval)
  14. waqmaz

    Lua 2 questions about function onThink(cid, interval)

    I want to ask two questions about function onthink for creaturescripts. 1. Does it lag server each 500 ms? For example: function onThink(cid, interval) print(interval) return true end 2. Is it possible to stop that function? If it is, then how to? Thanks. :)
  15. waqmaz

    Lua [TFS 0.3.6] Logout on exit.

    I need that only when a player has specific storage. ;)
  16. waqmaz

    Died by FIRE,ICE?

    Does monster use ice? If monster hit with mele then physical is correct.
  17. waqmaz

    Lua [TFS 0.3.6] Logout on exit.

    Is there any way to logout a player when he clicks exit? I have tried to check the player's IP onLogin and onLogout like: print('getPlayerIp(cid): '..getPlayerIp(cid)) but the IP after clicking "exit" doesn't change to zero, so I cannot check if a player has IP zero, then logout him. Is it...
  18. waqmaz

    Solved Creat teleport with action/unique id?

    I am trying to create a teleport with an action ID. I use TFS 0.3.6 and there is the function. The teleport is created, but the teleport has not an action id, when I look on it right click. Neither this code and this below doesn't work. doItemSetAttribute(doCreateTeleport(1387, redTpPos...
  19. waqmaz

    Remove other players for cid from an area.

    I've tried to remove cids, but then they were logged out, xD. Thanks.
Back
Top