StreamSide's best answers

  • StreamSide

    Cooldown on a lever

    well thats weird, try this function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 1263 then if getGlobalStorageValue(1234) > os.time() then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Wait a few.') return true end local...
  • StreamSide

    How to achieve dmg around traget

    local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENCHANTEDSPEAR) combat:setFormula(COMBAT_FORMULA_LEVELMAGIC, -6.0, 0, -6.1, 0) combat:setArea(createCombatArea(AREA_SQUARE1X1)) function...
  • StreamSide

    TFS 1.2 filter script

    I guess this. It will check for the spectators and then check if there is a monster around. If there is no monster "not filter" it will create the monster.
  • StreamSide

    Need help with script.

    You just want to create a Demon in that position {x=462,y=191,z=7}? try this, create a new file called statue.lua inside action scripts function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) local pos = Position(462, 191, 7) local monster = Game.createMonster("Demon"...
  • StreamSide

    TFS 1.X+ raid globalevent tfs 1.3 summon wrong amount

    math.random(1900, 2000) also you should iterate the amount of monsters spawned like local cfg = { monsters = {'Tarantula', 'Spider','Poison Spider','Giant Spider','Crystal Spider','The Old Widowevent','Hide'}, centerPos = Position(690, 1228, 7) } function onTime(interval)...
  • StreamSide

    Lua Passing Variables to\from another file

    why dont you use a global table like targets = {} then target[Player(cid):getId()] = Player(cid):getTarget() that way you can access with print(("Player: %s - Target of Player: %s"):format(Player(cid):getId(), target[Player(cid):getId()]))
  • StreamSide

    Solved Npc local voices tfs 1.3 add inteval

    after a quick reading I found this -- Creates a new instance of VoiceModule function VoiceModule:new(voices, timeout, chance) local obj = {} setmetatable(obj, self) self.__index = self obj.voices = voices for i = 1, #obj.voices do local voice = obj.voices[i]...
  • StreamSide

    Lua Error spamming console

    try again function onLogin(cid) OfflineTraining_initialize(cid) if(OfflineTraining_isTraining(cid)) then OfflineTraining_turnOffTraining(cid) -- we add skill/mlvl, we select lower value: time that player was offline OR offline training time [bar in game - 9.6]...
  • StreamSide

    Tibia 10/10.98 Packet structure

    gonna quote what a good friend told me about it thanks @Shyzoul again :p maybe another person could teach us more about it :)
  • StreamSide

    NODE.js Grabbing RSA KEY of TIBIA-10

    after a fast read on a forum I found out whats the problem. binstring conversion options are wrong (just one), you can check it here, anyways the solution is this change conversionOptions: { in: 'bin', out:'utf8' }, to conversionOptions: { in: 'binary', out:'utf8' },
  • StreamSide

    AAC Help using jQuery

    hello there, you can test with this bro codepen: JQuery - Easy Sticky Nav Bar HTML sample: <body> <div class="wrapper"> <div class="header"> HEADER CONTENT </div> <div class="nav"> WHATEVER YOU WANT TO BE STICKY </div> <div class="content"> <p>Lorem Ipsum...
  • StreamSide

    Spells character

    spells.xml -> needlearn="0" -> needlearn="1" and about the npc, there are a few spell seller npcs on this forum but the best imho is the spell trader seller, thats fucking op op
  • StreamSide

    Lua Problem with isInArea script.

    because you are inside and if getSpectators(config.center_pos, config.rangeX, config.rangeY) then that line is always executed test this one function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { item_uid = 9413, monster_name = "Rahemos", position...
  • StreamSide

    Solved Is there a way to stop drowning in spots?

    test this one local damage = { [2] = -1, [3] = -4, [5] = -6 } local condition = Condition(CONDITION_DROWN) condition:setParameter(CONDITION_PARAM_TICKS, -1) condition:setParameter(CONDITION_PARAM_TICKINTERVAL, 2000) function onStepIn(creature, item, position, fromPosition)...
  • StreamSide

    C++ summon don't get experience points

    go to onGainExperience and after this line add if (this->getMonster() || master->getMonster()) { return; } and test if it works
  • StreamSide

    Lua how convert timestamp to "date" type

    local test = thing:getAttribute(ITEM_ATTRIBUTE_DATE) print(os.date('%d-%b-%Y', test)) can you test it? edited:my bad
  • StreamSide

    C++ Npc walking on tables, chairs, box

    add ignoreheight="false" to the npc
  • StreamSide

    Dream Challenge Quest Problem

    change wellItem:transform(well.transformId) to wellItem:transform(lever.wells[i].transformId)
Top