• 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!

Recent content by Ricardo Tavares

  1. Ricardo Tavares

    Lua !autoloot

    Above function onSay(cid, words, param) paste function getPlayerStorageZero(cid, storage) local sto = getPlayerStorageValue(cid, storage) return sto > 0 and sto or 0 end
  2. Ricardo Tavares

    Lua [TFS 0.3.6] What is the best way to check if player stand 1 square to you?

    local myPos = getCreaturePosition(cid) local targetPos = getCreaturePosition(target) if getDistanceBetween(myPos, targetPos) == 1 then print('player 1 square to you') else print('not 1 square to you!') end
  3. Ricardo Tavares

    Lua [TFS 0.3.6] What is the best way to check if player stand 1 square to you?

    For 0.3.6 you have getDistanceBetween(firstPosition, secondPosition) Same square returns 0. Edit: Sorry you want to make something for people who are 1 sqm from you without already have a target id?
  4. Ricardo Tavares

    TalkAction TFS 1.X rainbow outfit

    Try this, already tested and working: <talkaction words="!rainbow" script="rainbowoutfit.lua"/> local rainbow = {} local function rainbowPlayer(cid) local player = Player(cid) if not player then return true end local outfit = player:getOutfit() outfit.lookHead...
  5. Ricardo Tavares

    darklord [mapping works]

    This one would be really enjoyable to play, can't wait to see more!
  6. Ricardo Tavares

    Addon NPC

    "Attempt to call global 'func_name' (a nil value)" says that this function is missing. Seems like you're trying to convert a 0.4x- script to 1.1., which does not have "getItemNameById" This error can be solved changing items_list = items_list .. item[2] .. ' ' .. getItemNameById(item[1]) to...
  7. Ricardo Tavares

    Loosing promotion tfs 0.4

    Post your login.lua Maybe it's removing promotion from free players (like global tibia)?
  8. Ricardo Tavares

    Reward on advance? (1.2)

    Hello! I've made for you, already tested. data\creaturescripts\creaturescripts.xml <event type="login" name="registRewards" script="advancereward.lua"/> <event type="advance" name="advanceRewards" script="advancereward.lua"/> data\creaturescripts\scripts\advancereward.lua local prizes = {...
  9. Ricardo Tavares

    error - creatureevent::executestatschange] call stack overflow

    Show me your creaturescripts.xml Or Show me your statschange code. This error represents a script loop on statschange.
Back
Top