[C++] Friend Porter

Description:
This gossip script lets players teleport to other players for a set amount of gold. When they use this item, a text box shows up, in which they input the name of the player they wish to port to. Then, if the rules allow it, they will port to his location.

Just a couple of questions, if the friend is in a instance, you cant normaly teleport to them unless your in there group. Will it still charge you after failing to get in?Also can the other player stop the person appearing at there location if it's anoying them?Apart from that looks very nice I might use it, +Rep

Just a couple of questions, if the friend is in a instance, you cant normaly teleport to them unless your in there group. Will it still charge you after failing to get in?Also can the other player stop the person appearing at there location if it's anoying them?Apart from that looks very nice I might use it, +Rep

Edit: 24 hour cooldown Will rep tommoro

If, for any reason stated above, you're not able to teleport to your friend, you will not be charged.

insert into `items` values ('61000','15','0','-1','Friendport Token','Trade this Token to Teleport a friend at our Friendporter NPC','','','41565','2','0','0','0','0','-1','-1','1','0','0','0','0','0','0','0','0','0','100','0','0','0','0','0','0','0','0' ,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0' ,'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0' ,'0','0','0','-1','0','-1','0','0','0','-1','0','-1','0','0','0','-1','0','-1','0','0','0','-1','0','-1','0','0','0','-1','0','-1','1','Trade this token for teleporting a friend','0','0','0','0','0','-1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','0');