Sending an Invite

We have everything we need and now for the easy bit! We’re going to piece everything together in our OnChat() method and invite potential customers to our group.

function PortalWhere:OnChat(text, playerName, _, _, shortPlayerName, _, _, _, _, _, _, guid)
    if self:WantsPortal(playerName, guid, text) then

Job Done

There you have it – a working auto-inviter AddOn for portal mages. Congratulations on making it to the end of this article but your work doesn’t have to stop here. There are many improvements that could be made to this AddOn. You could create a GUI with a real On / Off button and maybe even keep a history of how many times you’ve teleported players. You can also make it automatically open up a trade window to prompt the punter to give you the gold or welcome them if they join the group – everyone loves a spammy mage. I’ll leave those things as an exercise to the reader.

A Humble Request

You’re free to do whatever you like with this code (under the MIT license) but I’d like to make a humble request – Please don’t just copy & paste this code and upload it as it is to Curse or another AddOn site. At least add something to it so we don’t end up with 10 copies of the same AddOn in the Twitch app. Oh, and please credit the author!

It’s on Github

You can find the complete source code on Github.

Last modified: August 27, 2020



rebecca fusconi 

hi , i downloaded the addon from Github but it does not show ingame. any suggestions? ty 🙂


    If you’re downloading the code from GitHub as a zip then make sure you’re extracting it to the correct location and that that folder name inside the AddOns folder is PortalWhere and not PortalWhere-master. The folder name is very important as WoW uses it to find the .toc file.

hey there, i found your addon here, its rly nice but there still some mages that bit me in invites. is there any ways to make my invites faster? btw my ms on server i’m playing less then 40.


    Hey there, thanks for stopping by. I’ve experimented with that quite a bit. Sometimes I miss a lot of invites and at other times I dominate and have other mages asking me for my ping time because they’re missing out. I’ve not been able to conclusively determine exactly what increases the chances of winning them. I suspect that having a faster computer really helps but I’ve found that being closer to the inn door can also help (although that part may be my imagination). Do you have a decent FPS rate?

Installed the addon and I can see it loads when I login however when typing /pw or /portalwhere, nothing happens. Asked a friend to type org in general and nothing happened either.

Either way, love the guide 🙂


    Heya. This AddOn is very basic and doesn’t have a UI. What happens if you type “/pw on”? Also, it won’t respond to people in general chat. It only monitors say, shout and whispers. Feel free to modify it however you like though! Hope that helps 🙂

Hey bro, first of all thx so much for this post / simple addon…. I was able to edit it myself and use it for my own porting service. 🙂 Really appreciate you laying it out like this!!! it rlly helped me….

So now, I just had an idea for an addon…. and I was wondering if you’ve be interested in putting it together. I don’t think it would be too hard to code, but that’s not an area i have enough expertise in….

My idea was like a group deathroll addon, where it would track the rolls of party members…. and like manage it by auto-posting in party chat.

let me know if ur interested in putting an addon for it together, thanks 🙂

Write a Reply or Comment

Your email address will not be published.