Skip to content

Commit 94264c4

Browse files
authored
Add Grepsedawk's Sniper String Documentation (#3)
1 parent 0ec6ad4 commit 94264c4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docs/operations/sniper.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Grepsedawk's Sniper String (Beta)
2+
3+
This sniper string is based off of BilisOnyxia's very popular sniper string, but rather than having hard
4+
price brackets, it applies a smooth curve to the values.
5+
6+
<img alt="Graph of Grepsedawk's Price String vs BilisOnyxia's Sniper String" src=/images/sniper-graph.png width=50%/>
7+
8+
## Custom Sources (Required!)
9+
10+
It requires the same `minprice` custom source as BilisOnyxia's string which is as follows:
11+
12+
```tsm
13+
max(min(dbhistorical, dbregionmarketavg, dbregionhistorical), vendorsell)
14+
```
15+
16+
## Sniper String
17+
18+
```tsm
19+
ifgte(itemquality, 1, ifgte(minprice, 1000g, minprice * min(5 * (minprice / 10000) ^ (0.22), 80) / 100, 0c), 0c)
20+
```
21+
22+
It takes all non-grey items that have a `minprice` > 1000g and applies the curve as pictured in the graph with a ceiling of 80% minprice

images/sniper-graph.png

68.8 KB
Loading

0 commit comments

Comments
 (0)