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

    Lua How to use global storage in TFS 1.2?

    to set you use Game.setStorageValue(key, value) and to catch a storage uses Game.getStorageValue(key)
  2. New_Age

    Lua List several storages

    I did an NPC that teleports them to this area but not put to add storage to the player entering I think that would be an exellent idea why the area is great even
  3. New_Age

    Lua List several storages

    When the player kill the creature add storage to it and if the player have a guild and some members are in the event area with him, they also receive the storage if it already has the storage nothing happens
  4. New_Age

    Lua List several storages

    here it is @Printer function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) if killer:isPlayer() then elseif killer:isMonster() then local summoner = killer:getMaster() if summoner and summoner:isPlayer() then killer = summoner...
  5. New_Age

    Lua List several storages

    up
  6. New_Age

    Lua List several storages

    how to cite several arrays at the same time do so but unfortunately is giving this error attempt to get length of local ´p´ <a userdata value> for _,name in ipairs(Game.getPlayers()) do local p = Player(name) if killerGuild ~= nil then if isInAreaTest(getCreaturePosition(p)) == TRUE...
  7. New_Age

    inArea

    one teleport npc
  8. New_Age

    inArea

    up
  9. New_Age

    inArea

    Hello guys someone can give me an example of how to add storage to a player that is in a certain area? and the player have a guild in any guild member is in the same area he also wins the storage
  10. New_Age

    Lua It's correct?

    up
  11. New_Age

    Storage Gesior

    handle and makes a query query on checking bank if the player has the storage or not for me I find it easy.
  12. New_Age

    Lua It's correct?

    -
  13. New_Age

    Player undergoing player

    Hello everybody okay? was wondering if you can put into a player fails the other is possible how?
  14. New_Age

    onDeath

    then face it shows the print("Killer is a player.") but when I do something like print(string.format("Player name: %s", killer:getName())) does not work, nor does the error but it works with god
  15. New_Age

    onDeath

    so if not you have killer will be nil and if I want to check if you already have storage would be killer: getStorageValue(storage) I think I learned a little thank you I returned the script is running smoothly but only with god if I kill the monster with normal player does not work @ Edit...
  16. New_Age

    onDeath

    @Printer and @Codex NG thank you that way I'm using to get the guild name is correct? local player = Player(killer) local guild = player:getGuild() if guild == nil then return false end local killerGuild = guild:getName() --print("Your guild is: "..killerGuild.."") I am...
  17. New_Age

    onDeath

    personal hello someone may need to help me know if this script is right It is to see whether the player or summon it gave the last hit function onDeath(cid, corpse, killer) local p = Player(cid) if p == nil then return false end if isPlayer(killer) == TRUE then killer =...
  18. New_Age

    Compare with boolean

    Thank Summ and Codex NG is now easier
  19. New_Age

    Compare with boolean

    No @Volrath, I could solve the solution here local player = Player (cid) if player == nil then return false end and at the addEvent (Test, 1000, player.uid) got the solution on github (forgottenserver) issue addEvent thank you :)
  20. New_Age

    Compare with boolean

    It worked perfectly but now appears an error in addEvent luaAddEvent<>. Argument #3 is unsafe addEvent(Test, 1000, cid)
Back
Top