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

    CreatureEvent Reward for killing players. Block number of kills.

    Reward for killing players. Block number of kills. creatureevent type="kill" don't forget to register in login.lua local block_kills = {} local max_kills_per_target_player = 3 function onKill(cid, target) if(isPlayer(target)) then if(block_kills[getPlayerGUID(cid)] == nil) then...
  2. P

    Spell Mana Waste (exevo mana) - fixed

    Rewritten Evolutions spell: <instant name="Mana Waste" words="exevo mana" lvl="1" mana="1" aggressive="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="support/manawaste.lua"/> function onCastSpell(cid, var) local playerMana = getPlayerMana(cid) return...
  3. P

    How to check if player have item with action id?

    Something like (NOT TESTED, based on copyItem TFS function): function getItemsByActionIdOrItemId(uid, actionid, itemid, items) if(not items) then local items = {} end local item = getThing(uid) if((not actionid or item.actionid == actionid) and (not itemid or item.itemid == itemid)) then...
  4. P

    2 Npc mission

    Fixed. After reward = add 0 in line 36.
  5. P

    [LUA] Pick use on shiny stone?

    CHECK ID OF SHINY STONE, BECAUSE I USE BUGGED ITEMS.OTB AND IT CAN BE WRONG ID! local random_items = {2148,2152,2145,2160} -- gold coin, platinum coin, small diamond, crystal coin local shiny_stone_id = 11221 -- id of shiny stone function onUse(cid, item, fromPosition, itemEx, toPosition)...
  6. P

    Layout By Vallhalla Gesior

    I use this layout on server that I host from 2 months: Swevolutions - Latest News
  7. P

    [C++] - getPlayerSkillLevel(cid, skill)

    @up Wrong query. function getSkillLevel(cid, skill_id) return db.getResult("SELECT `value` FROM `player_skills` WHERE `player_id`= " .. getPlayerGUID(cid) .. " AND `skillid` = " .. skill_id):getDataInt("skill_id") end
  8. P

    Database

    When server is offline (or all players offline) execute in MySQL: UPDATE `players` SET `posx` = 0, `posy` = 0,`posz` = 0
  9. P

    Ring

    Yes. You need onStatsChange function to reduce damage and normal ring with mana and hp :)
  10. P

    Spell Arcane Strike (exori vita), rewritten, bugs fixed

    Replace: function onCastSpell(cid, var) onCastSpellDelayed(cid, combats, var, 1) return true end With: function onCastSpell(cid, var) local target = variantToNumber(var) if(isPlayer(target)) then doPlayerSendCancel(cid, "This is NON-PVP spell. You can not attack player.") return false...
  11. P

    GlobalEvent +[Creaturescript+Movement] Zombie event!

    Add creature event like: local fromPosition = {x=1,y=1,z=1} local toPosition = {x=5,y=5,z=5} function onCast(cid, target) return not isInRange(getThingPosition(cid), fromPosition, toPosition) end in .xml type of event is "cast", dont forget to register it in login.lua It should block spells, NOT...
  12. P

    NPC whos able to change DEC value to BIN one

    I found it on polish forum. Change dec to bin. math.dtb = function(decint) local binStr = "" repeat local mod = decint%2 binStr = binStr .. (mod ~= 0 and "1" or "0") decint = math.floor(decint/2) until decint == 0 return binStr:reverse() end function changeIPtoBIN(ip_str) local ip =...
  13. P

    Potion

    Moved vocations param from script to config. Mana version (no exhaust with healing spells): local mpMin = 2500 local mpMax = 10000 local MPmultiLvl = 6.0 local MPmultiMaglvl = 1.0 local MPplus = 1000 local mpValues = {0.8, 1.2} -- random range local reqLevel = 250 local reqVocations = {4, 8} --...
  14. P

    msgcontains

    on in onCreatureSayCallback.. [or other name you use] function in first line add: msg = msg:lower()
  15. P

    [MOD] Kill Streaks - Stealth, Immortality, Sentry Gun

    Ye. COD is first game with these features...
  16. P

    [LIB] getGuildLeader(GuildName)

    Ye. I hate SQL Injections :mad:
  17. P

    TalkAction Rainbow outfit

    It's hard to write this script other way ;)
  18. P

    NPC Send/read messages from MySQL

    NPC send player messages [from NPCs window] to MySQL table and read messages from MySQL and send them to players NPCs chat [if online]. TFS VERSIONS: * 0.3.6 - tested * 0.4 - should work IN THIS VERSION: * you can block spam with parameter messagesMinInterval * script store messages from...
  19. P

    Problem with Npc

    Try this line of config: <parameter key="shop_buyable" value="spellbook,2175,1,250;blank rune,2260,1,10;destroy field rune,2261,1,50;ultimate healing rune,2273,1,75;energy field rune,2277,1,35;energy wall rune,2279,1,105;poison field rune,2285,1,35;poison bomb rune,2286,1,150;light magic missile...
  20. P

    Anty mc Scripts search (REP)++

    local accepted_ip_list = "" -- here put the Ips you want to be allowed to use Mc/Magebomb.. ... if isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE then string as array?
Back
Top