Whisper script (Classic)

Is there a way to make a script that checks if I’m in a city (IsResting?) and then whisper a reply to latest received whisper and if I’m not in a city/resting, it replies something else?

For example if i get asked for a portal, and im in a city, i click a macro button and it replies “Sure, my fee is ___”

But if I’m not in a city, that macro replies “I’m not in a city at the moment, but can come to you for ____ fee.”

I made this addon for you:
https://drive.google.com/open?id=1DAVXoQNZeHD7edVsuWszth4gI9C1U2bE

After installed addon make macro:

/run ReplyOnWhisper("10 gold")

IsResting not so good for this task because you are resting in every tavern where you can’t make a portal for him. I can make it to work with list of cities or locations. Just give me this list of locations you are interested in.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.