-
Notifications
You must be signed in to change notification settings - Fork 0
/
helwyr.go
133 lines (129 loc) · 2.64 KB
/
helwyr.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package simulations
import (
"github.com/bwmarrin/discordgo"
)
var (
helwyrUrl = "https://runescape.wiki/images/Helwyr.png?8740d"
helwyrTables = dropTables{
commonDroptable: []Drop{
{
Name: "Drakolith stone spirit",
AmountRange: [2]int{15, 25},
},
{
Name: "Orichalcite stone spirit",
AmountRange: [2]int{15, 25},
},
{
Name: "Uncut diamond",
AmountRange: [2]int{20, 30},
},
{
Name: "Grimy dwarf weed",
AmountRange: [2]int{20, 30},
},
{
Name: "Raw shark",
AmountRange: [2]int{45, 60},
},
},
uncommonDroptable: []Drop{
{
Name: "Phasmatite stone spirit",
AmountRange: [2]int{15, 25},
},
{
Name: "Necrite stone spirit",
AmountRange: [2]int{15, 25},
},
{
Name: "Coins",
AmountRange: [2]int{60000, 82816},
},
{
Name: "Uncut dragonstone",
AmountRange: [2]int{8, 12},
},
{
Name: "Magic logs",
AmountRange: [2]int{175, 350},
},
{
Name: "Large bladed rune salvage",
AmountRange: [2]int{10, 20},
},
{
Name: "Crystal key",
AmountRange: [2]int{2, 4},
},
{
Name: "Grimy lantadyme",
AmountRange: [2]int{90, 120},
},
},
uniqueDroptable: []Drop{
{
Rate: 1.0 / 179.0,
Name: "Dormant anima core helm",
Bold: true,
},
{
Rate: 1.0 / 179.0,
Name: "Dormant anima core body",
Bold: true,
},
{
Rate: 1.0 / 179.0,
Name: "Dormant anima core legs",
Bold: true,
},
{
Rate: 1.0 / 179.0,
Name: "Orb of the Cywir elders",
Bold: true,
},
{
Rate: 1.0 / 179.0,
Name: "Crest of Seren",
Bold: true,
},
{
Rate: 1.0 / 179.0,
Name: "Wand of the Cywir elders",
Bold: true,
},
{
Rate: 1.0 / 179.0,
Name: "Serenic essence",
Bold: true,
},
},
alwaysDroptable: []Drop{
{
Name: "Bones",
Amount: 1,
},
},
}
)
var HelwyrCommand = &discordgo.ApplicationCommand{
Name: "helwyr",
Description: "Simulate a Helwyr drop with full reputation",
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionInteger,
Name: "amount",
Description: "Amount of kills",
Required: false,
},
{
Type: discordgo.ApplicationCommandOptionBoolean,
Name: "enable-guarantees",
Description: "Set to false to remove the guaranteed drops",
Required: false,
},
},
}
func Helwyr(s *discordgo.Session, i *discordgo.InteractionCreate) {
simulateDrop(s, i, simulateDropGwd2, helwyrTables, helwyrUrl, HelwyrCommand.Name, "Helwyr")
}