Ruby base classes for data gathering. Currently contains base classes for wowdb. They are inteded asa base class setup for writing your own formatting of extracted data and to provide basic mining capabilites.
- 12 comments
- ← Previous
- 1
- 2
- 12 comments
- ← Previous
- 1
- 2
Facts
- Date created
- 11 Aug 2008
- Category
- Last update
- 26 Sep 2009
- Development stage
- Release
- Language
- enUS
- License
- MIT License
- Curse link
- DataTools
- Reverse relationships
- 5
- Recent files
- #2
Ackis Fri, 19 Sep 2008 04:22:22Kagaro, for the locations, I'm having a bit of trouble with them.
I have the hash/array of:
{"Zone" => [[x,y], [x1,y1], ..., [xn,yn]]}
I'm not sure how to get it into something usable.
So I do locs = maps.get_npc_locations(k)
Which gives me that structure, now is there an easy way to print out the following: Zone, average(x1,...,xn), average(y1,...,yn)
I also have a bunch of arrays which I'm trying to sort:
An example of what I do with the unsorted stuff is:
trainers.each_pair do |k,v|
locs = maps.get_npc_locations(k) # Trainer: ID, Name, Location, Coords, Faction $stdout.puts "\tself:addLookupList(TrainerDB, #{k}, L[\"#{v[:name]}\"], nil, nil, #{v[:faction]})"
end
How can I sort it by the value k (id)?
- #1
Ackis Tue, 16 Sep 2008 20:05:30Hi Kagaro, with all the tickets I've added I think I've gotten all the filter flags I have defined for Ackis Recipe List requested. Thanks again for your assistance.