public Portal Unlock(string dungeonName) { PortalDesc desc = Manager.GameData.Portals[0x0700]; //desc.DungeonName = dungeonName; var portal = new Portal(Manager, desc.ObjectType, desc.TimeoutTime * 1000); portal.Move(X, Y); portal.Usable = true; Owner.EnterWorld(portal); Owner.LeaveWorld(this); return(portal); }
public Portal AldragineUnlock(string dungeonName) { var desc = Manager.GameData.Portals[0x51a8]; desc.DungeonName = dungeonName; var portal = new Portal(Manager, desc, desc.TimeoutTime * 1000); portal.Move(X, Y); portal.Usable = true; Owner.EnterWorld(portal); Owner.LeaveWorld(this); return(portal); }
public void WorldAdded(World world) { lock (worldLock) { var pos = GetRandPosition(); var portal = new Portal(0x0712, null) { Size = 80, WorldInstance = world, Name = world.Name }; portal.Move(pos.X + 0.5f, pos.Y + 0.5f); nexus.EnterWorld(portal); portals.Add(world, portal); } }
public void WorldOpened(World world) { lock (worldLock) { var pos = GetRandPosition(); var portal = new Portal(0x71c, null) { Size = 150, WorldInstance = world, Name = world.Name }; portal.Move(pos.X, pos.Y); nexus.EnterWorld(portal); portals.Add(world, portal); } }
public void WorldAdded(World world) { lock (worldLock) { Position pos = GetRandPosition(); var portal = new Portal(manager, 0x0712, null) { Size = 80, WorldInstance = world, Name = world.Name }; portal.Move(pos.X + 0.5f, pos.Y + 0.5f); nexus.EnterWorld(portal); portals.Add(world, portal); log.InfoFormat("World {0}({1}) added.", world.Id, world.Name); } }
public Portal Unlock(string dungeonName) { var desc = Manager.GameData.Portals[0x0700]; desc.DungeonName = dungeonName; var portal = new Portal(Manager, desc, desc.TimeoutTime * 1000); portal.Move(X, Y); portal.Usable = true; Owner.EnterWorld(portal); Owner.LeaveWorld(this); return portal; }
public void WorldOpened(World world) { lock (worldLock) { Position pos = GetRandPosition(); Portal portal = new Portal(manager, 0x71c, null) { Size = 150, WorldInstance = world, Name = world.Name }; portal.Move(pos.X, pos.Y); nexus.EnterWorld(portal); portals.Add(world, portal); logger.InfoFormat("World {0}({1}) opened.", world.Id, world.Name); } }