can throw this in any macro, it is self contained.
just do
just do
/lamp stone and it will porty you to mearatas.. or zephyr dor stratos.. you get the idea.
Code:
|***
* DES: displays the port and builds the command to the porting class
* USE: /port [zephyr|palace|stone]
* NOTE:
***|
#bind lamp /lamp
sub Bind_lamp(string _location)
/declare _tmpItem string local
/if (${_location.Equal[Zephyr]}) {
/while (!${FindItem[Wishing Lamp: Zephyr's Flight].ID}) {
/convertitem Wishing Lamp:
/delay 1s
}
/varset _tmpItem Wishing Lamp: Zephyr's Flight
} else /if (${_location.Equal[Palace]}) {
/while (!${FindItem[Wishing Lamp: Palace of Embers].ID}) {
/convertitem Wishing Lamp:
/delay 1s
}
/varset _tmpItem Wishing Lamp: Palace of Embers
} else /if (${_location.Equal[Stone]}) {
/while (!${FindItem[Wishing Lamp: The Stone Demesne].ID}) {
/convertitem Wishing Lamp:
/delay 1s
}
/varset _tmpItem Wishing Lamp: The Stone Demesne
}
/if (${Bool[${_tmpItem}]}) {
/delay 5s !${Me.Casting.ID}
/useitem ${_tmpItem}
}
/return

