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

    Lua Remove (boss) monster after time x

    TFS 1.3 (OTBR) I wanna add a function that boss monsters (rare spawning creatures like undead cavebear, midnight panther, etc.) only life for like 3h and get removed after that time has passed. The problem is, I don't know how I can set a starting point for the timer, since monsters that appear...
  2. F

    Lua Create item at location, not always player:addItem - problem with browse field

    tl;dr wanna create item where trigger item is located (not player:addItem). But laying on the ground floor with browse field open doesn't detect as parent:isTile(). How to fix? Hello, I wanna add a feature that is more like RL tibia where when you create a new item, it isn't always is added to...
  3. F

    AAC Znote: dynamic boosted creature, read raceid from DB

    Hello, I tried to get this working on my own, but failed. How can I get the raceid from the db and enter is as the current raceid, so the monster shows right on the client? I changed this in login.php 'raceid' => 219 to this 'raceid' => mysql_select_single("SELECT `raceid` FROM...
  4. F

    TFS 1.X+ Read looted items - trigger, when item x is looted

    Hey guys I wanna make a script, if a player loots a rare item (moon backpack for example), he get's an achievement/storagevalue/something. The problem is, I don't really know how to read the loot from a dead monster. I tried it with function onDeath(player, corpse, killer, mostDamage...
  5. F

    Compiling Having trouble compiling latest TF 1.2 source - missing headers

    I was trying to compile the latest source, since some nice features where added since 2016 (last official release). I included: boost_1_66_0-msvc-14.1-64.exe tfs-sdk-3.2 But it seems to be missing some headers (mysql/mysql.h, cryptopp/rsa.h, and maybe more) Since mysql.h is in the tfs-sdk I...
  6. F

    Lua Question on NPC System: Buying things

    Hello everyone. I have a few questions about the npc question for the trade function. Things I know how to do, but wanna do "better" are: -Send trade window only if specific storage is on X -Trade more items, the more storageValue you got -Trade only on special word (not trade) -Buy with...
  7. F

    Lua Creature script: Monster only lives 20 seconds

    So in warzone 3 at vesperoth there are spawning lava golems (Minion of Vesperoth) that live for about 20 seconds. I guess you can add a script in the monster xml and make an onThink function, that counts to 20 and the removes the creature. But I am not really sure how this type of script works...
  8. F

    Lua Npc system problem

    I usually use the "normal" npc system, with if msgcontains() etc. But I wanted to get used to the other one, as it seems easier sometimes. And here is the problem. I don't know, if I'm using it right but what I think it should do is: - respond on the word "rekruten" at any time. - only respond...
  9. F

    quest log "functions"

    In the file quests.xml there are the quest log texts stored. Now I wounder what text functions I can use? I tried \n and \\n but it just prints the letters and symbols and won't start a new line. In the source code there is if (!mainDescription.empty()) { std::string desc = mainDescription...
  10. F

    Action improved obsidian knife TFS 1.2

    Hello, as I didn't found an obsidian knife script which matched my expectations I made one on my own. I has the following features: sculpting piece of marble rock sculpting ice cubes skinning monsters skinning fresh corpses only if you are the owner Here is the script. I tested it on my...
  11. F

    Lua Creating items in specific backpack TFS 1.2

    So if we take obsidian knife for example, if you skin a monster and get the product (in real tibia) the product is created, where the obsidian knife is located. So if the knife lays on the ground the leather creates on the ground. If the player has it in his backpack, it creates in his backpack...
  12. F

    Lua TFS 0.2.15 I'm loosing my mind...

    Here is a part of my script... the important part. It's an action pick.lua elseif itemEx.uid == 17104 then doTransformItem(itemEx.uid, 2249) addEvent(doTransformItem, 1000*5, itemEx.uid, 3615) doSendMagicEffect(toPosition, CONST_ME_POFF) return TRUE elseif ... The problem...
  13. F

    Lua Upgrading scripts from TFS 0.2.15 to TFS 1.1/1.2+

    Hello everyone, it's been a long time since I worked on my server and a lot of progress was done on TFS. Now that it uses a new scripting system and a reworked engine I really wanna upgrade my old sever to 1.x. I want to get all my old script to the new state and I know there is not a program...
  14. F

    Lua Switching from 0.2.14 to 1.0 [TFS]

    Hello everyone, I think I wanna try to update my 0.2.14 Server to latest 1.0. But I saw, that the scripting system has changed a lot. Now I wanna ask, are there any beginners or general usage tutorials on how the new system works, how to call functions, and what I have to be careful with, when...
  15. F

    Lua Please someone explains raids.xml to me (in detail)

    So I want to use random monster spawns on my server. But it is a small populated server, so severall spawns each day, would be way too much. So I just want to have out of a list of 10 bosses, 1-3 spawns each day. Now, how do I make this. What I got so far is this: <raid name="Feverish"...
  16. F

    Solved [Movement] Faster regeneration in special buildings

    So the idea is: There is like a tavern, where you regenerate mana and hp much faster, while you are in the building. My first attempt is this script local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_TICKS, -1)...
  17. F

    Lua Problem with closingdoors.lua

    Hello everyone. My problem is, when I am standing in a quest door, or level door, and I die my body get's removed. I want the body to be pushed in front of the door instead. Here is my script: function onStepOut(cid, item, position, fromPosition) local newPosition = {x = position.x, y =...
  18. F

    Lua getPlayerExp

    Hello everyone, I am using TFS 0.2.14 and I want to know if it is possible, to get the Player's exp with a function (no database query)?
  19. F

    Remeres map editor Live Mapping

    Is there any version of RME with the Live mapping feature, that supports 9.6 or higher? Or is there any way to do this on my own? I really liked it, and want to do some stuff, with my friends ;)
  20. F

    GlobalEvent Last Creep Standing World Event (Darashia Journey)

    Hello everyone, I tried to script this quest, and I think I succeed. The Positions are from RL Map, but there was the main quest room missing, so some positions are called "missing". add this in data/globalevents/globalevents.xml <globalevent name="LastCreep" interval="14400000"...
Back
Top