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

    Lua [TFS 1.0] Function onTargetCombat ?

    this script work on TFS 1.1: function Creature:onTargetCombat(target) if not self then return true end if self:isPlayer() and target:isPlayer() then if self:getStorageValue(_Lib_Battle_Info.TeamOne.storage) >= 1 and target:getStorageValue(_Lib_Battle_Info.TeamOne.storage) >= 1 or...
  2. Critico

    Point system

    change 'db.executeQuery' to 'db.query'
  3. Critico

    Windows Please help! Server crashes when I throw new donated items on the floor!

    erro because add item in slot... if add item from bag, not error.
  4. Critico

    Windows Please help! Server crashes when I throw new donated items on the floor!

    put to receive shield into parcel or box
  5. Critico

    [Help] Lua Script Error for NPC's

    see it: local erexo, sthl, sfbp = {10,50,100}, 59349, 24321 local killValue = erexo[sthl] - getPlayerStorageValue(cid, 29303) = local killValue = erexo[{10,50,100}] - getPlayerStorageValue(cid, 29303) verification Wrong remake code please
  6. Critico

    Point system

    register event in the player... <event type="advance" name="SendPoints" event="script" value="script name.lua" /> login.lua add registerCreatureEvent(cid, "SendPoints")
  7. Critico

    Point system

    local t, storage = { [250] = 30, [300] = 50 },4001201 function onAdvance(cid, skill, oldLevel, newLevel) if skill ~= SKILL__LEVEL then return true end if t[newLevel] and getPlayerStorageValue(cid, storage) < newLevel then db.executeQuery('UPDATE accounts SET...
  8. Critico

    Lua Catapult Problem

    I need to increase the sqm of this script, over 14 bugs... local config = { catapults = { [6801] = "sul", [6802] = "norte", }, distance = 14, -- max 14 sqm's directions = { ["norte"] = 0, ["leste"] = 1, ["sul"] = 2, ["oeste"] = 3...
  9. Critico

    Solved Function onCombat(player, target) TFS 1.1

    work thanks!
  10. Critico

    Solved Function onCombat(player, target) TFS 1.1

    need a function that players with same storages not attack team mates! not work this: function Creature:onTargetCombat(target) if not self then return true end if self:isPlayer() and target:isPlayer() and self:getStorageValue(15001) == 1 and...
  11. Critico

    Solved Function onCombat(player, target) TFS 1.1

    Hello! exist this function: onCombat(player, target) for TFS 1.1? if not exist, what function should I use?
  12. Critico

    [Function] Number Separator

    This function return return huge numbers with points function getMilharNumber(n) return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1."):gsub(",(%-?)$","%1"):reverse() end exemple: function getMilharNumber(n) -- critico/vodkart return...
  13. Critico

    Cooldown for monster levers

    function onUse(cid, item, fromPosition, itemEx, toPosition) local fromPos = {x = toPosition.x - 10, y = toPosition.y - 10, z = toPosition.z} local toPos = {x = toPosition.x + 10, y = toPosition.y + 10, z = toPosition.z} local storage,time = 185489, 30 local amount = 0 for x = fromPos.x, toPos.x...
  14. Critico

    Function onLook 1.1

    try: if thing:isPlayer() then if thing:getStorageValue(factionStorage) == 1 then self:sendTextMessage(MESSAGE_INFO_DESCR, "\nNordica") elseif thing:getStorageValue(factionStorage) == 2 then self:sendTextMessage(MESSAGE_INFO_DESCR, "\nImperial")...
  15. Critico

    Solved Attempt to index local 'r' (a nil value)

    edited... use now
  16. Critico

    Solved Attempt to index local 'r' (a nil value)

    -------------------- ---- CONDITION ----- -------------------- local wolfCondition = createConditionObject(CONDITION_OUTFIT) setConditionParam(wolfCondition, CONDITION_PARAM_TICKS, -1) addOutfitCondition(wolfCondition, {lookType = 4, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})...
  17. Critico

    [Mod] Auto Loot

    post your system vip
  18. Critico

    ERRO GESIOR TFS 1.0

    Query: SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `g`.`id` > 0...
  19. Critico

    Lua [Result:getDataInt] Result not set!

    use 'getPlayerGUID(cid)' function onStepIn(cid, item, position, fromPosition) if getMyReputation(getPlayerGUID(cid)) <= 0 then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)...
  20. Critico

    getPlayerPosition don't work

    u are br?? local positions = { [1] = {x = 33603, y = 32394, z = 11}, -- home position [2] = {x = 33614, y = 32415, z = 12} -- boss room position } local coords = { [1] = 33600, -- upper left corner of room [2] = 33615, -- upper right corner " [3] = 32414, -- upper...
Back
Top