• 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

    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.
  2. 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:
  3. 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)...
  4. charlyhustle

    OTClient OTC Tutorials?

    That's so nice! Thank you, i really appreciate the effort!
  5. 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 =...
  6. charlyhustle

    Lua NPC setMessage TFS 1.3

    I will test it tommorow, thanks a lot. I just didn't find the addFocus method 🤦‍♂️
  7. 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)...
  8. 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...
  9. charlyhustle

    Lua NPC setMessage TFS 1.3

    Alrighty I'll try that. Thank you very much!
  10. 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...
  11. charlyhustle

    Lua onKill event Problem

    Works like a charm! No errors. Thanks @Xikini!
  12. 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!
  13. 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 *...
  14. 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.
  15. 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...
  16. 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...
  17. 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...
  18. 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.
  19. 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...
  20. charlyhustle

    C++ Item Attributes not working as intended TFS 1.3

    yes. just for testing purposes of course.
Top