An API written in PHP to get TDP4 weapon prices.
Parameter Name | Value | Description |
---|---|---|
weapon | string | specify the weapon name |
discount | int | (optional) specify a discounted amount |
http://www.alphaoverall.com/api/tdp4/weaponprices.php?weapon=colt&discount=50
returns
```json
{
"result": "The cost of Colt King Cobra is 500 coins with 50% discount",
"coins": 500,
"cash": 0
}
```
If a weapon doesn't exist:
```json
{
"error": "No weapon named 'cold'"
}
```
Use freely.
Created by [AlphaOverall](http://www.kongregate.com/accounts/AlphaOverall)