View Single Post
Old April 9th, 2012, 02:20 PM
sonic1's Avatar
ASM is my life now...
Join Date: May 2008
Location: Portugal
Age: 19
Gender: Male
Nature: Timid
Originally Posted by redriders180 View Post
Well, plan B is to make a script that just clears all the hidden item flags to zero at midnight, which is simple enough. I assume the hidden item flags are stored somewhere in memory, so I'd just have to write 0 to all the bytes I need to clear it out. Does anyone have the offset for this location in the memory?
Well, actually, they are normal flags, like 0x800 etc..., but are Hidden ID + Flag 0x3E8. (E.g: Hidden item 0x10 would be flag 0x3F8. Clear the flag to be able to get the item again)

The script is somewhat easy. There are 0xBE hidden items. Here's a script made now for the purpose:
#dynamic 0x800000
#org @start
setvar 0x8000 0x3E8 'Base flag
setvar 0x8001 0x0   'Counter
goto @loop

#org @loop
compare 0x8001 0xBE
if B_> goto @end
addvar 0x8001 0x1
clearflag 0x8000    ' Clear flag in var 8000
addvar 0x8000 0x1
goto @loop

#org @end
setvar 0x8000 0
setvar 0x8001 0     'Reset vars
I made this in 5 minutes and didn't test it. Test it and please warn me if there's an inconvenience with this.

(to @redriders180: I saw your PM, i just hadn't the time to answer it because its a little complex for my current time available)


(mage by Xryo)

Sou o Dark rayquaza da antiga

My Laptop SPECS:

Credits to Eagledelt for the wonderfull sign :D

Reply With Quote