StreamSide's best answers

  • StreamSide

    String to Variant

    You can do something like this :p --[[ enum slots_t : uint8_t { CONST_SLOT_WHEREEVER = 0, CONST_SLOT_HEAD = 1, CONST_SLOT_NECKLACE = 2, CONST_SLOT_BACKPACK = 3, CONST_SLOT_ARMOR = 4, CONST_SLOT_RIGHT = 5, CONST_SLOT_LEFT = 6, CONST_SLOT_LEGS = 7...
  • StreamSide

    Adding BossReward to script

    no problemo, just mark it as correct answer so we can help someone else I guess.
  • StreamSide

    C++ Outfits

    it says: sex 0 start at 128 sex 1 start at 136 sex 0 no premium ends at 131 sex 0 premium ends at 134 sex 1 no premium ends at 139 sex 1 premium ends at 142 have a nice day
  • StreamSide

    X % more exp after completing quest TFS [1.2]

    I already show you the file, TFS has an event called onGainExperience, here: otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/data/events/scripts/player.lua#L235-L263) That event is active by default, you should add the part I told you, this one. local questValue =...
  • StreamSide

    TFS 0.X bad argument #1 to 'floor'

    It says that you trying to use math.floor in something that is null I can assume that the item does not have this attribute table.insert(str, "Agility: "..math.floor(getItemAttribute(thing.uid, "speed")).." Sp. Attack: "..math.floor(getItemAttribute(thing.uid, "specialattack")).."\n") you can do...
  • StreamSide

    TFS 1.2 Premium Exp Bonus (20%)

    the event is activated when a player receive the exp, It does not matter if there is 100ppl in party the event is per player so... you might understand :)
  • StreamSide

    TFS 1.X+ NPC's not using linked file for values

    but you didnt read! just remove the first part. this! if (it.charges) { data = it.charges; } --- 17:49 You see a spell rune for magic level 9. It's an "adevo grav tera"-spell (1x). It weighs 1.20 oz "magic","wall","rune" -> Type=3180, Data=1...
  • StreamSide

    Znote Acc, Background music

    what about <audio loop="loop" autoplay="autoplay"> <source src="music/1.mp3" /> </audio>
  • StreamSide

    C++ help monster level

    look at protocolgamebase
  • 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...
Top