• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Recent content by charlyhustle

  1. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    That actually works! Thank you for your time i really appreciate it!
  2. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    I will try that and keep you updated! 1719431736 Okay while testing what you suggested I noticed I still had <melee id="5875" action="removecount" /> instead of <melee id="5875" action="removecharge" /> The little things sometime... So I think what fixed it was adding the item to items.otb...
  3. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    Yeah it's also my suspicion it has something to do with this although I thoroughly checked this case: case WEAPONACTION_REMOVECHARGE: { uint16_t charges = item->getCharges(); if (charges != 0 && g_config.getBoolean(ConfigManager::REMOVE_WEAPON_CHARGES)) {...
  4. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    I know gloves are not a weapon type. That's why I added them :D I added gloves there: const std::unordered_map<std::string, WeaponType_t> WeaponTypesMap = { {"sword", WEAPON_SWORD}, {"club", WEAPON_CLUB}, {"axe", WEAPON_AXE}, {"shield", WEAPON_SHIELD}, {"distance"...
  5. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    I got "removeWeaponCharges = true" in config As I said the other weapons work fine. I'm currently assuming it is because sniper gloves are not a weapon in items.otb but I can't get any of the item editors to work. I think I tried them all by now lol.
  6. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    removeCount is used for ammunition. My gloves are a weapon. I tested it anyway but same outcome. Makes no difference but I appreciate your contribution! Does anyone else have an idea?
  7. charlyhustle

    C++ [TFS 1.3] Charges are not removed from custom weapon type

    Hi guys! As the title suggests I created a new weapon type called gloves. I'm using gloves to train my attack speed skill. I created a glove weapon and put in in weapons.xml (I'm using sniper gloves' id): <!-- Attack Speed --> <melee id="5875" action="removecharge" /> items.xml looks like...
  8. 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...
  9. 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.
  10. 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:
  11. 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)...
  12. charlyhustle

    OTClient OTC Tutorials?

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

    Lua NPC setMessage TFS 1.3

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