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

    TFS 1.X+ Autoloot dropdown menu option in OTCv8

    Hey guys! I'm using the autoloot system by kor (which was based on psychonauts system): https://otland.net/threads/simple-auto-loot-system-tfs-1-3.273071/ It is actually working great but I wanted to add the option to rightclick an item (to open up the regular dropdown) and be able to...
  2. charlyhustle

    Lua onStepIn Problem

    Holy smokes I feel dumb haha that actually was the problem. Thanks! Have been looking through so much code lately I feel like I'm getting blind lol.
  3. charlyhustle

    Lua onStepIn Problem

    Yes I set the storage in storage.lua. i put the exact tile ID. Here's what it looks like in RME:
  4. charlyhustle

    Lua onStepIn Problem

    Hi guys, I wrote a script for a quest but I'm struggling with getting it to work. Here's what i did: movements.xml: <movevent event="StepIn" actionid="56000" script="script.lua" /> script.lua: function onStepIn(creature, item, position, fromPosition) local player = Player(creature)...
  5. charlyhustle

    OTClient OTC Tutorials?

    That's so nice! Thank you, i really appreciate the effort!
  6. charlyhustle

    Lua NPC setMessage TFS 1.3

    Works! :) The only thing left now is that if I don't say bye he still replies with the standard callback but unfortunately this didn't work: function creatureGreetingCallback(cid) local player = Player(cid) if player then local msg =...
  7. charlyhustle

    Lua NPC setMessage TFS 1.3

    I will test it tommorow, thanks a lot. I just didn't find the addFocus method 🤦‍♂️
  8. charlyhustle

    Lua NPC setMessage TFS 1.3

    Yeah of course. Here you go: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  9. charlyhustle

    Lua NPC setMessage TFS 1.3

    @Sarah Wesker I tried it like this: function creatureFarewellCallback(cid) local player = Player(cid) if player then selfSay(MESSAGES_GOODBYE[math.random(1, 3)], cid) end return false end function creatureGreetingCallback(cid) local player = Player(cid) if...
  10. charlyhustle

    Lua NPC setMessage TFS 1.3

    Alrighty I'll try that. Thank you very much!
  11. charlyhustle

    Lua NPC setMessage TFS 1.3

    Hi guys, is it possible to use the setMessage function to set a different message each time the player says something? Because right now I'm using this: npcHandler:setMessage(MESSAGE_FAREWELL, MESSAGES_GOODBYE[math.random(1,3)]) And it kinda works but the random function is just called once...
  12. charlyhustle

    Lua onKill event Problem

    Works like a charm! No errors. Thanks @Xikini!
  13. charlyhustle

    Lua onKill event Problem

    Thank you so much! Will test it later if I find the time but looks very promising. And yes it's kind of a multistage boss (Human form/ werewolf form) I will report back here, after I tested it!
  14. charlyhustle

    Lua onKill event Problem

    Hi guys, I wrote a script for my server (TFS 1.3) where if you kill a boss it will summon another boss. When multiple players kill the monster theres a chance that the event will be triggered twice. I assume it's because of lasthit/mostdamage mechanic maybe? Here's my script: local timer = 1 *...
  15. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    It's not rude don't worry :) It might make no sense but thats how it is. Here's my blockHit method: 1616504154 By now I'm pretty sure this just doesnt work with the latest TFS sources anymore.
  16. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    I took the code from Adding features from #998 by nekiro · Pull Request #2807 · otland/forgottenserver (https://github.com/otland/forgottenserver/pull/2807/files) I didn't change anything else. I triple checked every single line of code. I registered every item in movements.xml. Still only...
  17. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    But they should work with spells, right? Which they don't unfortunately. 1616485383 Okay I just tested some more and i discovered that the problem isn't the spells but the damage type. ALL physical damage works fine. Spells like exori, exori gran, etc are getting buffed and attacks with wands...
  18. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    This should do the trick for you Yesterday I fetched the latest tfs resources and started fresh. I compiled everything including the custom item attributes and it's still not working. The good news is that at least the crit/leech is working now so that was probably not working because of the...
  19. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    Edit: I just screwed up my last post... Here's what I wrote: I tested it with "exura", "exura san" and regular health potions. I haven't touched any of these scripts.
  20. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    The bonuses are displayed perfectly. For the crit/leech as well as for healing and damage bonuses. But you don't actually get the bonus. The only thing that is working is the damage reduction and the damage bonus on "autoattacks". 1616420107 To make it more clear. This is how the ring is...
Back
Top