Jump to content


Photo

Sparks


    6 replies to this topic

    #1 modena

    modena

      Member

    • Members
    • PipPip
    • 28 posts

      Posted 26 May 2015 - 06:09 PM

      Looking for alternatives for purchasing sparks. I was using one method but it's been inoperative for the past couple of months. I resorted to purchasing items manually in this time but as you can imagine it's tedious. I ran across a recent script however and have a couple of questions.

       

      require 'packets'
      require 'lists'
      
      windower.register_event('outgoing chunk',function(id,org)
          if id == 0x5B then
              local name = (windower.ffxi.get_mob_by_id(org:unpack('I',5)) or {}).name
              if L{'Eternal Flame','Rolandienne','Isakoth','Fhelm Jobeizat'}:contains(name) then
                  local outstr = org:sub(1,8)
                  local choice = org:unpack('I',9)
                  if choice == 0 or choice == 0x40000000 then
      			return outstr..string.char(9,0,0x29,0)..org:sub(13) -- Acheron Shield
                  end
              end
          end
      end)
      

      1. How safe is it to use this since it utilizes packets? When entering the sparks menu and immediately exiting it this purchases the item.

      2. If it's safe, how can I change the item it purchases? I looked into lists etc and I'm uncertain of how this org:sub/org:unpack etc works.

      3. If it's unsafe, is there an alternative method I could possibly look at using with windower? I'm down to learn and hopefully help others in the process looking for something similar.

       

      I appreciate the time and help



      #2 Avaro

      Avaro

        Advanced Member

      • Members
      • PipPipPip
      • 37 posts

        Posted 26 May 2015 - 07:32 PM

        This is something I would also be interested in.



        #3 sdahlka

        sdahlka

          Advanced Member

        • Members
        • PipPipPip
        • 324 posts

          Posted 26 May 2015 - 08:19 PM

          there is one wre you just send a command and it buys 1 of the items you tell it to but im not sure if that violates the windower rules to be posted



          #4 Arcon

          Arcon

            Advanced Member

          • Windower Staff
          • 1189 posts
          • LocationMunich, Germany

          Posted 26 May 2015 - 09:04 PM

          Personally I wouldn't ban you for posting it.

          But this kind of packet injection can be unsafe if it isn't done right. If it is done right, SE won't be able to distinguish between a real user and an automated script. It just depends on the quality of the script. And for the record, I wouldn't use the above one.



          #5 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 27 May 2015 - 04:38 AM

            Personally I wouldn't ban you for posting it.

            But this kind of packet injection can be unsafe if it isn't done right. If it is done right, SE won't be able to distinguish between a real user and an automated script. It just depends on the quality of the script. And for the record, I wouldn't use the above one.

            ok here is the one im talking about - its not mine

            https://github.com/Brax1069/Sparks



            #6 Arcon

            Arcon

              Advanced Member

            • Windower Staff
            • 1189 posts
            • LocationMunich, Germany

            Posted 27 May 2015 - 05:06 AM

            Without examining it in detail, I can say that the logic looks ok. The coding style is kinda objectionable, but that shouldn't matter.



            #7 Kazaki

            Kazaki

              Member

            • Members
            • PipPip
            • 17 posts

              Posted 17 February 2016 - 04:25 PM

              So is the OP script safe to use... ?






              1 user(s) are reading this topic

              0 members, 1 guests, 0 anonymous users