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

    Windows Skill Shielding doesn't work

    Might be your monsters that have min- & max attributes in their attacks, while using skill and attack should make shielding apply, hard to edit all monsters but you could try it out. Ignazio
  2. I

    Lua Script not working 'addDialog' (a nil value)

    What server are you using? TFS 1.0>? Ignazio
  3. I

    Lua stopEvent not working

    Hmm, if you're intializing the event as a global variable (k), it's not going to work out very well with multiple players. You could try work with storages, or use this K-value as a list with cid's as keys. Ignazio
  4. I

    TFS 1.2 [Tibia 10.77] How to give all acceses/outfits/mounts

    I presume your players create their characters through a website? The most logical solution would be to modify the storage in the creation, or in a login script. How do you add them manually? I presume a talkaction, you can take that script and paste it into the firstitems.lua file that usually...
  5. I

    Attempt to call method 'getSkullStype'

    What server version do you have? I don't recall there even is a method named getSkullType. Ignazio
  6. I

    Lua Error: [Result:getDataInt] Result not set! (in rep system)

    Spontaneously it looks a bit weird that you attempt to get id from players, where id is an account id. Try to change the first like in the getMyReputation function: return getReputation(getPlayerAccountId(cid)) ... and change it to: return getReputation(getPlayerId(cid)) (Presuming there...
  7. I

    Lua config

    Might be a problem in your vocations.xml file, you could post that. Ignazio
  8. I

    Lua actions

    RazorBlade found your issue. You have to go to the 9th line in the script where it says `local gain = ` and replace it with `local gain = {`, so just simply add this "{" character after the equal-sign. Let us know if it fixes your problems. Ignazio
  9. I

    Lua New Quest!

    It would be wiser to find an already existing annihilator quest, there are probably plenty on this forum. Once you have it, try it out and then it'd be rather simple to add an item validating line. Ignazio
  10. I

    AddItem for player online/offline TFS 0.4 r3884

    You should state what server / version you are using, making it easier for people to help you. Your problem is that you want to give an item to a player wether he is online or not. If the player is offline, you have to inject code into the SQL directly, although this won't work if he's online...
  11. I

    Lua TFS 1.1 - Actionid with target item not item

    Interesting thought. To begin with, you can assign all your tools to connect to a certain script, the problem then is if your pick for instance have multiple purposes, like opening a chest, opening a hole, four other quests, etc. <action itemid="<pickid>" script="quest.lua"/> Or you could make...
  12. I

    Solved [C++] Current system time

    Not every day that an untested code sample works, I'm glad to hear it. Ignazio
  13. I

    Lua change color outfit

    Try finding this part: if(config.copyOutfitAndAddonsEverytime == false and canPlayerWearOutfit(members[i], tmp.lookType, tmp.lookAddons) ~= true) then local tmpOutfit = getCreatureOutfit(members[i]) tmp.lookType = tmpOutfit.lookType tmp.lookAddons = tmpOutfit.lookAddons end ... and replace it...
  14. I

    Lua TFS 1.1 - Actionid with target item not item

    It's good to hear you want to keep things organized, they usually get out of hand quickly when stretching the functionality. As EvoSoft posted, there are parameters in the onUse function. One of them is item, another is itemEx. One of these is the item that is used and the other is, the target...
  15. I

    1x experience..

    Is your config still set to 0? It should be, then you have to restart the server obviously. You still have problems? Ignazio
  16. I

    (Source) How do i Edit Source for max health/mana increase

    Must admit I have never done this, but it's very evident what the problem is, according to the debug message Makefile.win [Build Error] [obj-debug//actions.o] Error 1 creature.h overriding `virtual int32_t Creature::getMaxMana() const' \player.h conflicting return type specified for `virtual...
  17. I

    Solved [C++] Current system time

    Hmm it's hard to know without testing, but surely it can't be too hard? This line: std::cout << name << " has logged in." << std::endl; Prints the name " has logged in" and ends that line, hence the "std::endl;". What you want to do is to add some time prior to the name, in this manner...
  18. I

    Linux error in the script

    I don't quite get it, does the script work? It looks like the skills have a limit of 350, is this a problem? Magic level have a limit of 200? Isn't that what you want? Ignazio
  19. I

    Whi World - Open Source Server with Configurable Features

    The one purest reason to use more dynamic code is to ease adding, modifying and deleting entries dynamically without having to alter the script. For instance, if you had a list of items to work with a script, it's easier to simply change a value in an array / table / object than rephrasing...
  20. I

    Solved [1045] Access denied for user 'whiserv'@'localhost'

    Hehe, I'm glad, happy coding! Ignazio
Back
Top