• 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. Non Sequitur

    Lua spell scroll tfs 1.1?

    The if statements' order matters, try this: local spell = "sharp light" function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVocation(cid) ~= 5 then doCreatureSay(cid, "Only Master sorcerers can learn " .. spell .. " spell.", TALKTYPE_ORANGE_1) return true...
  2. Non Sequitur

    Port forwarding

    Try 127.0.0.1 on the IP Changer.
  3. Non Sequitur

    Trade window.

    That is client side, if you want to change that you're going to have to make a custom client.
  4. Non Sequitur

    Lua Chain Reaction Bomberman System

    You need to call step(config) once to start it. And by the way, 1 millisecond as turn time is way too fast, you should use something over 500.
  5. Non Sequitur

    Lua Chain Reaction Bomberman System

    Take a look at this code, keep in mind that I can't test it right now so there might be some bugs: local function doPlaceBomb(cid, bombId, position, turns) local item = doCreateitem(bombId, position) if item.uid ~= 0 then doItemSetAttribute(item.uid, "turns", turns)...
  6. Non Sequitur

    Lua Chain Reaction Bomberman System

    Can you show me this "boom" function of yours?
  7. Non Sequitur

    Lua Chain Reaction Bomberman System

    First, why are you using addEvent with nil as delay? Second, what do you mean by chain reaction? Does the bomb's explosion sets off other bombs? When you place two bombs in the same square it's only logical that they break two blocks (as long as they have the range to do so) because the first...
  8. Non Sequitur

    Solved TFS 1.2 db.query for changing player storage value

    Maybe you won't, but it's a design choice and it makes no sense to program two ways to do the same thing, especially when one of them isn't optimal.
  9. Non Sequitur

    Solved TFS 1.2 db.query for changing player storage value

    Because accessing the database is way slower than accessing your computer memory. Just imagine if every time the player moved an item the server had to load all the player's items and then move it? Or if every time the player walked, the server had to update the player's position in the...
  10. Non Sequitur

    Solved TFS 1.2 db.query for changing player storage value

    If you're changing the values through player:setStorageValue there is no reason for them to get "changed back" the next time the player logs in. Are you sure this is ever being called? Player(charName):setStorageValue(sv, v)
  11. Non Sequitur

    Solved TFS 1.2 db.query for changing player storage value

    Those aren't restrictions, you're just trying to change a value in the wrong way. You should only change player's values through queries if the player is offline (or if the value you want to change isn't saved when the player logs off, i.e the name column). If you only have the player's GUID...
  12. Non Sequitur

    onKill bosses TFS 1.2

    @J.Dre No, he's using your script without the changes I told him to make. You called that function with 'k', which is a table value with no 'gsub' method.
  13. Non Sequitur

    onKill bosses TFS 1.2

    Use the updated line I sent you.
  14. Non Sequitur

    onKill bosses TFS 1.2

    Use the second script J.Dre sent you. Edit: @J.Dre you're trying to concatenate a table value.
  15. Non Sequitur

    onKill bosses TFS 1.2

    Update this line: Game.broadcastMessage("You may no longer enter " .. firstStringToUpper(monster:getName()) .. "'s lair. He has been defeated.", MESSAGE_STATUS_WARNING)
  16. Non Sequitur

    Solved Teleport script add more locations

    Try something like this: local gates = { {position = Position(977, 1017, 7), storage = nil}, -- Default {position = Position(1203, 847, 7), storage = 6661}, -- Eravae {position = Position(1056, 998, 7), storage = 6662}, -- Starry Night {position = Position(1113, 822...
  17. Non Sequitur

    Solved Custom items aren't giving skill points?

    You need to add the move event tags in movements.xml (both Equip and DeEquip), for reference, these are the master archer's armor tags: <movevent event="Equip" itemid="8888" slot="armor" level="100" function="onEquipItem"> <vocation name="Paladin" /> <vocation name="Royal Paladin"...
  18. Non Sequitur

    Lua math.random bug?

    TFS 1.2 already seeds math.random on startup, I believe you have removed this line from your startup.lua. math.randomseed(os.mtime()) It is only necessary to call this once.
  19. Non Sequitur

    Lua MySQL: How to update rightaway?

    If the player is online you should use getPlayerBalance(cid)/doPlayerSetBalance(cid, balance). The players table (as most tables in the TFS's database) is loaded when needed (i.e a player logs in) and saved when appropriate (i.e the player logs off), that is why any player changes might be lost...
  20. Non Sequitur

    Lua How to fetch varchar from database?

    The account id is not the same as the player's GUID. I believe this query will work for your needs: "SELECT `name` FROM `players` WHERE `id` = " .. getPlayerGUID(cid)
Back
Top