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

    Script to strengthen the monster's attacks by 5%

    So, if storages on monster work try this: local storage = 1235 -- value of monster bonus damage, ex. set it to 5 for 5% but if you want to disable it set to -1 function onStatsChange(cid, attacker, type, combat, value) if isPlayer(cid) and isMonster(attacker) then if...
  2. rafaeru

    Script to strengthen the monster's attacks by 5%

    You won't do it in creaturescripts using onHelathChange because you can't give monsters storage value. You can create a spell for a monster that would turn it into a upgraded version of monster or add a function to source that will strengthen monster. You can easily pull it into a function in...
  3. rafaeru

    TFS 1.2 Spell isnt executing when monster cast it

    You have if with condition who check that it is player in 53 line. if creature:isPlayer() then
  4. rafaeru

    Lua [tfs 0.4] [action script]-> 2 items conjure new item onUse

    My script work fine. I test it: <action itemid="7759" event="script" value="test.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == 6943 and itemEx.itemid == 2174 then doRemoveItem(item.uid) doTransformItem(itemEx.uid, 6485)...
  5. rafaeru

    Lua [tfs 0.4] [action script]-> 2 items conjure new item onUse

    function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == 6943 and itemEx.itemid == 2174 then doRemoveItem(item.uid) doTransformItem(itemEx.uid, 6485) doCreatureSay(cid, 'You recharged your ' .. getItemNameById(item.itemid), TALKTYPE_ORANGE_1)...
  6. rafaeru

    TFS 0.X Crash Game:playerLookAt

    Hello, sometimes random player cause crash probably by look at item. I'm using the server TFS 0.3.6. I have no idea what is wrong. Maybe you have encountered a similar problem? Additional question: is it possible to check what player caused the crash using GDB? GDB log from crash: game.cpp -...
  7. rafaeru

    C++ High CPU Usage

    Its probably something with NPC trade Items.cpp const ItemType& Items::getItemIdByClientId(int32_t spriteId) const { uint32_t i = 100; ItemType* iType; do{ iType = items.getElement(i); if(iType && iType->clientId == spriteId){ return *iType; }...
  8. rafaeru

    C++ High CPU Usage

    Something or someone cause 100% CPU usage on my ots. TFS 0.3.6 Problem is: Items::getItemIdByClientId(int) const But i have no idea how to fix it or get more info.
  9. rafaeru

    PHP ZnoteACC - Maximum guild members

    if (!empty($_POST['invite'])) { if (user_character_exist($_POST['invite'])) { // Make sure they are not in another guild if ($gid['info']['players'] <= 20) { if ($config['TFSVersion'] != 'TFS_10') { $charname =...
  10. rafaeru

    PHP ZnoteACC - Maximum guild members

    Hello, I want to add maximum number of members in guild in ZnoteACC but I'm not good in php. Can someone help in this if statment ? if (!empty($_POST['invite'])) { if (user_character_exist($_POST['invite'])) { // Make sure they are not in another guild // HERE...
  11. rafaeru

    Compiling Items animation speed?

    It is possible by injecting DLL
  12. rafaeru

    TFS 0.X player isn't getting frag if the attacked fight back

    After fightback no white skull player recive yellow skull ? Check function in player.cpp bool Player::onKilledCreature(Creature* target, DeathEntry& entry) { if(!Creature::onKilledCreature(target, entry)) return false; if(hasFlag(PlayerFlag_NotGenerateLoot))...
  13. rafaeru

    C++ monster attack other

    You need to make condition in game.cpp function: bool Game::combatChangeHealth(const CombatParams& params, Creature* attacker, Creature* target, int32_t healthChange, bool force) Under this: if(damage > 0) Something like: if (target && target->getMonster() && attacker->getMonster() &&...
  14. rafaeru

    Lua (TFS 0.4) Using X item on X item transforms it (TFS 0.4)

    This works (tested): function onUse(cid, item, fromPosition, itemEx, toPosition) local charges = getItemAttribute(item.uid, "charges") if itemEx.itemid == 2160 then if charges > itemEx.type then doItemSetAttribute(item.uid, "charges", charges - itemEx.type)...
  15. rafaeru

    Lua (TFS 0.4) Using X item on X item transforms it (TFS 0.4)

    Test this: function onUse(cid, item, fromPosition, itemEx, toPosition) local charges = getItemAttribute(item.uid, "charges") if itemEx.itemid == 2160 then if charges > itemEx.type then doTransformItem(itemEx.uid, 2161) doItemSetAttribute(item.uid...
  16. rafaeru

    Lua (TFS 0.4) Using X item on X item transforms it (TFS 0.4)

    itemEx.type Is responsible for charges. I don't understand what you mean, so that's the only way I can help you.
  17. rafaeru

    Creating ACC in myphp

    Check encryption type in your config.lua If you can set encryption to 'plain' (unencrypted) and set in sql just your password ex. password123
  18. rafaeru

    C++ Upgraded Healing

    game.cpp All healing recived are boosted for player with storage 8888 (potions, sio, etc..). Storage = -1 Storage = 1000
  19. rafaeru

    Lua Simple TP System

    Creaturescripts: <event type="kill" name="SummonTeleport" event="script" value="summonteleport.lua"/> function onKill(cid, target, lasthit) if isMonster(target) and getCreatureMaster(target) ~= target then if isPlayer(getCreatureMaster(target)) then player =...
  20. rafaeru

    New rules for PVP

    I think you stopped at Tibia ~8.6 Now you cant get banned because Cipsoft introduce Black Skulls Also if you want fight with another guild you have Guild Emblem system that dont count frags if you kill enemy guild member. Look at hardcore retro pvp servers where at start is hype and a lot of...
Back
Top