Sparks.lua Question

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » General » sparks.lua question
sparks.lua question
 Ragnarok.Kenshi
Online
Server: Ragnarok
Game: FFXI
user: KenshiDRK
Posts: 64
By Ragnarok.Kenshi 2016-09-06 13:57:40
Link | Quote | Reply
 
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
Server: Phoenix
Game: FFXI
user: Tigertail
Posts: 117
By Phoenix.Tigertail 2016-09-14 17:44:57
Link | Quote | Reply
 
Thank you!
necroskull Necro Bump Detected! [58 days between previous and next post]
 Fenrir.Brimstonefox
Offline
Server: Fenrir
Game: FFXI
user: Brimstone
Posts: 176
By Fenrir.Brimstonefox 2016-11-11 14:51:14
Link | Quote | Reply
 
It possible to modify this to buy bonanza marbles?
Offline
Posts: 178
By Sammeh 2016-12-05 08:51:50
Link | Quote | Reply
 
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: 13
By aashafox 2018-12-04 08:14:26
Link | Quote | Reply
 
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
Server: Bahamut
Game: FFXI
user: dannyl
Posts: 1359
By Bahamut.Dannyl 2018-12-04 08:30:11
Link | Quote | Reply
 
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>
By Jetackuu 2018-12-04 08:47:15
Link | Quote | Reply
 
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: 13
By aashafox 2018-12-04 20:05:19
Link | Quote | Reply
 
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
Server: Bahamut
Game: FFXI
user: Negan
Posts: 335
By Bahamut.Negan 2019-03-20 20:40:54
Link | Quote | Reply
 
PM Jetackuu for link
Log in to post.