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

    Linux Players can take items from boundary of house (e.g. items in door)

    Hello, is there any simple c++/lua script which prevent taking items by all players from edges of house? For exmaple from doors, walls etc, only owners should be available to do that. Or any idea where I should search it in sources? house.cpp, tile.cpp, game.cpp, movement.cpp? I have TFS...
  2. O

    Lua Is there any way to check if item is countable?

    Hello, Is there any way to check if item is moveable + can be put in player's backpack? for example an apple meets requirements, tree doesn't, etc. TFS: 0.3.7 / 0.4 Thanks in advance
  3. O

    Is it possible to clear Depot?

    Hello, I want to make script which cleans player's Depot (in special Town - ID 3) I was searching in doc/LUA_FUNCTIONS but I can not find any responsible for this job. Is it possible to make it? TFS 0.3.6 - 0.4
  4. O

    Lua NPC: onCreatureSay, onCreatureDisappear: (luaDoCreatureSay) Creature not found

    Hello, I have 2 problems with NPC. Sometimes there appear error in logs: [Error - NpcScript Interface] In a timer event called from: data/npc/scripts/Captain Marko.lua:onCreatureSay Description: (luaDoCreatureSay) Creature not found but I have no idea why. And the second problem is involved...
  5. O

    Solved function onCastSpell(cid, var) - is it possible to get target?

    Hello, there is heal friend script: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL...
  6. O

    Linux [C++] How to make possibility involved witusing item on house door? Instead of "you are not invited"

    Hello, I have problem - when I use any item on house door then I see message: "you are not invited". RET_PLAYERISNOTINVITED is responsible for this message and it occurs there: actions.cpp ReturnValue Actions::canUse(const Player* player, const Position& pos) { (...) Tile* tile =...
  7. O

    Lua Training monks that heals

    Hello, how can be solved problem that training monks kill people? They should heal sometimes... but how should it be done?
  8. O

    Lua "Calculating weight for more than 100 items!"

    Hello, sometimes I have this error in console: [Warning] getItemWeightById Calculating weight for more than 100 items! Code that returns this error - 050-function.lua: function getItemWeightById(itemid, count, precision) local item, count, precision = getItemInfo(itemid), count or 1...
  9. O

    After changing direction character stops on first sqm for 0.5s

    Hello, does anyone know how to solve the problem described in the topic?
  10. O

    [Game chat] How to made functionality involved with writing in orange by support in game chat?

    Hello, Support (players with group ID >= 2) should write in orange in game chat. How can it be made?
  11. O

    Lua How to fetch varchar from database?

    Hello, I am trying to fetch varchar from database: local getFlag = db.getResult("SELECT * FROM `accounts` WHERE `id` = " .. getPlayerGUID(cid) .. ";") if (getFlag:getDataString("name") == "12311") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Hello Master!')...
  12. O

    Linux [PHP] Question marks "�" instead of spanish letter

    Hello, I have weird problem with characters on the site, in database I have spanish letters and when I fetch it from DB than i see question mark "�" instead of letter. In layout.php I have: <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> so there is UTF8, I guess file should...
  13. O

    Is there any LUA function which checks if the player is active or inactive?

    Hello! If player exits on no logout tile than he is sill in game. I want to check all players - when player is active (normally playing) or inactive (exit on no logout tile). Hmm... Is there any function which can check it? for _, pid in ipairs(getPlayersOnline()) do [ check if pid is active...
  14. O

    Lua How to prevent put the same item on EQ?

    Hello, I am trying to prevent put the same item as character has already weared on this slot -> when player tries to put item there. function onEquip(cid, item, slot) local itemWeared = getPlayerSlotItem(cid, 1).itemid if (itemWeared ~= item.itemid) then return...
  15. O

    Lua Exhaust on wearing item

    Hello, is there any script that allow putting on yourself (wearing) item for example one time per 2 seconds? Thanks in advance
  16. O

    [SQL] How can I hide players with 8 level from Highoscres?

    Hello, is it possible to hide players with 8 level from Highoscres? I am asking because there are weird SQL queries... classes/highoscres.php public function loadSkill() { $this->setClass('Highscore'); $this->addOrder(new SQL_Order(new SQL_Field('value'...
  17. O

    Lua if item is removed then create new one...

    Hello, I want to prevent put items on teleport and I have this script: function onAddItem(moveitem, tileitem, position, cid) doRemoveItem(moveitem.uid) doPlayerSendCancel(cid, "You may not throw items here.") -- Sends cancel message if(doPlayerAddItemEx(cid...
  18. O

    Level needed to write on channel and weird magic wall timer

    Hello, I have 2 problems. First: I have in channels.xml for example: <channel id="5" name="Game-Chat" level="10"/> Is it possible to make exactly the same for private message channels? (not private chat channel :P) Second: Problem with magic wall rune <item id="1497" article="a"...
  19. O

    [SQL] get value and use in other query

    Hello, I want to get referrer (it's account_id) from accounts and use it in next query I have: $accountID = $_REQUEST['custom']; // user account ID $ref2 = "SELECT `referrer` FROM `accounts` WHERE `accounts`.`id`= '".mysql_real_escape_string($accountID)."';"; mysql_query($ref2); $sqltest =...
  20. O

    is it possible to doPlayerSendTextMessage in light blue color?

    Hello, is it possible to send message to player in light blue (for example in quest script "You have found...") It works: doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, "...") But it is dark blue color :/ In 000-constant.lua I have onle these types: MESSAGE_STATUS_CONSOLE_RED = 18...
Back
Top