Sparks.lua Question

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » General » sparks.lua question
sparks.lua question
 Ragnarok.Kenshi
Offline
サーバ: Ragnarok
Game: FFXI
user: KenshiDRK
Posts: 123
By Ragnarok.Kenshi 2016-09-06 13:57:40  
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
サーバ: Phoenix
Game: FFXI
user: Tigertail
Posts: 118
By Phoenix.Tigertail 2016-09-14 17:44:57  
Thank you!
necroskull Necro Bump Detected! [58 days between previous and next post]
 Fenrir.Brimstonefox
Offline
サーバ: Fenrir
Game: FFXI
user: Brimstone
Posts: 183
By Fenrir.Brimstonefox 2016-11-11 14:51:14  
It possible to modify this to buy bonanza marbles?
Offline
Posts: 182
By Sammeh 2016-12-05 08:51:50  
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: 33
By aashafox 2018-12-04 08:14:26  
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
サーバ: Bahamut
Game: FFXI
user: dannyl
Posts: 1548
By Bahamut.Dannyl 2018-12-04 08:30:11  
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>
Offline
Posts: 42635
By Jetackuu 2018-12-04 08:47:15  
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: 33
By aashafox 2018-12-04 20:05:19  
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
サーバ: Bahamut
Game: FFXI
user: Negan
Posts: 1864
By Bahamut.Negan 2019-03-20 20:40:54  
PM Jetackuu for link
necroskull Necro Bump Detected! [523 days between previous and next post]
 Fenrir.Pirinolon
Offline
サーバ: Fenrir
Game: FFXI
user: Pirinolon
Posts: 75
By Fenrir.Pirinolon 2020-08-25 01:22:17  
is there a version to buy voiddust?
necroskull Necro Bump Detected! [206 days between previous and next post]
 Valefor.Dungeonslave
Offline
サーバ: Valefor
Game: FFXI
user: roids
Posts: 3
By Valefor.Dungeonslave 2021-03-19 13:13:39  
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.