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

  1. Nihilist

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

    @gmstrikker My bad, vocSpellsMap is defined only in the InstantSpell class, we are trying to use it in Spells. You can try creating a new function. Below bool canCast(const Player* player) const; in spells.h: bool hasVocation(int32_t vocId) const; Then, spells.cpp: bool...
  2. Nihilist

    Compiling OTclient compilation

    What do you mean by OTClient 8.6? Most OTC builds supports all versions. If you need a tutorial on how to compile it, here are the links (Windows, Linux). If you simply want the compiled executable, here you go OTC Compiled.
  3. Nihilist

    Lua How to select a Widget?

    I got kind of confused with the UICheckBox thing, I might be wrong, but you are better off using something like a VerticalList so you can check which child is focused. You should look up how the character list was created, it can be quite useful.
  4. Nihilist

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

    @gmstrikker, for other vocation's spells not to show, you should change your custom function as follows: InstantSpell* Spells::getInstantSpellByIndexCustom(const Player* player, uint32_t index) { uint32_t count = 0; for(InstantsMap::iterator it = instants.begin(); it != instants.end()...
  5. Nihilist

    Lua How to select a Widget?

    If I understood you correctly, when you click (check) a spell, this is what gets called: modules.game_interface.onSpellsBoxChecked. Have you tried changing the variables in that function?
  6. Nihilist

    Can't connect ingame

    @Craetivez, did you put the correct IP Address inside the config.lua?
  7. Nihilist

    Add 64x64 .bmp to .spr

    I see. Well, I think the best way to optimize that is edit ObjectBuilder source code and compile with your own feature. You can give it a try: GitHub - ottools/ObjectBuilder
  8. Nihilist

    Lua NPC random chance

    I think you want something like this: function obsidian(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local randomChance = 30 if getPlayerItemCount(cid,2157) >= 1 then local random =...
  9. Nihilist

    Add 64x64 .bmp to .spr

    Why is it a pain in the ass? I mean, are you having trouble to find the right place to each part? Or are you talking about the time you spend mounting?
  10. Nihilist

    Fenris - Alternate Tibia Server (A legacy from Thronar)

    Is there a website/link to the client? or is it just a normal 9.86 client?
  11. Nihilist

    Solved isInArray problem

    Maybe this? function onUse(cid, item, fromPosition, itemEx, toPosition) local id = itemEx.itemid if (id >= 100 and id <= 26509) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "blalbalba") end end
  12. Nihilist

    C++ how to remove downgrade level from source

    I don't think it's related to this source edit.
  13. Nihilist

    MySQL error on login

    So, there's no column named id, right? Maybe you should try creating an id column. ALTER TABLE `player_deaths` ADD `id` INT(11) NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (`id`);
  14. Nihilist

    C++ how to remove downgrade level from source

    Just comment this line: removeExperience(lossExperience, false); Like: //removeExperience(lossExperience, false);
  15. Nihilist

    C++ how to remove downgrade level from source

    I'm not sure because I did not test it, but I think you just need to comment these lines from player.cpp: uint64_t lossExperience = getLostExperience(); removeExperience(lossExperience, false);
Back
Top