What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Teleport using teleport book?

CoalCloud

New Member
Joined
Oct 3, 2014
Messages
61
Reaction score
0
Is it possible to teleport using the teleport book item and hereafter stone?
 
Use search next time, please
Code:
public Creature getMyNearestPortal()
        {
            foreach (var c in getCreatures())
            {
                if (c.db.id == 3891 && c.ownerUniqId == me.uniqId)
                    return c;
            }
            return null;
        }
............

foreach (var p in me.portalBook.getDistricts())
                {
                    if (p.name == "TpPointName")
                    {
                        p.OpenPortal();
                        Thread.Sleep(1000);
                        while (me.isCasting || me.isGlobalCooldown)
                            Thread.Sleep(100);
                        Thread.Sleep(2000);
                        UsePortal(getMyNearestPortal());
                        break;
                    }
                }
 
Use search next time, please
Code:
foreach (var p in me.portalBook.getDistricts())
                {
                    if (p.name == "TpPointName")
                    {
                        p.OpenPortal();
                        Thread.Sleep(1000);
                        while (me.isCasting || me.isGlobalCooldown)
                            Thread.Sleep(100);
                        Thread.Sleep(2000);
                        UsePortal(getMyNearestPortal());
                        break;
                    }
                }

This does not work any more? and neither does the one in gildastarystars? It will not open a portal.
 
Hi, thanks for report. Will be fixed with next AB update.
 
Back
Top