zapman
Member
- Joined
- Jan 15, 2010
- Messages
- 95
- Reaction score
- 18
I'm trying to get if my target is a RepairMerchant or not. The code below almost returns "You dont have any target" all the time, although I got a target. Sometimes when I start the bot, it works
. Anyone got a clue what I could have done wrong here?
</vendor>

Code:
//IsRepairMerchant
if (ObjectManager.Me.GotTarget == true)
{
if (ObjectManager.Me.CurrentTarget.IsRepairMerchant == true)
{<vendor name="\"{0}\"" entry="\"{1}\"" type="\"{2}\"" x="\"{3}\"" y="\"{4}\"" z="\"{5}\"">
}
else
{
}
}
else if (ObjectManager.Me.GotTarget != true)
{
}