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

How to use portalbook, pick a place, and jump through

fuse

New Member
Joined
Sep 21, 2014
Messages
17
Reaction score
0
How can this be achieved? :) I'm such a noob...

Thank you! <3
 
Last edited:
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 == "PortalPointName")
                    {
                        p.OpenPortal();
                        Thread.Sleep(1000);
                        while (me.isCasting || me.isGlobalCooldown)
                            Thread.Sleep(100);
                        Thread.Sleep(2000);
                        UsePortal(getMyNearestPortal());
                        break;
                    }
                }
 
you can also check how ive done it on my tradepack plugin solzreed to memoria
 
Back
Top