deityslayer
New Member
- Joined
- May 18, 2014
- Messages
- 23
- Reaction score
- 0
Hi, I'm learning to code for AB;
I've made a couple scripts, maybe 1-3, one for cleric rotation included with following, and some other easy roll techniques.
However, I'm trying to work on my coding, and make a better coded gps multifarm script.
My first inquiry is if I could organize GPS points; for example, instead of having the script go like
gpspoint1
farm
harvest
#2
etc etc
I want to have one simple command like the following that I attempted:
As you can see I tried to get some type of result, but I get error in compilation.
My guess is that I need to create a list which includes every x point, however I don't even know how to include, for example, a code's variable in a list, like
List<string> gpsxlist= new List<string>() { gps.x };
I'd really appreciate some help!
I've made a couple scripts, maybe 1-3, one for cleric rotation included with following, and some other easy roll techniques.
However, I'm trying to work on my coding, and make a better coded gps multifarm script.
My first inquiry is if I could organize GPS points; for example, instead of having the script go like
gpspoint1
farm
harvest
#2
etc etc
I want to have one simple command like the following that I attempted:
Code:
string _gpsfile = "\\plugins\\gpstest\\test.db3";
private Gps gps;
//Call on plugin start
public void PluginRun()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + _gpsfile);
foreach (gpspoint member in _gpsfile())
{
Log(gps.x)
}
}
As you can see I tried to get some type of result, but I get error in compilation.
My guess is that I need to create a list which includes every x point, however I don't even know how to include, for example, a code's variable in a list, like
List<string> gpsxlist= new List<string>() { gps.x };
I'd really appreciate some help!






