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

    Is it possible to prevent put items on any tile?

    Hello, I want to prevent put items on teleport, is it possible? I have this Item Editor: Does anyone have any idea what should be selected?
  2. L

    Lua Error "attempt to compare string with number"

    Hello, I have this creaturescript from Killing In The Name Of Quest: function onKill(cid, target, lastHit) local started = getPlayerStartedTasks(cid) if isPlayer(target) or isSummon(target) then return true end if started and #started > 0 then for _, id in ipairs(started) do...
  3. L

    Is it possible to reduce magic level or skills?

    Hello, does anyone know how can be done something like this: When player die then return his magic level and skills to any special value? I tried with: doPlayerAddMagLevel(cid, -(maglevel-60)) and: doPlayerAddSkill(cid, SKILL__MAGLEVEL,-(maglevel-60), true) but it does not work
  4. L

    Experience for killing players - is it possible to block if player uses mc?

    Hey, is it possible to make something like this: Player X kills two times Player Y (for example in 60 seconds) -> then Player X will not get exp for killing Player Y?
  5. L

    How can I disable PvP Blessings?

    Hello, I want to disable PvP Blessings. In CONFIG_HELP there is: pvpBlessingThreshold pvpBlessingThreshold is damage percent received from PvP that is required to enable pvpBlessing. Default: 40 I tried set pvpBlessingThreshold = 0, pvpBlessingThreshold =...
  6. L

    [SQL] How to get 2x value (from different storage) and divide it?

    Hello, I want to divide value from storage 8544 by value from storage 8541 You can check this: http://vpx.pl/i/2014/07/18/storage.jpg For example player Ackerman - in result I want to have 94/3 = 31 I tried SELECT `name`,`key`,`value` FROM `players`,`player_storage` WHERE (`key` = 8541 AND...
  7. L

    Only 1 person gets frag and only this player is shown on the webiste

    Hi, I wanted to make that only one player gets unjusited frag so in config.lua I made: deathAssistCount = 0 It works good in game, but on the website in characters.php - deaths there is: "Killed at level ... by ..." and there is shown only one player :/ Is it possible to show here for example 5...
  8. L

    Solved onUse - teleport all players from arena

    Hello, I want to make script which teleport all players from the arena after using item with UID. There is my script: function onUse(cid, item, fromPosition, itemEx, toPosition) local tp = { {x = 2458, y = 3145, z = 14}, {x = 2458, y = 3146, z = 14}, {x =...
  9. L

    Is is possible to check if monster can be spawned on random tile?

    Hello, I have this script: local pos = {x=xTable[math.random(#xTable)], y=yTable[math.random(#yTable)], z=7} doCreateMonster('Hydra', pos, false, false) Is it possible to check if pos is not for example mountain or there is no player/monster etc end then create monster? Becasue I...
  10. L

    [Powergamers] SQL error: "MYSQL ERROR: BIGINT UNSIGNED value is out of range" (1690)

    Hello, I'm trying to use this script: http://otland.net/threads/gesior-acc-maker-tfs-0-3-5-powergamers-and-online-time-stats.44762/ But there is problem with this line: db.executeQuery("UPDATE `players` SET `exphist7`=players.exphist6, `exphist6`=players.exphist5, `exphist5`=players.exphist4...
  11. L

    Max items per tile prevents to cast magic wall

    Hello, I have in config.lua: tileLimit = 10 Where on one tile there are 10 items then it is not possible to cast magic wall there. Does anyone have an idea how it can be solved?
  12. L

    Lua [globalevent] Saving 5 randoms players

    Hey, does anyone know how to get 5 random players? I want to make script which saves 5 random players but do not know how to get them :P function onThink(interval) for _, pid in ipairs(getPlayersOnline()) do -- get 5 random players doPlayerSave(randoms) end end Does anyone...
  13. L

    Lua if 5 players are in range then return false

    Hello, I want to make script which returns false if there are 5 players in range I'm trying to do it function onCastSpell(cid, var) if(isInRange(getPlayerPosition(cid), {x = toPosition.x-7, y = toPosition.y-5, z = toPosition.z}, {x = toPosition.x+7, y = toPosition.y+5, z = toPosition.z}))...
  14. L

    doPlayerAddItem for the precise player

    Hey, I have this line in script: local teamleader = getPlayerNameByGUID(getGlobalStorageValue(15026)) When I want to give him item: doPlayerAddItem(teamleader, 2472, 1) [Error - MoveEvents Interface] (LuaInterface::luaDoPlayerAddItem) Player not found How can it be solved?
  15. L

    Bomberman, problem with: "local a = getPlayersInRange({x=864, y=1335, z=7}, 30, 34) if #a == 1 then"

    Hey, this is bomberman.lua talkaction: function getPlayersInRange(pos, rX, rY) local ret = {} for x = -rX, rX do for y = -rY, rY do local v = getTopCreature({x = pos.x+x, y = pos.y+y, z = pos.z}) if v.type == 1 then table.insert(ret, v.uid)...
  16. L

    After using frag rune all frags go from unjustifed to justifed. Another problem with ctrl+r

    Hey, there is problem with frags on the website, after using frag rune frags from top fraggers/top guilds are removed and in table "Victims" description is changed from "unjustifed" to "justifed". frag remover.lua: db.executeQuery("UPDATE `killers`, `player_killers` SET `killers`.`unjustified`...
  17. L

    Lua (LuaInterface::luaAddOutfitCondition) Condition not found

    nvm, my bad
  18. L

    While I'm creating new character then by default this character has set hidden account information

    Hey, I want to change one thing - while someone is creating new character then by default information about this character should not be hidden. Where can I do that? Thanks
  19. L

    [Gesior 2012] $reg_account->set does not work

    Hey, in original script there were: if($config['site']['referrer'] && $reg_referrer != '') $reg_account->setCustomField("referrer", $ref_check['account_id']); but setCustomField does not work: ObjectData::setCustomField - Field referrer does not exist in data / is not loaded. Cannot save...
  20. L

    In trade window: You see a mug of oil, but it is mug of beer

    Hey, there is something wrong with my trade window. I have in npc xml line involved with shop_buyable: mug of beer,2012,3,3 type 3 is beer, and when player buy it then it shows correctly mug of beer, but in trade window it is shown as mug of oil, why?
Back
Top