• 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!

Recent content by charlyhustle

  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.
Back
Top