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

    TFS 0.X Vip Scroll - Increasing days

    This should work :) function onUse(cid, item, frompos, item2, topos) if item2.itemid == 2239 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens, voce se tornou um membro VIP do ExtremeOT por 30 dias!") local val = getPlayerStorageValue(cid, 30009)...
  2. M

    Linux luinx screen

    try connecting first and then type exit
  3. M

    Linux luinx screen

    Type screen -ls to see all available screen sessions that are running. If you don't see any that means screen is not running and you have to start it again If at least One session is showing up, you can connect back using screen -r [screen name]
  4. M

    Paralyze player spell is useless

    It's possible. With movements you will be adding a little bit of complexity which might not be worth your time. Consider also other players pushing your character With the first bit you can just add that condition id for 5 second or whatever. Player casting the spell again will have this...
  5. M

    Paralyze player spell is useless

    There's many ways you can go around it but you don't really explain how you want it to be done. Heres one example Having paralyse with high cool down will prevent it from being abused, you will want to have it integrated so multiple ppl don't spam the same player. Once paralyse is applied...
  6. M

    TFS 0.X [C++] Show spells when MLVL up deppeding on vocation

    The change I made was in the wrong place. I realised that too late haha. There was another function that you had to modify, I can't remember which one but I might help you in 1-2 months time when I'm back on my pc :p
  7. M

    [JAPAN] [7.6] PEORA - SINCE JULY 2018

    Seen Japan in the title. Thought it's the actual map of the country ha. Its a lovely place. Good luck with your hosting, if it was a server 10 years ago I'd definitely try it out. Now it's hard to find time
  8. M

    TFS 1.X+ Spells no damage

    Variable pointing to non existent area at the time of execution. That would be my guess 🙂
  9. M

    Compiling Convert Xml Accounts to SQL Problem

    Why don't you try converting xml file to sql using one of those fancy online converters. Then just upload sql to your database. You will probably get errors cause of items but it should populate other necessary fields??
  10. M

    TFS 1.X+ downgrade loot monster

    Yes change the code here otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/data/lib/core/container.lua#L5-L48) Instead of return false, do return true See how it goes :D ONCE That's done you can change it so if its a container you will want to replace it with...
  11. M

    TFS 1.X+ downgrade loot monster

    check if item id is higher than 8k and then ignore it. show your script
  12. M

    Lua Requesting idea's of scripts to create

    let the game be more dynamic. Lets say on thursday from 23:00 BST time till like 6 in the morning, certain NPCs will change their item supply. Something like a black market I guess lol What npcs/items are up to you
  13. M

    Skulls on NPC/Monsters

    how about this skull="SKULL_RED" or skull="4"
  14. M

    otx imbuements bug

    https://github.com/malucooo/otxserver-new/blob/8fcea22e8ec7c1b37f6a651bf2a73f554333da0a/src/protocolgame.cpp#L4192 delete or change this line to whatever you want :)
  15. M

    otx imbuements bug

    something like this, not tested btw function Player.canImbueItem(self, imbuement, item) for slot = CONST_SLOT_HEAD, CONST_SLOT_AMMO do local slotItem = self:getSlotItem(slot) if slotItem then if slotItem == item then return false end end end local...
  16. M

    Lua Converting lua time into a readable format.

    local function convertSeconds(time) local days = math.floor(time / 86400) local hours = math.floor(math.fmod(time, 86400) / 3600) local minutes = math.floor(math.fmod(time, 3600) / 60) local seconds = math.floor(math.fmod(time, 60)) local s = tostring(days > 0 and days...
  17. M

    TFS 0.X ML up show new spell from spells.xml

    I believe this will require source edits on its own. You will want to have similar structure to how spells are being fetched. At least that's how it's done in latest TFS, not really familiar with 0.x and not sure if you can get on-level up runes for your voc. What you can do instead is to...
  18. M

    TFS 1.X+ Dragon EGG.lua crashing server TFS 1.3

    inside your forgottenserver/data/events/events.xml disable onTargetCombat by specifying the following <event class="Creature" method="onTargetCombat" enabled="0" /> if that prevents crash then you have an event which is responsible for crash you also have some movements issues...
  19. M

    TFS 0.X ML up show new spell from spells.xml

    Do not modify your Lua scripts, use your original code -> link I missed this part, you need to change one more thing: spells.cpp replace uint32_t Spells::getInstantSpellCount(const Player* player) {...} with: uint32_t Spells::getInstantSpellCount(const Player* player) { uint32_t count =...
  20. M

    TFS 0.X ML up show new spell from spells.xml

    spells.cpp after InstantSpell* Spells::getInstantSpellByIndex(const Player* player, uint32_t index) {...} add: InstantSpell* Spells::getInstantSpellByIndexCustom(const Player* player, uint32_t index) { uint32_t count = 0; for(InstantsMap::iterator it = instants.begin(); it !=...
Back
Top