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

    Request : potion that adds magic / skill lvl, only useable 5 x !

    local potions = { [potionid] = {skill = <skillid>, storage = <storageid>, flask = <flaskid>}, } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if not target:isPlayer() then return false end local targetPlayer = Player(target) local potion...
  2. Yalasari

    Dbugg error Query: Update 'players' ... ... .... "Out of range value for column 'experience' at row 1

    Limit is lying on database side, unsinged bigint is largest (2^64 - 1) integer type available. You should either rework experience (scale it down) or introduce something like reborn system.
  3. Yalasari

    Dbugg error Query: Update 'players' ... ... .... "Out of range value for column 'experience' at row 1

    This means that value You are trying to insert into 'experience' is out of your variable type range, actually it is bigger than bigint so I would recommend You to change experience multipliers to lower, implement reborn system or something like that.
  4. Yalasari

    TFS 1.X+ tfs 1.3 Crash - Message: Can't connect to MySQL server on '127.0.0.1' (111)

    It means that TFS isn't able to establish a connection with MySQL Db, Open your MySQL config file (my.cnf) and try to locate "bind-address" property, if it is present comment it with '#' char, Then restart your MySQL service.
  5. Yalasari

    TFS 1.X+ tfs 1.3 premium wielded any weapon

    If you want to skip checking mlvl also try changing this if (player->getLevel() < moveEvent->getReqLevel() || player->getMagicLevel() < moveEvent->getReqMagLv()) { return 0; } to this if ((player->getLevel() < moveEvent->getReqLevel() || player->getMagicLevel() < moveEvent->getReqMagLv()) &&...
  6. Yalasari

    warning C4018: '>=': signed/unsigned mismatch

    Replace this: DBInsert murdersQuery("INSERT INTO player_murders(id, player_id, date) VALUES "); for (time_t timestamp : player->murderTimeStamps) { query << "NULL," << player->getGUID() << ',' << timestamp; if (!murdersQuery.addRow(query)) { return false; } } With this...
  7. Yalasari

    warning C4018: '>=': signed/unsigned mismatch

    @Kaspar already provided You enough information how to solve this problem, but if You can't still figure it out, try to replace this code uint32_t lastDay = 0; uint32_t lastWeek = 0; uint32_t lastMonth = 0; uint64_t egibleMurders = 0; with this int32_t lastDay = 0; int32_t lastWeek = 0; int32_t...
  8. Yalasari

    AAC How can i put a description in create character part?

    Inside config.php add this line: $config['site']['vocation_descriptions'] = array(1 => 'Sorcerer Title', 2 => 'Druid Title', 3 => 'Paladin Title', 4 => 'Knight Title'); then inside accountmanagment.php $main_content .= '<td><table class="TableContent" width="100%" ><tr class="Odd"...
  9. Yalasari

    Virus OTClient Trojan.Cossta.sh

    In most cases You aren't able to properly remove viral code from .exe file without corrupting it. Using file cleaning software You have very high chances to either malform file rendering it unusable or just fail to clean it. I'd recommend you to somehow obtain source code and then manually...
  10. Yalasari

    TFS 1.X+ [tfs 1.3] How can i make player dont lose skill Fishing dying

    @Stigma I see my mistake, and of course answer which You provided is correct. However my intention in making code such like this was to ensure that no matter which skill is last (SKILL_LAST) code will run correctly, of course my previous code wasn't working but i just wonder if using something...
  11. Yalasari

    TFS 1.X+ [tfs 1.3] How can i make player dont lose skill Fishing dying

    In file player.cpp You have structure like this //Skill loss for (uint8_t i = SKILL_FIRST; i <= SKILL_LAST; ++i) { //for each skill uint64_t sumSkillTries = 0; for (uint16_t c = 11; c <= skills[i].level; ++c) { //sum up all required tries for all skill levels...
  12. Yalasari

    TFS 1.X+ tfs 1.3 set skull war

    Unfortunately guild emblems aren't "set" by function, inside player.cpp you can see that type of guild emblem which is returned bases on current relationship between player and its spectator If you want to "set" guild emblem type, you need to replace this function with another which will...
  13. Yalasari

    TFS 1.X+ Lua script Error [Raid Interface]

    Try to change orshabaal spawn location, and check if you can spawn him via command in-game, do same thing with The Pale Count
  14. Yalasari

    TFS 1.X+ Lua script Error [Raid Interface]

    Replace your raid scripts with: Orshabaal.lua function onRaid() local monster = Game.createMonster("Orshabaal", Position(33207, 31719, 7)) if monster then print("Created monster Orshabaal") monster:setReward(true) else print("Could not create monster Orshabaal") end end The pale...
  15. Yalasari

    TFS 1.X+ Lua script Error [Raid Interface]

    attemp to call method 'isRewardBoss' (a nil value) This error means that method 'isRewardBoss' is called on nil value which is result of 'getType' function, in your case then, type of 'monster' is nil. If your 'monster' is nil then it is not properly created and/or assigned to variable on which...
  16. Yalasari

    TFS 1.X+ [tfs 1.3] Player with storage 1500 gain 10% more skills?

    In your data/events/scripts/ folder open file named player.lua and search for this code function Player:onGainSkillTries(skill, tries) if APPLY_SKILL_MULTIPLIER == false then return tries end if skill == SKILL_MAGLEVEL then return tries *...
  17. Yalasari

    HP/MP percentage

    @Stigma gave You ready solution, there is no more things to answer.
  18. Yalasari

    HP/MP percentage

    I don't know which engine You are using nor which version, so i can't really help you with that.
  19. Yalasari

    HP/MP percentage

    I think it could be done on server-side by converting values containing HP/MP info which are sent to client to 0-100 range using proper mathematical operation.
  20. Yalasari

    TFS 1.X+ [tfs 1.3] premium account can log 3 character in same acc.

    Try using std::cout << "Text here" << std::endl;
Back
Top