-
Notifications
You must be signed in to change notification settings - Fork 0
/
p3_exptrack.inc
executable file
·54 lines (37 loc) · 1.42 KB
/
p3_exptrack.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
SUB p3_exptrack_init() {
/declare doExpReport bool outer TRUE
/varset doExpReport ${getBotIniOption[Misc.ExperienceReports,${doExpReport}]}
/declare curRegPct float outer ${Math.Calc[${Me.Exp}/1000].Precision[3]}
/declare curAAPct float outer ${Math.Calc[${Me.AAExp}/1000].Precision[3]}
/RETURN
}
SUB exptrackMaintenance() {
/RETURN
}
SUB expTrackerNewExp() {
/declare newRegPct float local ${Math.Calc[${Me.Exp}/1000].Precision[3]}
/declare newAAPct float local ${Math.Calc[${Me.AAExp}/1000].Precision[3]}
/declare gain float local
/if (${doExpReport}==TRUE) {
/if (${newRegPct}<${curRegPct}) {
/varset gain ${Math.Calc[(${newRegPct.Precision[3]})- (100-${curRegPct.Precision[3]})]}
} else /if (${newRegPct}>${curRegPct}) {
/varset gain ${Math.Calc[${newRegPct.Precision[3]} - ${curRegPct.Precision[3]} ]}
}
/if (${gain}>0) {
/bc Regular Exp Gain: ${gain.Precision[3]}% (${Math.Calc[${Me.Exp}/1000].Precision[3]}% through ${Me.Level})
}
/varset gain 0
/if (${newAAPct}<${curAAPct}) {
/varset gain ${Math.Calc[(100-${curAAPct.Precision[3]}) + (${newAAPct.Precision[3]})]}
} else /if (${newAAPct}>${curAAPct}) {
/varset gain ${Math.Calc[${newAAPct.Precision[3]} - ${curAAPct.Precision[3]} ]}
}
/if (${gain}>0) {
/bc AA Exp Gain: ${gain.Precision[3]}% (${Me.AAPoints} banked)
}
/varset curRegPct ${newRegPct.Precision[3]}
/varset curAAPct ${newAAPct.Precision[3]}
}
/RETURN
}