Just a little script I whipped up to help buy all the good stuff off the exotic goods vendors. Needs IS/ISXWoW to run.
Code:
function main()
{
variable int i = 0
variable int j
variable int k
variable index:string MerchantNames
MerchantNames:Insert[Professor Thaddeus Paleo]
MerchantNames:Insert[Lhara]
variable index:string Items
Items:Insert[Mote]
Items:Insert[Lotus]
Items:Insert[Silversage]
Items:Insert[Netherbloom]
Items:Insert[Nightmare]
Items:Insert[Sansam]
Items:Insert[Ghost Mushroom]
Items:Insert[Dreamfoil]
Items:Insert[Wild Steelbloom]
Items:Insert[Terocone]
Items:Insert[Rugged Leather]
Items:Insert[Clefthoof Leather]
Items:Insert[Dawnstone]
Items:Insert[Living Ruby]
Items:Insert[Nightseye]
Items:Insert[Noble Topaz]
Items:Insert[Star of Elune]
while 1
{
wait 10
call TargetingMe
if !${Return} && ${k:Inc} > ${MerchantNames.Used}
{
k:Set[1]
}
if ${Unit[${MerchantNames[${k}]}].Distance} <= 5
{
Unit[${MerchantNames[${k}]}]:Use
}
i:Set[0]
wait 50 ${WoWScript[GetMerchantItemInfo(1),1](exists)}
while (${WoWScript[GetMerchantItemInfo(${i:Inc}),1](exists)})
{
for (j:Set[1] ; ${j} <= ${Items.Used} ; j:Inc)
{
if ${WoWScript[GetMerchantItemInfo(${i}),1].Find[${Items[${j}]}]}
{
WoWScript BuyMerchantItem(${i})
wait 10
}
}
}
wait 10
WoWScript CloseMerchant()
}
}
function TargetingMe()
{
variable guidlist PlayerList
variable int i
PlayerList:Search[-players]
for (i:Set[1] ; ${i} <= ${PlayerList.Count} ; i:Inc)
{
if ${PlayerList.Object[${i}].Target.GUID.Equal[${Me.GUID}]}
{
return TRUE
}
}
return FALSE
}