Code fragment
Code: Select all
log $.lvl
log @eval($::char->{jobID})
if ($.lvl >= "85") {
log i1
switch ("@eval($::char->{jobID})") {
log i2
case (=~ /1|7|4008|4060|14|4015|4073|5|10|18|4011|4019|4064|4078|2|9|4010|4061|17|4018|4079|4046|24|4215/i) {
log i3
$aspdPots = "Berserk Potion"
}
}
} elsif ($.lvl >= "40" && $.lvl < "85") {
log i4
$aspdPots = "Awakening Potion"
} else {
log i5
$aspdPots = "Concentration Potion"
}
log $aspdPots eee
do conf useSelf_item_0 $aspdPots
do conf useSelf_item_0_whenStatusInactive $aspdPots
Code: Select all
[macro log] 75
[macro log] 4019
[macro log] eee
Config 'useSelf_item_0' is Awakening Potion
Config 'useSelf_item_0_whenStatusInactive' is Awakening Potion
I also tried removing the "" from the @eval & the numbers but it does not help.
Can you help me spot what is the problem?
Thanks.