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

Search results

  1. imkingran

    C++ Move item inbox

    Try this: ItemList moveItemList; for (HouseTile* tile : houseTiles) { if (const TileItemVector* items = tile->getItemList()) { for (Item* item : *items) { if (item->isWrappable()) { std::string itemName = item->getName()...
  2. imkingran

    Lua check item in container

    container:getItemHoldingCount()
  3. imkingran

    !afk talkaction tfs 1.3

    <talkaction words="!afk" separator=" " script="afk.lua"/> local config = { msg = 'AFK', interval = 3000, -- in ms, 1000 ms = 1 s storage = 12345 -- empty storage } local function sendAfkMessage(pid, startPos) local player = Player(pid) if not player then return...
  4. imkingran

    Help with c++ change in MonsterType:getAttackList() TFS 1.2

    Looks like over here: forgottenserver/monsters.h at 18fbfdc33a65c5cba9d5a02bcc8116dfd10362b0 · otland/forgottenserver · GitHub
  5. imkingran

    Talkactions Teleport

    function onSay(player, words, param) if player:getAccountType() ~= ACCOUNT_TYPE_GOD then return false end local uid = tonumber(param) if not uid then player:sendCancelMessage('Please enter a UID: /tp UID') return false end local pos =...
  6. imkingran

    Vip Acces for Account not Player

    You can see how it's done here: VIP System [The Forgotten Server 1.0]
  7. imkingran

    OTX 3 Creaturescript

    Did this not work for you? OTX 3 Event Script
  8. imkingran

    Get Level function TFS 1.2/OTX 3

    Try this: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  9. imkingran

    Get Level function TFS 1.2/OTX 3

    Can you show me Trish.lua?
  10. imkingran

    Get Level function TFS 1.2/OTX 3

    Where did you place the function?
  11. imkingran

    Get Level function TFS 1.2/OTX 3

    local function getExpForLevel(level) level = level - 1 return ((50 * level * level * level) - (150 * level * level) + (400 * level)) / 3 end local function addLevel(player) return player:addExperience(getExpForLevel(player:getLevel()+1) - player:getExperience()) end
  12. imkingran

    Lua Taming System

    I tested it as is and it worked fine for me. Are you sure you registered the item in actions.xml? Also this line has a typo: or (mount.name and mount.name ~= targetName) then should be mount.mountName
  13. imkingran

    OTX 3 Event Script

    Make sure you enabled it in events.xml <event class="Creature" method="onTargetCombat" enabled="1" /> -- local variables local rebirthStorage = 85987 local percent = 0.3 -- 30% function Player:canAttack(target) local pLvl, tLvl = self:getStorageValue(rebirthStorage)...
  14. imkingran

    Talkaction to remove wall

    <talkaction words="!remove" separator=" " script="your_file_name_here.lua"/> local config = { wall_action_id = 12345, -- action ID of your wall onBreakMsg = 'KABOOOM!', -- msg when they break it onBreakEffect = CONST_ME_BLOCKHIT, -- effect when they break it errorMsg = 'Special...
  15. imkingran

    EXP Stage based off storage OTX 3.0+

    otxserver/player.lua at d547d33767748554be4b23f5a922ad9cd6e48c78 · mattyx14/otxserver · GitHub example: function Player:onGainExperience(source, exp, rawExp) -- if they completed quest with storage 12345 then they only get 50% of the exp if self:getStorageValue(12345) >= 1 then...
  16. imkingran

    Talkaction /giveall item, x tfs 1.2 error "explode"

    No errors? put print(1) print(2) after the different parts to see what's going wrong. I tested it on my server and works, but I use an edited TFS 1.1, maybe someone with a 1.2 environment set up can help u guys better.
  17. imkingran

    On look, temporary name

    Let everyone know what engine you are using. (eg, 1.X, 0.X)
  18. imkingran

    Talkaction /giveall item, x tfs 1.2 error "explode"

    Try this: local function getEligiblePlayers() local list = {} local eligiblePlayers = {} for k,v in pairs(Game.getPlayers()) do local player = Player(v) if player then local IP = player:getIp() if not list[IP] then list[IP] =...
  19. imkingran

    Talkaction /giveall item, x tfs 1.2 error "explode"

    It looks like the function getItemNameById doesn't exist in your distro. I found this in compat.lua of 1.3: getItemName(itemId) forgottenserver/compat.lua at bdd48705579998c3f7ef6de4778dbe8834ed29d4 · otland/forgottenserver · GitHub
  20. imkingran

    Talkaction /giveall item, x tfs 1.2 error "explode"

    Try to replace: local t = string.explode(param, ",") With: local t = param:split(",")
Back
Top