• 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

    Gesior - Buying mount in the store

    Line #1126 Try by changing this: $sql = 'INSERT INTO ' . $SQL->tableName('z_ots_comunication') . ' (' . $SQL->fieldName('id') . ',' . $SQL->fieldName('name') . ',' . $SQL->fieldName('type') . ',' . $SQL->fieldName('action') . ',' . $SQL->fieldName('param1') . ',' . $SQL->fieldName('param2') ...
  2. imkingran

    Gesior - Buying mount in the store

    Without the comma: $buy_offer['type'] == 'item' If it's not there then put your shop.php file on pastebin.com
  3. imkingran

    Gesior - Buying mount in the store

    Then it's possible that your shop PHP file is not placing the `shop_offer`.`offer_type` as "mount" when it sends the information to `z_ots_communication`. Search for $buy_offer['type'] == 'item', look at how it's implemented and make another for "mount".
  4. imkingran

    Gesior - Buying mount in the store

    Oh okay I see what you're saying. Then change the `offer_type` to 'mount' in your `z_shop_offer` table. P.S. Mount Ids are found in data/XML/mounts.xml
  5. imkingran

    Gesior - Buying mount in the store

    Do you have correct mount ID in your `z_shop_offer` table under itemid1?
  6. imkingran

    GESIOR SHOPPING BUG HELP !

    Do you have any error messages in your console? Do you have a globalevent set up to deliver the items?
  7. imkingran

    Lua Problem with storage and party

    Try to change: for i, k in ipairs(players) do setPlayerStorageValue(k, Storage, (getPlayerStorageValue(k, Storage)+1)) end To: for i, k in ipairs(players) do if getPlayerStorageValue(k, Storage) >= valor1 and...
  8. imkingran

    Windows I cannot post in advertisement section why not?

    Are you using an ad-blocker? If so try disabling, it was a problem for a few other people in the past. Why can't i post in Advertisement
  9. imkingran

    Item onUse monster, get teleported or storage

    Always let people know what TFS version or Engine you are using so that they can help you better.
  10. imkingran

    Upgrade 0.4 to 1.1/1.2?

    There is a compat file in the the library of TFS 1.x that helps with that. forgottenserver/compat.lua at master · otland/forgottenserver · GitHub I'd say try it and see what happens, most likely you can fix any errors. I think the only thing that is not adaptable is doSendAnimatedText(pos...
  11. imkingran

    Windows Message: table account_viplist' doesn't exits help

    Looks like you are missing the table in your database: CREATE TABLE IF NOT EXISTS `account_viplist` ( `account_id` int(11) NOT NULL COMMENT 'id of account whose viplist entry it is', `player_id` int(11) NOT NULL COMMENT 'id of target player of viplist entry', `description` varchar(128) NOT...
  12. imkingran

    Lua Check values from/to?

    Won't that spam the player with up to 100: "Your quest log has been updated." messages? Another question, doesn't TFS already send you that message when the quest is registered in data/xml/quests.xml? Or is that not the case for older revs? -- updateQuestStorages(cid, startStorageKey...
  13. imkingran

    Help with a function for my war server

    Your system will add the skull type based on how many frags a player has, based on the function setSkullColor() that's excuted onLogin and after each onKill. If you want to change that so everytime someone dies they lose their skull (aka start over) then you have to remove the players frags...
  14. imkingran

    Lua NPC Black Bert bug

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  15. imkingran

    AAC Team Page Gesior

    Try this one: $list = $SQL->query('SELECT `name`, `group_id` FROM `players` WHERE `group_id` > 1 ORDER BY `players`.`group_id` DESC');
  16. imkingran

    AAC Team Page Gesior

    What's his group ID tho?
  17. imkingran

    AAC Team Page Gesior

    Change your query to include group_id and change how it orders to players.group_id instead of players.name: $list = $SQL->query('SELECT `name`, `group_id` FROM `players` WHERE `account_id` IN (SELECT `id` FROM `accounts` WHERE `type` = 2 or `group_id` > 2) ORDER BY `players`.`group_id` DESC');
  18. imkingran

    Lua Talkaction bless withdraw money from bank

    If you are using this NPC Bank Balance system: https://otland.net/threads/npc-working-with-balance.245690/ Then just change: p:removeMoney(cost) to: p:removeMoneyNpc(cost) If you're not using that system then you can still just copy that function and use it.
  19. imkingran

    Solved Command sql to add premium points

    Try this: function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local split = param:split(",") local name = split[1] local points =...
Back
Top