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

    Lua addEvent problem

    the only thing that can be said is: stopEvent(StayArena) or stopEvent(StayArena[player:getId()])
  2. M

    C++ Boss Reward tfs 1.4

    I'm trying to add it to tfs 1.4, but I'm having these errors, does anyone have a solution? https://github.com/otland/forgottenserver/pull/1641/files#diff-71ab3d0cd534a1608f1c652185c8a8e1247c81813161673bedf7f5433dad2483 Error C2248 'Container::maxSize': cannot access private member...
  3. M

    AAC add function to the shop system

    it would be something to add a chest that would give bonus items to the player... as soon as payment was confirmed https://github.com/slawkens/myaac-plugins/commit/52abb317afb2a6980a1c4a613c33b35cdf39d46a#diff-224f7329af6568d34ba26a5dbf0a6012a6ae02011e3a3c66685cc1864596003aL62
  4. M

    AAC add function to the shop system

    Thanks for answer, sorry, maybe my post is not specific, yes, I know about shop.lua... but not my case... I want to add the function to PHP, where it will add the item when purchasing Points.
  5. M

    AAC add function to the shop system

    @MyAAC https://github.com/slawkens/myaac-plugins/blob/master/gesior-shop-system/payments/pagseguro.php#L55 hello, somebody can help add this function. I want to add the function to PHP, where it will add the item when purchasing Points. INSERT INTO `z_ots_comunication` (`id`, `name`, `type`...
  6. M

    Lua locking for script mana rune tfs 1.2

    will not remove runes if mana is full mark as resolved function onUse(player, item, fromPosition, target, toPosition, isHotkey) if not player then return false end local level = player:getLevel() local mlevel = player:getMagicLevel() -- Exhaustion Settings --...
  7. M

    Lua locking for script mana rune tfs 1.2

    updated code
  8. M

    Lua locking for script mana rune tfs 1.2

    if you have full mana, no message! change -- Game.sendAnimatedText("+" .. mana_add .. " Mana", topos, TEXTCOLOR_LIGHTBLUE) to Game.sendAnimatedText("+" .. mana_add .. " Mana", player:getPosition(), TEXTCOLOR_LIGHTBLUE)
  9. M

    Lua locking for script mana rune tfs 1.2

    if you have full mana, no message! the exhausted was for 1 second... it was in the script so it remained is removed when you use function onUse(player, item, fromPosition, target, toPosition, isHotkey) if not player then return false end local level =...
  10. M

    Lua locking for script mana rune tfs 1.2

    function onUse(player, item, fromPosition, target, toPosition, isHotkey) if not player then return false end local level = player:getLevel() local mlevel = player:getMagicLevel() -- Exhaustion Settings -- local exhausted_seconds = 1 -- How many seconds the...
  11. M

    Lua locking for script mana rune tfs 1.2

    item:transform(item.type - 1) >> item:transform(item.itemid, item.type - 1)
  12. M

    Lua locking for script mana rune tfs 1.2

    function onUse(player, item, fromPosition, target, toPosition, isHotkey) if not player then return false end local level = player:getLevel() local mlevel = player:getMagicLevel() -- Exhaustion Settings -- local exhausted_seconds = 1 -- How many seconds the...
  13. M

    [TFS 1.5] Players from the same guild do not attack each other.

    @Shoorkill Mark resolved if it worked
  14. M

    [TFS 1.5] Players from the same guild do not attack each other.

    try local creatureevent = CreatureEvent("ProtectHP") function creatureevent.onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if not creature or not attacker or creature == attacker then return primaryDamage, primaryType...
  15. M

    [TFS 1.5] Players from the same guild do not attack each other.

    Try events\scripts\creature.lua function Creature:onTargetCombat(target) if self:isPlayer() and target:isPlayer() then local SelfGuild, TargetGuild = self:getGuild(), target:getGuild() if SelfGuild and TargetGuild and SelfGuild == TargetGuild then return...
  16. M

    C++ add features from tfs 1.2 to 1.4

    This is complete code, someone please help? 😭😭 events.cpp } else if (methodName == "onEquipItem") { info.playerOnEquipItem = event; } else if (methodName == "onDeEquipItem") { info.playerOnDeEquipItem = event; bool Events::eventPlayerOnEquipItem(Player* player, Item* item...
  17. M

    C++ add features from tfs 1.2 to 1.4

    I added my enchantment system in tfs 1.4, but i had problems, could anyone help? When i remove the functions everything seems to work normally movement.cpp https://github.com/otland/forgottenserver/blob/1.4/src/movement.cpp#L459C1-L476C1 uint32_t MoveEvents::onPlayerEquip(Player* player, Item*...
  18. M

    tfs 1.5 online but can't login

    Please could someone help, I'm trying to get tfs 1.5 online, without success. I thought the settings were wrong so I tested with canary and it worked Myaac login.php TFS 1.5 Client 12.86.11871
Back
Top