View Full Version : General scripting questions
Zombie
04-17-2012, 11:20 AM
Q1: Is there any way to communicate between scripts? Setting global variables in one Lua script that can be read in another? If so how does that work with threading? Is it thread safe?
Q2: Is there any way to store state data between sessions? (say I want to recall that my script has already bought the exura spell for instance..)
Q3: Is it possible to communicate with 3rd party programs or files in any way?
Spectrus
04-17-2012, 09:43 PM
Q1: Sure, you can use global variables. The way to do that is to put name = value, just don't put local. I'm fairly certain it's thread safe.
Q2: Fairly sure that the standard I/O library was added, meaning the resources here (http://www.lua.org/manual/2.4/node24.html) should be of use. You can use these to write info to a file and read info from a file to save data between sessions.
Q3: I'd assume this could be used maliciously and therefore I don't think there is any good way of doing this. Except of course if you write to a file and have the third party application read the file.
Veritas
04-18-2012, 06:21 PM
Spectrus -
1.) Is it possible to disable the "eat food" option under the Tools tab for a few seconds while the bot passes through a door and then enable it again via script?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.