Go to the waypoint with the label name, if it's a number, go to the waypoint with that number in the current Tab. If the label name is a Tab name, go to the first waypoint of that Tab.
This is one of the most common and important functions, it will be used in scripts with refill, deposit, check locations, etc.
Ir para o waypoint com o nome do label, se for um número, irá para o waypoint com aquele número na Aba atual. Se o nome do label é o nome de uma Aba, irá para o primeiro waypoint dessa Aba.
Essa é uma das funções mais comuns e mais importantes, será usada em scripts com refill, deposit, check de localização, etc.
gotolabel(param)
- Parameters
param:waypoint number, waypoint label or tab name.
Return Value
Returns true upon success, or false otherwise.
Examples:
- Go to the waypoint with label BuySupply if has less than
50 mana potions.
if (itemcount(mana potion) < 50) then gotolabel(BuySupply)- Go to the first waypoint of the current
Tab.
gotolabel(1)- Go to the first waypoint of the
Tabnamed Hunt.
gotolabel(Hunt)