set variable to be current number of adv


New member
Hi I am a scripting noob. May I ask how to set variable X to be the current remaining number of adv.?
Specifically what I want to is to is to spend my remaining adv for farming everyday after daily routine.