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

    Lua help with os.time()

    aaaaaaaaaaaaa, my bad, I do a mistake by using it as use in addEvent() :/ thank you very much
  2. silveralol

    Lua help with os.time()

    if I don't remove it it should alots of days look: 16 hours, 39 minutes and 53 seconds left when I use: player:setStorageValue(key, os.time() + 1 * 60 * 1000) and get the timer by using: player:sendTextMessage('Time Left: ' ..showTimeLeft(timeLeft, true))
  3. silveralol

    Lua help with os.time()

    thank you, its works... but I edit the main function, and get something weird I just remove day and hour.. then using my "idea" I set the timer by using player:setStorageValue(key, os.time() + 1 * 60 * 1000) for test, but the timer show 40 minutes, instead 1 minute less...
  4. silveralol

    Lua help with os.time()

    yes, I found some function that do it, but don't know how use it properly local function getHours(seconds) return math.floor((seconds/60)/60) end local function getMinutes(seconds) return math.floor(seconds/60) end local function getTime(seconds) local hours, minutes =...
  5. silveralol

    Lua help with os.time()

    hello folks, I'm working on something that uses timer I set storage to the player player:setStorageValue(key, os.time() + 20 * 60 * 1000) so, I want the time left local timeLeft = player:getStorageValue(key) - os.time() and send it to player something like: player:sendTextMessage('Time...
  6. silveralol

    Lua Npc Spawn

    could be too :)
  7. silveralol

    Lua Npc Spawn

    local pos = Position(x, y, z) local npc = Game.createNpc("Npc Name", pos, false, true) if npc then npc:setMasterPos(pos) end
  8. silveralol

    OpenTibia Sprite Pack

    thank you, I'm advanced player and know the newest sprites, this is not a problem :rolleyes::rolleyes:
  9. silveralol

    OpenTibia Sprite Pack

    yes I can check by my self, just send me. I'll check on the zip file too edit: there is no legs that fits with the mentioned armor :(
  10. silveralol

    Lua Lottery globalevent for tfs 1.2 error

    @Thorn change hasAccess() to getAccess()
  11. silveralol

    OpenTibia Sprite Pack

    @Wirless do you have a legs that fits with this armor ? holy shit this armor is so beautiful
  12. silveralol

    2rec//Mapping thread

    nice maps @2Rec are you sad boy ? :(
  13. silveralol

    AddHealth() with no animation

    I'm not sure about how this function works, but I'm sure that you can do it using conditions local healthGain = 10000 local condition = Condition(CONDITION_REGENERATION) condition:setParameter(CONDITION_PARAM_TICKS, 1 * 1000) condition:setParameter(CONDITION_PARAM_HEALTHGAIN, healthGain)...
  14. silveralol

    Feature setCreatureName & monster:setName for TFS 1.2

    use the lastest edit and test, if not work you can use the first one..
  15. silveralol

    Feature setCreatureName & monster:setName for TFS 1.2

    it work on the last tfs ... but you need do some stuff to it work properly... as exemple: local monster = Game.createMonster('rat', Position(farawayofanyplayer), true, true) if monster then monster:setName('Cave Rat', 'a cave rat') end
  16. silveralol

    C++ monster:setPet(true)

    I need set the flag, the flag is used to almost everything of the pet system (such as: boost, teleport to master, enter pz)... I need active the flag to especifed monster because I want to use the system generic, to be possible use all monsters without make another monster file, called for...
  17. silveralol

    C++ monster:setPet(true)

    I guess, cuz I don't understand the different between Monster and MonsterType... so how I should do it ?
  18. silveralol

    C++ monster:setPet(true)

    monsters.h void setPet(MonsterType* monster); monsters.cpp void MonsterType::setPet(MonsterType* monster) { monster->isPet = true; } luascript.cpp int LuaScriptInterface::luaMonsterTypeSetPet(lua_State* L) { // monster:setPet(true) MonsterType* monster =...
  19. silveralol

    C++ monster:setPet(true)

    I'll make it as creature:setHiddenHealth(creature) works... hiden health is a flag, so I can set flags in a monster that already exist bump !! I couldn't resolve this :/
  20. silveralol

    [USA] TALEON 11.00 (ANTI-BOT) - OPEN REG

    why compare skills? who are talking about it... but well, if the mask served for you, congratulations!
Back
Top