Sparks.lua Question

Langues: JP EN DE FR
users online
Forum » Windower » General » sparks.lua question
sparks.lua question
 Ragnarok.Kenshi
Offline
Serveur: Ragnarok
Game: FFXI
user: KenshiDRK
Posts: 112
By Ragnarok.Kenshi 2016-09-06 13:57:40
Link | Citer | R
 
Change the incoming chunk event for this one:

Code
windower.register_event('incoming chunk',function(id,data,modified,injected,blocked)
    if id == 0x034 or id == 0x032 then
        if busy == true and pkt then
        local packet = packets.new('outgoing', 0x05B)
        packet["Target"]=pkt['Target']
        --print(pkt['Target'])
        packet["Option Index"]=pkt['Option Index']
        --print(pkt['Option Index'])
        packet["_unknown1"]=pkt['_unknown1']
        --print(pkt['_unknown1'])
        packet["Target Index"]=pkt['Target Index']
        --print(pkt['Target Index'])
        packet["Automated Message"]=true
        packet["_unknown2"]=0
        packet["Zone"]=pkt['Zone']
        --print(pkt['Zone'])
        packet["Menu ID"]=pkt['Menu ID']
        --print(pkt['Menu ID'])
        packets.inject(packet)
        --print("sent")
        local packet = packets.new('outgoing', 0x05B)
        packet["Target"]=pkt['Target']
        --print(pkt['Target'])
        packet["Option Index"]=0
        --print(pkt['Option Index'])
        packet["_unknown1"]=16384
        --print(pkt['_unknown1'])
        packet["Target Index"]=pkt['Target Index']
        --print(pkt['Target Index'])
        packet["Automated Message"]=false
        packet["_unknown2"]=0
        packet["Zone"]=pkt['Zone']
        --print(pkt['Zone'])
        packet["Menu ID"]=pkt['Menu ID']
        --print(pkt['Menu ID'])
        packets.inject(packet)
        --print("sent")
        local packet = packets.new('outgoing', 0x016, {
        ["Target Index"]=pkt['me'],
        })
        packets.inject(packet)
        busy = false
        pkt = {}
        return true
        end
    end
	
end)
 Phoenix.Tigertail
Offline
Serveur: Phoenix
Game: FFXI
user: Tigertail
Posts: 118
By Phoenix.Tigertail 2016-09-14 17:44:57
Link | Citer | R
 
Thank you!
necroskull Necro Bump Detected! [58 days between previous and next post]
 Fenrir.Brimstonefox
Offline
Serveur: Fenrir
Game: FFXI
user: Brimstone
Posts: 183
By Fenrir.Brimstonefox 2016-11-11 14:51:14
Link | Citer | R
 
It possible to modify this to buy bonanza marbles?
Offline
Posts: 181
By Sammeh 2016-12-05 08:51:50
Link | Citer | R
 
In theory you can packet your way to anything. With Mog Bonanza marbles though it'd be fairly complex for very little value.

FFXI uses the same packets for menu interaction with every npc; can use packetviewer addon and then use the sparks as a baseline to interact with almost any NPC.

I intend on releasing a few addons shortly that took this 'sparks.lua' a bit further.

I don't know the original author, but a) Thanks for pointing me in a direction for this. b) I'd love to send you some code to merge with your existing sparks lua (and data map). If you can PM me would be awesome.
necroskull Necro Bump Detected! [729 days between previous and next post]
Offline
Posts: 26
By aashafox 2018-12-04 08:14:26
Link | Citer | R
 
How would you change this so that you can specify the number of items, or just buy the specified item till the sparks run out?
 Bahamut.Dannyl
Offline
Serveur: Bahamut
Game: FFXI
user: dannyl
Posts: 1547
By Bahamut.Dannyl 2018-12-04 08:30:11
Link | Citer | R
 
Other workaround is just put this in your macro

/console sparks buy WhateverItemName<wait 2>
/console sparks buy WhateverItemName<wait 2>
/console sparks buy WhateverItemName<wait 2>
/console sparks buy WhateverItemName<wait 2>
/console sparks buy WhateverItemName<wait 2>
/console sparks buy WhateverItemName<wait 2>
/console sparks buy WhateverItemName<wait 2>
Online
Posts: 41737
By Jetackuu 2018-12-04 08:47:15
Link | Citer | R
 
Or just use the newer sparks version that you can just do //sparks buyall acheron shield and it will buy them all 1 at a time until you're out of room/sparks. Sometimes you have to hit it again as a packet will drop, no biggie.
[+]
Offline
Posts: 26
By aashafox 2018-12-04 20:05:19
Link | Citer | R
 
Jetackuu said: »
Or just use the newer sparks version that you can just do //sparks buyall acheron shield and it will buy them all 1 at a time until you're out of room/sparks. Sometimes you have to hit it again as a packet will drop, no biggie.

I haven't found a newer version.. got a link?
[+]
necroskull Necro Bump Detected! [106 days between previous and next post]
 Bahamut.Negan
Offline
Serveur: Bahamut
Game: FFXI
user: Negan
Posts: 1124
By Bahamut.Negan 2019-03-20 20:40:54
Link | Citer | R
 
PM Jetackuu for link
necroskull Necro Bump Detected! [523 days between previous and next post]
 Fenrir.Pirinolon
Offline
Serveur: Fenrir
Game: FFXI
user: Pirinolon
Posts: 70
By Fenrir.Pirinolon 2020-08-25 01:22:17
Link | Citer | R
 
is there a version to buy voiddust?
necroskull Necro Bump Detected! [206 days between previous and next post]
 Valefor.Dungeonslave
Offline
Serveur: Valefor
Game: FFXI
user: roids
Posts: 1
By Valefor.Dungeonslave 2021-03-19 13:13:39
Link | Citer | R
 
Can someone post their .lua for purchasing cobalt and rubicund cells from a voidwatch officer plz? This is freakin tedious. Thnks in advance!
Log in to post.