CARVIEW |
Select Language
HTTP/2 200
date: Thu, 16 Oct 2025 05:18:11 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=7949730a4564b05f14182c403adae2435d90e37659ebb7a0cee5e91fccbfb599a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22ytqSm_eJ5Fc2UnYnoKEKLUOszdBErcqm%22%3B%7D; HttpOnly; Path=/
cf-ray: 98f518154c955ace-BLR
findPath_static - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pathFind = {
- run : function (creep,Range){
- if(creep.memory.actualPath){
- if(creep.memory.actualPath.length){
- if(creep.memory.PathSteep === 0){
- creep.memory.PathSteep +=1;
- }else{
- if(creep.pos != creep.memory.actualPath[creep.memory.PathSteep-1]){
- creep.memory.PathSteep +=1;
- }
- else{
- creep.memory.PathSteep -=1;
- }
- }
- return true;
- }
- }
- var Goal = Game.getObjectById(creep.memory.targetId);
- if(Goal === null){
- return false;
- }
- else{
- goal = Goal.pos;
- };
- var ret = PathFinder.search(creep.pos, {pos : goal, range : Range},{
- plainCost: 2,
- swampCost: 10,
- roomCallback: function(roomName) {
- let room = Game.rooms[roomName];
- if (!room) return;
- let costs = new PathFinder.CostMatrix;
- room.find(FIND_STRUCTURES).forEach(function(structure) {
- if (structure.structureType === STRUCTURE_ROAD) {
- costs.set(structure.pos.x, structure.pos.y, 1);
- } else if(structure.structureType !== STRUCTURE_CONTAINER &&
- (structure.structureType !== STRUCTURE_RAMPART || !structure.my)) {
- costs.set(structure.pos.x, structure.pos.y, 0xff);
- }
- });
- room.find(FIND_CREEPS).forEach(function(creep) {
- costs.set(creep.pos.x, creep.pos.y, 0xff);
- });
- return costs;
- },
- });
- if(ret.path.length ){
- creep.memory.actualPath = ret.path;
- creep.memory.PathSteep = 0;
- return true;
- }
- return false;
- }
- };
- module.exports = pathFind;
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 4 min ago | 0.15 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 4 min ago | 0.15 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 4 min ago | 0.15 KB
-
⭐⭐⭐ChangeNOW Exploit⭐⭐
Java | 4 min ago | 0.15 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 4 min ago | 0.15 KB
-
⭐⭐⭐Free Giftcards Method⭐⭐
Java | 4 min ago | 0.15 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 5 min ago | 0.15 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 5 min ago | 0.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand