Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. dhairya
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    dhairya

    @dhairya

    Nothing

    7
    Posts
    1300
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Age 24

    dhairya Follow

    Posts made by dhairya

    • RE: How to get ghodium?

      OK guys thanks for everyones help

      I figured out that I have to use Game.market.deal to be able to sell pixels without a starting fund

      posted in Help
      dhairya
    • RE: How to get ghodium?

      When I try to sell pixels on the market it still returns -6.

      posted in Help
      dhairya
    • RE: How to get ghodium?

      Thank you for your help but when I tried to sell some of my utrium it returned -6 and I realised that I needed some credits to sell my utrium on the market because it charges a fee.

      And i dont have any credits at all.

      Any way around this??

      Thanks

      posted in Help
      dhairya
    • RE: How to get ghodium?

      Yes but I dont have those minerals either. I only have Utrium

      posted in Help
      dhairya
    • How to get ghodium?

      Hello everyone, I have just reached level 8 an built a nuker. My nuker is filled with energy however I don't know how I can get ghodium for it. I was wondering if the market is the only place to get ghodium or if I can access it from elsewhere.

      Any would be appreciated, Thanks

      posted in Help
      dhairya
    • How to withdraw energy from spawn and take it to the room controller

      Hi all, I am very new to coding and I'm encountering some issues. What I would like to do is have a creep (role.withdrawer), that goes to my containers and harvests energy from.

      Then I would like it to use that energy to upgrader the controller.

      If anyone can send me the code for this task it would be really helpful. Thanks!

      posted in Help
      dhairya
    • Can't fill all of my extensions

      Hi everyone, I am really new to screeps so this might sound like a basic issue. My problem is that my Harvesters fill the Spawn with energy and then they only fill 1 extension when there are 4 extensions left empty.

      I was wondering how to fix that issue.

      My code: var roleHarvester = {

      /** @param {Creep} creep **/
      run: function(creep) {
          if(creep.store.getFreeCapacity() > 0) {
              var sources = creep.room.find(FIND_SOURCES);
              if(creep.harvest(sources[0]) == ERR_NOT_IN_RANGE) {
                  creep.moveTo(sources[0], {visualizePathStyle: {stroke: '#ffaa00'}});
              }
          }
          else {
              var targets = creep.room.find(FIND_STRUCTURES, {
                      filter: (structure) => {
                          return (structure.structureType == STRUCTURE_EXTENSION || structure.structureType == STRUCTURE_SPAWN) &&
                              structure.store.getFreeCapacity(RESOURCE_ENERGY) > 0;
                      }
              });
              if(targets.length > 0) {
                  if(creep.transfer(targets[0], RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
                      creep.moveTo(targets[0], {visualizePathStyle: {stroke: '#ffffff'}});
                  }
              }
          }
      }
      

      };

      module.exports = roleHarvester;

      posted in Help
      dhairya