I'm not quite sure whats wrong with this. It won't import. It says its not in xml format.
<alias
match="showxp *"
enabled="y"
send_to"12"
sequence="100"
>
EnableTriggerGroup "xptimer", vbTrue
SetVariable "showxp", "1,cost"
</send>
</alias>
<alias
match="startxp *"
enabled="y"
send_to"12"
sequence="100"
>
EnableTriggerGroup "xptimer", vbTrue
SetVariable "savexp", "1,cost"
</send>
</alias>
<timers>
<timer enabled="y"
minute="1"
send_to="12"
one_shot="y"
name="mintimer"
>
<send>setvariable "minutes", getvariable ("minutes") + 1</send>
</timer>
</timers>
<triggers>
<trigger
enabled="y"
match="You have ((.+)) to spend on stats, skills or to use to level\."
regexp="y"
send_to="12"
sequence="100"
>
<send>if getvariable("showxp") = 1 then
setvariable "totalxp", %1 - getvariable("offsetxp")
setvariable "perminute", getvariable ("totalxp") / getvariable ("minutes")
setvariable "perhour" , getvariable ("perminute") * 60
send "pl You have made " & getvariable ("totalxp") & " xp in " & getvariable("minutes") & " minutes (" & getvariable("perhour") & " xp per hour"
setvariable "showxp",0
end if
if getvariable("savexp") = 1 then
setvariable "savexp", 0
setvariable "minutes", 0
setvariable "offsetxp", %1
addtimer "mintimer",0,1,0,"setvariable "minutes", getvariable("minutes")+1" & vbCRLF & "note XP Timer started",1029,""
settimeroption "mintimer", "send_to", 12
end if</send>
</trigger>
</triggers>
I feel like with your help I'm getting closer. It's probably just a syntax problem I'm over looking. |