Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

1 Screenshot

  • 149
  • 1
  • 24.88 kB

About CBuildCostChange

 CBuildCostChange allows to change the cost of building structure and upgrading of the different grades. You can now make it cheaper or more expensive depending on each structure and grade.

 

# CONFIG

The prices in the config file, are the default game values.

Quote

 




{
  "1. Config": {
    "» Message prefix": "<color=#aabf7d>• SERVER</color> <size=18>»</size> <color=#ebd077>Build Cost</color> : ",
    "» Enable effect": true
  },
  "2. Build Cost": {
    "foundation": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "foundation.triangle": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "foundation.steps": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "ramp": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "floor": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "floor.triangle": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 13
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 75
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 7
      }
    ],
    "floor.frame": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "floor.triangle.frame": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 13
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 75
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 7
      }
    ],
    "wall": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "wall.doorway": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 35
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 140
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 210
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 140
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 18
      }
    ],
    "wall.window": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 35
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 140
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 210
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 140
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 18
      }
    ],
    "wall.frame": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "wall.half": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "wall.low": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "block.stair.ushape": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "block.stair.lshape": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "block.stair.spiral": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "block.stair.spiral.triangle": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 50
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 300
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 200
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 25
      }
    ],
    "roof.triangle": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ],
    "roof": [
      {
        "» Grade (Do not modify !)": "twigs",
        "» New Price": 25
      },
      {
        "» Grade (Do not modify !)": "wood",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "stone",
        "» New Price": 150
      },
      {
        "» Grade (Do not modify !)": "metal",
        "» New Price": 100
      },
      {
        "» Grade (Do not modify !)": "toptier",
        "» New Price": 13
      }
    ]
  },
  "3. Version": {
    "Major": 1,
    "Minor": 0,
    "Patch": 1
  }
}

 

 


# API FOR DEV

 

private object API_GetItemId(string shortname)
private object API_GetItemShortname(int itemID)
private object API_GetNewCost(string key, string grade)
private bool API_ItemAmount(BasePlayer player, int itemId, int itemAmount, string itemName)
private int API_GetItemAmount(BasePlayer player, int itemId, int itemAmount)
private void API_Pay(BasePlayer player, int itemId, int itemAmount)
private void API_Build(BasePlayer player, Planner planner, Construction construction, Construction.Target target, int itemId, int cost)
private void API_Upgrade(BasePlayer player, BaseCombatEntity entity, BuildingGrade.Enum grade, int itemId, int cost)


# HOOK FOR DEV

CBuildCostChange_CanAffordToPlace => false for disable
CBuildCostChange_CanBuild => false for disable
CBuildCostChange_CanUpgrade => false for disable

 

  • Confused 1

TF Crazy's Other Downloads


User Feedback

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.