Not signed in (Sign In)
    • CommentAuthormobiusrage
    • CommentTimeJul 10th 2008
     
    So I had an idea to create a new WoWaddon, one that scans the AH, but only a specific list of items, and then stores the data somewhere.

    This is the code for the scanning function I have (this is very early, just a test to see if I'm reading a text file (my future list of items) correctly):
    file = io.open("testread.txt","r");
    messageline = file:read();
    file:close();
    message(messageline)

    I'm getting the error message "attempt to index global 'io' (a nil value)"
    I have a feeling this is because io.open is disabled for WoW....but i'm not sure.

    Any help about how to read a text file would be greatly appreciated
    • CommentAuthorccox
    • CommentTimeJul 10th 2008
     
    You can't read files in WoW, or write files.
    • CommentAuthormobiusrage
    • CommentTimeJul 10th 2008
     
    Excellent, thanks for the input.
    What method does auctioneer use to save auction data?
    • CommentAuthorccox
    • CommentTimeJul 10th 2008
     
    Blizzard saves the variables that you specify in the .toc file.
    You can specify that some are per-character, and some are global.
    Those get read when you login, and written when you logout.
World of Warcraft™ and Blizzard Entertainment™ are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.