Page 1 of 1
ItemShop Wheel of Fortune
Posted: Tue Mar 19, 2013 7:43 pm
by C3PO
Hello,
I tried to make a script that plays the "Wheel of Fortune", but I don't know how to access the frame and the play button. Has someone maybe an idea?
Re: ItemShop Wheel of Fortune
Posted: Tue Mar 19, 2013 9:12 pm
by lisa
Well I don't know the ingame functions to play it just yet but I can tell you what you will win before the wheel stops spinning lol
32Bit OS only, the 64 bit will be different.
Code: Select all
memoryReadIntPtr(getProc(),0xA015EC,{0x2B4,0x75C,0x14,0x2E0,0x1C})
that is the ID of the item you will get, if you do 0 as last offset instead of 0x1C it is the base for the wheel game itself and you can see all items available in that spin and no idea what the other stuff means at this stage.
Looks like this
I can tell you after 24 characters 18 of them got the fireworks package.
Re: ItemShop Wheel of Fortune
Posted: Tue Mar 19, 2013 9:19 pm
by C3PO
lisa wrote:Well I don't know the ingame functions to play it just yet but I can tell you what you will win before the wheel stops spinning lol
but they are set after you started the wheel or ... otherwise it would be cool to know that you shouldn't play

Re: ItemShop Wheel of Fortune
Posted: Wed Mar 20, 2013 12:53 am
by rock5
Maybe you can change the ID and get a different item.

Re: ItemShop Wheel of Fortune
Posted: Wed Mar 20, 2013 1:01 am
by lisa
rock5 wrote:Maybe you can change the ID and get a different item.

That is the first thing I tried, didn't work though lol
Re: ItemShop Wheel of Fortune
Posted: Wed Mar 20, 2013 11:01 pm
by C3PO
lisa wrote:Well I don't know the ingame functions to play it just yet but I can tell you what you will win before the wheel stops spinning lol
32Bit OS only, the 64 bit will be different.
Code: Select all
memoryReadIntPtr(getProc(),0xA015EC,{0x2B4,0x75C,0x14,0x2E0,0x1C})
that is the ID of the item you will get, if you do 0 as last offset instead of 0x1C it is the base for the wheel game itself and you can see all items available in that spin and no idea what the other stuff means at this stage.
Looks like this
wheel1.png
I can tell you after 24 characters 18 of them got the fireworks package.
Lisa could you please tell me what the addresses would be for x64?
thx
Re: ItemShop Wheel of Fortune
Posted: Thu Mar 21, 2013 2:16 am
by lisa
C3PO wrote:Lisa could you please tell me what the addresses would be for x64?
I'll need to update a 64bit machine, I might have time later tonight.
Re: ItemShop Wheel of Fortune
Posted: Thu Mar 21, 2013 4:28 am
by lisa
give this a try, didnt get to do a full test but seems ok
Code: Select all
memoryReadIntPtr(getProc(),0xA015EC,{0x164,0x540,0x14,0x2BC,0x1C})