If you expect help you need to describe your problem and what you already tried more in detail. From what you describe I can just tell you that there will be no way like that to achieve what you want, in the way you want.
Do you want to build a multihack and implement a function like this? I can tell you it will be hard/impossible to find a exploit like that. You can try out multiple methods like sending a Teleport Quest Accept packet to the server even if you are not close to the teleporter. Or you can try to find a bug in a Teleport item or quest. Just telling you this will be nearly impossible.
On the other hand if just want to build a bot you ain't need a warp function. Just lead the bot to the teleporter, and send a quest request/accept package to the server.
No one will know what you try with your description.
Anyway this one is a release section you are not allowed to post questions here, please #move