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

    Only one time quest

    You can add new functions for global database storage. Taken from here I'll post the working code here (tfs 1.2 tested) since the above link is confusing to implement. Adding Database/permanent global storage: The table stores strings up to 255 chars. calling getStorageValue(key) where no...
  2. Homeslice

    Looking for someone who can fix this error.. ? PaidJob.

    I also had a problem where I could load the character list but not connect to my sever using the machine it was hosted on. Try this: 127.0.0.1 is a loopback address, If you use 127.0.0.1 your connection goes to your router and back to your computer. I don't know why, but it doesn't seem to work...
  3. Homeslice

    Only one time quest

    If you are using TFS 1.x, All global storage is wiped when the server shuts down. If you want people to be able to complete the quest every day (if you have a daily restart) you can use globalstorage. If you want the quest to only be done once at all, you would need to use something else
  4. Homeslice

    Adding Roaming Monsters

    Lua functions: number creature:getFirstPath() - returns creatures first path creature:removeFirstPath() - removes first path from the creatures path list creature:moveTo() - pulled from here bool creature:isMapWalking() - c++ return listWalkDir.empty() == false; onSpawn is a creature event...
  5. Homeslice

    Monster Monsterpack, spellpack and creaturescriptspack for Tibia 10.7(TFS 1.1) based on Real Tibia

    Nice pack! Does anyone know where to find an updated items.xml with the monsters this pack added? (or 10.98)
  6. Homeslice

    [TFS 1.x] Enhanced "!kills" that shows amount of frags for red and black skulls

    Yours looks the same as mine. What TFS are you using?
  7. Homeslice

    [TFS 1.x] Enhanced "!kills" that shows amount of frags for red and black skulls

    The command is !kills not !frags If you don't have an existing kills.lua file you probably don't have TFS 1.x which this is for.
  8. Homeslice

    Lua Function creature:moveTo(position)

    You can fix the stacking bug with one line change. Change: bool Monster::getNextStep(Direction& dir, uint32_t& flags) { if (getHealth() <= 0) { //we dont have anyone watching might aswell stop walking eventWalk = 0; return false; } bool result = false...
  9. Homeslice

    Lua Function creature:moveTo(position)

    I've noticed a bug with this code. Pushable creatures (centipede) wont be pushed when there is no room beside a target. Creatures with canpushcreatures (carniphila) will not push the centipede, but instead stack on top of them.
  10. Homeslice

    Adding Roaming Monsters

    Thanks ^.^
  11. Homeslice

    Adding Roaming Monsters

    So i managed to finish this idea with most of the code in lua. The majority of C++ changes were for adding luascript functions: getFirstPath, removeFirstPath, moveTo, onSpawn and isMapWalking
  12. Homeslice

    Adding Roaming Monsters

    I plopped that in Monster::Monster(MonsterType* mtype) : Now onSpawn is called without specifying script for every creature xml Thanks for your help
  13. Homeslice

    Adding Roaming Monsters

    TFS 1.2 Should have mentioned I've only got plans for using paths with raid spawned monsters.
  14. Homeslice

    Adding Roaming Monsters

    Worked a little on this. I've got hardcoded lua, going to a position working by adding this creature:moveTo and changing the MAX_NODES in the built in a* pathfinding. The plan so far is to store path IDs in the spawnevents in each raid xml file which will be stored in the creature in c++. I...
  15. Homeslice

    Lua Function creature:moveTo(position)

    By default this will only move 10~ squares max. If you want to move farther increase static constexpr int32_t MAX_NODES = 512; 10000 will go 120 squares at most (straight there). Don't use moveTo for anything 50 steps or father otherwise your server will likely stutter.
  16. Homeslice

    TFS [1.2] GetFullDescription

    I couldn't find an easy way to get an item's full description using Lua. For example: You see knight legs (Arm:8). It can only be wielded properly by knights and paladins. It weighs 70.00 oz. In my case i added this functionality to see item stats in a Lua crafting system. This requires...
  17. Homeslice

    [TFS 1.3] Creature:SetMaster(Creature) crash

    Was a mistake in my source changes. Thank you
  18. Homeslice

    [TFS 1.3] Creature:SetMaster(Creature) crash

    Title wrong: 1.2 not 1.3 Hello everyone I am trying to convert the summon spells from this monsterpack from TFS 1.1 to 1.2. Here is the 1.1 code (data\spells\scripts\monster\white pale summon.lua): local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE)...
  19. Homeslice

    tibia client 8.6 safe?

    I'm pretty sure the official 8.6 client from Cipsoft was falsely flagged as a trojan. Hence every 8.6 download being flagged.
  20. Homeslice

    [TFS 1.x] Enhanced "!kills" that shows amount of frags for red and black skulls

    The !kills command only shows your frags, like this: 16:00 You do not have any unjustified kill. With my changes: 19:56 You do not have any unjustified kills. Red skull at 6 frags. Black skull at 12 frags. This is just a simple change so players know how many frags are required for red and...
Back
Top