Download
(1 Kb)
Download
Updated: 09/20/14 01:15 AM
Pictures
File Info
Compatibility:
Update 4 (1.4.3)
Update 3 (1.3.3)
Veteran Crypt of Hearts (1.2.3)
Updated:09/20/14 01:15 AM
Created:07/06/14 04:38 PM
Monthly downloads:20
Total downloads:10,955
Favorites:11
MD5:
Alliance Points Logger  Popular! (More than 5000 hits)
Version: 1.0.3
by: CoUsT [More]
Alliance Points Logger

Simple addon created for my needs. This add-on will allow you to keep track on how many Alliance Points you get and when you get them. Should be very useful for AP farmers.

Now you won't miss any defense bonus tick!

I have a few things in mind that I can add, but the main feature of the addon is the ability to track points.




This addon is free and I don't want any money for it! Enjoy it and good luck in Cyrodiil!
1.0.3 - Updated to new API version.

1.0.2 - Updated to new API version.

1.0.1 - Addon will now print logs only if difference is higher than 10. If you want logs everytime your AP change, download version 1.0.

1.0 - First version.
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.0.2
26kB
CoUsT
08/04/14 09:21 PM
1.0.1
26kB
CoUsT
07/10/14 01:00 PM
1.0
26kB
07/06/14 04:38 PM


Post A Reply Comment Options
Unread 09/08/14, 04:06 PM  
CoUsT
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 37
Uploads: 1
Re: Difference

Originally Posted by AloeVera90
So I am pretty new to PvP... I don't understand what the DIFFERENCE value is... can you explain that to me?
How many points you get. Difference is just difference... It's like comparing old value to new value - you know how many points you got in each tick.
Last edited by CoUsT : 09/08/14 at 04:07 PM.
Report comment to moderator  
Reply With Quote
Unread 08/29/14, 07:40 AM  
AloeVera90

Forum posts: 0
File comments: 1
Uploads: 0
Difference

So I am pretty new to PvP... I don't understand what the DIFFERENCE value is... can you explain that to me?
Report comment to moderator  
Reply With Quote
Unread 07/11/14, 07:59 AM  
CoUsT
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 37
Uploads: 1
Interesting. :P With AP/session can be problem, because people usually relog every hour or two. But if you need it - it's of course good.

Originally Posted by Randactyl
I saw you included LAM2, but it hasn't been implemented yet. Any chance you could add this session total functionality when you set up options?
I have plans with it. I will add settings to set minimum number of difference to be printed on chat, so people can adjust it and set for example 1000 - so addon will print only when you finish quest (1000 for killing quest) or when you get big defense bonus, or set it to 0 and it will print only when difference is a positive number. I also have plans to add log when you enter shop and quit shop - how many alliance points you spent on siege weapons, camps, repairing kits and other stuff. There should be option to turn off this option, because maybe not everyone want it, so it also will be part of settings, of course when I decide to add this feature.

For now I'm happy with current state. This addon has to be simple. These featured should be added when I find some time and motivation.
Report comment to moderator  
Reply With Quote
Unread 07/10/14, 05:15 PM  
Randactyl
 
Randactyl's Avatar
AddOn Author - Click to view AddOns

Forum posts: 251
File comments: 462
Uploads: 17
Thanks for the addon! I modified it to fit something else I wanted aka a display of AP earned this session.

So in total, the addon looks like this:
Lua Code:
  1. AP = {}
  2.  
  3. AP.initial = 0
  4. AP.session = 0
  5. AP.Logger = "AlliancePointsLogger"
  6.  
  7. AP.Log = function(eventCode, alliancePoints, playSound, difference)
  8.     if AP.initial == 0 then AP.initial = alliancePoints end
  9.     if difference > 0 then
  10.         if AP.session == 0 then AP.session = difference
  11.         else AP.session = AP.session + difference end
  12.     end
  13.  
  14.     local when = "[" .. GetTimeString() .. "]"
  15.    
  16.     local s = string.format("%d", math.floor(alliancePoints))
  17.     local pos = string.len(s) % 3
  18.     if pos == 0 then pos = 3 end
  19.     points = string.sub(s, 1, pos)
  20.     .. string.gsub(string.sub(s, pos+1), "(...)", ".%1")
  21.  
  22.     s = string.format("%d", math.floor(AP.session))
  23.     pos = string.len(s) % 3
  24.     if pos == 0 then pos = 3 end
  25.     totalGain = string.sub(s, 1, pos)
  26.     .. string.gsub(string.sub(s, pos+1), "(...)", ".%1")
  27.    
  28.     d(when .. " AP: " .. points .. " / Difference: " .. difference .. ". Gained this session: " .. totalGain)
  29. end
  30.  
  31. EVENT_MANAGER:RegisterForEvent(AP.Logger, EVENT_ALLIANCE_POINT_UPDATE, AP.Log)

I saw you included LAM2, but it hasn't been implemented yet. Any chance you could add this session total functionality when you set up options?
Report comment to moderator  
Reply With Quote
Unread 07/10/14, 12:49 PM  
CoUsT
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 37
Uploads: 1
Re: Great addon!

Originally Posted by The'Healer
Seem to be working great so far.. is there a way to adjust it so that it just shows (xxx AP!) in the chat window?
There is no option at this moment, but I will upload in few minutes new version and it will be showing only if difference is 10 or more. I realized that this addon can spam a lot when you heal someone, because it check difference for each person, not for everyone at the same time, so healing 3 people can print 3 logs with difference for example: 5, 3 and 7. It also show logs each time you buy something, in new version it shouldn't happen.

I'm trying to create addon as much optimized as possible. Everyone know how much CPU power is needed in Cyrodiil.

Edit: Addon updated. If you want to adjust difference, you can do it manually.

Open AlliancePointsLogger.lua and find:

if difference >= 10 then

Change 10 to number that you want to be minimum difference to print logs.

If you want other chat message, edit this line:

d(when .. " AP: " .. points .. " / Difference: " .. difference)

when = time
points = total poins
difference = gained/lost points, just difference...

If you want only messages "Difference: XXX", then you should set it to this:

d("Difference: " .. difference)
Last edited by CoUsT : 07/10/14 at 01:06 PM.
Report comment to moderator  
Reply With Quote
Unread 07/10/14, 08:38 AM  
The'Healer

Forum posts: 0
File comments: 3
Uploads: 0
Thumbs up Great addon!

Seem to be working great so far.. is there a way to adjust it so that it just shows (xxx AP!) in the chat window?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: