mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Compare commits
857 commits
Feb-18-202
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bdfc43fba | ||
|
|
12f217f8f3 | ||
|
|
07e48d91a8 | ||
|
|
0bf2f7d0ec | ||
|
|
a38d3734bd | ||
|
|
96c42c18d9 | ||
|
|
1765f3a3b6 | ||
|
|
5533a2f78a | ||
|
|
846d55365a | ||
|
|
da7c62d10c | ||
|
|
2239168074 | ||
|
|
8ba45e0ee1 | ||
|
|
82e5965220 | ||
|
|
3d5cbd90ed | ||
|
|
feb2b10247 | ||
|
|
56986ad6bc | ||
|
|
6241ff9ce5 | ||
|
|
dfb53cfa03 | ||
|
|
66030f36d6 | ||
|
|
8dd82dd356 | ||
|
|
1fa2d3460f | ||
|
|
78f1c58b4e | ||
|
|
9a7a885818 | ||
|
|
8d182f2505 | ||
|
|
f25f439bdf | ||
|
|
4b3cfae309 | ||
|
|
e6b1203be4 | ||
|
|
8694d36ee8 | ||
|
|
618baf0662 | ||
|
|
f1f5a97859 | ||
|
|
991d4aa364 | ||
|
|
789466e4ab | ||
|
|
f9a193c8d7 | ||
|
|
d1cfe299c6 | ||
|
|
7a23f6f0a3 | ||
|
|
c135877680 | ||
|
|
18f274be8e | ||
|
|
5719d03e4d | ||
|
|
d6f32c56fc | ||
|
|
9eac712626 | ||
|
|
b644a72bfc | ||
|
|
efe936500b | ||
|
|
6d8ef4247c | ||
|
|
676397f3fd | ||
|
|
74cbec067c | ||
|
|
d03df027e0 | ||
|
|
d09bdacf94 | ||
|
|
a6eb6f5af6 | ||
|
|
2ba1174678 | ||
|
|
3dd189d0f3 | ||
|
|
a5b5fdf4d6 | ||
|
|
f39e432432 | ||
|
|
36267b7a67 | ||
|
|
79b3f431c1 | ||
|
|
75fd1dc475 | ||
|
|
12049d8ffb | ||
|
|
1106cbac25 | ||
|
|
891cdf7de1 | ||
|
|
80b1b4b01e | ||
|
|
a0bf0d1d50 | ||
|
|
2471584c42 | ||
|
|
1ff19880ef | ||
|
|
89edf78e54 | ||
|
|
faf2222f4c | ||
|
|
b68f914440 | ||
|
|
c7afeab2ab | ||
|
|
ee9a704ad0 | ||
|
|
93d2c8f4aa | ||
|
|
dc0a0b1cff | ||
|
|
d99e6b2541 | ||
|
|
1ebbed5453 | ||
|
|
af6d260a1e | ||
|
|
9cff5cc314 | ||
|
|
ef0c208bfb | ||
|
|
db05c190fe | ||
|
|
3634616475 | ||
|
|
bef103e259 | ||
|
|
98f662d0c6 | ||
|
|
cb17786a86 | ||
|
|
5c13610776 | ||
|
|
2a438ce349 | ||
|
|
264c2aa550 | ||
|
|
7cf5049687 | ||
|
|
c1d932a6f1 | ||
|
|
0c425033f3 | ||
|
|
e8c3f31786 | ||
|
|
91f3a70f75 | ||
|
|
eebbebe772 | ||
|
|
5a1c7cb141 | ||
|
|
4fb3ae45d8 | ||
|
|
eafa5f42ab | ||
|
|
fc00509b9d | ||
|
|
711ef542fa | ||
|
|
c296e34b50 | ||
|
|
1bdf1ae204 | ||
|
|
53c90ad6d6 | ||
|
|
3a7dfab628 | ||
|
|
02c1835016 | ||
|
|
7c74bfcb71 | ||
|
|
300b714048 | ||
|
|
3d7f1689f3 | ||
|
|
bcc3bc069e | ||
|
|
48bc0ffb28 | ||
|
|
7b1ebd4608 | ||
|
|
1b0a7d5fca | ||
|
|
fc2247f457 | ||
|
|
47ac5e93d6 | ||
|
|
63f8ec3cbf | ||
|
|
0622aed00c | ||
|
|
dda80d535b | ||
|
|
448f970c10 | ||
|
|
83b8689b86 | ||
|
|
6362eee753 | ||
|
|
f0ee476e42 | ||
|
|
0e65f20223 | ||
|
|
af58fae1fc | ||
|
|
74ed5e1bee | ||
|
|
cf08e700fb | ||
|
|
d65a53b275 | ||
|
|
fb9d6307b3 | ||
|
|
45fb89ec73 | ||
|
|
50ba3682b5 | ||
|
|
df73f4a171 | ||
|
|
9eedfc2336 | ||
|
|
e25780a4c5 | ||
|
|
b6560c0e3f | ||
|
|
2d1a626df0 | ||
|
|
4f97dbef8c | ||
|
|
be76ca143b | ||
|
|
053254b504 | ||
|
|
486ca4bb19 | ||
|
|
104533c11d | ||
|
|
9886049429 | ||
|
|
f1131b7d00 | ||
|
|
be47c1d5c9 | ||
|
|
bb860b60e0 | ||
|
|
fed309a70b | ||
|
|
1afd4d5328 | ||
|
|
a6eb706358 | ||
|
|
957477b9b0 | ||
|
|
4387b346dc | ||
|
|
618d39d73c | ||
|
|
62a7dd4324 | ||
|
|
212ce57580 | ||
|
|
8a4ea5d1f3 | ||
|
|
0f14639e9b | ||
|
|
e63c6f523a | ||
|
|
612ccc6776 | ||
|
|
b5784c5782 | ||
|
|
867c332466 | ||
|
|
8b1763c3ba | ||
|
|
d0fdf08d13 | ||
|
|
d91f77c294 | ||
|
|
c03947e0b0 | ||
|
|
acc6c182a5 | ||
|
|
1b85808885 | ||
|
|
2cf8392691 | ||
|
|
4a016d45e5 | ||
|
|
cd43f8d269 | ||
|
|
0a26d5039a | ||
|
|
c3929cf06c | ||
|
|
fcbea5acdc | ||
|
|
3d7e93b6c2 | ||
|
|
6e9f3cb8b9 | ||
|
|
0c8efbac7a | ||
|
|
ccc60b1240 | ||
|
|
818ffc01e7 | ||
|
|
f37b30749e | ||
|
|
edc6f9cf07 | ||
|
|
064edfbbe4 | ||
|
|
b62f4e9525 | ||
|
|
57f5617fe8 | ||
|
|
6c386e6ed2 | ||
|
|
93890769e1 | ||
|
|
4039c0123b | ||
|
|
27f2d457ea | ||
|
|
c6b508b3ed | ||
|
|
67b6855370 | ||
|
|
4480618748 | ||
|
|
9fff4dbb5d | ||
|
|
6a68cf9d7c | ||
|
|
e34a81ec6c | ||
|
|
00b5a44c31 | ||
|
|
f75577d41d | ||
|
|
3838f01adf | ||
|
|
a932c309b3 | ||
|
|
9af776e3c6 | ||
|
|
39634b6caf | ||
|
|
eb3884180e | ||
|
|
d5c7d74767 | ||
|
|
d08656021c | ||
|
|
9beb7219ea | ||
|
|
deecf136bc | ||
|
|
b849de2dab | ||
|
|
b4950343ec | ||
|
|
7749e8263f | ||
|
|
79c69e3d43 | ||
|
|
7d79c9a82a | ||
|
|
e216a6366f | ||
|
|
9054e36288 | ||
|
|
1a67932351 | ||
|
|
7a6adda997 | ||
|
|
1da53c448d | ||
|
|
53dc169774 | ||
|
|
b0be48501b | ||
|
|
98c99e7550 | ||
|
|
ed41f3a228 | ||
|
|
a2eafa8bc0 | ||
|
|
2be5f9eac0 | ||
|
|
876b87b72a | ||
|
|
32cd17bfa2 | ||
|
|
393752d77b | ||
|
|
2b460b64f2 | ||
|
|
59075798ea | ||
|
|
034c05f512 | ||
|
|
01b5e59250 | ||
|
|
7d32e77860 | ||
|
|
f11149ebe2 | ||
|
|
ba1e190cdb | ||
|
|
1c9fbc79aa | ||
|
|
218a040f8b | ||
|
|
cc8dd4edb4 | ||
|
|
3982258500 | ||
|
|
2be422e7da | ||
|
|
5abe50430d | ||
|
|
97b8ed19a6 | ||
|
|
9d38357c4e | ||
|
|
64fa1d89c3 | ||
|
|
e31397b42f | ||
|
|
9f61ffb153 | ||
|
|
b2f7f86d6a | ||
|
|
4799176c14 | ||
|
|
0a89439c80 | ||
|
|
9c202aa47a | ||
|
|
6b0f942598 | ||
|
|
8db9060a40 | ||
|
|
f94221918f | ||
|
|
cc47f4b488 | ||
|
|
5c027e2649 | ||
|
|
4156f28b93 | ||
|
|
c271d4e74b | ||
|
|
97464ef1d2 | ||
|
|
518b5d91dd | ||
|
|
e25c7d7824 | ||
|
|
29fa9a5a21 | ||
|
|
083df1aae2 | ||
|
|
3a73c98e19 | ||
|
|
80cb2d9ba4 | ||
|
|
317b4e9b5c | ||
|
|
24143f5d20 | ||
|
|
209e1ae8cf | ||
|
|
37836ae992 | ||
|
|
d15b47fc65 | ||
|
|
58d9101ef6 | ||
|
|
ca8bfeab64 | ||
|
|
957b1c2944 | ||
|
|
92fcd0ec32 | ||
|
|
db3079271e | ||
|
|
9d6ad223cb | ||
|
|
3837bd3c26 | ||
|
|
18d5d80fba | ||
|
|
9d2e173f71 | ||
|
|
68c1e572b9 | ||
|
|
806680517b | ||
|
|
53357d20f3 | ||
|
|
a44472e559 | ||
|
|
6b152bcc8c | ||
|
|
30f1cbf710 | ||
|
|
0165d373bd | ||
|
|
6f9a975f7a | ||
|
|
21a07841f6 | ||
|
|
81495ab8a8 | ||
|
|
5ed3cafc4a | ||
|
|
0b95cfdb8f | ||
|
|
e8527ff506 | ||
|
|
ef90d24bdc | ||
|
|
a2b0548c62 | ||
|
|
611660cbc3 | ||
|
|
370d9ef423 | ||
|
|
8d2b454b1c | ||
|
|
28b168e742 | ||
|
|
98c0698097 | ||
|
|
80a5c3a85e | ||
|
|
ca3bc9cd70 | ||
|
|
2c3b5cb5a4 | ||
|
|
5f62047aff | ||
|
|
d0f24afc2e | ||
|
|
1f6b0e900f | ||
|
|
ddb9b6f0b0 | ||
|
|
45c21767d5 | ||
|
|
f01a5cfe40 | ||
|
|
36d8186458 | ||
|
|
52cf984540 | ||
|
|
082d3a561b | ||
|
|
dd9f2a34c8 | ||
|
|
49a10d192a | ||
|
|
2776270c7f | ||
|
|
a184b4ce2f | ||
|
|
76d31a68ad | ||
|
|
51929277ac | ||
|
|
07c6eab4af | ||
|
|
dc3daebb59 | ||
|
|
da6f05f8ce | ||
|
|
66b1efdaa3 | ||
|
|
aed73183d1 | ||
|
|
66978b23ee | ||
|
|
f501468ead | ||
|
|
a63867627e | ||
|
|
5d54ef56b3 | ||
|
|
acf27dada5 | ||
|
|
73102d8f79 | ||
|
|
158cf41fd3 | ||
|
|
cdead88473 | ||
|
|
5d21ab74c0 | ||
|
|
782a70a582 | ||
|
|
38a580a431 | ||
|
|
4c736e5aef | ||
|
|
0dcdc84f79 | ||
|
|
6deadc6f90 | ||
|
|
50eb295fda | ||
|
|
24b314426e | ||
|
|
a342f91156 | ||
|
|
64b40fbcf4 | ||
|
|
0ade8bdf02 | ||
|
|
68cf133955 | ||
|
|
7190c3eda7 | ||
|
|
ee9d386bc9 | ||
|
|
2da47d8353 | ||
|
|
5c977c0522 | ||
|
|
2948d58934 | ||
|
|
cde2dcc93f | ||
|
|
4ae1448800 | ||
|
|
b1e6c9fe8c | ||
|
|
a7516f2d6e | ||
|
|
1d4d380e93 | ||
|
|
3b967791a4 | ||
|
|
c96fa24999 | ||
|
|
bbfa1bb1e7 | ||
|
|
675f0c1e37 | ||
|
|
b8a887b319 | ||
|
|
a1fc0ba7cc | ||
|
|
a11b783c39 | ||
|
|
b22c6057a3 | ||
|
|
6e9183ea8f | ||
|
|
ed47883bea | ||
|
|
60e6049971 | ||
|
|
06038dbbdc | ||
|
|
ca53059131 | ||
|
|
6cb4f118ea | ||
|
|
6856d75d88 | ||
|
|
8729f93d01 | ||
|
|
dbbcf5601e | ||
|
|
d9355ec85f | ||
|
|
43c8f43c49 | ||
|
|
28b7a75538 | ||
|
|
0158d753f0 | ||
|
|
3df5097442 | ||
|
|
866372ad54 | ||
|
|
9ca9f01ca3 | ||
|
|
2714448c61 | ||
|
|
98ee184652 | ||
|
|
6b9a06d175 | ||
|
|
9068874556 | ||
|
|
4f5d753104 | ||
|
|
ae53116fee | ||
|
|
9e5a7aefc8 | ||
|
|
6e2f8c6f30 | ||
|
|
affb2e58e9 | ||
|
|
fff1476714 | ||
|
|
08241eb1db | ||
|
|
1d12dd741f | ||
|
|
38c50c465d | ||
|
|
7804dfe791 | ||
|
|
37a874f471 | ||
|
|
b33517632e | ||
|
|
ed199e1478 | ||
|
|
435ec3b1b6 | ||
|
|
451fa73e3e | ||
|
|
2255238554 | ||
|
|
9a5f1e85e2 | ||
|
|
020d5a9c05 | ||
|
|
a7b5e77318 | ||
|
|
66445f61a5 | ||
|
|
13e5bf1666 | ||
|
|
dff56510da | ||
|
|
2449bfe241 | ||
|
|
4ec0f4aa27 | ||
|
|
0f9e264788 | ||
|
|
86973b6d36 | ||
|
|
6763758196 | ||
|
|
4fc5e088ad | ||
|
|
12daa614bb | ||
|
|
9b484d337c | ||
|
|
a13b38d6c1 | ||
|
|
1218ee000f | ||
|
|
0a6b607700 | ||
|
|
279cfb8b42 | ||
|
|
ee88bfe3f0 | ||
|
|
04ce0879c8 | ||
|
|
85ee81a42a | ||
|
|
81fd565b4f | ||
|
|
ece16af7ab | ||
|
|
9d19ce2355 | ||
|
|
cecb937145 | ||
|
|
0cad82029d | ||
|
|
25e9104375 | ||
|
|
6c28a82ebb | ||
|
|
7a4c2159a4 | ||
|
|
ae22b99888 | ||
|
|
7fb90f5afe | ||
|
|
d3f1914117 | ||
|
|
c70c292943 | ||
|
|
8f7683aee4 | ||
|
|
26245dfb10 | ||
|
|
b2eb9cfdc9 | ||
|
|
2dce4fe98c | ||
|
|
6d0ca0d6fc | ||
|
|
cd4d0ec20b | ||
|
|
8ef5d8bce4 | ||
|
|
098d947d87 | ||
|
|
5a6a148cfc | ||
|
|
18fa8357a8 | ||
|
|
e1b7eeaf22 | ||
|
|
b834ff7404 | ||
|
|
a04c36f5cd | ||
|
|
04882136f8 | ||
|
|
d08882cf58 | ||
|
|
f28076f3a4 | ||
|
|
978d70ad0c | ||
|
|
af4a316fa1 | ||
|
|
dbb8b5a133 | ||
|
|
0eecab4057 | ||
|
|
8316a492c9 | ||
|
|
2ab3c34402 | ||
|
|
70a47aeb5d | ||
|
|
7d1a16f7f7 | ||
|
|
eb18fef53d | ||
|
|
b7851e7671 | ||
|
|
fee56ae528 | ||
|
|
a74583b13b | ||
|
|
4942ae0079 | ||
|
|
9445a2bae5 | ||
|
|
3c9dea2830 | ||
|
|
1f2bd0f9fc | ||
|
|
ae0b384e44 | ||
|
|
b640ab7373 | ||
|
|
48e09a3f8a | ||
|
|
5f4450c7d2 | ||
|
|
3b150660b1 | ||
|
|
2bcb05ee6c | ||
|
|
e2a13465b6 | ||
|
|
0779a550a3 | ||
|
|
c03fa76ea1 | ||
|
|
874c3883e6 | ||
|
|
a190544519 | ||
|
|
102cc65fd2 | ||
|
|
0e6b4ad816 | ||
|
|
5237051e71 | ||
|
|
0eaa6000e0 | ||
|
|
4e1ddaeec5 | ||
|
|
b308e488f9 | ||
|
|
264f78eb11 | ||
|
|
9989ee9905 | ||
|
|
1913d0c83f | ||
|
|
0f083bcaaa | ||
|
|
150e0619c1 | ||
|
|
663558cc8c | ||
|
|
44f7c7bd78 | ||
|
|
3638cf60f7 | ||
|
|
d429d3023b | ||
|
|
ba1807c76f | ||
|
|
aaebd7478d | ||
|
|
6325ffefbb | ||
|
|
25e944f37c | ||
|
|
7f9617554a | ||
|
|
7ced5ae031 | ||
|
|
0e87138789 | ||
|
|
ee42a4b82d | ||
|
|
4d3d6e59e1 | ||
|
|
5b1e6de903 | ||
|
|
94a55190ee | ||
|
|
708d5bb507 | ||
|
|
e9fd74b379 | ||
|
|
b87a3821dd | ||
|
|
7c38339e16 | ||
|
|
e5afeed6db | ||
|
|
cc989d5844 | ||
|
|
3a72aadbab | ||
|
|
db396893f2 | ||
|
|
d9c0c58bbb | ||
|
|
dd16588c13 | ||
|
|
96039978aa | ||
|
|
0f1f4dec96 | ||
|
|
dfdc9dc6a5 | ||
|
|
f6e83eb28f | ||
|
|
3c57be80e1 | ||
|
|
b477a62a7d | ||
|
|
73ed09b6ba | ||
|
|
e3dd47431e | ||
|
|
25082c2bb2 | ||
|
|
470105ae36 | ||
|
|
e12658ade9 | ||
|
|
7320bcfd0b | ||
|
|
5e6f750cee | ||
|
|
0b6be66cfd | ||
|
|
4e9f932cfb | ||
|
|
56b195bd9e | ||
|
|
608ffcfd90 | ||
|
|
bff955d629 | ||
|
|
e264ae8eee | ||
|
|
9ea32d07eb | ||
|
|
e67ca4948b | ||
|
|
f4163e733a | ||
|
|
5baa876a55 | ||
|
|
bb46e3f37f | ||
|
|
8a87fa488d | ||
|
|
8148a453d0 | ||
|
|
aa37cd4688 | ||
|
|
ff21a3948d | ||
|
|
c99dfe7031 | ||
|
|
e60eecc6bf | ||
|
|
0028be9cda | ||
|
|
4520a05636 | ||
|
|
b80c98acd6 | ||
|
|
c269949986 | ||
|
|
cbeb422411 | ||
|
|
ac5c31747f | ||
|
|
99e83a57e3 | ||
|
|
7383454728 | ||
|
|
42f0b7c3b2 | ||
|
|
6cd35dc482 | ||
|
|
a26c886586 | ||
|
|
ee94ba03c2 | ||
|
|
049920b3fc | ||
|
|
895c41756a | ||
|
|
d4e62c0e96 | ||
|
|
544487218a | ||
|
|
fa45bcfe70 | ||
|
|
1ab6773910 | ||
|
|
72853d225d | ||
|
|
12eaa1e05a | ||
|
|
3b0360eb01 | ||
|
|
abe55aa7f3 | ||
|
|
0c6b6540f4 | ||
|
|
9e4f94867e | ||
|
|
081f14b5e8 | ||
|
|
2747eb61ec | ||
|
|
8116cae7df | ||
|
|
a0435fb890 | ||
|
|
4276ed731d | ||
|
|
93082bc94a | ||
|
|
1d775bd2d3 | ||
|
|
032cb2e900 | ||
|
|
ad8f77c33e | ||
|
|
50dce880c1 | ||
|
|
e9fa9d0d41 | ||
|
|
e84192d985 | ||
|
|
10a6a19e9e | ||
|
|
0200ff058e | ||
|
|
c52e02936d | ||
|
|
00af62e449 | ||
|
|
9290d67000 | ||
|
|
9cee4dd38a | ||
|
|
3d9a3615f8 | ||
|
|
a105821427 | ||
|
|
7a585796be | ||
|
|
f8cdb5cff5 | ||
|
|
e424478a1c | ||
|
|
5cb9ef8511 | ||
|
|
1b4e0aafaa | ||
|
|
0eca9521bc | ||
|
|
d666317a68 | ||
|
|
162cfe3d6b | ||
|
|
11ebc0c0c4 | ||
|
|
dd017c85d2 | ||
|
|
3d2c0f2baa | ||
|
|
232cae454a | ||
|
|
86a25dd76f | ||
|
|
678d25dacd | ||
|
|
a3e6df109d | ||
|
|
bb21ad533b | ||
|
|
6112abf673 | ||
|
|
95012b9ca5 | ||
|
|
35f9a92aef | ||
|
|
2e70a9714a | ||
|
|
418f239261 | ||
|
|
98a5b95407 | ||
|
|
6a3e91f13c | ||
|
|
1be9335815 | ||
|
|
0f908a1544 | ||
|
|
8b6678d4ee | ||
|
|
d14b2c7d09 | ||
|
|
dd6909908c | ||
|
|
ab17ef11a1 | ||
|
|
c6cd12703f | ||
|
|
1b996b9b82 | ||
|
|
c23051db93 | ||
|
|
604925f513 | ||
|
|
31e865759e | ||
|
|
16a7640e56 | ||
|
|
6cf0e03177 | ||
|
|
b34e99d156 | ||
|
|
cf8b56c0f4 | ||
|
|
0ca2b8d99c | ||
|
|
4098f2bf0b | ||
|
|
255fc9eca6 | ||
|
|
9f7e633c2b | ||
|
|
e7fa5b576d | ||
|
|
fd5998453d | ||
|
|
6d23ec5234 | ||
|
|
105f7d5b86 | ||
|
|
ee79b0750c | ||
|
|
ac0da92a58 | ||
|
|
6147293431 | ||
|
|
bf26faf2a2 | ||
|
|
aa038882e8 | ||
|
|
d76b99c77a | ||
|
|
3cf73ba09a | ||
|
|
9b08f2175b | ||
|
|
32e1111fc7 | ||
|
|
686a2c9141 | ||
|
|
421c419f69 | ||
|
|
661390e66f | ||
|
|
bda000f220 | ||
|
|
af3ee7fe09 | ||
|
|
cf07fc3787 | ||
|
|
cb34966f38 | ||
|
|
defe780c39 | ||
|
|
36dc23ae38 | ||
|
|
58fff59f1b | ||
|
|
2e6eed69e6 | ||
|
|
942fd2876e | ||
|
|
6de25bd7e1 | ||
|
|
845d8b383b | ||
|
|
0372937353 | ||
|
|
ab552ce387 | ||
|
|
fa1f7296f2 | ||
|
|
ca242c056c | ||
|
|
c9e3ad4335 | ||
|
|
d58d4857b0 | ||
|
|
6d96611d69 | ||
|
|
caad0ceaf9 | ||
|
|
417db14d5c | ||
|
|
a6d5961226 | ||
|
|
45bedcf1cb | ||
|
|
2f74cdaff8 | ||
|
|
788a9ca405 | ||
|
|
1ab2b9db01 | ||
|
|
cb16fe4305 | ||
|
|
9b822d1dff | ||
|
|
e7eec2ebf7 | ||
|
|
64aae6ca6b | ||
|
|
06e8279f2a | ||
|
|
da33c89a70 | ||
|
|
e965b8bb41 | ||
|
|
2f4781e4ce | ||
|
|
c7e8c54068 | ||
|
|
a09a35ed5c | ||
|
|
89cbbe2765 | ||
|
|
e9a373e328 | ||
|
|
02e06a9591 | ||
|
|
e0f99de75b | ||
|
|
cef956722a | ||
|
|
1672646e87 | ||
|
|
30c9a752bf | ||
|
|
2a3ac5ffab | ||
|
|
eb65c4c78b | ||
|
|
3d8857e01c | ||
|
|
f26a4660ea | ||
|
|
2f234cc589 | ||
|
|
aab37414c3 | ||
|
|
d04302c99f | ||
|
|
22776e7bb3 | ||
|
|
51ab17e3aa | ||
|
|
7997fbb0b0 | ||
|
|
4bd97d002f | ||
|
|
330d66918a | ||
|
|
c58309e685 | ||
|
|
7ca0493190 | ||
|
|
74380b039b | ||
|
|
33064660cf | ||
|
|
bd12800cca | ||
|
|
f613fb13cd | ||
|
|
c20770fcb3 | ||
|
|
f6cd646205 | ||
|
|
f5711fcf8f | ||
|
|
3d20bb97d0 | ||
|
|
c1b2fdf597 | ||
|
|
b6d02cce17 | ||
|
|
810528dfb4 | ||
|
|
37fe071041 | ||
|
|
df5b260f5f | ||
|
|
c3d48ff36e | ||
|
|
3d8a6c6e5a | ||
|
|
048a745371 | ||
|
|
c1007683a5 | ||
|
|
047a2b818a | ||
|
|
bf91e47ddc | ||
|
|
8bbe8cf57d | ||
|
|
d492500812 | ||
|
|
fc9f23385f | ||
|
|
d5222bad1e | ||
|
|
0a41704490 | ||
|
|
48cc5048af | ||
|
|
aec9476438 | ||
|
|
c266e9ecaa | ||
|
|
a313c227d5 | ||
|
|
9a25c2a87d | ||
|
|
817d2f0ec2 | ||
|
|
0c54348f69 | ||
|
|
cb4c94f3ab | ||
|
|
9150137c47 | ||
|
|
7b0c1b0b9b | ||
|
|
47576b63f0 | ||
|
|
cb630e7043 | ||
|
|
5404ef849d | ||
|
|
c3c836de4d | ||
|
|
6dcec3c42f | ||
|
|
f7941f80ab | ||
|
|
f9657b75f6 | ||
|
|
2cb8d82648 | ||
|
|
9329d9d008 | ||
|
|
47d9c6c4b1 | ||
|
|
6eed461162 | ||
|
|
b995436ea4 | ||
|
|
f7b707c3da | ||
|
|
c04ee0f821 | ||
|
|
767117f54e | ||
|
|
a04191b11e | ||
|
|
9f6e7b49be | ||
|
|
2ee8e19668 | ||
|
|
e7ccab2ad9 | ||
|
|
52633544ff | ||
|
|
69f4f11bc7 | ||
|
|
c885ebb7e8 | ||
|
|
6bebd1d53a | ||
|
|
d0ae674155 | ||
|
|
ce7f249880 | ||
|
|
2fc98ad0df | ||
|
|
bb41f61263 | ||
|
|
130d2c5af0 | ||
|
|
1f270ae8f0 | ||
|
|
9854e207ae | ||
|
|
572ebeef84 | ||
|
|
a9a6c07c1a | ||
|
|
b43d84295c | ||
|
|
1f38c8fc8c | ||
|
|
05da44aa52 | ||
|
|
0af42c77c8 | ||
|
|
068b252db6 | ||
|
|
35d3b371d2 | ||
|
|
f9fb929b45 | ||
|
|
0fe5de8206 | ||
|
|
323c653275 | ||
|
|
4b20cdd001 | ||
|
|
5aded2b349 | ||
|
|
24ff23b148 | ||
|
|
99425f0991 | ||
|
|
9619f5b3a7 | ||
|
|
f92fde2800 | ||
|
|
f6096e3020 | ||
|
|
41c970efd4 | ||
|
|
1323684153 | ||
|
|
642d946c17 | ||
|
|
d4565fd728 | ||
|
|
75d99e17f0 | ||
|
|
cb92ad0577 | ||
|
|
4ded3b90de | ||
|
|
957540c362 | ||
|
|
2025949265 | ||
|
|
7a4fdfb410 | ||
|
|
fed72384ba | ||
|
|
034cc75a61 | ||
|
|
dd3c957f8b | ||
|
|
fc28c97400 | ||
|
|
dcdeefe85e | ||
|
|
c0ffe59d47 | ||
|
|
af99895168 | ||
|
|
2273550fea | ||
|
|
d4af3421ba | ||
|
|
d431fec1ed | ||
|
|
ebebb05af3 | ||
|
|
8d0493bf9d | ||
|
|
b1ed4461af | ||
|
|
757b13544a | ||
|
|
91ec97220b | ||
|
|
9f85619334 | ||
|
|
374ad2f2e5 | ||
|
|
a52af89cad | ||
|
|
b9050c0e3c | ||
|
|
ffb7486a01 | ||
|
|
3c2b852473 | ||
|
|
a9214486cf | ||
|
|
76f128343e | ||
|
|
c342baa138 | ||
|
|
353bbbd61a | ||
|
|
27661f711f | ||
|
|
0cb814d26e | ||
|
|
7ec901297b | ||
|
|
48805eea66 | ||
|
|
ed708b5fb8 | ||
|
|
d9245b8aee | ||
|
|
459b360897 | ||
|
|
ab2842af14 | ||
|
|
8b62e42323 | ||
|
|
c3cfecb5fa | ||
|
|
55c619bf87 | ||
|
|
ff18f69dd0 | ||
|
|
c2cb359bf7 | ||
|
|
e03187920b | ||
|
|
eeedafe637 | ||
|
|
f1e2083506 | ||
|
|
b6fa73d94c | ||
|
|
0546d7e8b9 | ||
|
|
d91f569aff | ||
|
|
17d1a9619c | ||
|
|
72204740df | ||
|
|
745f8b63b0 | ||
|
|
97f4fa91ca | ||
|
|
35e1477c24 | ||
|
|
c42daa5dba | ||
|
|
214ba50ecc | ||
|
|
64a12fe5c8 | ||
|
|
276cb0f7c6 | ||
|
|
9020d1e474 | ||
|
|
bcb2a9386d | ||
|
|
adcdf9bd6a | ||
|
|
88a2f354b4 | ||
|
|
e1faa64af7 | ||
|
|
6d182a5984 | ||
|
|
8202d44051 | ||
|
|
9a4b933976 | ||
|
|
f0d7b82bf9 | ||
|
|
a5f94d736a | ||
|
|
81321e44e1 | ||
|
|
716fcb7209 | ||
|
|
09f553d998 | ||
|
|
f00fd246b9 | ||
|
|
35a97946ac | ||
|
|
3445b792c8 | ||
|
|
124eeab893 | ||
|
|
5206c99151 | ||
|
|
dcaa980822 | ||
|
|
50a9580505 | ||
|
|
06632a6918 | ||
|
|
f9dbfe9a77 | ||
|
|
4d652e7f02 | ||
|
|
cc2e5f8775 | ||
|
|
aa0632d274 | ||
|
|
e8522b1e62 | ||
|
|
7ade40ace2 | ||
|
|
73cbc9f11e | ||
|
|
6c9458cdac | ||
|
|
0fa8a1c87e | ||
|
|
a88fde30ed | ||
|
|
675d576c58 | ||
|
|
86405d89f4 |
2536 changed files with 182369 additions and 183010 deletions
30
.dockerignore
Normal file
30
.dockerignore
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Local volumes
|
||||
/config
|
||||
/data
|
||||
/db
|
||||
|
||||
# Updated through volumes
|
||||
Server/data
|
||||
Server/worldprops
|
||||
|
||||
# Env files containing secrets
|
||||
/.env
|
||||
/*.env
|
||||
|
||||
# Log files
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Git files
|
||||
.git
|
||||
.gitattributes
|
||||
.gitignore
|
||||
|
||||
# Basic stuff
|
||||
*.md
|
||||
LICENSE
|
||||
.gitlab-ci.yml
|
||||
|
||||
# Docker files
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
13
.gitignore
vendored
13
.gitignore
vendored
|
|
@ -18,7 +18,8 @@ Server/data/global_kill_stats.json
|
|||
Server/ge_test.db
|
||||
Server/latestdump.txt
|
||||
Management-Server/managementprops/
|
||||
Server/worldprops/
|
||||
Server/worldprops/*
|
||||
!Server/worldprops/default.conf
|
||||
|
||||
**/.idea/workspace.xml
|
||||
**/.idea/tasks.xml
|
||||
|
|
@ -31,3 +32,13 @@ gradle
|
|||
**/*.swo
|
||||
build/kotlin/sessions/
|
||||
**/*.iml
|
||||
Server/hasRan.txt
|
||||
|
||||
# Local volumes
|
||||
/config
|
||||
/data
|
||||
/db
|
||||
|
||||
# Env files containing secrets
|
||||
/.env
|
||||
/*.env
|
||||
|
|
|
|||
|
|
@ -6,12 +6,15 @@ variables:
|
|||
# when running from the command line.
|
||||
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-fast --show-version"
|
||||
|
||||
# This template uses jdk8 for verifying and deploying images
|
||||
image: maven:3-openjdk-11
|
||||
image: maven:3-openjdk-11-slim
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq && apt-get install -qq -y --no-install-recommends jq
|
||||
- free -mh
|
||||
- 'free -mh'
|
||||
- 'apt-get update -q'
|
||||
|
||||
# Cache downloaded dependencies and plugins between builds.
|
||||
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
|
||||
|
|
@ -23,7 +26,7 @@ verify:jdk11:
|
|||
stage: build
|
||||
script:
|
||||
- 'cd Server'
|
||||
- 'mvn $MAVEN_CLI_OPTS verify -DskipTests'
|
||||
- 'mvn $MAVEN_CLI_OPTS verify'
|
||||
except:
|
||||
variables:
|
||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
|
|
@ -31,6 +34,7 @@ verify:jdk11:
|
|||
test:json:
|
||||
stage: test
|
||||
script:
|
||||
- 'apt-get install -q -y --no-install-recommends jq'
|
||||
- 'find . -name \*.json -type f -print0 | xargs -0 -n1 -P8 jq empty'
|
||||
except:
|
||||
variables:
|
||||
|
|
|
|||
0
.gitlab/.gitkeep
Normal file
0
.gitlab/.gitkeep
Normal file
0
.gitlab/issue_templates/.gitkeep
Normal file
0
.gitlab/issue_templates/.gitkeep
Normal file
17
.gitlab/issue_templates/Default.md
Normal file
17
.gitlab/issue_templates/Default.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
What I did:
|
||||
|
||||
What I expected to happen:
|
||||
|
||||
What actually happened:
|
||||
|
||||
IDs of related NPCs/items:
|
||||
|
||||
2009-era source (if relevant):
|
||||
|
||||
Screenshots or video:
|
||||
|
||||
LIVE SERVER username affected by this issue:
|
||||
|
||||
**Bug reports are not accepted by SP users. SP is often out of date and results in invalid bug reports.**
|
||||
|
||||
**If the bug is exploitable make sure you tick the confidential checkbox below**
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Starting out with the openjdk-11-slim image
|
||||
FROM maven:3-openjdk-11-slim
|
||||
|
||||
# Set working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy all sources etc
|
||||
COPY . .
|
||||
|
||||
# Make sure ./run has permissions
|
||||
RUN chmod +x run
|
||||
|
||||
# Run it
|
||||
CMD ["./run"]
|
||||
78
README.md
78
README.md
|
|
@ -72,7 +72,7 @@ There are many ways everyone can contribute! From the most seasoned programmers
|
|||
* **Wiki Editors**: Did you know we have a wiki? Well it's always in need of people to fill it out and stay on top of it. Editing the wiki is one of the easiest ways you can contribute to 2009Scape! If you're an active player and have the will, there's so much you could be helping out with over at the wiki. [Click here to go to the wiki](https://cdn.2009scape.org/wiki/doku.php?id=start).
|
||||
|
||||
|
||||
* **JSON editors**: We could always use more JSON editors! Please note that JSON editing **must** be done using the [Thanos Tool](https://gitlab.com/2009scape/rs09-thanos-tool/-/jobs/artifacts/master/raw/build/libs/thanostool.jar?job=build).
|
||||
* **JSON editors**: We could always use more JSON editors! Please note that JSON editing **must** be done using the [Thanos Tool](https://gitlab.com/2009scape/tools/rs09-thanos-tool/-/jobs/5153567519/artifacts/file/build/libs/zaros.jar). **This does not run on modern Java** and requires **Java 11** to run (using the usual 'java -jar zaros.jar').
|
||||
|
||||
|
||||
* **Authenticity Auditors**: As a remake, authenticity is central to our core values! We could always use someone to go through the game and create large lists of simple tasks that can be done to bring us closer to the authentic 2009 game! The preferred way to do this is one-area-at-a-time. If you want to see an example of some audits we've done in the past, take a look [here](https://gitlab.com/2009scape/2009scape/-/issues/46).
|
||||
|
|
@ -125,13 +125,85 @@ Start the game server with the included run script. Use `./run -h` for more info
|
|||
|
||||
Start the game server with `run-server.bat`
|
||||
|
||||
#### Docker
|
||||
|
||||
Make sure [Docker Engine](https://docs.docker.com/engine/install/) & [Docker Compose](https://docs.docker.com/compose/install/) plugin are installed first:
|
||||
|
||||
Go to the project root where the git repository is cloned into:
|
||||
|
||||
```bash
|
||||
cd /path/to/project-dir
|
||||
```
|
||||
|
||||
To configure the database, copy the mysql env file template to a env file in the project root:
|
||||
|
||||
```bash
|
||||
cp mysql.env.example mysql.env
|
||||
```
|
||||
|
||||
Customize the env file however necessary.
|
||||
|
||||
Create a new directory called 'config' into the project root.
|
||||
|
||||
```bash
|
||||
mkdir config
|
||||
```
|
||||
|
||||
Copy the server config file template in the config directory:
|
||||
|
||||
```bash
|
||||
cp Server/worldprops/default.conf config/default.conf
|
||||
```
|
||||
|
||||
Edit the server configuration file as per needed.
|
||||
|
||||
Go to the project root directory and execute:
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
Which will build the docker image using the local Dockerfile and starts the server and database containers.
|
||||
|
||||
The previous up command should be run every time the server sources are modified to propagate the changes to the container.
|
||||
|
||||
For the first time, the server compilation process takes a long time. Grab some coffee in the meanwhile.
|
||||
|
||||
You can check (and follow) the containers logs by running the following in the project root directory (-f for follow and Ctrl+C to stop):
|
||||
|
||||
```bash
|
||||
docker compose logs -f
|
||||
```
|
||||
|
||||
Any compilation or runtime errors will be logged here.
|
||||
|
||||
If you have already compiled the server and made no changes to the sources, you can simply run without the build option (however it will be cached anyways):
|
||||
|
||||
```bash
|
||||
docker compose up
|
||||
```
|
||||
|
||||
To later restart the server to apply simple configuration changes, in the project root directory run:
|
||||
|
||||
```bash
|
||||
docker compose restart server
|
||||
```
|
||||
|
||||
To shut down / take down the server, in the project root directory run:
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
The database files, build cache and config files will be persisted on the host filesystem for easy backup management.
|
||||
|
||||
### License
|
||||
|
||||
We use the AGPL 3.0 license, which can be found [here](https://www.gnu.org/licenses/agpl-3.0.en.html). Please be sure to read and understand the license. Failure to follow the guidelines outlined in the license will result in legal action. If you know or hear of anyone breaking this license, please send a report, with proof, to Red Bracket#8151, ceikry#2724, or woahscam#8535 on discord or email woahscam@hotmail.com. **We WILL NOT change the license to fit your needs.**
|
||||
|
||||
### Contact
|
||||
|
||||
**Reminder: There is no official support for setting up your own server. Do not ping/dm developers, or ask in support channels about setting up your server. Support for the live server and 2009Scape single-player is available in the Discord.**
|
||||
**Reminder: There is no official support for setting up your own server. Do not ping/dm developers, or ask in support channels about setting up your server. Support for the live server and 2009Scape single-player is available on the [2009Scape forums](https://forum.2009scape.org/).**
|
||||
|
||||
|
||||
[license-shield]: https://img.shields.io/badge/license-AGPL--3.0-informational
|
||||
|
|
@ -149,4 +221,4 @@ These credits can be spent in the 2009Scape Reward Shop. It's important to be cl
|
|||
|
||||
Testers are not the only people who can gain credits - other ways of earning credits can be found on [the 2009Scape website](https://2009scape.org/site/game_guide/credits.html).
|
||||
|
||||
Please be patient! The Credit system is not fully complete yet, so it will take a long time for credits to be awarded.
|
||||
Please be patient! The Credit system is not fully complete yet, so it will take a long time for credits to be awarded.
|
||||
1
Server/.gitignore
vendored
1
Server/.gitignore
vendored
|
|
@ -2,6 +2,7 @@ bin/**
|
|||
out/**
|
||||
data/logs/**
|
||||
data/profile/**
|
||||
data/playerstats/**
|
||||
.idea/**
|
||||
/bin
|
||||
.DS_Store**
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
<ObjectAction mode="add" id="39242" x="2955" y="3273" z="0" direction="w"/>
|
||||
<ObjectAction mode="add" id="39241" x="2955" y="3274" z="0" />
|
||||
<ObjectAction mode="add" id="20987" x="2821" y="2996" z="0" direction="s"/>
|
||||
<ObjectAction mode="add" id="9472" x="3353" y="3951" z="0" direction="s"/>
|
||||
<ObjectAction mode="add" id="21301" x="2662" y="3162" z="0" direction="e"/>
|
||||
<ObjectAction mode="add" id="4176" x="2629" y="3661" z="2" type="4" direction="e"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"This is my own dialogue",
|
||||
"@name run.",
|
||||
"@name you cant hide from me.",
|
||||
"jajajajajaja",
|
||||
"Jajajajajaja",
|
||||
"How do i get to Varrock @name?",
|
||||
"How do i get to Camelot @name?",
|
||||
"How do i get to Taverly @name?",
|
||||
|
|
@ -21,17 +21,17 @@
|
|||
"How do i get to Yanille @name?",
|
||||
"How do i get to Catherby @name?",
|
||||
"Gotta go srry.",
|
||||
"wiggle wiggle wiggle yeah",
|
||||
"Wiggle wiggle wiggle yeah",
|
||||
"@name lookin goofy",
|
||||
"@name lookin stoopid",
|
||||
"@name lookin like a red bracket",
|
||||
"@name get yo weasel lookin ass outta here",
|
||||
"@name lookin like some sort of twocan sam",
|
||||
" /hop world 1 got a noob here!",
|
||||
"woot",
|
||||
"Woot",
|
||||
"Hows your day been @name?",
|
||||
"heyy @name :)",
|
||||
"gtg srry",
|
||||
"Heyy @name :)",
|
||||
"Gtg srry",
|
||||
"I wont answer your questions @name",
|
||||
"Stop asking questions @name",
|
||||
"Roflmao",
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
"Nice Armor @name!",
|
||||
"Nice Weapon @name!",
|
||||
"Venezuela #1",
|
||||
"2009Scape and chill @name?",
|
||||
"2009scape and chill @name?",
|
||||
"@name is my girlfriend",
|
||||
"Buying gf",
|
||||
"Bank sale pm me for info",
|
||||
|
|
@ -61,14 +61,14 @@
|
|||
"Fuckin sit @name.",
|
||||
"Error: Botting client broken tell Evilwaffles.",
|
||||
"@name bots all the time",
|
||||
"report @name",
|
||||
"apparently @name bots",
|
||||
"Report @name",
|
||||
"Apparently @name bots",
|
||||
"@name hates kermit",
|
||||
"There are no mods on to help you",
|
||||
"Report me, you wont",
|
||||
"Yes, Im botting. And?",
|
||||
"ERROR: BOTSCRIPT 404. REPORT TO BOT OWNER (Evilwaffles)",
|
||||
"flash2:wave: FUCK",
|
||||
"Flash2:wave: FUCK",
|
||||
"I love 2009Scape!",
|
||||
"Ja Ja Ja Ja",
|
||||
"This is fun!",
|
||||
|
|
@ -105,9 +105,9 @@
|
|||
"Trade me @name",
|
||||
"LOL",
|
||||
"How do I get to lumbrich",
|
||||
"bruh",
|
||||
"poggers",
|
||||
"shitpost",
|
||||
"Bruh",
|
||||
"Poggers",
|
||||
"Shitpost",
|
||||
"I wish i could find an RS Gf",
|
||||
"Where do you find runite ore @name?",
|
||||
"Where is the best coal location @name?",
|
||||
|
|
@ -135,41 +135,39 @@
|
|||
"Im not a bot",
|
||||
"Nah Im a real person",
|
||||
"Bruh are you even a real person lol?",
|
||||
"e",
|
||||
"E",
|
||||
"Hellooooo @name",
|
||||
"wc lvl @name?",
|
||||
"fletching level @name?",
|
||||
"firemaking level @name?",
|
||||
"Wc lvl @name?",
|
||||
"Fletching level @name?",
|
||||
"Firemaking level @name?",
|
||||
"Have you seen the dude in the ge?",
|
||||
"Wonderful weather today @name",
|
||||
"Lowkey drunk af rn",
|
||||
"I am so tired",
|
||||
"Wassup @name",
|
||||
"follow me @name!",
|
||||
"Follow me @name!",
|
||||
"Server goes brrrr",
|
||||
"bruh i am not a bot",
|
||||
"Bruh i am not a bot",
|
||||
"I think @name is a bot",
|
||||
"Are you a bot @name?",
|
||||
"insert spiderman meme here",
|
||||
"pot calling the kettle black etc",
|
||||
"ooh, a piece of candy",
|
||||
"Insert spiderman meme here",
|
||||
"Pot calling the kettle black etc",
|
||||
"Ooh, a piece of candy",
|
||||
"I love woodcutting",
|
||||
"Im going to go level up later",
|
||||
"I love mining shooting stars",
|
||||
" /this @name looks dumb",
|
||||
"AAAAAAAAAAAAAAAAAAAAAAAAHHHHHH!!!",
|
||||
"como estas @name",
|
||||
"Summer = always the best community manaer",
|
||||
"so how about that ceikry guy",
|
||||
"so how about that kermit dude",
|
||||
"woah is an abusive mod",
|
||||
"Como estas @name",
|
||||
"So how about that ceikry guy",
|
||||
"So how about that kermit dude",
|
||||
"Woah is an abusive mod",
|
||||
"I heard Woah and Ceikry are dating now",
|
||||
"House party in Yanille!",
|
||||
"Can i have some gp @name?",
|
||||
"Where do i find partyhats?",
|
||||
"Why do mobs drop boxes?",
|
||||
"What exp rate do you play on @name?",
|
||||
"Have you met Summer?",
|
||||
"Hey @name",
|
||||
"Hey @name",
|
||||
"Hey @name",
|
||||
|
|
@ -190,33 +188,33 @@
|
|||
"NobodyCLP has big feet",
|
||||
"Chicken tendies for dindin",
|
||||
"Spicey Chicken tendies is litty as a mf titty",
|
||||
"red bracket stinky",
|
||||
"ra ra rasputin",
|
||||
"lover of the russian queen",
|
||||
"Red bracket stinky",
|
||||
"Ra ra rasputin",
|
||||
"Lover of the russian queen",
|
||||
"Whens the next update coming out?",
|
||||
"How many players are maxed?",
|
||||
"I dont use discord @name",
|
||||
"I dont use the CC @name",
|
||||
"Why should i use discord?",
|
||||
"2009Scape is life",
|
||||
"brb gotta make dinner",
|
||||
"Brb gotta make dinner",
|
||||
"I need to go to the GE",
|
||||
"@name can i have a ge tele?",
|
||||
"lol @name shut up",
|
||||
"Lol @name shut up",
|
||||
"Where are teak trees?",
|
||||
"How do i make planks @name?",
|
||||
"Idk about that scraggley ass alex guy.",
|
||||
"Rusty? More like Crusty af lmfao.",
|
||||
"I need to sell some stuff on the ge",
|
||||
"I have so many logs to sell lol",
|
||||
"nah",
|
||||
"yes",
|
||||
"Nah",
|
||||
"Yes",
|
||||
"Where can i mine iron?",
|
||||
"Where can i mine tin?",
|
||||
"Where can i mine copper?",
|
||||
"Where can i mine clay?",
|
||||
"Where can i mine coal?",
|
||||
"no",
|
||||
"No",
|
||||
"We are no strangers to love",
|
||||
"You know the rules and so do I",
|
||||
"A full commitment's what I'm thinking of",
|
||||
|
|
@ -230,10 +228,10 @@
|
|||
"Never gonna make you cry",
|
||||
"Never gonna say goodbye",
|
||||
"Never gonna tell a lie and hurt you",
|
||||
"why",
|
||||
"why",
|
||||
"why",
|
||||
"why",
|
||||
"Why",
|
||||
"Why",
|
||||
"Why",
|
||||
"Why",
|
||||
"Why does it not show your messages in the chatbox?",
|
||||
"Why do you not show up in chat?",
|
||||
"Why do you not show up in chat @name?",
|
||||
|
|
@ -241,7 +239,7 @@
|
|||
"When did you start playing @name?",
|
||||
"When did you start on this server @name?",
|
||||
"When did you first get here @name?",
|
||||
"russias greatest love machine",
|
||||
"Russias greatest love machine",
|
||||
"Never gonna run around and desert you",
|
||||
"Two things are infinite, the universe & @names stupidity",
|
||||
"If you tell the truth, you dont have to remember anything.",
|
||||
|
|
@ -259,7 +257,7 @@
|
|||
"What do you think @name?",
|
||||
"How does that sound @name?",
|
||||
"That sounds great @name.",
|
||||
"I’m learning English.",
|
||||
"I'm learning English.",
|
||||
"I don't understand.",
|
||||
"Could you repeat that please @name?",
|
||||
"Could you please talk slower @name?",
|
||||
|
|
@ -283,26 +281,26 @@
|
|||
"@name?",
|
||||
"@name how long have you played",
|
||||
"@name world 1 or world 2?",
|
||||
"what is your main world @name?",
|
||||
"What is your main world @name?",
|
||||
"I prefer world 1 tbh",
|
||||
"I prefer world 2 tbh",
|
||||
"@name world 1 for life",
|
||||
"@name fog bots when?",
|
||||
"damn somalian pirates",
|
||||
"bracket more like brrrrrr acket",
|
||||
"why the racket bracket",
|
||||
"Damn somalian pirates",
|
||||
"Bracket more like brrrrrr acket",
|
||||
"Why the racket bracket",
|
||||
"Hi @name I am dad",
|
||||
"@name likes dad jokes",
|
||||
"ur nuts @name",
|
||||
"lootshare go brr",
|
||||
"partay with froggay",
|
||||
"Ur nuts @name",
|
||||
"Lootshare go brr",
|
||||
"Partay with froggay",
|
||||
"Know what else is lame? Not being able to play 2009scape right now",
|
||||
"Can you even grind on osrs",
|
||||
"i botted to 88 fishing",
|
||||
"I botted to 88 fishing",
|
||||
"Do not forget to vote in running polls!",
|
||||
"Always check announcments",
|
||||
"we thrivin",
|
||||
"ship @name",
|
||||
"We thrivin",
|
||||
"Ship @name",
|
||||
"Dont forget to vote 2009scape!",
|
||||
"Kermit is too legit 2 quit",
|
||||
"Out here on the range we are having fun",
|
||||
|
|
@ -312,11 +310,11 @@
|
|||
"I dont like him @name",
|
||||
"I dont like it @name",
|
||||
"Im an American.",
|
||||
"ima go pickup my lady ting",
|
||||
"that portuguese dude is something else",
|
||||
"Ima go pickup my lady ting",
|
||||
"That portuguese dude is something else",
|
||||
"@name!! @name!!",
|
||||
"bowdi boy",
|
||||
"i love bowdi... sometimes",
|
||||
"Bowdi boy",
|
||||
"I love bowdi... sometimes",
|
||||
"@name = @name",
|
||||
"I'm bacon.. go on dad... say it",
|
||||
"I'm going to leave.",
|
||||
|
|
@ -340,7 +338,7 @@
|
|||
"I couldn't agree more @name",
|
||||
"It cost me a fortune @name",
|
||||
"I am dog tired",
|
||||
"Don’t take it personally",
|
||||
"Don't take it personally",
|
||||
"We will be having a good time",
|
||||
"Same as always @name",
|
||||
"No problem",
|
||||
|
|
@ -362,40 +360,23 @@
|
|||
"530 gang for life",
|
||||
"@name, have you read the rules?",
|
||||
"@name, have you checked out the forums?",
|
||||
"why are the leprechauns moving?",
|
||||
"Why are the leprechauns moving?",
|
||||
"I am beyond the point of no return!",
|
||||
"Nothin' personnel, kid.",
|
||||
"All your base are belong to us",
|
||||
"May Guthix bring you balance.",
|
||||
"May Guthix bring you balance.",
|
||||
"May Guthix bring you balance.",
|
||||
"Thy death was not in vain, for it brought some balance to the world. May Guthix bring you rest.",
|
||||
"May you walk the path, and never fall, for Guthix walks beside thee on thy journey. May Guthix bring you peace.",
|
||||
"All things must end, as all begin; Only Guthix knows the role thou must play. May Guthix bring you balance.",
|
||||
"In life, in death, in joy, in sorrow: May thine experience show thee balance. May Guthix bring you balance.",
|
||||
"Thou must do as thou must, no matter what. Thine actions bring balance to this world. May Guthix bring you balance.",
|
||||
"The river flows, the sun ignites, May you stand with Guthix in thy fights. May Guthix bring you balance.",
|
||||
"A journey of a single step, May take thee over a thousand miles. May Guthix bring you balance.",
|
||||
"Zamorak give me strength!",
|
||||
"Zamorak give me strength!",
|
||||
"Zamorak give me strength!",
|
||||
"May your bloodthirst never be sated, and may all your battles be glorious. Zamorak bring you strength.",
|
||||
"There is no opinion that cannot be proven true...by crushing those who choose to disagree with it. Zamorak give me strength!",
|
||||
"Battles are not lost and won; They simply remove the weak from the equation. Zamorak give me strength!",
|
||||
"Those who fight, then run away, shame Zamorak with their cowardice. Zamorak give me strength!",
|
||||
"Battle is by those who choose to disagree with it. Zamorak give me strength!",
|
||||
"Strike fast, strike hard, strike true: The strength of Zamorak will be with you. Zamorak give me strength!",
|
||||
"The weak deserve to die, so the strong may flourish. This is the creed of Zamorak.",
|
||||
"This is Saradomin's wisdom.",
|
||||
"This is Saradomin's wisdom.",
|
||||
"This is Saradomin's wisdom.",
|
||||
"Go in peace in the name of Saradomin; may his glory shine upon you like the sun.",
|
||||
"Thy cause was false, thy skills did lack; See you in Lumbridge when you get back.",
|
||||
"Protect your self, protect your friends. Mine is the glory that never ends. This is Saradomin's wisdom.",
|
||||
"The darkness in life may be avoided, by the light of wisdom shining. This is Saradomin's wisdom.",
|
||||
"Show love to your friends, and mercy to your enemies, and know that the wisdom of Saradomin will follow. This is Saradomin's wisdom.",
|
||||
"A fight begun, when the cause is just, will prevail over all others. This is Saradomin's wisdom.",
|
||||
"The currency of goodness is honour; It retains its value through scarcity. This is Saradomin's wisdom.",
|
||||
"For Camelot!",
|
||||
"Firmly grasp it!",
|
||||
"My legs!",
|
||||
|
|
@ -412,7 +393,7 @@
|
|||
"Fluff",
|
||||
"Bwuh",
|
||||
"I'm literally just mothin' bro",
|
||||
"Certified 2009scape classic.",
|
||||
"Certified 2009Scape Classic.",
|
||||
"Make sure to like, comment and subscribe @name it really helps",
|
||||
"Real 2009scape hours!!! Murder that like if you up!!!!",
|
||||
"W00t!",
|
||||
|
|
@ -426,32 +407,32 @@
|
|||
"Drip check",
|
||||
"Uhuhuhuhuhuhuhuhu",
|
||||
"Ahhhhhhhhhhhhhhhh",
|
||||
"yall got any deez?",
|
||||
"Yall got any deez?",
|
||||
"Deez nuts",
|
||||
"When she give you that yoinky sploinky",
|
||||
"Sir, this is a 2009scape.",
|
||||
"Sir, this is a 2009Scape.",
|
||||
"Oh dear! You are dead!",
|
||||
"Cor blimey, mate! What are ye doing in me pockets?",
|
||||
"yeah i got funnies",
|
||||
"read muv luv",
|
||||
"Yeah i got funnies",
|
||||
"Read muv luv",
|
||||
"Why doesn't she love me bros?",
|
||||
"@name is off the goop don't listen to the clown",
|
||||
"do yall got laptops",
|
||||
"cfunny play the alien warp sound effect",
|
||||
"Do yall got laptops",
|
||||
"Cfunny play the alien warp sound effect",
|
||||
"Ware to all whom doom hither, where cope is all yet constant.",
|
||||
"Who wants to come G W D?",
|
||||
"How do I make money?",
|
||||
"Ironmen stand alone together!",
|
||||
"based",
|
||||
"where is she",
|
||||
"Based",
|
||||
"Where is she",
|
||||
"*S N I I I I I I I I I F F F F F F F F F F F*",
|
||||
"Hey @name, who was in Paris?",
|
||||
"Huh whuh?",
|
||||
"who's lone?",
|
||||
"who *is* he?",
|
||||
"Who's lone?",
|
||||
"Who *is* he?",
|
||||
"Hi @name, I'm Dad!",
|
||||
"anyone wanna play melty blood after I high alch these bows?",
|
||||
"buru nyaaaa",
|
||||
"Anyone wanna play melty blood after I high alch these bows?",
|
||||
"Buru nyaaaa",
|
||||
"Number 15, Taverley Dungeon Black Dragons.",
|
||||
"House party at Rimmington! Host: @name!",
|
||||
"Spending 200m! Trade me, no junk!",
|
||||
|
|
@ -461,19 +442,19 @@
|
|||
"Nice outfit @name, does it come in children's size 12?",
|
||||
":)",
|
||||
":D",
|
||||
"die screaming",
|
||||
"Die screaming",
|
||||
"Only on Tuesdays",
|
||||
"we stan 2009scape",
|
||||
"We stan 2009scape",
|
||||
"There is no spoon",
|
||||
"Where's the cow level?",
|
||||
"Join 2009scape Clan Chat!",
|
||||
"Join 2009scape Cc!",
|
||||
"Chop chop!",
|
||||
"Runescape rox my sox!!!!!!1",
|
||||
"2009Scape rox my sox!!!!!!1",
|
||||
"Type ::scripts for all 99s",
|
||||
"Help I just died to Evil Chicken and I lost my stuff!",
|
||||
"Can you fight Bandos in this game?",
|
||||
"one bad gloop",
|
||||
"One bad gloop",
|
||||
"@name is not cute or funny",
|
||||
"You have committed crimes against Gielinor and her people. What say you?",
|
||||
"Barrows trauma",
|
||||
|
|
@ -488,7 +469,7 @@
|
|||
"Praise Andrew Gower",
|
||||
"Please help me I can't stop playing 2009scape",
|
||||
"Are you ignoring me, @name?!",
|
||||
"i agree with this rfc can we put it in the game please",
|
||||
"I agree with this rfc can we put it in the game please",
|
||||
"@name, we've been trying to reach you about your car's extended warranty",
|
||||
"Trimming armour, 25k gp",
|
||||
"Hey why does my furniture disappear?",
|
||||
|
|
@ -498,21 +479,525 @@
|
|||
"Shlisshalpshlaap",
|
||||
"Somebody call for an exterminator?",
|
||||
"Decisive action. Should work.",
|
||||
"R E A D Y T O R A I S E S O M E H E L L",
|
||||
"Darkness overpowering.",
|
||||
"Got any questions about propane? Or propane accessories?",
|
||||
"When someone asks me if I am a god, I say Y E S!!!",
|
||||
"You run out of Marines?",
|
||||
"Goliath Online",
|
||||
"I'm escaping to the one place that hasn't been corrupted by Capitalism. Lunar Isle!",
|
||||
"Selling wildy protection, 100k gp",
|
||||
"Can’t we get you on Mastermind, @name? Next contestant – @name from Lumbridge. Special subject – the bleedin’ obvious.",
|
||||
"Oh, you’re German! I’m sorry, I thought there was something wrong with you.",
|
||||
"Listen, don’t mention the war! I mentioned it once, but I think I got away with it all right.",
|
||||
"Can't we get you on Mastermind, @name?",
|
||||
"Listen, don't mention the war! I mentioned it once, but I think I got away with it all right.",
|
||||
"Cunnilingus and psychiatry brought us to this.",
|
||||
"Oh, poor baby. What do you want, a Brimstail's Sampler?",
|
||||
"There's an old TzHarrian saying, you fuck up once, you lose two teeth.",
|
||||
"The lineup consisted simply of six hydrocoptic marzelvanes so fitted to the ambifacient lunar waneshaft that sidefumbling was prevented."
|
||||
"Ah, the Wilderness... where dreams of riches meet a swift demise.",
|
||||
"Who needs a quest guide? I've got the whole wiki memorized.",
|
||||
"Buying GF 10k coins. Must have at least 70 Agility.",
|
||||
"I swear, the goblins in Goblin Village have it out for me.",
|
||||
"Why do wizards always hang out in towers? Is it a zoning thing?",
|
||||
"I'm training my Construction skill. My house is gonna be lit!",
|
||||
"The GE is like the stock market, but with dragon bones.",
|
||||
"Why do we need a cabbage patch in Draynor? Seriously.",
|
||||
"I've been mining rune essence for hours. My pickaxe hates me.",
|
||||
"@name hit 99 Cooking. Time to open a gourmet restaurant in Varrock.",
|
||||
"I'm convinced the @name is actually a time-traveling wizard.",
|
||||
"Anyone up for a Castle Wars match? I need that decorative armor.",
|
||||
"Accidentally clicked Attack on a guard. Now I'm a wanted criminal.",
|
||||
"Why do we even have a Duel Arena? It's just a fancy boxing ring.",
|
||||
"I've got a stack of burnt lobsters. Anyone want to buy them?",
|
||||
"Greetings, @name! Looking for a quest?",
|
||||
"Just got a rare drop! The RNG gods are smiling upon me!",
|
||||
"Anyone need help with a boss fight? I've got my dragon dagger ready.",
|
||||
"Buying feathers! Will pay top price!",
|
||||
"The Lumbridge cows are my favorite training spot.",
|
||||
"Who needs a teleport? I've got my magic runes stocked.",
|
||||
"@name hit 99 Woodcutting. Time to chop some yews!",
|
||||
"Anyone seen the Wise Old Man lately? I owe him a visit.",
|
||||
"Selling lobsters! Freshly caught from Catherby.",
|
||||
"Swear, the Wilderness is scarier than my nightmares.",
|
||||
"Looking for a clan to join. Any takers?",
|
||||
"I'm an ironman, so no trading for me!",
|
||||
"Anyone up for a Castle Wars match?",
|
||||
"The Grand Exchange prices are crashing. Panic sell!",
|
||||
"Who else remembers the Falador Massacre?",
|
||||
"I'm saving up for a party hat. Wish me luck!",
|
||||
"Barrows runs are my addiction. Those crypts are spooky.",
|
||||
"I'm convinced the Wise Old Man is secretly Zamorak.",
|
||||
"I'm a completionist, so I'm grinding out all the achievements.",
|
||||
"The music in this game is surprisingly epic.",
|
||||
"Tried to trade with a tree... It didn't go well.",
|
||||
"My bank is like a black hole. Items disappear forever.",
|
||||
"I'm convinced the Wise Old Man is just a confused tourist.",
|
||||
"My character's fashion sense? Let's just say it's 'unique.'",
|
||||
"Challenged a cow to a dance-off. It won.",
|
||||
"Why does the Lumbridge Guide always look so lost?",
|
||||
"I'm training Agility, but my real-life agility is zero.",
|
||||
"Tried to fish in the desert. Sandfish are elusive.",
|
||||
"The Grand Exchange is like a chaotic stock market.",
|
||||
"I'm a master at clicking 'Continue' during quests.",
|
||||
"I'm convinced the chickens are plotting world domination.",
|
||||
"I'm a woodcutter, but I've never seen a talking tree.",
|
||||
"I'm a vegetarian, except when it comes to killing dragons.",
|
||||
"Why do wizards wear pointy hats? Is it a fashion statement?",
|
||||
"Challenged a guard to a staring contest. He won.",
|
||||
"I'm collecting cabbage. It's a noble pursuit.",
|
||||
"Accidentally set my cat on fire. It's now a firecat.",
|
||||
"I'm convinced the Wise Old Man is secretly a time traveler.",
|
||||
"I'm a quest completionist, but I still can't find my keys.",
|
||||
"I'm convinced the ducks are spying on us.",
|
||||
"I'm a pro at avoiding the Lumbridge swamp. Too many frogs.",
|
||||
"Hey, can someone lend me 10k? I promise I'll pay it back... eventually.",
|
||||
"Why do I always find the one square where the random event spawns?",
|
||||
"I'm training Prayer by burying bones. It's like a spiritual workout.",
|
||||
"The Wise Old Man's fashion sense is questionable.",
|
||||
"I'm convinced the ducks are secretly plotting world domination.",
|
||||
"Why do wizards wear pointy hats? Is it a dress code?",
|
||||
"I'm collecting cabbage. It's a noble pursuit, really.",
|
||||
"I'm a vegetarian, except when it comes to killing dragons.",
|
||||
"Why does the Lumbridge Guide always look so lost?",
|
||||
"Training Agility, but my real-life agility is zero.",
|
||||
"I'm convinced the Wise Old Man is secretly a time traveler.",
|
||||
"Tried to mine air. It's an untapped resource.",
|
||||
"I'm a quest completionist, but I still can't find my keys.",
|
||||
"Challenged a guard to a staring contest. He won.",
|
||||
"I'm saving up for a party hat. Priorities, you know?",
|
||||
"Why do goblins drop coins? Do they moonlight as accountants?",
|
||||
"I'm convinced the chickens are plotting something.",
|
||||
"Clicked 'Attack' on a chicken. Now I'm a poultry murderer.",
|
||||
"My character's fashion sense? Let's just say it's 'unique.'",
|
||||
"Do you know where I can find the entrance to the Taverley Dungeon?",
|
||||
"Hey, anyone here familiar with the Barrows? I need some tips.",
|
||||
"Is there a bank nearby? My inventory is overflowing with loot",
|
||||
"I'm clueless about clue scrolls",
|
||||
"Where's the best spot to catch sharks? I'm aiming for 99 Fishing.",
|
||||
"Is there a shortcut to the Karamja Volcano?",
|
||||
"Can someone explain the mechanics of the Jad fight in the Fight Caves?",
|
||||
"I'm stuck on the Elemental Workshop quest. Any hints?",
|
||||
"Where can I find a loom to spin flax into bowstrings?",
|
||||
"What's the best gear setup for killing dragons? I want that visage drop!",
|
||||
"I'm trying to unlock the fairy rings",
|
||||
"How do I recharge my amulet of glory?",
|
||||
"Why do goblins drop coins?",
|
||||
"The Grand Exchange is like the stock market",
|
||||
"My real-life agility is more like a lumbering tortoise.",
|
||||
"The Wise Old Man's fashion sense is like Woahs",
|
||||
"I challenged a cow to a dance off, surprisingly smooth mooves.",
|
||||
"Why does the Lumbridge Guide always look lost?",
|
||||
"I'm convinced the ducks in Lumbridge are plotting world domination!",
|
||||
"I accidentally ate my prayer potion I'm blessed with heartburn",
|
||||
"I'm a vegetarian, except when it comes to slaying dragons.",
|
||||
"Why do wizards wear pointy hats? Is it a magical dress code?",
|
||||
"I'm a quest completionist, but I still can't find my keys in real life.",
|
||||
"I challenged a guard to a staring contest. He won.",
|
||||
"I'm saving up for a party hat. Priorities, ya know?",
|
||||
"What's the deal with the Wilderness?",
|
||||
"I'm convinced the chickens are secretly plotting world domination!",
|
||||
"Accidentally clicked 'Attack' on a guard. Now I'm on a watchlist.",
|
||||
"My character's fashion sense? Let's just say it's 'unique'",
|
||||
"Lobsters heal my soul",
|
||||
"Trimmed armor or bust!",
|
||||
"Wilderness: Where friendships go to die",
|
||||
"Buying gf 10k",
|
||||
"Dancing for coins at Lumbridge",
|
||||
"Wearing full rune like a boss",
|
||||
"Teleporting to Camelot for quests",
|
||||
"Fishing for hours at Catherby",
|
||||
"PKing with a rune 2h",
|
||||
"World 1 Falador Park parties",
|
||||
"Staking my bank at the Duel Arena",
|
||||
"Dying to Elvarg's fiery breath sums up my life",
|
||||
"Got the Quest cape finally on my main!",
|
||||
"Wearing a party hat with pride",
|
||||
"Castle Wars: Red vs Blue",
|
||||
"Trading in Varrock Square",
|
||||
"Barrows runs for that sweet loot",
|
||||
"Spending hours in Pest Control is life",
|
||||
"Killing cows for leather armor is a good start",
|
||||
"Farming herbs in Ardougne can be good money",
|
||||
"Clan chat drama LOL",
|
||||
"Mining rune essence endlessly",
|
||||
"Agility courses: A love-hate relationship",
|
||||
"Dueling for honor.... and GP",
|
||||
"Buying runes from Aubury is decent money",
|
||||
"Chasing the Easter Bunny like a scam",
|
||||
"Wearing a skillcape with pride",
|
||||
"Fletching yew longbows for profit",
|
||||
"Going to implings in Puro-Puro",
|
||||
"Castle Wars barricade wars",
|
||||
"Dropping party hats at drop parties like pennies",
|
||||
"Killing lesser demons in Karamja is part of my holy conquest",
|
||||
"@name lures noobs into the Wilderness",
|
||||
"Farming ranarrs for cash",
|
||||
"Getting lost in the Underground Pass",
|
||||
"Selling coal at the Grand Exchange",
|
||||
"Fighting the Kalphite Queen",
|
||||
"Picking flax in Seers' Village",
|
||||
"Begging for free stuff in Lumbridge",
|
||||
"Smithing rune platebodies for profit",
|
||||
"Logging out in Lumbridge Castle",
|
||||
"Hey @name, how do I get to the Grand Exchange?",
|
||||
"Veteran here! @name, what's your favorite quest?",
|
||||
"@name, how do I make money fast?",
|
||||
"Hey @name, what's the best combat style for bossing?",
|
||||
"@name, always carry an emergency teleport!",
|
||||
"New player here! @name, what's the Wilderness like?",
|
||||
"Hey @name, how do I join a clan?",
|
||||
"@name, prioritize Prayer levels!",
|
||||
"@name, what's the best way to train Agility?",
|
||||
"Hey @name, what's your favorite minigame?",
|
||||
"@name, never trust a PKer in Lumbridge!",
|
||||
"@name, how do I get a fire cape?",
|
||||
"Hey @name, what's the fastest way to level up Magic?",
|
||||
"@name, try the Barrows tunnels!",
|
||||
"@name, what's the deal with Pest Control?",
|
||||
"Hey @name, how do I unlock the Fairy Rings?",
|
||||
"@name, remember the old random events?",
|
||||
"@name, should I train Strength or Attack first?",
|
||||
"Hey @name, what's your favorite skillcape?",
|
||||
"@name, can't do the Fight Caves!",
|
||||
"@name, how do I get a pet?",
|
||||
"Hey @name, what's the best food for boss fights?",
|
||||
"@name, Castle Wars or Clan Wars?",
|
||||
"@name, what's a clue scroll?",
|
||||
"Hey @name, how do I defeat Jad?",
|
||||
"@name, use Protect from Melee at KBD!",
|
||||
"@name, should I train Ranged or Magic?",
|
||||
"Hey @name, what's the best way to level up Crafting?",
|
||||
"@name, don't forget your anti-dragon shield!",
|
||||
"@name, what's the Stronghold of Security?",
|
||||
"Hey @name, how do I access the Legends' Guild?",
|
||||
"@name, remember the old PvP worlds?",
|
||||
"@name, how do I get a dragon defender?",
|
||||
"Hey @name, what's the best way to level up Herblore?",
|
||||
"@name, always carry a charged amulet of glory!",
|
||||
"@name, should I train Fishing or Cooking?",
|
||||
"Hey @name, how do I defeat the Chaos Elemental?",
|
||||
"@name, try the TzHaar Fight Pit!",
|
||||
"@name, what's the best way to level up Smithing?",
|
||||
"Hey @name, what's your favorite Slayer master?",
|
||||
"@name, use the Ardougne cloak teleports!",
|
||||
"@name, what's the Legends' Quest about?",
|
||||
"Hey @name, how do I unlock the Ancient Magicks?",
|
||||
"@name, remember the old Pest Control boats?",
|
||||
"@name, what's the best way to level up Construction?",
|
||||
"Hey @name, what's the fastest way to level up Prayer?",
|
||||
"@name, the old Duel Arena stakes!",
|
||||
"@name, what's the Warriors' Guild?",
|
||||
"Hey @name, how do I defeat the Kalphite Queen?",
|
||||
"@name, use the fairy ring code BIP!",
|
||||
"@name, should I train Attack or Defense first?",
|
||||
"Hey @name, what's the best way to level up Thieving?",
|
||||
"@name, don't forget your charged glory amulet!",
|
||||
"@name, what's the Legends' Cape?",
|
||||
"Hey @name, how do I access the Heroes' Guild?",
|
||||
"@name, remember the old Pest Control void gear?",
|
||||
"@name, how do I get a firemaking skillcape?",
|
||||
"Buying gf 10k",
|
||||
"Trimming armor for free!",
|
||||
"Wanna join my clan? We're called The Mighty Cabbages'!",
|
||||
"I'll meet you at the Falador Party Room!",
|
||||
"Dancing for coins in Varrock Square!",
|
||||
"Remember when the Wilderness was dangerous?",
|
||||
"I got a rune scimitar drop from Lesser Demons!",
|
||||
"Lumbridge Swamp is haunted!",
|
||||
"Anyone up for Castle Wars?",
|
||||
"I miss the old random events!",
|
||||
"World 2 is the trading hub!",
|
||||
"I'm going to train my Agility at the Gnome Stronghold!",
|
||||
"I just got 99 Cooking!",
|
||||
"Fishing lobsters at Catherby is life!",
|
||||
"The Legends' Guild is so exclusive!",
|
||||
"Who needs a quest guide? I'll figure it out!",
|
||||
"I'm mining rune essence for hours!",
|
||||
"Barrows armor looks sick!",
|
||||
"I'm stuck in the Underground Pass!",
|
||||
"The Stronghold of Security taught me about account security!",
|
||||
"I'm going to farm herbs in Ardougne!",
|
||||
"I'm getting my fire cape!",
|
||||
"I love the music in RuneScape!",
|
||||
"I'm alching my maple longbows!",
|
||||
"I'm doing the Recipe for Disaster subquests!",
|
||||
"I'm going to train my combat stats at the Rock Crabs!",
|
||||
"I'm going for the Quest Cape!",
|
||||
"I'm going to mine pure essence!",
|
||||
"I'm hunting chinchompas in the Feldip Hills!",
|
||||
"I'm going to train my Woodcutting at Seers' Village!",
|
||||
"I'm going to fish sharks at the Fishing Guild!",
|
||||
"I'm going to train my Thieving at Ardougne Knights!",
|
||||
"I'm going to hunt implings in Puro-Puro!",
|
||||
"I'm going to train my Hunter at the Falconry!",
|
||||
"I'm smithing rune platebodies!",
|
||||
"I'm going to train my Farming at the Tree Gnome Stronghold!",
|
||||
"I'm going to hunt red chinchompas in the Wilderness!",
|
||||
"I'm doing the Underground Pass quest!",
|
||||
"I'm going to fish monkfish in Piscatoris!",
|
||||
"Meet me in Varrock, @name, for an epic trade",
|
||||
"@name, join my clan; we'll conquer the Wilderness together!",
|
||||
"Beware the dragons, @name, they're fiercer than you think",
|
||||
"Crafting runes with @name, the best mage in Gielinor",
|
||||
"Fishing lobsters with @name, the sea's no match for us",
|
||||
"@name, your swordsmanship at Duel Arena is unmatched!",
|
||||
"Questing through dark caves, @name always leads the way",
|
||||
"Share your wisdom, @name, how'd you master those spells?",
|
||||
"Legends speak of @name bravery at the God Wars",
|
||||
"Need more arrows, @name? I've got plenty to spare",
|
||||
"Cooking's a breeze when @name around, no burnt lobsters!",
|
||||
"Mining together, @name and I strike gold every time",
|
||||
"@name, let's barter; your herbs for my potions?",
|
||||
"Training agility with @name, leaping like graceful gazelles",
|
||||
"Heard @name got the best magic beans in town",
|
||||
"Fletching bows with @name, aiming for perfection",
|
||||
"Smithing with @name, our anvils never cool down",
|
||||
"Adventuring with @name, every quest is a thrill",
|
||||
"Battling demons, @name courage inspires us all",
|
||||
"Slaying dragons, @name the hero we need",
|
||||
"Gathering at Falador, @name party room is legendary",
|
||||
"Hunting chinchompas, @name traps are always full",
|
||||
"Farming's fun with @name, our crops never fail",
|
||||
"Brewing potions, @name mixtures are magical",
|
||||
"Casting spells with @name, we're invincible",
|
||||
"Building fires, @name flames warm the coldest nights",
|
||||
"Sailing to Pest Control, @name our fearless captain",
|
||||
"Trading runes, @name deals are the fairest",
|
||||
"Exploring dungeons, @name the light in the darkness",
|
||||
"Charging orbs with @name, our energy knows no bounds",
|
||||
"Dancing in Draynor, @name moves are enchanting",
|
||||
"Playing Gnomeball, @name the star player",
|
||||
"Harvesting willows, @name axe swings true",
|
||||
"Enchanting jewelry, @name touch turns copper to gold",
|
||||
"Summoning familiars, @name spirit wolf leads the pack",
|
||||
"Thieving from stalls, @name hands are lightning-fast",
|
||||
"Crafting runes, @name essence never runs dry",
|
||||
"Fishing at Catherby, @name catch feeds us all",
|
||||
"Cooking feasts, @name dishes delight the gods",
|
||||
"Mining runite, @name pickaxe strikes rich veins",
|
||||
"Bartering at Grand Exchange, @name a trading master",
|
||||
"Training prayer, @name piety moves mountains",
|
||||
"Fighting revenants, @name valor shines bright",
|
||||
"Building homes, @name construction is flawless",
|
||||
"Hunting imps, @name net is always full",
|
||||
"Brewing ale, @name tavern is the town's favorite",
|
||||
"Casting high alchemy, @name turns junk into treasure",
|
||||
"Sailing to Karamja, @name adventures are legendary",
|
||||
"Forging alliances, @name charisma unites clans",
|
||||
"Defeating bosses, @name name echoes in legends",
|
||||
"Are you mewing @name???",
|
||||
"Check out that gyatt @name",
|
||||
"Bruhhhhh @name got that rizz",
|
||||
"@name rizzing up the bots",
|
||||
"Ironman? More like copperboy LOL",
|
||||
"What that gyatt do @name",
|
||||
"He's got the zoomies!",
|
||||
"@name likes pickles and dipped in mayo",
|
||||
"Lmaaooooooo",
|
||||
"Bruh she said she loved me...",
|
||||
"I caught @name rizzing a mewing teacher",
|
||||
"What that mouth do bb",
|
||||
"Ayo tf he say",
|
||||
"Ayo",
|
||||
"Ayo @name a freak lowkey",
|
||||
"Ayo tf",
|
||||
"@name catch me outside howbout that",
|
||||
"Wasssssuuuuppppppp",
|
||||
"Knock knock @name",
|
||||
"Oh boy howdy do i have a surprise for you",
|
||||
"Noooooo",
|
||||
"What do you mean I haven't done anything wtf",
|
||||
"Redrocket redrocket!!!",
|
||||
"I made 20,000 crochet sock puppets for ceikry",
|
||||
"Come on @name",
|
||||
"Are we rading tonight @name?",
|
||||
"Why would he say that",
|
||||
"Penguins are technically reptiles",
|
||||
"Brb smell something burning",
|
||||
"Need pest control partner, you handle the portals, i will afk",
|
||||
"Bruhhhh the skibiddi rizz in my gyatt makes my mewing sesh rough",
|
||||
"@name jajajajaja",
|
||||
"Wait, I can't raid tonight @name",
|
||||
"Brb, pizza's here. Hope they ask why I'm a grown man dressed like an elf",
|
||||
"Sorry, gotta go AFK. My dog just ate my gaming headset.",
|
||||
"Brb, my grandma just fell down the stairs",
|
||||
"Hold on, the baby's crying, aka @name",
|
||||
"Oops, spilled my drink",
|
||||
"Guys, I need to log off, my plants are staging a revolt for not watering them",
|
||||
"AFK a sec, my neighbor's llama is in my backyard again",
|
||||
"My pizza rolls are ready",
|
||||
"Lost track of time, i'm late for my own wedding",
|
||||
"Sorry, can't hear you over the sound of my laundry",
|
||||
"Turn HDR off in windows @name",
|
||||
"Www. no one cares .com",
|
||||
"Hey @name www dot stfu dot com",
|
||||
"Like pitching a tent in a pair of britches",
|
||||
"Mad as a bag of ferrets",
|
||||
"I dont think beavers built the hoover dam",
|
||||
"How do beavers get the concrete for dams?",
|
||||
"@name show me the way",
|
||||
"@name onwards brutha",
|
||||
"@name eats fried rat tails",
|
||||
"@name is a rat",
|
||||
"Why are there so many people farming right now",
|
||||
"@name fuck the police",
|
||||
"@name says the like pickles on their hotdogs",
|
||||
"Fuck the guards, free woah in varrock prison",
|
||||
"Ayo fuck u mean",
|
||||
"Woop woop thats da sound of the beast",
|
||||
"How are you the way that you are",
|
||||
"She sells seashells by the sea shore",
|
||||
"@name certified rat",
|
||||
"@name buys skimmed milk",
|
||||
"Got milk?",
|
||||
"Are you JSON because i want you to get array from me",
|
||||
"@name likes string manipulation",
|
||||
"@name sells legos",
|
||||
"JUST DO IT",
|
||||
"Why are there so many motherfucking options",
|
||||
"Just hit the fucking auto hide thing",
|
||||
"Just play",
|
||||
"Hell no this shit is fuzzy as balls",
|
||||
"@name is fuzzy as balls",
|
||||
"Turn your brightness up @name",
|
||||
"On my pc it runs perfectly",
|
||||
"I know why mine seems a little jumpy",
|
||||
"Stream the window not the monitor",
|
||||
"Discords a bitch",
|
||||
"Why are there so many handsome people at the ge like @name",
|
||||
"I'll make you squeel of fortune",
|
||||
"You will get it in due time @name",
|
||||
"I was one turn away",
|
||||
"It do be pipe time @name",
|
||||
"Sometimes i like to cover myself in vaseline and pretend i'm a slug",
|
||||
"Woah is a greased pig",
|
||||
"Sometimes i dig holes in my backyard and pretend i'm a carrot",
|
||||
"It's pipe time @name",
|
||||
"If i am not pipe timing i am programming",
|
||||
"Yes i have thigh high socks, no you cannot have them",
|
||||
"I scream when i wear my programming socks",
|
||||
"Anyone wanna buy @name's bathwater?",
|
||||
"Anyone wanna buy my used socks?",
|
||||
"@name be getting bags",
|
||||
"What the fuck is this",
|
||||
"Hi i noticed you haven't taken a break in hours @name",
|
||||
"I really am seething rn",
|
||||
"I am so fucking tilted",
|
||||
"Go back to your fucking frogs",
|
||||
"Life is simple as frog farmer",
|
||||
"A q p",
|
||||
"Oooooh that's a first",
|
||||
"Been a minute @name",
|
||||
"Hey @name",
|
||||
"Oh shit it's @name",
|
||||
"Hey @name wyd today?",
|
||||
"Ayo @name",
|
||||
"Wyd @name",
|
||||
"Wbu @name?",
|
||||
"Good fuck em, that's what they get",
|
||||
"Deathknight lookin rat ass mf @name",
|
||||
"@name sucks slugs",
|
||||
"Brb gotta take a shit",
|
||||
"@name will brb went to take a shit",
|
||||
"Tell me when he is coming",
|
||||
"This guy is being incredibly based",
|
||||
"@name is based af",
|
||||
"Taking l's all day today @name",
|
||||
"That sucks massive dongus",
|
||||
"Ah i was about to type that",
|
||||
"Where is stormwind?",
|
||||
"How do i buy gold",
|
||||
"@name sells gold",
|
||||
"@name is a gold digger",
|
||||
"Ayo @name wanna buy some frog legs?",
|
||||
"Brb fucking burnt my pizza rolls",
|
||||
"I swear @name if you need roll again",
|
||||
"@name you are a hunter you don't need plate armor",
|
||||
"Dragonriding is satisfying",
|
||||
"There's an old TzHarrian saying, you fuck up once, you lose two teeth",
|
||||
"FUCK",
|
||||
"@name i am ready when you are",
|
||||
"Anyone selling logs?",
|
||||
"That is hilarious @name",
|
||||
"Alright @name",
|
||||
"I need to go get my quest cape",
|
||||
"500 barrows runs dry",
|
||||
"Back to back to back barrows items, easy game",
|
||||
"@name did you know them?",
|
||||
"@name sucks eggs",
|
||||
"@name eats snails",
|
||||
"Who is that?",
|
||||
"I've gotta go in 20 minutes",
|
||||
"Bonk",
|
||||
"Gtg in 30 minutes",
|
||||
"They left 50 minutes ago",
|
||||
"I think it's just gonna be us",
|
||||
"Who is that?",
|
||||
"Stop following me",
|
||||
"@name stop following me",
|
||||
"I think @name is watching me",
|
||||
"@name wouldn't let me get a hit in at clan wars",
|
||||
"Clan wars and chill?",
|
||||
"Quick mewing sesh",
|
||||
"Don't you stickbug me",
|
||||
"Get stick bugged",
|
||||
"Wtf why are you a dragon",
|
||||
"Fun fact, woah eats eggs whole like a snake",
|
||||
"Ceikys there's a rare over there",
|
||||
"Where is goldshire?",
|
||||
"How long have you played @name?",
|
||||
"Wanna quest?",
|
||||
"TROGDORRRRRR",
|
||||
"Fuck this shit i'm out",
|
||||
"Wait till you get your first 99",
|
||||
"How is that even possible",
|
||||
"That's the max",
|
||||
"@name is trying to max",
|
||||
"Complesionist cape?",
|
||||
"How can you increase your run speed?",
|
||||
"@name where is barrows?",
|
||||
"@name where are rune rocks?",
|
||||
"@name where is yanille?",
|
||||
"@name how long have you played for?",
|
||||
"Yes these quotes were hand typed",
|
||||
"Kermit was here",
|
||||
"World of Warcraft died after Wrath",
|
||||
"Ceikry needs to add talent trees",
|
||||
"How do you get to the wilderness?",
|
||||
"Anyone tryna lure @name?",
|
||||
"@name tried to lure me",
|
||||
"@name bots all the time",
|
||||
"Anyone want chicken tendies",
|
||||
"Brb foods ready",
|
||||
"Brb",
|
||||
"Gotta go get food",
|
||||
"Anyone else from northern alaska?",
|
||||
"Fishing 4 gp",
|
||||
"Looking for gf",
|
||||
"Anyone wanna be my discord kitten?",
|
||||
"Selling discord kittens",
|
||||
"@name is a discord kitten",
|
||||
"Add me on discord",
|
||||
"Are you in the 09discord",
|
||||
"Where are you going @name?",
|
||||
"Idk what i am going to cook today",
|
||||
"What should i eat tonight",
|
||||
"He is in the cave",
|
||||
"Don't forget to save game before logging out",
|
||||
"American horror story died after season 1",
|
||||
"Prequels are better than the sequels",
|
||||
"Disney star wars is the best star wars",
|
||||
"Halo 5 sucked",
|
||||
"Selling xbox live gold and 1600 microsoft points for 50k gp",
|
||||
"Buying gf 25gp and a bucket",
|
||||
"@name i heard evilwaffles bots",
|
||||
"@name hopefully ceikry doesn't find out about evilwaffles",
|
||||
"Honk honk",
|
||||
"Where is the road to mordor?",
|
||||
"Golem lookin ass bitch",
|
||||
"@name rat looking mf",
|
||||
"@name uses sand paper to wipe",
|
||||
"@name said Woah is cute",
|
||||
"You need 25 of 40 to do that",
|
||||
"Over 1000 unique lines of dialogue",
|
||||
"What should i get to eat",
|
||||
"Ge be poppin today",
|
||||
"Where all the woahs at",
|
||||
"Ayo woahscam got that gyatt",
|
||||
"That is one i haven't seen before"
|
||||
],
|
||||
"halloween": [
|
||||
"Trick or treat!!!",
|
||||
|
|
@ -523,9 +1008,9 @@
|
|||
"Costume party at my P O H!! Follow me!",
|
||||
"Trick, then!",
|
||||
"Brrrainssssssss...",
|
||||
"'Cause this is thriller, thriller night, and no one's gonna save you from the beast about to strike!",
|
||||
"This is Hallowe'en, this is Hallowe'en, pumpkins scream in the dead of night!",
|
||||
"This is Hallowe'en, everybody make a scene, Trick or treat till the neighbors gonna die of fright!",
|
||||
"'Cause this is thriller, thriller night!",
|
||||
"This is Hallowe'en, this is Hallowe'en!",
|
||||
"This is Hallowe'en, everybody make a scene!",
|
||||
"In this town we call home, everyone hail to the pumpkin song!",
|
||||
"Watch out for Skeleton Jack!",
|
||||
"The headless-what-man? Horse? Never heard of those.",
|
||||
|
|
@ -596,7 +1081,7 @@
|
|||
"Rusty = the grinch, @name = santa",
|
||||
"@name the red nose reindeer",
|
||||
"Put one foot in front of the other",
|
||||
"and soon you will be walking out the doooor",
|
||||
"And soon you will be walking out the doooor",
|
||||
"Elf on the shelf time",
|
||||
"@name loves pinecones",
|
||||
"I love the smell of pinecones",
|
||||
|
|
@ -695,21 +1180,21 @@
|
|||
"Woah got those roofies strapped",
|
||||
"Why is my drink cloudy?",
|
||||
"@name and woah be wrestlin",
|
||||
"bekky want sum fuk?",
|
||||
"Bekky want sum fuk?",
|
||||
"Damn @name you got an ass",
|
||||
"Is that a footlong in your pants or are you happy to see me?",
|
||||
"@name so hot i gotta change my pants",
|
||||
"@name is a sex god",
|
||||
"bruh we hype today",
|
||||
"dont be silly wrap the willy @name!",
|
||||
"wrap it before you smack it @name",
|
||||
"can i get a reeeeee @name?",
|
||||
"valentines day is the best day",
|
||||
"Bruh we hype today",
|
||||
"Dont be silly wrap the willy @name!",
|
||||
"Wrap it before you smack it @name",
|
||||
"Can i get a reeeeee @name?",
|
||||
"Valentines day is the best day",
|
||||
"@name shut up before i smack you with my crusty sock",
|
||||
"Valentines day, more like me and my hand day smh",
|
||||
"If you think these quotes are wild just wait @name",
|
||||
"All im saying is we have never seen @name and biden in the same room",
|
||||
"red rocket, red rocket!",
|
||||
"Red rocket, red rocket!",
|
||||
"Woahs favourite game is red rocket",
|
||||
"@name sexy af today",
|
||||
"Happy Valentines day @name!!!",
|
||||
|
|
@ -754,4 +1239,4 @@
|
|||
"@name and i are going to look for the easter bunny!!",
|
||||
"Hint for anyone who sees this you must dig above eagles peak"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
BIN
Server/data/cache/main_file_cache.dat2
(Stored with Git LFS)
vendored
BIN
Server/data/cache/main_file_cache.dat2
(Stored with Git LFS)
vendored
Binary file not shown.
BIN
Server/data/cache/main_file_cache.idx19
(Stored with Git LFS)
vendored
BIN
Server/data/cache/main_file_cache.idx19
(Stored with Git LFS)
vendored
Binary file not shown.
BIN
Server/data/cache/main_file_cache.idx255
(Stored with Git LFS)
vendored
BIN
Server/data/cache/main_file_cache.idx255
(Stored with Git LFS)
vendored
Binary file not shown.
BIN
Server/data/cache/main_file_cache.idx5
(Stored with Git LFS)
vendored
BIN
Server/data/cache/main_file_cache.idx5
(Stored with Git LFS)
vendored
Binary file not shown.
2
Server/data/configs/account_limit_exceptions.conf
Normal file
2
Server/data/configs/account_limit_exceptions.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[exceptions]
|
||||
"127.0.0.1" = 5
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
"start_graphic": "232,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "226,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "813",
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
"start_graphic": "233,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "227,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "814",
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
"start_graphic": "234,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "228,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "815",
|
||||
|
|
@ -149,7 +149,7 @@
|
|||
"start_graphic": "235,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "229,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "816",
|
||||
|
|
@ -157,7 +157,7 @@
|
|||
"start_graphic": "236,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "230,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "817",
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
"start_graphic": "237,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "231,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "825",
|
||||
|
|
@ -221,7 +221,7 @@
|
|||
"start_graphic": "206,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "200,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "832",
|
||||
|
|
@ -229,7 +229,7 @@
|
|||
"start_graphic": "207,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "201,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "833",
|
||||
|
|
@ -237,7 +237,7 @@
|
|||
"start_graphic": "208,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "202,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "834",
|
||||
|
|
@ -245,7 +245,7 @@
|
|||
"start_graphic": "209,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "203,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "835",
|
||||
|
|
@ -253,7 +253,7 @@
|
|||
"start_graphic": "210,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "204,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "836",
|
||||
|
|
@ -261,7 +261,7 @@
|
|||
"start_graphic": "211,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "205,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "863",
|
||||
|
|
@ -325,7 +325,7 @@
|
|||
"start_graphic": "219,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "212,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "871",
|
||||
|
|
@ -333,7 +333,7 @@
|
|||
"start_graphic": "220,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "213,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "872",
|
||||
|
|
@ -341,7 +341,7 @@
|
|||
"start_graphic": "221,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "214,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "873",
|
||||
|
|
@ -349,7 +349,7 @@
|
|||
"start_graphic": "223,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "216,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "874",
|
||||
|
|
@ -357,7 +357,7 @@
|
|||
"start_graphic": "222,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "215,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "875",
|
||||
|
|
@ -365,7 +365,7 @@
|
|||
"start_graphic": "224,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "217,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "876",
|
||||
|
|
@ -373,7 +373,7 @@
|
|||
"start_graphic": "225,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "218,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "877",
|
||||
|
|
@ -389,7 +389,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "879",
|
||||
|
|
@ -421,7 +421,7 @@
|
|||
"start_graphic": "19,96",
|
||||
"darkbow_graphic": "1104,96",
|
||||
"projectile": "10,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "884",
|
||||
|
|
@ -437,7 +437,7 @@
|
|||
"start_graphic": "18,96",
|
||||
"darkbow_graphic": "1105,96",
|
||||
"projectile": "9,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "886",
|
||||
|
|
@ -453,7 +453,7 @@
|
|||
"start_graphic": "20,96",
|
||||
"darkbow_graphic": "1106,96",
|
||||
"projectile": "11,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "888",
|
||||
|
|
@ -469,7 +469,7 @@
|
|||
"start_graphic": "21,96",
|
||||
"darkbow_graphic": "1107,96",
|
||||
"projectile": "12,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "890",
|
||||
|
|
@ -485,7 +485,7 @@
|
|||
"start_graphic": "22,96",
|
||||
"darkbow_graphic": "1108,96",
|
||||
"projectile": "13,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "892",
|
||||
|
|
@ -501,7 +501,7 @@
|
|||
"start_graphic": "24,96",
|
||||
"darkbow_graphic": "1109,96",
|
||||
"projectile": "15,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "2532",
|
||||
|
|
@ -565,7 +565,7 @@
|
|||
"start_graphic": "273,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "227,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "4160",
|
||||
|
|
@ -725,7 +725,7 @@
|
|||
"start_graphic": "19,96",
|
||||
"darkbow_graphic": "1104,96",
|
||||
"projectile": "10,40,36,41,46,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5617",
|
||||
|
|
@ -733,7 +733,7 @@
|
|||
"start_graphic": "18,96",
|
||||
"darkbow_graphic": "1105,96",
|
||||
"projectile": "9,40,36,41,46,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5618",
|
||||
|
|
@ -741,7 +741,7 @@
|
|||
"start_graphic": "20,96",
|
||||
"darkbow_graphic": "1106,96",
|
||||
"projectile": "11,40,36,41,46,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5619",
|
||||
|
|
@ -749,7 +749,7 @@
|
|||
"start_graphic": "21,96",
|
||||
"darkbow_graphic": "1107,96",
|
||||
"projectile": "12,40,36,41,46,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5620",
|
||||
|
|
@ -757,7 +757,7 @@
|
|||
"start_graphic": "22,96",
|
||||
"darkbow_graphic": "1108,96",
|
||||
"projectile": "13,40,36,41,46,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5621",
|
||||
|
|
@ -773,7 +773,7 @@
|
|||
"start_graphic": "19,96",
|
||||
"darkbow_graphic": "1104,96",
|
||||
"projectile": "10,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5623",
|
||||
|
|
@ -781,7 +781,7 @@
|
|||
"start_graphic": "18,96",
|
||||
"darkbow_graphic": "1105,96",
|
||||
"projectile": "9,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5624",
|
||||
|
|
@ -789,7 +789,7 @@
|
|||
"start_graphic": "20,96",
|
||||
"darkbow_graphic": "1106,96",
|
||||
"projectile": "11,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5625",
|
||||
|
|
@ -797,7 +797,7 @@
|
|||
"start_graphic": "21,96",
|
||||
"darkbow_graphic": "1107,96",
|
||||
"projectile": "12,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5626",
|
||||
|
|
@ -805,7 +805,7 @@
|
|||
"start_graphic": "22,96",
|
||||
"darkbow_graphic": "1108,96",
|
||||
"projectile": "13,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5627",
|
||||
|
|
@ -813,7 +813,7 @@
|
|||
"start_graphic": "24,96",
|
||||
"darkbow_graphic": "1109,96",
|
||||
"projectile": "15,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5628",
|
||||
|
|
@ -821,7 +821,7 @@
|
|||
"start_graphic": "232,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "226,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5629",
|
||||
|
|
@ -829,7 +829,7 @@
|
|||
"start_graphic": "233,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "227,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5630",
|
||||
|
|
@ -837,7 +837,7 @@
|
|||
"start_graphic": "235,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "229,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5631",
|
||||
|
|
@ -845,7 +845,7 @@
|
|||
"start_graphic": "273,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "227,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5633",
|
||||
|
|
@ -853,7 +853,7 @@
|
|||
"start_graphic": "236,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "230,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5634",
|
||||
|
|
@ -861,7 +861,7 @@
|
|||
"start_graphic": "237,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "231,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5635",
|
||||
|
|
@ -869,7 +869,7 @@
|
|||
"start_graphic": "232,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "226,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5636",
|
||||
|
|
@ -877,7 +877,7 @@
|
|||
"start_graphic": "233,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "227,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5637",
|
||||
|
|
@ -885,7 +885,7 @@
|
|||
"start_graphic": "234,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "228,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5638",
|
||||
|
|
@ -893,7 +893,7 @@
|
|||
"start_graphic": "273,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "227,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5639",
|
||||
|
|
@ -901,7 +901,7 @@
|
|||
"start_graphic": "235,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "229,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5640",
|
||||
|
|
@ -909,7 +909,7 @@
|
|||
"start_graphic": "236,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "230,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5641",
|
||||
|
|
@ -917,7 +917,7 @@
|
|||
"start_graphic": "237,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "231,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5642",
|
||||
|
|
@ -925,7 +925,7 @@
|
|||
"start_graphic": "206,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "200,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5643",
|
||||
|
|
@ -933,7 +933,7 @@
|
|||
"start_graphic": "207,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "201,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5644",
|
||||
|
|
@ -941,7 +941,7 @@
|
|||
"start_graphic": "208,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "202,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5645",
|
||||
|
|
@ -949,7 +949,7 @@
|
|||
"start_graphic": "209,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "203,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5646",
|
||||
|
|
@ -957,7 +957,7 @@
|
|||
"start_graphic": "210,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "204,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5647",
|
||||
|
|
@ -965,7 +965,7 @@
|
|||
"start_graphic": "211,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "205,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5648",
|
||||
|
|
@ -973,7 +973,7 @@
|
|||
"start_graphic": "206,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "200,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5649",
|
||||
|
|
@ -981,7 +981,7 @@
|
|||
"start_graphic": "207,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "201,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5650",
|
||||
|
|
@ -989,7 +989,7 @@
|
|||
"start_graphic": "208,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "202,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5651",
|
||||
|
|
@ -997,7 +997,7 @@
|
|||
"start_graphic": "209,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "203,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5652",
|
||||
|
|
@ -1005,7 +1005,7 @@
|
|||
"start_graphic": "210,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "204,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5653",
|
||||
|
|
@ -1013,7 +1013,7 @@
|
|||
"start_graphic": "211,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "205,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5654",
|
||||
|
|
@ -1021,7 +1021,7 @@
|
|||
"start_graphic": "219,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "212,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5655",
|
||||
|
|
@ -1029,7 +1029,7 @@
|
|||
"start_graphic": "220,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "213,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5656",
|
||||
|
|
@ -1037,7 +1037,7 @@
|
|||
"start_graphic": "221,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "214,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5657",
|
||||
|
|
@ -1045,7 +1045,7 @@
|
|||
"start_graphic": "223,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "216,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5658",
|
||||
|
|
@ -1053,7 +1053,7 @@
|
|||
"start_graphic": "222,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "215,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5659",
|
||||
|
|
@ -1061,7 +1061,7 @@
|
|||
"start_graphic": "224,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "217,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5660",
|
||||
|
|
@ -1069,7 +1069,7 @@
|
|||
"start_graphic": "225,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "218,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "5661",
|
||||
|
|
@ -1077,7 +1077,7 @@
|
|||
"start_graphic": "219,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "212,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5662",
|
||||
|
|
@ -1085,7 +1085,7 @@
|
|||
"start_graphic": "220,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "213,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5663",
|
||||
|
|
@ -1093,7 +1093,7 @@
|
|||
"start_graphic": "221,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "214,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5664",
|
||||
|
|
@ -1101,7 +1101,7 @@
|
|||
"start_graphic": "223,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "216,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5665",
|
||||
|
|
@ -1109,7 +1109,7 @@
|
|||
"start_graphic": "222,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "215,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5666",
|
||||
|
|
@ -1117,7 +1117,7 @@
|
|||
"start_graphic": "224,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "217,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "5667",
|
||||
|
|
@ -1125,7 +1125,7 @@
|
|||
"start_graphic": "225,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "218,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "6061",
|
||||
|
|
@ -1133,7 +1133,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "6062",
|
||||
|
|
@ -1141,7 +1141,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "6522",
|
||||
|
|
@ -1293,7 +1293,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "9287",
|
||||
|
|
@ -1301,7 +1301,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "9288",
|
||||
|
|
@ -1309,7 +1309,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "9289",
|
||||
|
|
@ -1317,7 +1317,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "9290",
|
||||
|
|
@ -1325,7 +1325,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "9291",
|
||||
|
|
@ -1333,7 +1333,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "9293",
|
||||
|
|
@ -1341,7 +1341,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "9294",
|
||||
|
|
@ -1349,7 +1349,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "9295",
|
||||
|
|
@ -1357,7 +1357,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "9296",
|
||||
|
|
@ -1365,7 +1365,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "9297",
|
||||
|
|
@ -1373,7 +1373,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "9298",
|
||||
|
|
@ -1381,7 +1381,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "9300",
|
||||
|
|
@ -1389,7 +1389,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "9301",
|
||||
|
|
@ -1397,7 +1397,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "9302",
|
||||
|
|
@ -1405,7 +1405,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "9303",
|
||||
|
|
@ -1413,7 +1413,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "9304",
|
||||
|
|
@ -1421,7 +1421,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "9305",
|
||||
|
|
@ -1429,7 +1429,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "9335",
|
||||
|
|
@ -1557,7 +1557,7 @@
|
|||
"start_graphic": "1116,96",
|
||||
"darkbow_graphic": "1114,96",
|
||||
"projectile": "1120,40,36,41,46,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "11228",
|
||||
|
|
@ -1565,7 +1565,7 @@
|
|||
"start_graphic": "1116,96",
|
||||
"darkbow_graphic": "1114,96",
|
||||
"projectile": "1120,40,36,41,46,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "11229",
|
||||
|
|
@ -1573,7 +1573,7 @@
|
|||
"start_graphic": "1116,96",
|
||||
"darkbow_graphic": "1114,96",
|
||||
"projectile": "1120,40,36,41,46,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "11230",
|
||||
|
|
@ -1589,7 +1589,7 @@
|
|||
"start_graphic": "1123,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1122,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "11233",
|
||||
|
|
@ -1597,7 +1597,7 @@
|
|||
"start_graphic": "1123,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1122,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "11234",
|
||||
|
|
@ -1605,7 +1605,7 @@
|
|||
"start_graphic": "1123,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1122,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "13083",
|
||||
|
|
@ -1621,7 +1621,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "13085",
|
||||
|
|
@ -1629,7 +1629,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "13086",
|
||||
|
|
@ -1637,7 +1637,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "27,38,36,41,32,5,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "13280",
|
||||
|
|
@ -1661,7 +1661,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1837,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "13881",
|
||||
|
|
@ -1669,7 +1669,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1837,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "13882",
|
||||
|
|
@ -1677,7 +1677,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1837,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "13883",
|
||||
|
|
@ -1701,7 +1701,7 @@
|
|||
"start_graphic": "-1,0",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1837,40,36,32,32,15,0",
|
||||
"poison_damage": "28"
|
||||
"poison_damage": "10"
|
||||
},
|
||||
{
|
||||
"itemId": "13955",
|
||||
|
|
@ -1709,7 +1709,7 @@
|
|||
"start_graphic": "1837,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1840,40,36,32,32,15,0",
|
||||
"poison_damage": "38"
|
||||
"poison_damage": "15"
|
||||
},
|
||||
{
|
||||
"itemId": "13956",
|
||||
|
|
@ -1717,7 +1717,7 @@
|
|||
"start_graphic": "1837,96",
|
||||
"darkbow_graphic": "",
|
||||
"projectile": "1840,40,36,32,32,15,0",
|
||||
"poison_damage": "48"
|
||||
"poison_damage": "20"
|
||||
},
|
||||
{
|
||||
"itemId": "13957",
|
||||
|
|
|
|||
|
|
@ -389,31 +389,31 @@
|
|||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10666,
|
||||
"id": 7334,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10669,
|
||||
"id": 7340,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10672,
|
||||
"id": 7346,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10675,
|
||||
"id": 7352,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10678,
|
||||
"id": 7358,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
|
|
@ -949,7 +949,7 @@
|
|||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10667,
|
||||
"id": 7336,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
|
|
@ -961,7 +961,7 @@
|
|||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10670,
|
||||
"id": 7342,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
|
|
@ -973,7 +973,7 @@
|
|||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10673,
|
||||
"id": 7348,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
|
|
@ -985,7 +985,7 @@
|
|||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10676,
|
||||
"id": 7354,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
|
|
@ -997,7 +997,7 @@
|
|||
{
|
||||
"minAmount": 1,
|
||||
"weight": "5",
|
||||
"id": 10679,
|
||||
"id": 7360,
|
||||
"maxAmount": 1
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
},
|
||||
{
|
||||
"id": "92",
|
||||
"replaceId": "17317",
|
||||
"replaceId": "91",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -193,7 +193,7 @@
|
|||
},
|
||||
{
|
||||
"id": "1553",
|
||||
"replaceId": "1552",
|
||||
"replaceId": "1556",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -301,7 +301,7 @@
|
|||
},
|
||||
{
|
||||
"id": "2025",
|
||||
"replaceId": "1534",
|
||||
"replaceId": "2026",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -312,14 +312,14 @@
|
|||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "2036",
|
||||
"id": "1530",
|
||||
"replaceId": "1531",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "2039",
|
||||
"replaceId": "1561",
|
||||
"replaceId": "1560",
|
||||
"fence": "false",
|
||||
"metal": "true"
|
||||
},
|
||||
|
|
@ -332,13 +332,13 @@
|
|||
{
|
||||
"id": "2050",
|
||||
"replaceId": "15511",
|
||||
"fence": "false",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "2051",
|
||||
"replaceId": "15513",
|
||||
"fence": "false",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
|
|
@ -896,12 +896,12 @@
|
|||
{
|
||||
"id": "3725",
|
||||
"replaceId": "3727",
|
||||
"fence": "false",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "3726",
|
||||
"replaceId": "3727",
|
||||
"replaceId": "3728",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -925,7 +925,7 @@
|
|||
},
|
||||
{
|
||||
"id": "3747",
|
||||
"replaceId": "1534",
|
||||
"replaceId": "3748",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -943,7 +943,7 @@
|
|||
},
|
||||
{
|
||||
"id": "4148",
|
||||
"replaceId": "4248",
|
||||
"replaceId": "4246",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -979,19 +979,19 @@
|
|||
},
|
||||
{
|
||||
"id": "4423",
|
||||
"replaceId": "4429",
|
||||
"replaceId": "4425",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "4424",
|
||||
"replaceId": "11382",
|
||||
"replaceId": "4426",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "4427",
|
||||
"replaceId": "11380",
|
||||
"replaceId": "4429",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -1238,12 +1238,12 @@
|
|||
{
|
||||
"id": "7049",
|
||||
"replaceId": "7051",
|
||||
"fence": "false",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "7050",
|
||||
"replaceId": "23919",
|
||||
"replaceId": "7052",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -1340,7 +1340,7 @@
|
|||
{
|
||||
"id": "8810",
|
||||
"replaceId": "8812",
|
||||
"fence": "false",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
|
|
@ -1439,6 +1439,12 @@
|
|||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "11470",
|
||||
"replaceId": "11471",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "11483",
|
||||
"replaceId": "11708",
|
||||
|
|
@ -1759,7 +1765,7 @@
|
|||
},
|
||||
{
|
||||
"id": "14245",
|
||||
"replaceId": "14248",
|
||||
"replaceId": "14246",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -1983,7 +1989,15 @@
|
|||
"id": "20391",
|
||||
"replaceId": "28518",
|
||||
"fence": "false",
|
||||
"metal": "true"
|
||||
"metal": "true",
|
||||
"autowalk": "true"
|
||||
},
|
||||
{
|
||||
"id": "28514",
|
||||
"replaceId": "28518",
|
||||
"fence": "false",
|
||||
"metal": "true",
|
||||
"autowalk": "true"
|
||||
},
|
||||
{
|
||||
"id": "21065",
|
||||
|
|
@ -2144,13 +2158,13 @@
|
|||
{
|
||||
"id": "24369",
|
||||
"replaceId": "24373",
|
||||
"fence": "true",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "24370",
|
||||
"replaceId": "24374",
|
||||
"fence": "true",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
|
|
@ -2177,18 +2191,6 @@
|
|||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "24560",
|
||||
"replaceId": "15515",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "24561",
|
||||
"replaceId": "15517",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "24565",
|
||||
"replaceId": "36316",
|
||||
|
|
@ -2357,11 +2359,25 @@
|
|||
"fence": "false",
|
||||
"metal": "true"
|
||||
},
|
||||
{
|
||||
"id": "26081",
|
||||
"replaceId": "26083",
|
||||
"fence": "false",
|
||||
"metal": "true",
|
||||
"autowalk": "true"
|
||||
},
|
||||
{
|
||||
"id": "26082",
|
||||
"replaceId": "26084",
|
||||
"fence": "false",
|
||||
"metal": "true",
|
||||
"autowalk": "true"
|
||||
},
|
||||
{
|
||||
"id": "26130",
|
||||
"replaceId": "26132",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
"metal": "true"
|
||||
},
|
||||
{
|
||||
"id": "26131",
|
||||
|
|
@ -2507,12 +2523,6 @@
|
|||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
"id": "28514",
|
||||
"replaceId": "28518",
|
||||
"fence": "true",
|
||||
"metal": "true"
|
||||
},
|
||||
{
|
||||
"id": "28589",
|
||||
"replaceId": "28588",
|
||||
|
|
@ -2671,7 +2681,7 @@
|
|||
},
|
||||
{
|
||||
"id": "31815",
|
||||
"replaceId": "31816",
|
||||
"replaceId": "31817",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -2798,7 +2808,7 @@
|
|||
{
|
||||
"id": "34780",
|
||||
"replaceId": "34778",
|
||||
"fence": "false",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"id": "5",
|
||||
"interfaceType": "1",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
|
|
@ -25,7 +25,49 @@
|
|||
},
|
||||
{
|
||||
"id": "24",
|
||||
"interfaceType": "1",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "34",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "38",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "42",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "46",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "57",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "58",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "59",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
|
|
@ -53,6 +95,30 @@
|
|||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "68",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "69",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "70",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "71",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "74",
|
||||
"interfaceType": "4",
|
||||
|
|
@ -125,6 +191,12 @@
|
|||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "139",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "140",
|
||||
"interfaceType": "4",
|
||||
|
|
@ -137,6 +209,12 @@
|
|||
"walkable": "true",
|
||||
"tabIndex": "3"
|
||||
},
|
||||
{
|
||||
"id": "169",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "172",
|
||||
"interfaceType": "4",
|
||||
|
|
@ -197,9 +275,33 @@
|
|||
"walkable": "true",
|
||||
"tabIndex": "6"
|
||||
},
|
||||
{
|
||||
"id": "194",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "195",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "196",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "198",
|
||||
"interfaceType": "1",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "209",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
|
|
@ -257,6 +359,12 @@
|
|||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "240",
|
||||
"interfaceType": "3",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "241",
|
||||
"interfaceType": "4",
|
||||
|
|
@ -281,6 +389,36 @@
|
|||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "245",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "246",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "247",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "248",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "256",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "259",
|
||||
"interfaceType": "2",
|
||||
|
|
@ -371,6 +509,12 @@
|
|||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "328",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "336",
|
||||
"interfaceType": "3",
|
||||
|
|
@ -395,6 +539,12 @@
|
|||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "377",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "380",
|
||||
"interfaceType": "1",
|
||||
|
|
@ -449,12 +599,24 @@
|
|||
"walkable": "true",
|
||||
"tabIndex": "4"
|
||||
},
|
||||
{
|
||||
"id": "418",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "421",
|
||||
"interfaceType": "4",
|
||||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "428",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "430",
|
||||
"interfaceType": "2",
|
||||
|
|
@ -473,6 +635,30 @@
|
|||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "485",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "486",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "487",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "488",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "498",
|
||||
"interfaceType": "0",
|
||||
|
|
@ -493,7 +679,7 @@
|
|||
},
|
||||
{
|
||||
"id": "532",
|
||||
"interfaceType": "1",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
|
|
@ -605,9 +791,15 @@
|
|||
"walkable": "false",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "653",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
{
|
||||
"id": "656",
|
||||
"interfaceType": "1",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
},
|
||||
|
|
@ -721,7 +913,7 @@
|
|||
},
|
||||
{
|
||||
"id": "809",
|
||||
"interfaceType": "1",
|
||||
"interfaceType": "8",
|
||||
"walkable": "true",
|
||||
"tabIndex": "-1"
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
2570
Server/data/configs/music_regions.json
Normal file
2570
Server/data/configs/music_regions.json
Normal file
File diff suppressed because it is too large
Load diff
62
Server/data/configs/music_tiles.json
Normal file
62
Server/data/configs/music_tiles.json
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
[
|
||||
{
|
||||
"id": "98",
|
||||
"borders": "{3072,3456,3135,3519,[3076,3456,3085,3458]~,[3082,3459,3085,3460]}"
|
||||
},
|
||||
{
|
||||
"id": "141",
|
||||
"borders": "{3072,3392,3135,3455,[3076,3452,3085,3455]}"
|
||||
},
|
||||
{
|
||||
"id": "228",
|
||||
"borders": "{2896,5446,2919,5462}"
|
||||
},
|
||||
{
|
||||
"id": "229",
|
||||
"borders": "{2921,5456,2937,5479}"
|
||||
},
|
||||
{
|
||||
"id": "230",
|
||||
"borders": "{2904,5481,2927,5497}"
|
||||
},
|
||||
{
|
||||
"id": "231",
|
||||
"borders": "{2886,5464,2902,5487}"
|
||||
},
|
||||
{
|
||||
"id": "386",
|
||||
"borders": "{2820,5312,2849,5369}-{2849,5349,2880,5374}"
|
||||
},
|
||||
{
|
||||
"id": "391",
|
||||
"borders": "{2879,5340,2944,5366}-{2909,5316,2944,5340}"
|
||||
},
|
||||
{
|
||||
"id": "399",
|
||||
"borders": "{2816,5248,2943,5375,[2823,5250,2844,5310]~,[2844,5250,2878,5280]~,[2879,5340,2944,5366]~,[2909,5316,2944,5340]~,[2820,5312,2849,5369]~,[2849,5349,2880,5374]~,[2885,5253,2934,5278]~,[2913,5278,2937,5306]}"
|
||||
},
|
||||
{
|
||||
"id": "404",
|
||||
"borders": "{2823,5250,2844,5310}-{2844,5250,2878,5276}"
|
||||
},
|
||||
{
|
||||
"id": "408",
|
||||
"borders": "{2885,5253,2934,5278}-{2913,5278,2937,5306}"
|
||||
},
|
||||
{
|
||||
"id": "459",
|
||||
"borders": "{3137,5442,3192,5564}-{3193,5442,3198,5472}-{3193,5507,3198,5564}"
|
||||
},
|
||||
{
|
||||
"id": "467",
|
||||
"borders": "{3199,5441,3262,5564}-{3193,5482,3198,5497}"
|
||||
},
|
||||
{
|
||||
"id": "488",
|
||||
"borders": "{3263,5441,3327,5566}"
|
||||
},
|
||||
{
|
||||
"id": "492",
|
||||
"borders": "{3076,3452,3085,3460,[3076,3459,3081,3460]}"
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -145,7 +145,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "Used for storage.",
|
||||
"ids": "63,64"
|
||||
"ids": "63,64,36351,36352"
|
||||
},
|
||||
{
|
||||
"examine": "Surprisingly sturdy looking.",
|
||||
|
|
@ -968,7 +968,7 @@
|
|||
"ids": "573"
|
||||
},
|
||||
{
|
||||
"examine": "A carving of a figure from the history of RuneScape.",
|
||||
"examine": "A carving of a figure from the history of 2009Scape.",
|
||||
"ids": "574,575,576,577,578"
|
||||
},
|
||||
{
|
||||
|
|
@ -1753,7 +1753,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "Danger!",
|
||||
"ids": "1032,5127,29373"
|
||||
"ids": "1032,5127"
|
||||
},
|
||||
{
|
||||
"examine": "This tells you which way is which.",
|
||||
|
|
@ -2148,7 +2148,7 @@
|
|||
"ids": "1231"
|
||||
},
|
||||
{
|
||||
"examine": "One of the most common trees in RuneScape.",
|
||||
"examine": "One of the most common trees in 2009Scape.",
|
||||
"ids": "1276"
|
||||
},
|
||||
{
|
||||
|
|
@ -2601,7 +2601,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "I can climb this.",
|
||||
"ids": "1729"
|
||||
"ids": "1729,36347,36363,36644"
|
||||
},
|
||||
{
|
||||
"examine": "Dare I go up?",
|
||||
|
|
@ -3584,7 +3584,7 @@
|
|||
"ids": "2375"
|
||||
},
|
||||
{
|
||||
"examine": "Soil",
|
||||
"examine": "Soil. Dug up!",
|
||||
"ids": "2376,2377,2378"
|
||||
},
|
||||
{
|
||||
|
|
@ -3641,7 +3641,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "I can climb down this.",
|
||||
"ids": "2408"
|
||||
"ids": "2408,36693,36694"
|
||||
},
|
||||
{
|
||||
"examine": "A commonly found tree.",
|
||||
|
|
@ -4964,7 +4964,7 @@
|
|||
"ids": "3032"
|
||||
},
|
||||
{
|
||||
"examine": "One of the most common trees in RuneScape.",
|
||||
"examine": "One of the most common trees in 2009Scape.",
|
||||
"ids": "3033,3034,3035,3036"
|
||||
},
|
||||
{
|
||||
|
|
@ -6384,12 +6384,12 @@
|
|||
"ids": "4131"
|
||||
},
|
||||
{
|
||||
"examine": "These doors look very ominous. A sign says 'To the tombs'.",
|
||||
"ids": "4132,4133"
|
||||
"examine": "This tells you which way is which.",
|
||||
"ids": "4132,4133,4134,4135"
|
||||
},
|
||||
{
|
||||
"examine": "Large doors set into the hillside.",
|
||||
"ids": "4134,4135,4136,4137"
|
||||
"examine": "These doors look very ominous. A sign says 'To the tombs'.",
|
||||
"ids": "4136,4137"
|
||||
},
|
||||
{
|
||||
"examine": "Items are for sale here.",
|
||||
|
|
@ -6777,7 +6777,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "A solid stone staircase.",
|
||||
"ids": "4415,4416,4417,4418,4419,4420"
|
||||
"ids": "4415,4416,4417,4418,4419,4420,36480,36481,36484,36495,36521,36523,36532,36540"
|
||||
},
|
||||
{
|
||||
"examine": "A spiky barricade.",
|
||||
|
|
@ -7609,7 +7609,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "I can climb down this.",
|
||||
"ids": "4911,4912"
|
||||
"ids": "4911,4912,36349,36365"
|
||||
},
|
||||
{
|
||||
"examine": "It looks cramped and dark.",
|
||||
|
|
@ -8592,7 +8592,7 @@
|
|||
"ids": "5789,5790"
|
||||
},
|
||||
{
|
||||
"examine": "A carving of a figure from the history of RuneScape.",
|
||||
"examine": "A carving of a figure from the history of 2009Scape.",
|
||||
"ids": "5791,36749,36751"
|
||||
},
|
||||
{
|
||||
|
|
@ -12788,7 +12788,7 @@
|
|||
"ids": "8972"
|
||||
},
|
||||
{
|
||||
"examine": "One of the most common trees in RuneScape.",
|
||||
"examine": "One of the most common trees in 2009Scape.",
|
||||
"ids": "8973"
|
||||
},
|
||||
{
|
||||
|
|
@ -14100,7 +14100,7 @@
|
|||
"ids": "10080"
|
||||
},
|
||||
{
|
||||
"examine": "One of the most common trees in RuneScape.",
|
||||
"examine": "One of the most common trees in 2009Scape.",
|
||||
"ids": "10081"
|
||||
},
|
||||
{
|
||||
|
|
@ -15964,7 +15964,7 @@
|
|||
"ids": "11354,11355"
|
||||
},
|
||||
{
|
||||
"examine": "A gateway back to RuneScape.",
|
||||
"examine": "A gateway back to 2009Scape.",
|
||||
"ids": "11356"
|
||||
},
|
||||
{
|
||||
|
|
@ -16324,7 +16324,7 @@
|
|||
"ids": "11629"
|
||||
},
|
||||
{
|
||||
"examine": "South to Falador :: West to Taverley :: East to Varrock.",
|
||||
"examine": "This tells you which way is which.",
|
||||
"ids": "11630,11631,11632,11633"
|
||||
},
|
||||
{
|
||||
|
|
@ -16564,7 +16564,7 @@
|
|||
"ids": "11759"
|
||||
},
|
||||
{
|
||||
"examine": "A carving of a figure from the history of RuneScape.",
|
||||
"examine": "A carving of a figure from the history of 2009Scape.",
|
||||
"ids": "11761"
|
||||
},
|
||||
{
|
||||
|
|
@ -16741,7 +16741,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "Better not eat them!",
|
||||
"ids": "12003"
|
||||
"ids": "12003,12128"
|
||||
},
|
||||
{
|
||||
"examine": "It's going to be a tight squeeze!",
|
||||
|
|
@ -16881,7 +16881,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "A wall jutting out into the path.",
|
||||
"ids": "12127,12128,12129,12130"
|
||||
"ids": "12127,12129,12130"
|
||||
},
|
||||
{
|
||||
"examine": "Spooky.",
|
||||
|
|
@ -18728,7 +18728,7 @@
|
|||
"ids": "13409,13410"
|
||||
},
|
||||
{
|
||||
"examine": "One of the most common trees in RuneScape.",
|
||||
"examine": "One of the most common trees in 2009Scape.",
|
||||
"ids": "13411,13412"
|
||||
},
|
||||
{
|
||||
|
|
@ -18996,11 +18996,11 @@
|
|||
"ids": "13525"
|
||||
},
|
||||
{
|
||||
"examine": "A map of RuneScape.",
|
||||
"examine": "A map of 2009Scape.",
|
||||
"ids": "13526"
|
||||
},
|
||||
{
|
||||
"examine": "A map of RuneScape including major cave systems.",
|
||||
"examine": "A map of 2009Scape including major cave systems.",
|
||||
"ids": "13527"
|
||||
},
|
||||
{
|
||||
|
|
@ -20007,6 +20007,46 @@
|
|||
"examine": "Why do I never take time to look at the grass?",
|
||||
"ids": "14003"
|
||||
},
|
||||
{
|
||||
"examine": "Well, I have the logs in place, now to get something to boil.",
|
||||
"ids": "14005"
|
||||
},
|
||||
{
|
||||
"examine": "Covered in a thick layer of grease.",
|
||||
"ids": "14006"
|
||||
},
|
||||
{
|
||||
"examine": "I'm glad this isn't for dinner.",
|
||||
"ids": "14007"
|
||||
},
|
||||
{
|
||||
"examine": "This smells so very, very bad...",
|
||||
"ids": "14008"
|
||||
},
|
||||
{
|
||||
"examine": "It seems to have all boiled away.",
|
||||
"ids": "14009"
|
||||
},
|
||||
{
|
||||
"examine": "Stop examining signs! You're in the Wilderness now!",
|
||||
"ids": "14503"
|
||||
},
|
||||
{
|
||||
"examine": "Danger, Wilderness up ahead. Last chance to turn back...",
|
||||
"ids": "14504"
|
||||
},
|
||||
{
|
||||
"examine": "Danger, Wilderness up ahead. Watch out for the Beast!",
|
||||
"ids": "14505"
|
||||
},
|
||||
{
|
||||
"examine": "Danger, Wilderness up ahead. Beware of stray magma.",
|
||||
"ids": "14506"
|
||||
},
|
||||
{
|
||||
"examine": "Danger, Wilderness up ahead. Almost certain death!",
|
||||
"ids": "14507"
|
||||
},
|
||||
{
|
||||
"examine": "Home sweet home?",
|
||||
"ids": "15477"
|
||||
|
|
@ -20015,14 +20055,38 @@
|
|||
"examine": "Home sweet home?",
|
||||
"ids": "15480"
|
||||
},
|
||||
{
|
||||
"examine": "Baby bread.",
|
||||
"ids": "15506,15507"
|
||||
},
|
||||
{
|
||||
"examine": "Home sweet home?",
|
||||
"ids": "15748"
|
||||
},
|
||||
{
|
||||
"examine": "Danger - Possibly deadly creatures below!",
|
||||
"ids": "16083,16151,16117"
|
||||
},
|
||||
{
|
||||
"examine": "Large urn.",
|
||||
"ids": "17362"
|
||||
},
|
||||
{
|
||||
"examine": "A large fish.",
|
||||
"ids": "18482"
|
||||
},
|
||||
{
|
||||
"examine": "A sign on a cactus.",
|
||||
"ids": "18876"
|
||||
},
|
||||
{
|
||||
"examine": "Dead and half-buried.",
|
||||
"ids": "19996"
|
||||
},
|
||||
{
|
||||
"examine": "Dead animal head. Lovely.",
|
||||
"ids": "19997"
|
||||
},
|
||||
{
|
||||
"examine": "Might be worth opening?",
|
||||
"ids": "21299"
|
||||
|
|
@ -20123,14 +20187,34 @@
|
|||
"examine": "A short longboat!",
|
||||
"ids": "21834"
|
||||
},
|
||||
{
|
||||
"examine": "A place to sit and watch furniture grow.",
|
||||
"ids": "28627"
|
||||
},
|
||||
{
|
||||
"examine": "It's not rolling, but it seems to have gathered some moss.",
|
||||
"ids": "28635"
|
||||
},
|
||||
{
|
||||
"examine": "A thick metal gate.",
|
||||
"ids": "28690,28691,28692,28693"
|
||||
},
|
||||
{
|
||||
"examine": "Contains traces of summoning energy.",
|
||||
"ids": "29939,29943,29944,29945,29947,29951,29952,29953,29954"
|
||||
},
|
||||
{
|
||||
"examine": "An interesting sign.",
|
||||
"ids": "31297,31298,31299,31300,31301"
|
||||
},
|
||||
{
|
||||
"examine": "I wonder what this spooky contains.",
|
||||
"ids": "37051"
|
||||
},
|
||||
{
|
||||
"examine": "The mine has collapsed.",
|
||||
"ids": "37634"
|
||||
},
|
||||
{
|
||||
"examine": "It really was this big!",
|
||||
"ids": "40043"
|
||||
|
|
@ -20195,6 +20279,14 @@
|
|||
"examine": "A wooden crate.",
|
||||
"ids": "15031"
|
||||
},
|
||||
{
|
||||
"examine": "A sealed barrel with a warning sign on it.",
|
||||
"ids": "17296"
|
||||
},
|
||||
{
|
||||
"examine": "A barrel with a warning sign on it.",
|
||||
"ids": "17297"
|
||||
},
|
||||
{
|
||||
"examine": "A beautiful landscape.",
|
||||
"ids": "24184"
|
||||
|
|
@ -20275,6 +20367,10 @@
|
|||
"examine": "Technically a bed.",
|
||||
"ids": "32031"
|
||||
},
|
||||
{
|
||||
"examine": "Now that's what I call slimline!",
|
||||
"ids": "32072"
|
||||
},
|
||||
{
|
||||
"examine": "A really bad portrait of the King.",
|
||||
"ids": "32326"
|
||||
|
|
@ -20293,7 +20389,7 @@
|
|||
},
|
||||
{
|
||||
"examine": "A wooden barrel for storage.",
|
||||
"ids": "31136,36798"
|
||||
"ids": "17308,31136,36798"
|
||||
},
|
||||
{
|
||||
"examine": "A home for baby creatures.",
|
||||
|
|
@ -20519,10 +20615,6 @@
|
|||
"examine": "Popular on sandy beaches where fruity cocktails may be found.",
|
||||
"ids": "18856"
|
||||
},
|
||||
{
|
||||
"examine": "Stop examining signs! You're in the Wilderness now!",
|
||||
"ids": "14503"
|
||||
},
|
||||
{
|
||||
"examine": "Looks like part of the entrance is blocked by rubble.",
|
||||
"ids": "15767"
|
||||
|
|
@ -20602,5 +20694,41 @@
|
|||
{
|
||||
"examine": "Keeps the puppies out of trouble.",
|
||||
"ids": "28341"
|
||||
},
|
||||
{
|
||||
"examine": "Warning! Danger of death.",
|
||||
"ids": "29373"
|
||||
},
|
||||
{
|
||||
"examine": "There are some toolboxes on this table.",
|
||||
"ids": "36573,36580"
|
||||
},
|
||||
{
|
||||
"examine": "There's some rock I can use with the catapult here.",
|
||||
"ids": "36574,36581"
|
||||
},
|
||||
{
|
||||
"examine": "There are some barricades here.",
|
||||
"ids": "36575,36582"
|
||||
},
|
||||
{
|
||||
"examine": "There is some rope here.",
|
||||
"ids": "36576,36583"
|
||||
},
|
||||
{
|
||||
"examine": "There are some explosive potions here.",
|
||||
"ids": "36577,36584"
|
||||
},
|
||||
{
|
||||
"examine": "There are some pickaxes on this table.",
|
||||
"ids": "36578,36585"
|
||||
},
|
||||
{
|
||||
"examine": "There are some bandages on this table.",
|
||||
"ids": "36579,36586"
|
||||
},
|
||||
{
|
||||
"examine": "Rough but adequate.",
|
||||
"ids": "14918"
|
||||
}
|
||||
]
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236"
|
||||
},
|
||||
{
|
||||
"itemId": "800",
|
||||
|
|
@ -294,7 +294,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236"
|
||||
},
|
||||
{
|
||||
"itemId": "839",
|
||||
|
|
@ -1095,7 +1095,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "8882,877,878,6061,6062,879,9236"
|
||||
"ammunition": "8882,877,878,6061,6062,879,9236,9139,9286,9293,9300,9140,9287,9294,9237,9145,9301,9292,9299,9306,9335,880,9238"
|
||||
},
|
||||
{
|
||||
"itemId": "9174",
|
||||
|
|
@ -1104,7 +1104,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236"
|
||||
},
|
||||
{
|
||||
"itemId": "9176",
|
||||
|
|
@ -1113,7 +1113,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,9140,879,9139,9236,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9139,9236,9286,9293,9300,9335,9237"
|
||||
},
|
||||
{
|
||||
"itemId": "9177",
|
||||
|
|
@ -1122,7 +1122,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,9139,9140,9287,9294,9301,880,9238,9145,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236,9139,9140,9287,9294,9301,880,9238,9145,9286,9293,9300,9292,9299,9306,9335,9237"
|
||||
},
|
||||
{
|
||||
"itemId": "9179",
|
||||
|
|
@ -1131,7 +1131,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9139,9140,9236,9141,9288,9295,9302,9336,9239,9145,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9139,9140,9236,9141,9288,9295,9302,9336,9239,9145,9286,9293,9300,9287,9294,9301,9292,9299,9306,9335,9237,880,9238"
|
||||
},
|
||||
{
|
||||
"itemId": "9181",
|
||||
|
|
@ -1140,7 +1140,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,9141,9288,9295,9302,9336,9239,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9145,9139,9140,9241,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236,9141,9288,9295,9302,9336,9239,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9145,9139,9140,9241,9286,9293,9300,9140,9287,9294,9301,9292,9299,9306,9335,9237,880,9238,13083,13084,13085,13086"
|
||||
},
|
||||
{
|
||||
"itemId": "9183",
|
||||
|
|
@ -1149,7 +1149,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,9139,9141,9288,9295,9302,9336,9239,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9241,9145,9143,9290,9297,9304,9339,9242,9340,9243,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236,9139,9141,9288,9295,9302,9336,9239,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9241,9145,9143,9290,9297,9304,9339,9242,9340,9243,9286,9293,9300,9140,9287,9294,9301,9292,9299,9306,9335,9237,880,9238,13083,13084,13085,13086"
|
||||
},
|
||||
{
|
||||
"itemId": "9185",
|
||||
|
|
@ -1158,7 +1158,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,9139,9141,9288,9295,9302,9336,9239,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9145,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9241,9143,9290,9297,9304,9339,9242,9340,9243,9144,9291,9298,9305,9341,9244,9342,9245,9140,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9236,9139,9141,9288,9295,9302,9336,9239,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9145,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9241,9143,9290,9297,9304,9339,9242,9340,9243,9144,9291,9298,9305,9341,9244,9342,9245,9140,13280,9139,9286,9293,9300,9287,9294,9301,9292,9299,9306,9335,9237,880,13083,13084,13085,13086"
|
||||
},
|
||||
{
|
||||
"itemId": "9705",
|
||||
|
|
@ -1293,7 +1293,7 @@
|
|||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,9141,9288,9295,9302,9140,9336,9239,13083,13084,13085,13086,13280"
|
||||
"ammunition": "877,878,6061,6062,879,9139,9140,9236,9141,9288,9295,9302,9336,9239,9145,9286,9293,9300,9287,9294,9301,9292,9299,9306,9335,9237,880,9238,13083,13084,13085,13086"
|
||||
},
|
||||
{
|
||||
"itemId": "13405",
|
||||
|
|
@ -1502,69 +1502,6 @@
|
|||
"drop_ammo": "true",
|
||||
"ammunition": "882,883,5616,5622,598,884,885,5617,5623,2532,886,887,5618,5624,2534,888,889,5619,5625,2536,890,891,5620,5626,2538,892,893,5621,5627,2540,78,4160"
|
||||
},
|
||||
{
|
||||
"itemId": "14671",
|
||||
"name": "Armadyl crossbow",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236,9141,9288,9295,9302,9336,9239,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9241,9143,9290,9297,9304,9339,9242,9340,9243,9144,9291,9298,9305,9341,9244,9342,9245,9140,13280"
|
||||
},
|
||||
{
|
||||
"itemId": "14684",
|
||||
"name": "Odium ward",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "8882,877,878,6061,6062,879,9236,9141,9288,9295,9302,9336,9239,13083,13084,13085,13086,9142,9289,9296,9303,9337,9240,9338,9241,9143,9290,9297,9304,9339,9242,9340,9243"
|
||||
},
|
||||
{
|
||||
"itemId": "14685",
|
||||
"name": "Odium shard 1",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "1",
|
||||
"animation": "4230",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "877,878,6061,6062,879,9236"
|
||||
},
|
||||
{
|
||||
"itemId": "14803",
|
||||
"name": "Dark bow",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "2",
|
||||
"animation": "426",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "882,883,5616,5622,598,884,885,5617,5623,2532,886,887,5618,5624,2534,888,889,5619,5625,2536,890,891,5620,5626,2538,892,893,5621,5627,2540,11212,11227,11228,11229,11217,78,4160"
|
||||
},
|
||||
{
|
||||
"itemId": "14804",
|
||||
"name": "Dark bow",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "2",
|
||||
"animation": "426",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "882,883,5616,5622,598,884,885,5617,5623,2532,886,887,5618,5624,2534,888,889,5619,5625,2536,890,891,5620,5626,2538,892,893,5621,5627,2540,11212,11227,11228,11229,11217,78,4160"
|
||||
},
|
||||
{
|
||||
"itemId": "14805",
|
||||
"name": "Dark bow",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "2",
|
||||
"animation": "426",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "882,883,5616,5622,598,884,885,5617,5623,2532,886,887,5618,5624,2534,888,889,5619,5625,2536,890,891,5620,5626,2538,892,893,5621,5627,2540,11212,11227,11228,11229,11217,78,4160"
|
||||
},
|
||||
{
|
||||
"itemId": "14806",
|
||||
"name": "Dark bow",
|
||||
"ammo_slot": "13",
|
||||
"weapon_type": "2",
|
||||
"animation": "426",
|
||||
"drop_ammo": "true",
|
||||
"ammunition": "882,883,5616,5622,598,884,885,5617,5623,2532,886,887,5618,5624,2534,888,889,5619,5625,2536,890,891,5620,5626,2538,892,893,5621,5627,2540,11212,11227,11228,11229,11217,78,4160"
|
||||
},
|
||||
{
|
||||
"itemId": "14192",
|
||||
"name": "Bow (class 1)",
|
||||
|
|
|
|||
|
|
@ -45,22 +45,13 @@
|
|||
"stock": "{1931,30,100}-{1935,30,100}-{1735,10,100}-{1925,10,100}-{1923,10,100}-{1887,10,100}-{590,10,100}-{1755,10,100}-{2347,10,100}-{550,10,100}-{9003,10,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "590",
|
||||
"npcs": "590,591",
|
||||
"high_alch": "0",
|
||||
"currency": "995",
|
||||
"general_store": "true",
|
||||
"id": "6",
|
||||
"title": "Aemad's Adventuring Supplies Store",
|
||||
"stock": "{227,300,100}-{1265,10,100}-{1349,10,100}-{2142,10,100}-{590,10,100}-{1759,100,100}-{882,1000,100}-{954,10,100}-{970,10,100}-{946,10,100}-{1935,10,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "591",
|
||||
"high_alch": "0",
|
||||
"currency": "995",
|
||||
"general_store": "true",
|
||||
"id": "7",
|
||||
"title": "Kortan General Store",
|
||||
"stock": "{1931,30,100}-{1935,30,100}-{1735,10,100}-{1925,10,100}-{1923,10,100}-{1887,10,100}-{590,10,100}-{1755,10,100}-{2347,10,100}-{550,10,100}-{9003,10,100}"
|
||||
"title": "Aemad's Adventuring Supplies",
|
||||
"stock": "{227,10,100}-{1265,10,100}-{1349,10,100}-{2142,10,100}-{590,10,100}-{1759,100,100}-{882,1000,100}-{954,10,100}-{970,10,100}-{946,10,100}-{1935,10,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "971",
|
||||
|
|
@ -186,7 +177,7 @@
|
|||
"general_store": "true",
|
||||
"id": "21",
|
||||
"title": "Gunslik's Assorted Items",
|
||||
"stock": "{1931,30,100}-{1935,30,100}-{1735,10,100}-{1925,10,100}-{1923,10,100}-{1887,10,100}-{590,10,100}-{1755,10,100}-{2347,10,100}-{550,10,100}-{9003,10,100}"
|
||||
"stock": "{1935,10,100}-{1925,30,100}-{590,10,100}-{1755,10,100}-{2347,10,100}-{36,10,100}-{596,10,100}-{973,10,100}-{1059,10,100}-{229,300,100}-{233,10,100}-{954,10,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "1334",
|
||||
|
|
@ -519,7 +510,7 @@
|
|||
"general_store": "false",
|
||||
"id": "59",
|
||||
"title": "Fancy Clothes Store",
|
||||
"stock": "{1949,10,100}-{958,10,100}-{948,10,100}-{1733,10,100}-{1734,1000,100}-{1059,30,100}-{1061,10,100}-{1757,10,100}-{1013,10,100}-{1025,10,100}-{10088,0,100}-{10090,0,100}-{10091,0,100}-{10089,0,100}-{10087,0,100}-{11525,0,100}"
|
||||
"stock": "{1949,0,100}-{579,10,100}-{1023,10,100}-{958,10,100}-{948,10,100}-{1733,10,100}-{1734,1000,100}-{1059,30,100}-{1061,10,100}-{428,10,100}-{426,10,100}-{1757,10,100}-{1013,10,100}-{1015,10,100}-{1011,10,100}-{1007,10,100}-{1025,10,100}-{10088,0,100}-{10090,0,100}-{10091,0,100}-{10089,0,100}-{10087,0,100}-{11525,0,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "548",
|
||||
|
|
@ -573,7 +564,7 @@
|
|||
"general_store": "false",
|
||||
"id": "65",
|
||||
"title": "Dodgy Mikes Second-hand Clothing",
|
||||
"stock": "{7114,10,100}"
|
||||
"stock": "{7114,10,100}-{7122,10,100}-{7128,10,100}-{7134,10,100}-{7110,10,100}-{7126,10,100}-{7132,10,100}-{7138,10,100}-{7116,10,100}-{7124,10,100}-{7130,10,100}-{7112,10,100}-{7136,10,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "2161",
|
||||
|
|
@ -1112,7 +1103,7 @@
|
|||
"currency": "995",
|
||||
"general_store": "false",
|
||||
"id": "126",
|
||||
"title": "Pickaxe-is-mine",
|
||||
"title": "Pickaxe-Is-Mine",
|
||||
"stock": "{1265,10,100}-{1269,10,100}-{1273,10,100}-{1271,10,100}-{1275,10,100}"
|
||||
},
|
||||
{
|
||||
|
|
@ -1251,13 +1242,13 @@
|
|||
"stock": "{12204,10,100}-{12207,10,100}-{12210,10,100}-{12213,10,100}-{12216,10,100}-{12219,10,100}-{12222,10,100}-{12183,125000,100}-{12155,5000,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "6996",
|
||||
"npcs": "4472",
|
||||
"high_alch": "0",
|
||||
"currency": "995",
|
||||
"general_store": "false",
|
||||
"id": "142",
|
||||
"title": "Bogrog's Summoning Shop",
|
||||
"stock": "{12204,10,100}-{12207,10,100}-{12210,10,100}-{12213,10,100}-{12216,10,100}-{12219,10,100}-{12222,10,100}-{12183,125000,100}-{12155,5000,100}"
|
||||
"stock": "{12204,10,100}-{12207,10,100}-{12210,0,100}-{12213,0,100}-{12216,0,100}-{12219,0,100}-{12222,0,100}-{12183,65000,100}-{12155,5000,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "3671",
|
||||
|
|
@ -1266,7 +1257,7 @@
|
|||
"general_store": "false",
|
||||
"id": "143",
|
||||
"title": "Fortunato's Fine Wine",
|
||||
"stock": "{1993,10,100}-{1937,10,100}-{7919,10,100}-{1935,10,100}"
|
||||
"stock": "{1993,10,100}-{7810,10,100}-{7919,10,100}-{1935,10,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "558",
|
||||
|
|
@ -1476,7 +1467,7 @@
|
|||
"stock": "{8794,10,100}-{8790,300,100}-{4819,300,100}-{4820,300,100}-{1539,300,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "1079",
|
||||
"npcs": "1079,1357,1358",
|
||||
"high_alch": "0",
|
||||
"currency": "995",
|
||||
"general_store": "false",
|
||||
|
|
@ -1662,7 +1653,7 @@
|
|||
"general_store": "false",
|
||||
"id": "187",
|
||||
"title": "William's Wilderness Cape Shop",
|
||||
"stock": "{4315,100,100}-{4335,100,100}-{4375,100,100}-{4395,100,100}"
|
||||
"stock": "{4315,100,100}-{4335,100,100}-{4355,100,100}-{4375,100,100}-{4395,100,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "1779",
|
||||
|
|
@ -1842,7 +1833,7 @@
|
|||
"general_store": "false",
|
||||
"id": "216",
|
||||
"title": "Ore Store",
|
||||
"stock": "{436,20,100}-{438,10,100}-{440,10,100}-{442,5,100}-{453,10,100}-{444,5,100}-{447,0,100}-{449,0,100}"
|
||||
"stock": "{436,10,100}-{438,10,100}-{440,0,100}-{442,0,100}-{453,0,100}-{444,0,100}-{447,0,100}-{449,0,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "596",
|
||||
|
|
@ -2177,5 +2168,32 @@
|
|||
"id": "254",
|
||||
"title": "Gabooty's Tai Bwo Wannai Drinky Store",
|
||||
"stock": "{2084,0,100}-{2092,0,100}-{2048,0,100}-{2054,0,100}-{2064,0,100}-{2074,0,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "1526",
|
||||
"high_alch": "0",
|
||||
"currency": "4067",
|
||||
"general_store": "false",
|
||||
"id": "255",
|
||||
"title": "Castle Wars Ticket Exchange",
|
||||
"stock": "{4068,1,100}-{4069,1,100}-{4070,1,100}-{4071,1,100}-{4072,1,100}-{4503,1,100}-{4504,1,100}-{4505,1,100}-{4506,1,100}-{4507,1,100}-{4508,1,100}-{4509,1,100}-{4510,1,100}-{4511,1,100}-{4512,1,100}-{4513,1,100}-{4514,1,100}-{4515,1,100}-{4516,1,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "5111",
|
||||
"high_alch": "0",
|
||||
"currency": "995",
|
||||
"general_store": "false",
|
||||
"id": "256",
|
||||
"title": "Leon's Prototype Crossbow",
|
||||
"stock": "{10156,2,100}"
|
||||
},
|
||||
{
|
||||
"npcs": "2039",
|
||||
"high_alch": "0",
|
||||
"currency": "995",
|
||||
"general_store": "false",
|
||||
"id": "256",
|
||||
"title": "Uglug's Stuffsies",
|
||||
"stock": "{4844,100,10}-{10927,0,100}-{2862,100,100}-{1777,10,200}-{2876,0,500}-{2878,10,100}-{4850,0,100}-{946,5,100}-{4773,0,1000}-{4778,0,1000}-{4783,0,1000}-{4788,0,1500}-{4793,0,2000}-{4798,0,3000}-{4803,0,4000}-{4827,0,2000}"
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load diff
4
Server/data/eco/.gitignore
vendored
Normal file
4
Server/data/eco/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
{
|
||||
"offers": [
|
||||
{
|
||||
"__comment" : "coal",
|
||||
"item" : "453",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "vial",
|
||||
"item" : "227",
|
||||
"qty" : "10000"
|
||||
},
|
||||
{
|
||||
"__comment" : "water vial",
|
||||
"item" : "229",
|
||||
"qty" : "10000"
|
||||
},
|
||||
{
|
||||
"__comment" : "cooked lobster",
|
||||
"item" : "379",
|
||||
"qty" : "10000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Ashes",
|
||||
"item" : "592",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Mort myre fungi",
|
||||
"item" : "2970",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Poison ivy berries",
|
||||
"item" : "6018",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Potato cactus",
|
||||
"item" : "3138",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Unicorn horn",
|
||||
"item" : "237",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Red spider eggs",
|
||||
"item" : "223",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Bird nest",
|
||||
"item" : "6693",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Chocolate dust",
|
||||
"item" : "1975",
|
||||
"qty" : "1000"
|
||||
},
|
||||
{
|
||||
"__comment" : "Limpwurt root",
|
||||
"item" : "225",
|
||||
"qty" : "10000"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<EFBFBD><EFBFBD>
|
||||
102497
Server/data/eco/gedb.xml
102497
Server/data/eco/gedb.xml
File diff suppressed because it is too large
Load diff
|
|
@ -1,3 +1,7 @@
|
|||
CREATE DATABASE global;
|
||||
|
||||
USE global;
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.0.2
|
||||
-- https://www.phpmyadmin.net/
|
||||
|
|
|
|||
539
Server/db_exports/grafana-dashboard.json
Normal file
539
Server/db_exports/grafana-dashboard.json
Normal file
|
|
@ -0,0 +1,539 @@
|
|||
{
|
||||
"__inputs": [
|
||||
{
|
||||
"name": "DS_SQLITE",
|
||||
"label": "SQLite",
|
||||
"description": "",
|
||||
"type": "datasource",
|
||||
"pluginId": "frser-sqlite-datasource",
|
||||
"pluginName": "SQLite"
|
||||
}
|
||||
],
|
||||
"__elements": {},
|
||||
"__requires": [
|
||||
{
|
||||
"type": "datasource",
|
||||
"id": "frser-sqlite-datasource",
|
||||
"name": "SQLite",
|
||||
"version": "3.3.0"
|
||||
},
|
||||
{
|
||||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "10.0.1"
|
||||
},
|
||||
{
|
||||
"type": "panel",
|
||||
"id": "timeseries",
|
||||
"name": "Time series",
|
||||
"version": ""
|
||||
}
|
||||
],
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": {
|
||||
"type": "grafana",
|
||||
"uid": "-- Grafana --"
|
||||
},
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisCenteredZero": false,
|
||||
"axisColorMode": "text",
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 0,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": false,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "misc_pulses"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"fixedColor": "purple",
|
||||
"mode": "fixed"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "other"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"fixedColor": "dark-red",
|
||||
"mode": "fixed"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "packet_incoming"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"fixedColor": "super-light-red",
|
||||
"mode": "fixed"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"id": 1,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"showLegend": true
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single",
|
||||
"sort": "none"
|
||||
}
|
||||
},
|
||||
"pluginVersion": "10.0.1",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"queryText": "SELECT * FROM tick_lengths",
|
||||
"queryType": "table",
|
||||
"rawQueryText": "SELECT * FROM tick_lengths",
|
||||
"refId": "A",
|
||||
"timeColumns": [
|
||||
"ts"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Tick Time",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisCenteredZero": false,
|
||||
"axisColorMode": "text",
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 0,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": false,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 13,
|
||||
"w": 13,
|
||||
"x": 0,
|
||||
"y": 9
|
||||
},
|
||||
"id": 2,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"showLegend": true
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single",
|
||||
"sort": "none"
|
||||
}
|
||||
},
|
||||
"pluginVersion": "10.0.1",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"queryText": "select * from top_pulses;",
|
||||
"queryType": "table",
|
||||
"rawQueryText": "select * from top_pulses;",
|
||||
"refId": "A",
|
||||
"timeColumns": [
|
||||
"time",
|
||||
"ts"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Tick Time By Pulse (Total)",
|
||||
"transformations": [
|
||||
{
|
||||
"id": "extractFields",
|
||||
"options": {
|
||||
"format": "json",
|
||||
"jsonPaths": [
|
||||
{
|
||||
"path": "pulses"
|
||||
}
|
||||
],
|
||||
"keepTime": false,
|
||||
"replace": false,
|
||||
"source": "pulse_info"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "extractFields",
|
||||
"options": {
|
||||
"source": "pulses"
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisCenteredZero": false,
|
||||
"axisColorMode": "text",
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 0,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": false,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 11,
|
||||
"x": 13,
|
||||
"y": 9
|
||||
},
|
||||
"id": 4,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"showLegend": true
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single",
|
||||
"sort": "none"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"queryText": "SELECT * FROM high_volume_pulses;",
|
||||
"queryType": "table",
|
||||
"rawQueryText": "SELECT * FROM high_volume_pulses;",
|
||||
"refId": "A",
|
||||
"timeColumns": [
|
||||
"time",
|
||||
"ts"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "High Volume Pulses",
|
||||
"transformations": [
|
||||
{
|
||||
"id": "extractFields",
|
||||
"options": {
|
||||
"format": "json",
|
||||
"source": "pulse_info"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "extractFields",
|
||||
"options": {
|
||||
"source": "pulses"
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisCenteredZero": false,
|
||||
"axisColorMode": "text",
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 0,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "stepBefore",
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": false,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 11,
|
||||
"x": 13,
|
||||
"y": 18
|
||||
},
|
||||
"id": 3,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "list",
|
||||
"placement": "bottom",
|
||||
"showLegend": true
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single",
|
||||
"sort": "none"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "frser-sqlite-datasource",
|
||||
"uid": "${DS_SQLITE}"
|
||||
},
|
||||
"queryText": "SELECT * FROM bot_counts;",
|
||||
"queryType": "table",
|
||||
"rawQueryText": "SELECT * FROM bot_counts;",
|
||||
"refId": "A",
|
||||
"timeColumns": [
|
||||
"time",
|
||||
"ts"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Bot Population",
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"refresh": "1h",
|
||||
"schemaVersion": 38,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-5m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"title": "Main",
|
||||
"uid": "ffccf845-00a2-46f2-b0c0-a8b88032c701",
|
||||
"version": 10,
|
||||
"weekStart": ""
|
||||
}
|
||||
2
Server/db_exports/testuser.sql
Normal file
2
Server/db_exports/testuser.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CREATE USER IF NOT EXISTS 2009scapetest@localhost IDENTIFIED BY '2009scapetest';
|
||||
GRANT ALL PRIVILEGES ON global.* TO 2009scapetest@localhost;
|
||||
|
|
@ -285,7 +285,7 @@ exceptions:
|
|||
- 'Throwable'
|
||||
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
||||
TooGenericExceptionThrown:
|
||||
active: true
|
||||
active: false
|
||||
exceptionNames:
|
||||
- 'Error'
|
||||
- 'Exception'
|
||||
|
|
@ -437,7 +437,7 @@ potential-bugs:
|
|||
- '*.CanIgnoreReturnValue'
|
||||
ignoreFunctionCall: []
|
||||
ImplicitDefaultLocale:
|
||||
active: true
|
||||
active: false
|
||||
ImplicitUnitReturnType:
|
||||
active: false
|
||||
allowExplicitReturnType: true
|
||||
|
|
@ -609,7 +609,7 @@ style:
|
|||
ObjectLiteralToLambda:
|
||||
active: true
|
||||
OptionalAbstractKeyword:
|
||||
active: true
|
||||
active: false
|
||||
OptionalUnit:
|
||||
active: false
|
||||
OptionalWhenBraces:
|
||||
|
|
@ -696,9 +696,9 @@ style:
|
|||
UseOrEmpty:
|
||||
active: true
|
||||
UseRequire:
|
||||
active: true
|
||||
active: false
|
||||
UseRequireNotNull:
|
||||
active: true
|
||||
active: false
|
||||
UselessCallOnNotNull:
|
||||
active: true
|
||||
UtilityClassWithPublicConstructor:
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
<properties>
|
||||
<project.mainClassName>core.Server</project.mainClassName>
|
||||
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
|
||||
<kotlin.version>1.6.21</kotlin.version>
|
||||
<kotlin.comipler.jvmTarget>1.6</kotlin.comipler.jvmTarget>
|
||||
<kotlin.version>1.8.20</kotlin.version>
|
||||
<kotlin.compiler.jvmTarget>11</kotlin.compiler.jvmTarget>
|
||||
<junit.version>5.7.0</junit.version>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||
<artifactId>kotlin-stdlib</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
|
|
|||
|
|
@ -30,11 +30,6 @@ public enum BossKillCounter {
|
|||
8355, 8356, 8357, 8358, 8359, 8360,
|
||||
8361, 8362, 8363, 8364, 8365, 8366,
|
||||
}, "Tormented demon", -1),
|
||||
CALLISTO(new int[] { 8610 }, "Callisto", 14658),
|
||||
SCORPIA(new int[] { 8611 }, "Scorpia", 14661),
|
||||
VENENATIS(new int[] { 8612 }, "Venenatis", 14657),
|
||||
VETION(new int[] { 8613 }, "Vet'ion", 14659),
|
||||
KRAKEN(new int[] { 8614 }, "Cave Kraken", 14651),
|
||||
|
||||
|
||||
;
|
||||
|
|
|
|||
80
Server/src/main/content/data/ChargedItem.kt
Normal file
80
Server/src/main/content/data/ChargedItem.kt
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
package content.data
|
||||
|
||||
import core.api.toIntArray
|
||||
import core.cache.def.impl.ItemDefinition
|
||||
import org.rs09.consts.Items
|
||||
|
||||
/**
|
||||
* Represents a distinct charged item, i.e. items with (#).
|
||||
* Not to be confused with items with internal charge, like degradation.
|
||||
* @author RiL
|
||||
*/
|
||||
enum class ChargedItem(val ids: IntArray) {
|
||||
AMULET_OF_GLORY((Items.AMULET_OF_GLORY4_1712 downTo Items.AMULET_OF_GLORY_1704 step 2).toIntArray()),
|
||||
RING_OF_DUELLING((Items.RING_OF_DUELLING8_2552..Items.RING_OF_DUELLING1_2566 step 2).toIntArray()),
|
||||
GAMES_NECKLACE((Items.GAMES_NECKLACE8_3853..Items.GAMES_NECKLACE1_3867 step 2).toIntArray()),
|
||||
BROODOO_SHIELDA((Items.BROODOO_SHIELD_10_6215..Items.BROODOO_SHIELD_6235 step 2).toIntArray()),
|
||||
BROODOO_SHIELDB((Items.BROODOO_SHIELD_10_6237..Items.BROODOO_SHIELD_6257 step 2).toIntArray()),
|
||||
BROODOO_SHIELDC((Items.BROODOO_SHIELD_10_6259..Items.BROODOO_SHIELD_6279 step 2).toIntArray()),
|
||||
ROD_OF_IVANDIS((Items.ROD_OF_IVANDIS10_7639..Items.ROD_OF_IVANDIS1_7648).toIntArray()),
|
||||
BLACK_MASK((Items.BLACK_MASK_10_8901..Items.BLACK_MASK_8921 step 2).toIntArray()),
|
||||
AMULET_OF_GLORYT((Items.AMULET_OF_GLORYT4_10354..Items.AMULET_OF_GLORYT_10362 step 2).toIntArray()),
|
||||
CASTLEWAR_BRACE((Items.CASTLEWAR_BRACE3_11079..Items.CASTLEWAR_BRACE1_11083 step 2).toIntArray()),
|
||||
FORINTHRY_BRACE((Items.FORINTHRY_BRACE5_11095..Items.FORINTHRY_BRACE1_11103 step 2).toIntArray()),
|
||||
SKILLS_NECKLACE((Items.SKILLS_NECKLACE4_11105..Items.SKILLS_NECKLACE_11113 step 2).toIntArray()),
|
||||
COMBAT_BRACELET((Items.COMBAT_BRACELET4_11118..Items.COMBAT_BRACELET_11126 step 2).toIntArray()),
|
||||
DIGSITE_PENDANT((Items.DIGSITE_PENDANT_5_11194 downTo Items.DIGSITE_PENDANT_1_11190).toIntArray()),
|
||||
VOID_SEAL((Items.VOID_SEAL8_11666..Items.VOID_SEAL1_11673).toIntArray()),
|
||||
AMULET_OF_FARMING((Items.AMULET_OF_FARMING8_12622 downTo Items.AMULET_OF_FARMING1_12608 step 2).toIntArray()),
|
||||
IVANDIS_FLAIL((Items.IVANDIS_FLAIL_30_13117..Items.IVANDIS_FLAIL_1_13146).toIntArray()),
|
||||
RING_OF_SLAYING((Items.RING_OF_SLAYING8_13281..Items.RING_OF_SLAYING1_13288).toIntArray()),
|
||||
RING_OF_WEALTH((Items.RING_OF_WEALTH4_14646 downTo Items.RING_OF_WEALTH_14638 step 2).toIntArray());
|
||||
|
||||
/**
|
||||
* Get the item id for a specific [charge].
|
||||
* If [charge] is outside the valid range, return the item id with the closest charge.
|
||||
*/
|
||||
fun forCharge(charge: Int): Int {
|
||||
return ids[maxCharge() - if (charge < 1) 1 + maxCharge() - ids.size else if (charge > maxCharge()) maxCharge() else charge]
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the max charge of this ChargedItem.
|
||||
*/
|
||||
fun maxCharge(): Int = maxCharges[ordinal]
|
||||
|
||||
companion object {
|
||||
private val CHARGE_REGEX = Regex("""\(\D?(\d+)\)""")
|
||||
private val idMap = HashMap<Int, ChargedItem>()
|
||||
private val maxCharges = IntArray(values().size)
|
||||
|
||||
init {
|
||||
values().forEach { chargedItem ->
|
||||
maxCharges[chargedItem.ordinal] = getMaxCharge(chargedItem)
|
||||
chargedItem.ids.forEach { idMap[it] = chargedItem }
|
||||
}
|
||||
}
|
||||
|
||||
private fun getMaxCharge(chargedItem: ChargedItem): Int {
|
||||
return CHARGE_REGEX.find(ItemDefinition.forId(chargedItem.ids.first()).name)!!.groups[1]!!.value.toInt()
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the item id is a charged item.
|
||||
*/
|
||||
fun contains(id: Int): Boolean = idMap.containsKey(id)
|
||||
|
||||
/**
|
||||
* Get the ChargedItem enum for an item id, or null if it's not a charged item.
|
||||
*/
|
||||
fun forId(id: Int): ChargedItem? = idMap[id]
|
||||
|
||||
/**
|
||||
* Get the charge value of an item id, or null if it's not a charged item.
|
||||
*/
|
||||
fun getCharge(id: Int): Int? {
|
||||
val chargedItem = forId(id) ?: return null
|
||||
return chargedItem.maxCharge() - chargedItem.ids.indexOf(id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,11 +2,13 @@ package content.data
|
|||
|
||||
import content.global.skill.magic.TeleportMethod
|
||||
import content.global.skill.slayer.SlayerManager.Companion.getInstance
|
||||
import content.global.skill.slayer.SlayerUtils
|
||||
import core.ServerConstants
|
||||
import core.api.*
|
||||
import core.game.event.TeleportEvent
|
||||
import core.game.interaction.QueueStrength
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.player.link.TeleportManager
|
||||
import core.game.node.entity.player.link.audio.Audio
|
||||
import core.game.node.item.Item
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.map.Location
|
||||
|
|
@ -14,11 +16,12 @@ import core.game.world.update.flag.context.Animation
|
|||
import core.game.world.update.flag.context.Graphics
|
||||
import org.rs09.consts.Items
|
||||
import core.game.world.GameWorld.Pulser
|
||||
import org.rs09.consts.Sounds
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* Represents an enchanted jewellery.
|
||||
* @author Vexia & downthecrop
|
||||
* Represents a piece of enchanted jewellery.
|
||||
* @author Vexia, downthecrop, Player Name
|
||||
*/
|
||||
enum class EnchantedJewellery(
|
||||
|
||||
|
|
@ -70,10 +73,10 @@ enum class EnchantedJewellery(
|
|||
),
|
||||
AMULET_OF_GLORY(
|
||||
arrayOf(
|
||||
"Edgeville",
|
||||
"Karamja",
|
||||
"Draynor Village",
|
||||
"Al-Kharid",
|
||||
"Edgeville.",
|
||||
"Karamja.",
|
||||
"Draynor Village.",
|
||||
"Al-Kharid.",
|
||||
"Nowhere."
|
||||
),
|
||||
arrayOf(
|
||||
|
|
@ -103,7 +106,7 @@ enum class EnchantedJewellery(
|
|||
"Barbarian Outpost.",
|
||||
"Clan Wars.",
|
||||
"Wilderness Volcano.",
|
||||
"Corporeal Beast"
|
||||
"Corporeal Beast."
|
||||
),
|
||||
arrayOf(
|
||||
Location.create(2899, 3563, 0),
|
||||
|
|
@ -135,10 +138,10 @@ enum class EnchantedJewellery(
|
|||
),
|
||||
COMBAT_BRACELET(
|
||||
arrayOf(
|
||||
"Champions' Guild",
|
||||
"Monastery",
|
||||
"Ranging Guild",
|
||||
"Warriors' Guild",
|
||||
"Champions' Guild.",
|
||||
"Monastery.",
|
||||
"Ranging Guild.",
|
||||
"Warriors' Guild.",
|
||||
"Nowhere."
|
||||
),
|
||||
arrayOf(
|
||||
|
|
@ -155,10 +158,10 @@ enum class EnchantedJewellery(
|
|||
),
|
||||
SKILLS_NECKLACE(
|
||||
arrayOf(
|
||||
"Fishing Guild",
|
||||
"Mining Guild",
|
||||
"Crafting Guild",
|
||||
"Cooking Guild",
|
||||
"Fishing Guild.",
|
||||
"Mining Guild.",
|
||||
"Crafting Guild.",
|
||||
"Cooking Guild.",
|
||||
"Nowhere."
|
||||
),
|
||||
arrayOf(
|
||||
|
|
@ -175,7 +178,7 @@ enum class EnchantedJewellery(
|
|||
),
|
||||
RING_OF_WEALTH(
|
||||
arrayOf(
|
||||
"Grand Exchange",
|
||||
"Grand Exchange.",
|
||||
"Nowhere."
|
||||
),
|
||||
arrayOf(
|
||||
|
|
@ -186,6 +189,13 @@ enum class EnchantedJewellery(
|
|||
Items.RING_OF_WEALTH2_14642,
|
||||
Items.RING_OF_WEALTH1_14640,
|
||||
Items.RING_OF_WEALTH_14638
|
||||
),
|
||||
RING_OF_LIFE(arrayOf<String>(),
|
||||
arrayOf(
|
||||
Location.create(ServerConstants.HOME_LOCATION)
|
||||
),
|
||||
true,
|
||||
Items.RING_OF_LIFE_2570
|
||||
);
|
||||
|
||||
val isCrumble: Boolean = crumble
|
||||
|
|
@ -199,7 +209,7 @@ enum class EnchantedJewellery(
|
|||
constructor(options: Array<String>, locations: Array<Location>, vararg ids: Int) : this(options, locations, false, *ids)
|
||||
|
||||
/**
|
||||
* Method used to teleport the player to the desired location.
|
||||
* Method used when the player "Use"s the jewellery piece.
|
||||
* @param player the player.
|
||||
* @param item the used jewellery item.
|
||||
* @param buttonID the button id.
|
||||
|
|
@ -212,38 +222,52 @@ enum class EnchantedJewellery(
|
|||
}
|
||||
return
|
||||
}
|
||||
attemptTeleport(player, item, buttonID, isEquipped)
|
||||
}
|
||||
|
||||
/**
|
||||
* Method used to actually teleport the player to the desired location.
|
||||
* @param player the player.
|
||||
* @param item the used jewellery item.
|
||||
* @param buttonID the button id.
|
||||
* @param isEquipped If the player is operating.
|
||||
*/
|
||||
fun attemptTeleport(player: Player, item: Item, buttonID: Int, isEquipped: Boolean): Boolean {
|
||||
val itemIndex = getItemIndex(item)
|
||||
val nextJewellery = Item(getNext(itemIndex))
|
||||
if (canTeleport(player, nextJewellery)) {
|
||||
Pulser.submit(object : Pulse(0) {
|
||||
private var count = 0
|
||||
private var location = getLocation(buttonID)
|
||||
override fun pulse(): Boolean {
|
||||
when (count) {
|
||||
0 -> {
|
||||
lock(player,4)
|
||||
visualize(player, ANIMATION, GRAPHICS)
|
||||
playAudio(player, AUDIO, true)
|
||||
player.impactHandler.disabledTicks = 4
|
||||
}
|
||||
3 -> {
|
||||
teleport(player,location)
|
||||
resetAnimator(player)
|
||||
if (isLastItemIndex(itemIndex)) {
|
||||
if (isCrumble) crumbleJewellery(player, item, isEquipped)
|
||||
} else {
|
||||
replaceJewellery(player, item, nextJewellery, isEquipped)
|
||||
}
|
||||
unlock(player)
|
||||
player.dispatch(TeleportEvent(TeleportManager.TeleportType.NORMAL, TeleportMethod.JEWELRY, item, location))
|
||||
return true
|
||||
}
|
||||
}
|
||||
count += 1
|
||||
return false
|
||||
}
|
||||
})
|
||||
if (!canTeleport(player, nextJewellery)) {
|
||||
return false
|
||||
}
|
||||
Pulser.submit(object : Pulse(0) {
|
||||
private var count = 0
|
||||
private var location = getLocation(buttonID)
|
||||
override fun pulse(): Boolean {
|
||||
when (count) {
|
||||
0 -> {
|
||||
lock(player,4)
|
||||
visualize(player, ANIMATION, GRAPHICS)
|
||||
playGlobalAudio(player.location, Sounds.TELEPORT_ALL_200)
|
||||
player.impactHandler.disabledTicks = 4
|
||||
closeInterface(player)
|
||||
}
|
||||
3 -> {
|
||||
teleport(player,location)
|
||||
resetAnimator(player)
|
||||
if (isLastItemIndex(itemIndex)) {
|
||||
if (isCrumble) crumbleJewellery(player, item, isEquipped)
|
||||
} else {
|
||||
replaceJewellery(player, item, nextJewellery, isEquipped)
|
||||
}
|
||||
unlock(player)
|
||||
player.dispatch(TeleportEvent(TeleportManager.TeleportType.NORMAL, TeleportMethod.JEWELRY, item, location))
|
||||
return true
|
||||
}
|
||||
}
|
||||
count += 1
|
||||
return false
|
||||
}
|
||||
})
|
||||
return true
|
||||
}
|
||||
|
||||
private fun replaceJewellery(player: Player, item: Item, nextJewellery: Item, isEquipped: Boolean) {
|
||||
|
|
@ -261,8 +285,11 @@ enum class EnchantedJewellery(
|
|||
removeItem(player, item)
|
||||
}
|
||||
if (isSlayerRing(item)) {
|
||||
addItem(player, Items.ENCHANTED_GEM_4155)
|
||||
sendMessage(player, "Your Ring of Slaying reverts back into a regular enchanted gem.")
|
||||
queueScript(player, 1, QueueStrength.SOFT) {
|
||||
addItemOrDrop(player, Items.ENCHANTED_GEM_4155)
|
||||
sendMessage(player, "Your Ring of Slaying reverts back into a regular enchanted gem.")
|
||||
return@queueScript stopExecuting(player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -274,14 +301,14 @@ enum class EnchantedJewellery(
|
|||
val slayerManager = getInstance(player)
|
||||
if (!slayerManager.hasTask()) {
|
||||
sendNPCDialogue(player, slayerManager.master!!.npc, "You need something new to hunt. Come and " +
|
||||
"see me When you can and I'll give you a new task.", core.game.dialogue.FacialExpression.HALF_GUILTY)
|
||||
"see me when you can and I'll give you a new task.", core.game.dialogue.FacialExpression.HALF_GUILTY)
|
||||
return
|
||||
}
|
||||
sendNPCDialogue(player, slayerManager.master!!.npc, "You're currently " +
|
||||
"assigned to kill ${getSlayerTaskName(player).lowercase(Locale.getDefault())}'s; " +
|
||||
"assigned to kill ${SlayerUtils.pluralise(getSlayerTaskName(player))} " +
|
||||
"only ${getSlayerTaskKillsRemaining(player)} more to go.", core.game.dialogue.FacialExpression.FRIENDLY)
|
||||
// Slayer tracker UI
|
||||
setVarbit(player, 2502, 0, slayerManager.flags.taskFlags shr 4)
|
||||
setVarp(player, 2502, slayerManager.flags.taskFlags shr 4)
|
||||
}
|
||||
|
||||
private fun canTeleport(player: Player, item: Item): Boolean {
|
||||
|
|
@ -325,7 +352,6 @@ enum class EnchantedJewellery(
|
|||
|
||||
companion object {
|
||||
private val ANIMATION = Animation(714)
|
||||
private val AUDIO = Audio(200)
|
||||
private val GRAPHICS = Graphics(308, 100, 50)
|
||||
val idMap = HashMap<Int, EnchantedJewellery>()
|
||||
|
||||
|
|
@ -335,4 +361,4 @@ enum class EnchantedJewellery(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ package content.data;
|
|||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.item.Item;
|
||||
|
||||
import static core.api.ContentAPIKt.hasRequirement;
|
||||
|
||||
/**
|
||||
* A god book.
|
||||
* @author Vexia
|
||||
|
|
@ -98,6 +100,8 @@ public enum GodBook {
|
|||
* @param page the page.
|
||||
*/
|
||||
public void insertPage(Player player, Item book, Item page) {
|
||||
if (!hasRequirement(player, Quests.HORROR_FROM_THE_DEEP))
|
||||
return;
|
||||
if (hasPage(player, book, page)) {
|
||||
player.sendMessage("The book already has that page.");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ public enum Lamps {
|
|||
L_ACHIEVEMENT_2(new Item(11186), 1000, 30),
|
||||
L_ACHIEVEMENT_3(new Item(11187), 1500, 35),
|
||||
|
||||
MYSTERIOUS_LAMP(new Item(13227), 10000, 30),
|
||||
|
||||
FALLY_ACHIEVEMENT_1(new Item(14580), 1000, 30),
|
||||
FALLY_ACHIEVEMENT_2(new Item(14581), 5000, 40),
|
||||
FALLY_ACHIEVEMENT_3(new Item(14582), 10000, 50),
|
||||
|
|
|
|||
158
Server/src/main/content/data/Quests.kt
Normal file
158
Server/src/main/content/data/Quests.kt
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
package content.data
|
||||
|
||||
enum class Quests(val questName: String) {
|
||||
MYTHS_OF_THE_WHITE_LANDS("Myths of the White Lands"),
|
||||
BLACK_KNIGHTS_FORTRESS("Black Knights' Fortress"),
|
||||
COOKS_ASSISTANT("Cook's Assistant"),
|
||||
DEMON_SLAYER("Demon Slayer"),
|
||||
DORICS_QUEST("Doric's Quest"),
|
||||
DRAGON_SLAYER("Dragon Slayer"),
|
||||
ERNEST_THE_CHICKEN("Ernest the Chicken"),
|
||||
GOBLIN_DIPLOMACY("Goblin Diplomacy"),
|
||||
IMP_CATCHER("Imp Catcher"),
|
||||
THE_KNIGHTS_SWORD("The Knight's Sword"),
|
||||
PIRATES_TREASURE("Pirate's Treasure"),
|
||||
PRINCE_ALI_RESCUE("Prince Ali Rescue"),
|
||||
THE_RESTLESS_GHOST("The Restless Ghost"),
|
||||
ROMEO_JULIET("Romeo & Juliet"),
|
||||
RUNE_MYSTERIES("Rune Mysteries"),
|
||||
SHEEP_SHEARER("Sheep Shearer"),
|
||||
SHIELD_OF_ARRAV("Shield of Arrav"),
|
||||
VAMPIRE_SLAYER("Vampire Slayer"),
|
||||
WITCHS_POTION("Witch's Potion"),
|
||||
ANIMAL_MAGNETISM("Animal Magnetism"),
|
||||
BETWEEN_A_ROCK("Between a Rock..."),
|
||||
BIG_CHOMPY_BIRD_HUNTING("Big Chompy Bird Hunting"),
|
||||
BIOHAZARD("Biohazard"),
|
||||
CABIN_FEVER("Cabin Fever"),
|
||||
CLOCK_TOWER("Clock Tower"),
|
||||
CONTACT("Contact!"),
|
||||
ZOGRE_FLESH_EATERS("Zogre Flesh Eaters"),
|
||||
CREATURE_OF_FENKENSTRAIN("Creature of Fenkenstrain"),
|
||||
DARKNESS_OF_HALLOWVALE("Darkness of Hallowvale"),
|
||||
DEATH_TO_THE_DORGESHUUN("Death to the Dorgeshuun"),
|
||||
DEATH_PLATEAU("Death Plateau"),
|
||||
DESERT_TREASURE("Desert Treasure"),
|
||||
DEVIOUS_MINDS("Devious Minds"),
|
||||
THE_DIG_SITE("The Dig Site"),
|
||||
DRUIDIC_RITUAL("Druidic Ritual"),
|
||||
DWARF_CANNON("Dwarf Cannon"),
|
||||
EADGARS_RUSE("Eadgar's Ruse"),
|
||||
EAGLES_PEAK("Eagles' Peak"),
|
||||
ELEMENTAL_WORKSHOP_I("Elemental Workshop I"),
|
||||
ELEMENTAL_WORKSHOP_II("Elemental Workshop II"),
|
||||
ENAKHRAS_LAMENT("Enakhra's Lament"),
|
||||
ENLIGHTENED_JOURNEY("Enlightened Journey"),
|
||||
THE_EYES_OF_GLOUPHRIE("The Eyes of Glouphrie"),
|
||||
FAIRYTALE_I_GROWING_PAINS("Fairytale I - Growing Pains"),
|
||||
FAIRYTALE_II_CURE_A_QUEEN("Fairytale II - Cure a Queen"),
|
||||
FAMILY_CREST("Family Crest"),
|
||||
THE_FEUD("The Feud"),
|
||||
FIGHT_ARENA("Fight Arena"),
|
||||
FISHING_CONTEST("Fishing Contest"),
|
||||
FORGETTABLE_TALE("Forgettable Tale..."),
|
||||
THE_FREMENNIK_TRIALS("The Fremennik Trials"),
|
||||
WATERFALL_QUEST("Waterfall Quest"),
|
||||
GARDEN_OF_TRANQUILITY("Garden of Tranquility"),
|
||||
GERTRUDES_CAT("Gertrude's Cat"),
|
||||
GHOSTS_AHOY("Ghosts Ahoy"),
|
||||
THE_GIANT_DWARF("The Giant Dwarf"),
|
||||
THE_GOLEM("The Golem"),
|
||||
THE_GRAND_TREE("The Grand Tree"),
|
||||
THE_HAND_IN_THE_SAND("The Hand in the Sand"),
|
||||
HAUNTED_MINE("Haunted Mine"),
|
||||
HAZEEL_CULT("Hazeel Cult"),
|
||||
HEROES_QUEST("Heroes' Quest"),
|
||||
HOLY_GRAIL("Holy Grail"),
|
||||
HORROR_FROM_THE_DEEP("Horror from the Deep"),
|
||||
ICTHLARINS_LITTLE_HELPER("Icthlarin's Little Helper"),
|
||||
IN_AID_OF_THE_MYREQUE("In Aid of the Myreque"),
|
||||
IN_SEARCH_OF_THE_MYREQUE("In Search of the Myreque"),
|
||||
JUNGLE_POTION("Jungle Potion"),
|
||||
LEGENDS_QUEST("Legend's Quest"),
|
||||
LOST_CITY("Lost City"),
|
||||
THE_LOST_TRIBE("The Lost Tribe"),
|
||||
LUNAR_DIPLOMACY("Lunar Diplomacy"),
|
||||
MAKING_HISTORY("Making History"),
|
||||
MERLINS_CRYSTAL("Merlin's Crystal"),
|
||||
MONKEY_MADNESS("Monkey Madness"),
|
||||
MONKS_FRIEND("Monk's Friend"),
|
||||
MOUNTAIN_DAUGHTER("Mountain Daughter"),
|
||||
MOURNINGS_END_PART_I("Mourning's End Part I"),
|
||||
MOURNINGS_END_PART_II("Mourning's End Part II"),
|
||||
MURDER_MYSTERY("Murder Mystery"),
|
||||
MY_ARMS_BIG_ADVENTURE("My Arm's Big Adventure"),
|
||||
NATURE_SPIRIT("Nature Spirit"),
|
||||
OBSERVATORY_QUEST("Observatory Quest"),
|
||||
ONE_SMALL_FAVOUR("One Small Favour"),
|
||||
PLAGUE_CITY("Plague City"),
|
||||
PRIEST_IN_PERIL("Priest in Peril"),
|
||||
RAG_AND_BONE_MAN("Rag and Bone Man"),
|
||||
RATCATCHERS("Ratcatchers"),
|
||||
RECIPE_FOR_DISASTER("Recipe for Disaster"),
|
||||
RECRUITMENT_DRIVE("Recruitment Drive"),
|
||||
REGICIDE("Regicide"),
|
||||
ROVING_ELVES("Roving Elves"),
|
||||
ROYAL_TROUBLE("Royal Trouble"),
|
||||
RUM_DEAL("Rum Deal"),
|
||||
SCORPION_CATCHER("Scorpion Catcher"),
|
||||
SEA_SLUG("Sea Slug"),
|
||||
THE_SLUG_MENACE("The Slug Menace"),
|
||||
SHADES_OF_MORTTON("Shades of Mort'ton"),
|
||||
SHADOW_OF_THE_STORM("Shadow of the Storm"),
|
||||
SHEEP_HERDER("Sheep Herder"),
|
||||
SHILO_VILLAGE("Shilo Village"),
|
||||
A_SOULS_BANE("A Soul's Bane"),
|
||||
SPIRITS_OF_THE_ELID("Spirits of the Elid"),
|
||||
SWAN_SONG("Swan Song"),
|
||||
TAI_BWO_WANNAI_TRIO("Tai Bwo Wannai Trio"),
|
||||
A_TAIL_OF_TWO_CATS("A Tail of Two Cats"),
|
||||
TEARS_OF_GUTHIX("Tears of Guthix"),
|
||||
TEMPLE_OF_IKOV("Temple of Ikov"),
|
||||
THRONE_OF_MISCELLANIA("Throne of Miscellania"),
|
||||
THE_TOURIST_TRAP("The Tourist Trap"),
|
||||
WITCHS_HOUSE("Witch's House"),
|
||||
TREE_GNOME_VILLAGE("Tree Gnome Village"),
|
||||
TRIBAL_TOTEM("Tribal Totem"),
|
||||
TROLL_ROMANCE("Troll Romance"),
|
||||
TROLL_STRONGHOLD("Troll Stronghold"),
|
||||
UNDERGROUND_PASS("Underground Pass"),
|
||||
WANTED("Wanted!"),
|
||||
WATCHTOWER("Watchtower"),
|
||||
COLD_WAR("Cold War"),
|
||||
THE_FREMENNIK_ISLES("The Fremennik Isles"),
|
||||
TOWER_OF_LIFE("Tower of Life"),
|
||||
THE_GREAT_BRAIN_ROBBERY("The Great Brain Robbery"),
|
||||
WHAT_LIES_BELOW("What Lies Below"),
|
||||
OLAFS_QUEST("Olaf's Quest"),
|
||||
ANOTHER_SLICE_OF_HAM("Another Slice of H.A.M"),
|
||||
DREAM_MENTOR("Dream Mentor"),
|
||||
GRIM_TALES("Grim Tales"),
|
||||
KINGS_RANSOM("King's Ransom"),
|
||||
THE_PATH_OF_GLOUPHRIE("The Path of Glouphrie"),
|
||||
BACK_TO_MY_ROOTS("Back to my Roots"),
|
||||
LAND_OF_THE_GOBLINS("Land of the Goblins"),
|
||||
DEALING_WITH_SCABARAS("Dealing with Scabaras"),
|
||||
WOLF_WHISTLE("Wolf Whistle"),
|
||||
AS_A_FIRST_RESORT("As a First Resort..."),
|
||||
CATAPULT_CONSTRUCTION("Catapult Construction"),
|
||||
KENNITHS_CONCERNS("Kennith's Concerns"),
|
||||
LEGACY_OF_SEERGAZE("Legacy of Seergaze"),
|
||||
PERILS_OF_ICE_MOUNTAIN("Perils of Ice Mountain"),
|
||||
TOKTZ_KET_DILL("TokTz-Ket-Dill"),
|
||||
SMOKING_KILLS("Smoking Kills"),
|
||||
ROCKING_OUT("Rocking Out"),
|
||||
SPIRIT_OF_SUMMER("Spirit of Summer"),
|
||||
MEETING_HISTORY("Meeting History"),
|
||||
ALL_FIRED_UP("All Fired Up"),
|
||||
SUMMERS_END("Summer's End"),
|
||||
DEFENDER_OF_VARROCK("Defender of Varrock"),
|
||||
SWEPT_AWAY("Swept Away"),
|
||||
WHILE_GUTHIX_SLEEPS("While Guthix Sleeps"),
|
||||
IN_PYRE_NEED("In Pyre Need"),
|
||||
TEST_QUEST("Test Quest");
|
||||
|
||||
override fun toString(): String {
|
||||
return questName
|
||||
}
|
||||
}
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
package content.data;
|
||||
|
||||
import core.game.node.item.Item;
|
||||
|
||||
/**
|
||||
* Represents the repair item type.
|
||||
* @author Vexia
|
||||
*/
|
||||
public enum RepairItem {
|
||||
BRONZE_HATCHET(new Item(494, 1), new Item(1351, 1), 0),
|
||||
BRONZE_PICKAXE(new Item(468, 1), new Item(1265, 1), 0),
|
||||
IRON_HATCHET(new Item(496, 1), new Item(1349, 1), 0),
|
||||
IRON_PICKAXE(new Item(470, 1), new Item(1267, 1), 0),
|
||||
STEEL_HATCHET(new Item(498, 1), new Item(1353, 1), 0),
|
||||
STEEL_PICKAXE(new Item(472, 1), new Item(1269, 1), 14),
|
||||
BLACK_HATCHET(new Item(500, 1), new Item(1361, 1), 10),
|
||||
MITHRIL_HATCHET(new Item(502, 1), new Item(1355, 1), 18),
|
||||
MITHRIL_PICKAXE(new Item(474, 1), new Item(1273, 1), 43),
|
||||
ADAMANT_HATCHET(new Item(504, 1), new Item(1357, 1), 43),
|
||||
ADAMANT_PICKAXE(new Item(476, 1), new Item(1271, 1), 107),
|
||||
RUNE_HATCHET(new Item(506, 1), new Item(1359, 1), 427),
|
||||
RUNE_PICKAXE(new Item(478, 1), new Item(1275, 1), 1100),
|
||||
DRAGON_HATCHET(new Item(6741, 1), new Item(6739, 1), 1800);
|
||||
|
||||
/**
|
||||
* The item id.
|
||||
*/
|
||||
private final Item item;
|
||||
|
||||
/**
|
||||
* The product item.
|
||||
*/
|
||||
private final Item product;
|
||||
|
||||
/**
|
||||
* The cost of the money to repair.
|
||||
*/
|
||||
private final int cost;
|
||||
|
||||
/**
|
||||
* Constructs a new {@code BobRepairItem} {@code Object}.
|
||||
* @param item the item.
|
||||
* @param product the product.
|
||||
* @param cost the cost.
|
||||
*/
|
||||
RepairItem(Item item, Item product, int cost) {
|
||||
this.item = item;
|
||||
this.product = product;
|
||||
this.cost = cost;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the item.
|
||||
* @return The item.
|
||||
*/
|
||||
public Item getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the product.
|
||||
* @return The product.
|
||||
*/
|
||||
public Item getProduct() {
|
||||
return product;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the cost.
|
||||
* @return The cost.
|
||||
*/
|
||||
public int getCost() {
|
||||
return cost;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the reapir item by the id.
|
||||
* @param id the id.
|
||||
* @return the repair item.
|
||||
*/
|
||||
public static RepairItem forId(int id) {
|
||||
for (RepairItem item : RepairItem.values())
|
||||
if (item.item.getId() == id)
|
||||
return item;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
43
Server/src/main/content/data/RepairItem.kt
Normal file
43
Server/src/main/content/data/RepairItem.kt
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package content.data
|
||||
|
||||
import core.game.node.item.Item
|
||||
|
||||
/**
|
||||
* Represents the repair item type.
|
||||
* @author Vexia
|
||||
* @author Damighty - Kotlin conversion
|
||||
*/
|
||||
enum class RepairItem(
|
||||
val item: Item,
|
||||
val product: Item,
|
||||
val cost: Int
|
||||
) {
|
||||
BRONZE_HATCHET(Item(494, 1), Item(1351, 1), 0),
|
||||
BRONZE_PICKAXE(Item(468, 1), Item(1265, 1), 0),
|
||||
IRON_HATCHET(Item(496, 1), Item(1349, 1), 0),
|
||||
IRON_PICKAXE(Item(470, 1), Item(1267, 1), 0),
|
||||
STEEL_HATCHET(Item(498, 1), Item(1353, 1), 0),
|
||||
STEEL_PICKAXE(Item(472, 1), Item(1269, 1), 14),
|
||||
BLACK_HATCHET(Item(500, 1), Item(1361, 1), 10),
|
||||
MITHRIL_HATCHET(Item(502, 1), Item(1355, 1), 18),
|
||||
MITHRIL_PICKAXE(Item(474, 1), Item(1273, 1), 43),
|
||||
ADAMANT_HATCHET(Item(504, 1), Item(1357, 1), 43),
|
||||
ADAMANT_PICKAXE(Item(476, 1), Item(1271, 1), 107),
|
||||
RUNE_HATCHET(Item(506, 1), Item(1359, 1), 427),
|
||||
RUNE_PICKAXE(Item(478, 1), Item(1275, 1), 1100),
|
||||
DRAGON_HATCHET(Item(6741, 1), Item(6739, 1), 1800);
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* List of all repairable item IDs.
|
||||
*/
|
||||
@JvmStatic
|
||||
val repairableItemIds: List<Int> = values().map { it.item.id }
|
||||
|
||||
/**
|
||||
* Gets the repair item by the broken items ID.
|
||||
*/
|
||||
@JvmStatic
|
||||
fun forId(id: Int): RepairItem? = values().firstOrNull { it.item.id == id }
|
||||
}
|
||||
}
|
||||
|
|
@ -2,15 +2,17 @@ package content.data.consumables;
|
|||
|
||||
import content.data.consumables.effects.*;
|
||||
import core.game.consumable.*;
|
||||
import org.rs09.consts.Items;
|
||||
import core.game.node.entity.player.link.diary.DiaryType;
|
||||
import core.game.node.entity.state.EntityState;
|
||||
import core.game.world.update.flag.context.Animation;
|
||||
import core.game.node.entity.skill.Skills;
|
||||
import content.data.consumables.effects.KegOfBeerEffect;
|
||||
import core.game.world.update.flag.context.Animation;
|
||||
import org.rs09.consts.Items;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import static core.tools.TickUtilsKt.minutesToTicks;
|
||||
import static core.tools.TickUtilsKt.secondsToTicks;
|
||||
|
||||
/**
|
||||
* Represents a repository of active consumables in the framework.
|
||||
*/
|
||||
|
|
@ -28,36 +30,36 @@ public enum Consumables {
|
|||
HERRING(new Food(new int[] {347}, new HealingEffect(5))),
|
||||
MACKEREL(new Food(new int[] {355}, new HealingEffect(6))),
|
||||
ROAST_BIRD_MEAT(new Food(new int[] {9980}, new HealingEffect(6))),
|
||||
THIN_SNAIL(new Food(new int[] {3369}, new HealingEffect(5))),
|
||||
THIN_SNAIL(new Food(new int[] {3369}, new RandomHealthEffect(5, 7))),
|
||||
TROUT(new Food(new int[] {333}, new HealingEffect(7))),
|
||||
SPIDER_ON_STICK(new Food(new int[] {6297, 6305}, new HealingEffect(7))),
|
||||
SPIDER_ON_STICK(new Food(new int[] {6297, 6305}, new RandomHealthEffect(7, 11))),
|
||||
SPIDER_ON_SHAFT(new Food(new int[] {6299}, new HealingEffect(7))),
|
||||
ROAST_RABBIT(new Food(new int[] {7223}, new HealingEffect(7))),
|
||||
LEAN_SNAIL(new Food(new int[] {3371}, new HealingEffect(8))),
|
||||
LEAN_SNAIL(new Food(new int[] {3371}, new RandomHealthEffect(6, 8))),
|
||||
COD(new Food(new int[] {339}, new HealingEffect(7))),
|
||||
PIKE(new Food(new int[] {351}, new HealingEffect(8))),
|
||||
ROAST_BEAST_MEAT(new Food(new int[] {9988}, new HealingEffect(8))),
|
||||
COOKED_CRAB_MEAT(new Food(new int[] {7521, 7523, 7524, 7525, 7526}, new HealingEffect(2))),
|
||||
FAT_SNAIL(new Food(new int[] {3373}, new HealingEffect(9))),
|
||||
FAT_SNAIL(new Food(new int[] {3373}, new RandomHealthEffect(7, 9))),
|
||||
SALMON(new Food(new int[] {329}, new HealingEffect(9))),
|
||||
SLIMY_EEL(new Food(new int[] {3381}, new HealingEffect(6))),
|
||||
SLIMY_EEL(new Food(new int[] {3381}, new RandomHealthEffect(6, 10))),
|
||||
TUNA(new Food(new int[] {361}, new HealingEffect(10))),
|
||||
COOKED_KARAMBWAN(new Food(new int[] {3144}, new HealingEffect(18))),
|
||||
COOKED_KARAMBWAN(new Food(new int[] {3144}, new HealingEffect(18)), true),
|
||||
COOKED_CHOMPY(new Food(new int[] {2878}, new HealingEffect(10))),
|
||||
RAINBOW_FISH(new Food(new int[] {10136}, new HealingEffect(11))),
|
||||
CAVE_EEL(new Food(new int[] {5003}, new HealingEffect(7))),
|
||||
CAVE_EEL(new Food(new int[] {5003}, new RandomHealthEffect(8, 12))),
|
||||
LOBSTER(new Food(new int[] {379}, new HealingEffect(12))),
|
||||
COOKED_JUBBLY(new Food(new int[] {7568}, new HealingEffect(15))),
|
||||
BASS(new Food(new int[] {365}, new HealingEffect(13))),
|
||||
SWORDFISH(new Food(new int[] {373}, new HealingEffect(14))),
|
||||
LAVA_EEL(new Food(new int[] {2149}, new HealingEffect(14))),
|
||||
LAVA_EEL(new Food(new int[] {2149}, new HealingEffect(11))),
|
||||
MONKFISH(new Food(new int[] {7946}, new HealingEffect(16))),
|
||||
SHARK(new Food(new int[] {385}, new HealingEffect(20))),
|
||||
SEA_TURTLE(new Food(new int[] {397}, new HealingEffect(21))),
|
||||
MANTA_RAY(new Food(new int[] {391}, new HealingEffect(22))),
|
||||
KARAMBWANJI(new Food(new int[] {3151}, new HealingEffect(3))),
|
||||
STUFFED_SNAKE(new Food(new int[] {7579}, new HealingEffect(20), "You eat the stuffed snake-it's quite a meal! It tastes like chicken.")),
|
||||
CRAYFISH(new Food(new int[] {13433}, new HealingEffect(2))),
|
||||
CRAYFISH(new Food(new int[] {13433}, new HealingEffect(1))),
|
||||
GIANT_FROG_LEGS(new Food(new int [] {4517}, new HealingEffect(6))),
|
||||
|
||||
/** Breads */
|
||||
|
|
@ -108,8 +110,8 @@ public enum Consumables {
|
|||
MINT_CAKE(new Food(new int[] {9475}, new EnergyEffect(50))),
|
||||
|
||||
/** Vegetables */
|
||||
POTATO(new Food(new int[] {1942}, new HealingEffect(1))),
|
||||
BAKED_POTATO(new Food(new int[] {6701}, new HealingEffect(2))),
|
||||
POTATO(new Food(new int[] {1942}, new HealingEffect(1), "You eat the potato. Yuck!")),
|
||||
BAKED_POTATO(new Food(new int[] {6701}, new HealingEffect(4))),
|
||||
SPICY_SAUCE(new Food(new int[] {7072, 1923}, new HealingEffect(2))),
|
||||
CHILLI_CON_CARNE(new Food(new int[] {7062, 1923}, new HealingEffect(5))),
|
||||
SCRAMBLED_EGG(new Food(new int[] {7078, 1923}, new HealingEffect(5))),
|
||||
|
|
@ -126,8 +128,8 @@ public enum Consumables {
|
|||
MUSHROOM_POTATO(new Food(new int[] {7058}, new HealingEffect(20))),
|
||||
TUNA_AND_CORN(new Food(new int[] {7068, 1923}, new HealingEffect(13))),
|
||||
TUNA_POTATO(new Food(new int[] {7060}, new HealingEffect(22))),
|
||||
ONION(new Food(new int[] {1957}, new HealingEffect(2), "It's always sad to see a grown man/woman cry.")),
|
||||
CABBAGE(new Food(new int[] {1965}, new HealingEffect(2), "You eat the cabbage. Yuck!")),
|
||||
ONION(new Food(new int[] {1957}, new HealingEffect(1), "It's always sad to see a grown man/woman cry.")),
|
||||
CABBAGE(new Food(new int[] {1965}, new HealingEffect(1), "You eat the cabbage. Yuck!")),
|
||||
DRAYNOR_CABBAGE(new Food(new int[] {1967}, new DraynorCabbageEffect(), "You eat the cabbage.", "It seems to taste nicer than normal.")),
|
||||
EVIL_TURNIP(new Food(new int[] {12134, 12136, 12138}, new HealingEffect(6))),
|
||||
SPINACH_ROLL(new Food(new int[] {1969}, new HealingEffect(2))),
|
||||
|
|
@ -145,16 +147,16 @@ public enum Consumables {
|
|||
ORANGE(new Food(new int[] {2108}, new HealingEffect(2))),
|
||||
ORANGE_CHUNKS(new Food(new int[] {2110}, new HealingEffect(2))),
|
||||
ORANGE_SLICES(new Food(new int[] {2112}, new HealingEffect(2))),
|
||||
PAPAYA_FRUIT(new Food(new int[] {5972}, new HealingEffect(2))),
|
||||
PAPAYA_FRUIT(new Food(new int[] {5972}, new MultiEffect(new EnergyEffect(5), new HealingEffect(8)))),
|
||||
TENTI_PINEAPPLE(new FakeConsumable(1851, new String[] {"Try using a knife to slice it into pieces."})),
|
||||
PINEAPPLE(new FakeConsumable(2114, new String[] {"Try using a knife to slice it into pieces."})),
|
||||
PINEAPPLE_CHUNKS(new Food(new int[] {2116}, new HealingEffect(2))),
|
||||
PINEAPPLE_RING(new Food(new int[] {2118}, new HealingEffect(2))),
|
||||
DWELLBERRIES(new Food(new int[] {2126}, new HealingEffect(2))),
|
||||
JANGERBERRIES(new Food(new int[] {247}, new MultiEffect(new SkillEffect(Skills.ATTACK, 2, 0), new SkillEffect(Skills.STRENGTH, 1, 0), new PrayerEffect(1, 0), new SkillEffect(Skills.DEFENCE, -1, 0)))),
|
||||
JANGERBERRIES(new Food(new int[] {247}, new MultiEffect(new SkillEffect(Skills.ATTACK, 2, 0), new SkillEffect(Skills.STRENGTH, 1, 0), new PrayerEffect(1, 0), new SkillEffect(Skills.DEFENCE, -1, 0)), "You eat the jangerberries.", "They taste very bitter.")),
|
||||
STRAWBERRY(new Food(new int[] {5504}, new MultiEffect(new HealingEffect(1), new PercentageHealthEffect(6)))),
|
||||
TOMATO(new Food(new int[] {1982}, new HealingEffect(2))),
|
||||
WATERMELON(new FakeConsumable(5982, new String[] {"Try using a knife to slice it into pieces."})),
|
||||
WATERMELON(new FakeConsumable(5982, new String[] {"You can't eat it whole; maybe you should cut it up."})),
|
||||
WATERMELON_SLICE(new Food(new int[] {5984}, new PercentageHealthEffect(5))),
|
||||
LEMON(new Food(new int[] {2102}, new HealingEffect(2))),
|
||||
LEMON_CHUNKS(new Food(new int[] {2104}, new HealingEffect(2))),
|
||||
|
|
@ -164,11 +166,11 @@ public enum Consumables {
|
|||
LIME_SLICES(new Food(new int[] {2124}, new HealingEffect(2))),
|
||||
PEACH(new Food(new int[] {6883}, new HealingEffect(8))),
|
||||
WHITE_TREE_FRUIT(new Food(new int[] {6469}, new MultiEffect(new RandomEnergyEffect(5, 10), new HealingEffect(3)))),
|
||||
STRANGE_FRUIT(new Food(new int[] {464}, new MultiEffect(new RemoveStateEffect(EntityState.POISONED.ordinal()), new EnergyEffect(30)))),
|
||||
STRANGE_FRUIT(new Food(new int[] {464}, new MultiEffect(new RemoveTimerEffect("poison"), new EnergyEffect(30)))),
|
||||
|
||||
/** Gnome Cooking */
|
||||
TOAD_CRUNCHIES(new Food(new int[] {2217}, new HealingEffect(12))),
|
||||
PREMADE_TD_CRUNCH(new Food(new int[] {2243}, new HealingEffect(12))),
|
||||
TOAD_CRUNCHIES(new Food(new int[] {2217}, new HealingEffect(8))),
|
||||
PREMADE_TD_CRUNCH(new Food(new int[] {2243}, new HealingEffect(8))),
|
||||
SPICY_CRUNCHIES(new Food(new int[] {2213}, new HealingEffect(7))),
|
||||
PREMADE_SY_CRUNCH(new Food(new int[] {2241}, new HealingEffect(7))),
|
||||
WORM_CRUNCHIES(new Food(new int[] {2205}, new HealingEffect(8))),
|
||||
|
|
@ -244,40 +246,48 @@ public enum Consumables {
|
|||
|
||||
/** Cocktails */
|
||||
FRUIT_BLAST(new Drink(new int[] {2084, 2026}, new HealingEffect(9))),
|
||||
PREMADE_FR_BLAST(new Food(new int[] {2034, 2026}, new HealingEffect(9))),
|
||||
PREMADE_FR_BLAST(new Drink(new int[] {2034, 2026}, new HealingEffect(9))),
|
||||
CRAFTED_FR_BLAST(new Drink(new int[] {9514, 2026}, new HealingEffect(9))),
|
||||
PINEAPPLE_PUNCH(new Drink(new int[] {2048, 2026}, new HealingEffect(9), "You drink the cocktail. It tastes great.")),
|
||||
PREMADE_P_PUNCH(new Drink(new int[] {2036, 2026}, new HealingEffect(9), "You drink the cocktail. It tastes great.")),
|
||||
CRAFTED_P_PUNCH(new Drink(new int[] {9512, 2026}, new HealingEffect(9))),
|
||||
WIZARD_BLIZZARD(new Drink(new int[] {2054, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 6, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
PREMADE_WIZ_BLZD(new Drink(new int[] {2040, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 6, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
CRAFTED_WIZ_BLZD(new Drink(new int[]{9508, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 6, 0),new SkillEffect(Skills.ATTACK, -4, 0 )))),
|
||||
SHORT_GREEN_GUY(new Drink(new int[] {2080, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 4, 0), new SkillEffect(Skills.ATTACK, -3, 0)))),
|
||||
PREMADE_SGG(new Drink(new int[] {2038, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 4, 0), new SkillEffect(Skills.ATTACK, -3, 0)))),
|
||||
CRAFTED_SGG(new Drink(new int[]{9510, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 4, 0), new SkillEffect(Skills.ATTACK, -3,0)))),
|
||||
DRUNK_DRAGON(new Drink(new int[] {2092, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 7, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
PREMADE_DR_DRAGON(new Drink(new int[] {2032, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 7, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
CRAFTED_DR_DRAGON(new Drink(new int[] {9516, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 7, 0), new SkillEffect(Skills.ATTACK, -4,0)))),
|
||||
CHOC_SATURDAY(new Drink(new int[] {2074, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 7, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
PREMADE_CHOC_SDY(new Drink(new int[] {2030, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 7, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
CRAFTED_CHOC_SDY(new Drink(new int[] {9518, 2026}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 7,0), new SkillEffect(Skills.ATTACK, -4,0)))),
|
||||
BLURBERRY_SPECIAL(new Drink(new int[] {2064, 2026}, new MultiEffect(new HealingEffect(6), new SkillEffect(Skills.STRENGTH, 6, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
PREMADE_BLURB_SP(new Drink(new int[] {2028, 2026}, new MultiEffect(new HealingEffect(6), new SkillEffect(Skills.STRENGTH, 6, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
CRAFTED_BLURB_SP(new Drink(new int[] {9520, 2026}, new MultiEffect(new HealingEffect(6), new SkillEffect(Skills.STRENGTH,6,0), new SkillEffect(Skills.ATTACK, -4,0)))),
|
||||
|
||||
/** Bottled Drinks */
|
||||
KARAMJAN_RUM(new Drink(new int[] {431}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 5, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
BRAINDEATH_RUM(new Drink(new int[] {7157}, new MultiEffect(new SkillEffect(Skills.DEFENCE, 0, -0.1), new SkillEffect(Skills.ATTACK, 0, -0.05), new SkillEffect(Skills.PRAYER, 0, -0.05), new SkillEffect(Skills.RANGE, 0, -0.05), new SkillEffect(Skills.MAGIC, 0, -0.05), new SkillEffect(Skills.HERBLORE, 0, -0.05), new SkillEffect(Skills.STRENGTH, 3, 0), new SkillEffect(Skills.MINING, 1, 0)), "With a sense of impending doom you drink the 'rum'. You try very hard not to die.")),
|
||||
RUM_TROUBLE_BREWING_RED(new Drink(new int[] {8940, 8940}, new TroubleBrewingRumEffect("Oh gods! It tastes like burning!"), new Animation(9605))),
|
||||
RUM_TROUBLE_BREWING_BLUE(new Drink(new int[] {8941, 8941}, new TroubleBrewingRumEffect("My Liver! My Liver is melting!"), new Animation(9604))),
|
||||
VODKA(new Drink(new int[] {2015}, new MultiEffect(new SkillEffect(Skills.STRENGTH, 3, 0), new SkillEffect(Skills.ATTACK, -3, 0)))),
|
||||
VODKA(new Drink(new int[] {2015}, new MultiEffect(new HealingEffect(2), new SkillEffect(Skills.ATTACK, -4, 0), new SkillEffect(Skills.STRENGTH, 4, 0)))),
|
||||
GIN(new Drink(new int[] {2019}, new MultiEffect(new SkillEffect(Skills.STRENGTH, 1, 0), new SkillEffect(Skills.ATTACK, 4, 0), new RandomHealthEffect(3, 4)))),
|
||||
BRANDY(new Drink(new int[] {2021}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.ATTACK, 4, 0)))),
|
||||
WHISKY(new Drink(new int[] {2017}, new MultiEffect(new HealingEffect(5), new SkillEffect(Skills.STRENGTH, 3, 0), new SkillEffect(Skills.ATTACK, -4, 0)))),
|
||||
BOTTLE_OF_WINE(new Drink(new int[] {2015, 7921}, new MultiEffect(new HealingEffect(14), new SkillEffect(Skills.ATTACK, -3, 0)))),
|
||||
BOTTLE_OF_WINE(new Drink(new int[] {7919, 7921}, new MultiEffect(new HealingEffect(14), new SkillEffect(Skills.ATTACK, -3, 0)))),
|
||||
|
||||
/** Wine */
|
||||
JUG_OF_WINE(new Drink(new int[] {1993, 1935}, new MultiEffect(new HealingEffect(11), new SkillEffect(Skills.ATTACK, -2, 0)))),
|
||||
HALF_FULL_WINE_JUG(new Drink(new int[] {1989, 1935}, new HealingEffect(7))),
|
||||
JUG_OF_BAD_WINE(new Drink(new int[] {1991,1935}, new SkillEffect(Skills.ATTACK, -3, 0))),
|
||||
|
||||
/** Tea */
|
||||
CUP_OF_TEA(new Drink(new int[] {712, 1980}, new MultiEffect(new HealingEffect(3), new SkillEffect(Skills.ATTACK, 3, 0)), "Aaah, nothing like a nice cuppa tea!")),
|
||||
CUP_OF_TEA_NETTLE(new Drink(new int[] {4242, 1980}, new EnergyEffect(10))),
|
||||
CUP_OF_TEA_MILKY_NETTLE(new Drink(new int[] {4243, 1980}, new EnergyEffect(10))),
|
||||
NETTLE_TEA(new Drink(new int[] {4239, 1980}, new NettleTeaEffect())),
|
||||
NETTLE_TEA(new Drink(new int[] {4239, 1923}, new NettleTeaEffect())),
|
||||
NETTLE_TEA_MILKY(new Drink(new int[] {4240, 1980}, new NettleTeaEffect())),
|
||||
CUP_OF_TEA_CLAY(new Drink(new int[] {7730, 7728}, new SkillEffect(Skills.CONSTRUCTION, 1, 0), "You feel refreshed and ready for more building.")),
|
||||
CUP_OF_TEA_CLAY_MILKY(new Drink(new int[] {7731, 7728}, new SkillEffect(Skills.CONSTRUCTION, 1, 0))),
|
||||
|
|
@ -297,8 +307,9 @@ public enum Consumables {
|
|||
OOMLIE_WRAP(new Food(new int[] {Items.COOKED_OOMLIE_WRAP_2343}, new MultiEffect(new HealingEffect(14), new AchievementEffect(DiaryType.KARAMJA, 2, 2)))),
|
||||
ROE(new Food(new int[]{11324}, new HealingEffect(3))),
|
||||
EQUA_LEAVES(new Food(new int[]{2128}, new HealingEffect(1))),
|
||||
CHOC_ICE(new Food(new int[]{6794}, new HealingEffect(6))),
|
||||
CHOC_ICE(new Food(new int[]{6794}, new HealingEffect(7))),
|
||||
EDIBLE_SEAWEED(new Food(new int[] {403}, new HealingEffect(4))),
|
||||
FROG_SPAWN(new Food(new int[] {5004}, new RandomHealthEffect(3, 7), "You eat the frogspawn. Yuck.")),
|
||||
|
||||
/** Special Events */
|
||||
PUMPKIN(new Food(new int[] {1959}, new HealingEffect(14))),
|
||||
|
|
@ -308,43 +319,44 @@ public enum Consumables {
|
|||
STRENGTH(new Potion(new int[] {113, 115, 117, 119}, new SkillEffect(Skills.STRENGTH, 3, 0.1))),
|
||||
ATTACK(new Potion(new int[] {2428, 121, 123, 125}, new SkillEffect(Skills.ATTACK, 3, 0.1))),
|
||||
DEFENCE(new Potion(new int[] {2432, 133, 135, 137}, new SkillEffect(Skills.DEFENCE, 3, 0.1))),
|
||||
RANGING(new Potion(new int[] {2444, 169, 171, 173}, new SkillEffect(Skills.RANGE, 3, 0.1))),
|
||||
MAGIC(new Potion(new int[] {3040, 3042, 3044, 3046}, new SkillEffect(Skills.MAGIC, 3, 0.1))),
|
||||
SUPER_STRENGTH(new Potion(new int[] {2440, 157, 159, 161}, new SkillEffect(Skills.STRENGTH, 3, 0.2))),
|
||||
SUPER_ATTACK(new Potion(new int[] {2436, 145, 147, 149}, new SkillEffect(Skills.ATTACK, 3, 0.2))),
|
||||
SUPER_DEFENCE(new Potion(new int[] {2442, 163, 165, 167}, new SkillEffect(Skills.DEFENCE, 3, 0.2))),
|
||||
ANTIPOISON(new Potion(new int[] {2446, 175, 177, 179}, new MultiEffect(new SetAttributeEffect("poison:immunity", 143), new RemoveStateEffect(EntityState.POISONED.ordinal())))),
|
||||
ANTIPOISON_(new Potion(new int[] {5943, 5945, 5947, 5949}, new MultiEffect(new SetAttributeEffect("poison:immunity", 863), new RemoveStateEffect(EntityState.POISONED.ordinal())))),
|
||||
ANTIPOISON__(new Potion(new int[] {5952, 5954, 5956, 5958}, new MultiEffect(new SetAttributeEffect("poison:immunity", 2000), new RemoveStateEffect(EntityState.POISONED.ordinal())))),
|
||||
SUPER_ANTIP(new Potion(new int[] {2448, 181, 183, 185}, new MultiEffect(new SetAttributeEffect("poison:immunity", 1000), new RemoveStateEffect(EntityState.POISONED.ordinal())))),
|
||||
RELICYM(new Potion(new int[] {4842, 4844, 4846, 4848}, new MultiEffect(new SetAttributeEffect("disease:immunity", 300), new RemoveStateEffect("disease")))),
|
||||
RANGING(new Potion(new int[] {2444, 169, 171, 173}, new SkillEffect(Skills.RANGE, 4, 0.1))),
|
||||
MAGIC(new Potion(new int[] {3040, 3042, 3044, 3046}, new SkillEffect(Skills.MAGIC, 4, 0))),
|
||||
SUPER_STRENGTH(new Potion(new int[] {2440, 157, 159, 161}, new SkillEffect(Skills.STRENGTH, 5, 0.15))),
|
||||
SUPER_ATTACK(new Potion(new int[] {2436, 145, 147, 149}, new SkillEffect(Skills.ATTACK, 5, 0.15))),
|
||||
SUPER_DEFENCE(new Potion(new int[] {2442, 163, 165, 167}, new SkillEffect(Skills.DEFENCE, 5, 0.15))),
|
||||
ANTIPOISON(new Potion(new int[] {2446, 175, 177, 179}, new AddTimerEffect("poison:immunity", secondsToTicks(90)))),
|
||||
ANTIPOISON_(new Potion(new int[] {5943, 5945, 5947, 5949}, new AddTimerEffect("poison:immunity", minutesToTicks(9)))),
|
||||
ANTIPOISON__(new Potion(new int[] {5952, 5954, 5956, 5958}, new AddTimerEffect("poison:immunity", minutesToTicks(12)))),
|
||||
SUPER_ANTIP(new Potion(new int[] {2448, 181, 183, 185}, new AddTimerEffect("poison:immunity", minutesToTicks(6)))),
|
||||
RELICYM(new Potion(new int[] {4842, 4844, 4846, 4848}, new CureDiseaseEffect())),
|
||||
AGILITY(new Potion(new int[] {3032, 3034, 3036, 3038}, new SkillEffect(Skills.AGILITY, 3, 0))),
|
||||
HUNTER(new Potion(new int[] {9998, 10000, 10002, 10004}, new SkillEffect(Skills.HUNTER, 3, 0))),
|
||||
RESTORE(new Potion(new int[] {2430, 127, 129, 131}, new RestoreEffect(10, 0.3))),
|
||||
SARA_BREW(new Potion(new int[] {6685, 6687, 6689, 6691}, new MultiEffect(new PercentHeal(2, .15), new SkillEffect(Skills.ATTACK, 0, -0.10), new SkillEffect(Skills.STRENGTH, 0, -0.10), new SkillEffect(Skills.MAGIC, 0, -0.10), new SkillEffect(Skills.RANGE, 0, -0.10), new SkillEffect(Skills.DEFENCE, 2, 0.2)))),
|
||||
SARA_BREW(new Potion(new int[] {6685, 6687, 6689, 6691}, new MultiEffect(new PercentHeal(0, .15), new SkillEffect(Skills.ATTACK, 0, -0.10), new SkillEffect(Skills.STRENGTH, 0, -0.10), new SkillEffect(Skills.MAGIC, 0, -0.10), new SkillEffect(Skills.RANGE, 0, -0.10), new SkillEffect(Skills.DEFENCE, 0, 0.25)))),
|
||||
SUMMONING(new Potion(new int[] {12140, 12142, 12144, 12146}, new MultiEffect(new RestoreSummoningSpecial(), new SummoningEffect(7, 0.25)))),
|
||||
COMBAT(new Potion(new int[] {9739, 9741, 9743, 9745}, new MultiEffect(new SkillEffect(Skills.STRENGTH, 3, .1), new SkillEffect(Skills.ATTACK, 3, .1)))),
|
||||
ENERGY(new Potion(new int[] {3008, 3010, 3012, 3014}, new MultiEffect(new EnergyEffect(10), new HealingEffect(3)))),
|
||||
ENERGY(new Potion(new int[] {3008, 3010, 3012, 3014}, new EnergyEffect(10))),
|
||||
FISHING(new Potion(new int[] {2438, 151, 153, 155}, new SkillEffect(Skills.FISHING, 3, 0))),
|
||||
PRAYER(new Potion(new int[] {2434, 139, 141, 143}, new PrayerEffect(7, 0.25))),
|
||||
SUPER_RESTO(new Potion(new int[] {3024, 3026, 3028, 3030}, new MultiEffect(new RestoreEffect(8, 0.25), new PrayerEffect(8, 0.25), new SummoningEffect(8, 0.25)))),
|
||||
ZAMMY_BREW(new Potion(new int[] {2450, 189, 191, 193}, new MultiEffect(new DamageEffect(10, true), new SkillEffect(Skills.ATTACK, 0, 0.15), new SkillEffect(Skills.STRENGTH, 0, 0.25), new SkillEffect(Skills.DEFENCE, 0, -0.1), new RandomPrayerEffect(0, 10)))),
|
||||
ANTIFIRE(new Potion(new int[] {2452, 2454, 2456, 2458}, new SetAttributeEffect("fire:immune", 600, true))),
|
||||
GUTH_REST(new Potion(new int[] {4417, 4419, 4421, 4423}, new MultiEffect(new RemoveStateEffect(EntityState.POISONED.ordinal()), new EnergyEffect(5), new HealingEffect(5)))),
|
||||
MAGIC_ESS(new Potion(new int[] {11491, 11489}, new SkillEffect(Skills.MAGIC,3,0))),
|
||||
SANFEW(new Potion(new int[] {10925, 10927, 10929, 10931}, new MultiEffect(new RestoreEffect(8,0.25), new PrayerEffect(8,0.25), new RemoveStateEffect(EntityState.POISONED.ordinal()), new RemoveStateEffect("disease")))),
|
||||
SUPER_RESTO(new Potion(new int[] {3024, 3026, 3028, 3030}, new RestoreEffect(8, 0.25, true))),
|
||||
ZAMMY_BREW(new Potion(new int[] {2450, 189, 191, 193}, new MultiEffect(new DamageEffect(10, true), new SkillEffect(Skills.ATTACK, 0, 0.25), new SkillEffect(Skills.STRENGTH, 0, 0.15), new SkillEffect(Skills.DEFENCE, 0, -0.1)))),
|
||||
ANTIFIRE(new Potion(new int[] {2452, 2454, 2456, 2458}, new AddTimerEffect("dragonfire:immunity", 600, true))),
|
||||
GUTH_REST(new Potion(new int[] {4417, 4419, 4421, 4423}, new MultiEffect(new RemoveTimerEffect("poison"), new EnergyEffect(5), new HealingEffect(5)))),
|
||||
MAGIC_ESS(new Potion(new int[] {9021, 9022, 9023, 9024}, new SkillEffect(Skills.MAGIC,3,0))),
|
||||
SANFEW(new Potion(new int[] {10925, 10927, 10929, 10931}, new MultiEffect(new RestoreEffect(8,0.25, true), new AddTimerEffect("poison:immunity", secondsToTicks(90)), new RemoveTimerEffect("disease")))),
|
||||
SUPER_ENERGY(new Potion(new int[] {3016, 3018, 3020, 3022}, new EnergyEffect(20))),
|
||||
BLAMISH_OIL(new FakeConsumable(1582, new String[] {"You know... I'd really rather not."})),
|
||||
|
||||
/** Barbarian Mixes */
|
||||
PRAYERMIX(new BarbarianMix(new int[] {11465, 11467}, new MultiEffect(new PrayerEffect(7, 0.25), new HealingEffect(6)))),
|
||||
ZAMMY_MIX(new BarbarianMix(new int[] {11521, 11523}, new MultiEffect(new DamageEffect(10, true), new SkillEffect(Skills.ATTACK, 0, 0.15), new SkillEffect(Skills.STRENGTH, 0, 0.25), new SkillEffect(Skills.DEFENCE, 0, -0.1), new RandomPrayerEffect(0, 10)))),
|
||||
ZAMMY_MIX(new BarbarianMix(new int[] {11521, 11523}, new MultiEffect(new DamageEffect(10, true), new SkillEffect(Skills.ATTACK, 0, 0.15), new SkillEffect(Skills.STRENGTH, 0, 0.25), new SkillEffect(Skills.DEFENCE, 0, -0.1)))),
|
||||
ATT_MIX(new BarbarianMix(new int[] {11429, 11431}, new MultiEffect(new SkillEffect(Skills.ATTACK, 3, 0.1), new HealingEffect(3)))),
|
||||
ANTIP_MIX(new BarbarianMix(new int[] {11433, 11435}, new MultiEffect(new RemoveStateEffect(EntityState.POISONED.ordinal()), new SetAttributeEffect("poison:immunity", 143), new HealingEffect(3)))),
|
||||
RELIC_MIX(new BarbarianMix(new int[] {11437, 11439}, new MultiEffect(new RemoveStateEffect("disease"), new SetAttributeEffect("disease:immunity", 300), new HealingEffect(3)))),
|
||||
ANTIP_MIX(new BarbarianMix(new int[] {11433, 11435}, new MultiEffect(new AddTimerEffect("poison:immunity", secondsToTicks(90)), new HealingEffect(3)))),
|
||||
RELIC_MIX(new BarbarianMix(new int[] {11437, 11439}, new MultiEffect(new CureDiseaseEffect(), new HealingEffect(3)))),
|
||||
STR_MIX(new BarbarianMix(new int[] {11443, 11441}, new MultiEffect(new SkillEffect(Skills.STRENGTH, 3, 0.1), new HealingEffect(3)))),
|
||||
RESTO_MIX(new BarbarianMix(new int[] {11449, 11451}, new MultiEffect(new RestoreEffect(10, 0.3), new HealingEffect(3)))),
|
||||
ENERGY_MIX(new BarbarianMix(new int[] {11453, 11455}, new MultiEffect(new EnergyEffect(10), new HealingEffect(6)))),
|
||||
SUPER_RESTO_MIX(new BarbarianMix(new int [] {11493, 11495}, new MultiEffect(new RestoreEffect(8,0.25), new PrayerEffect(8, 0.25), new SummoningEffect(8, 0.25), new HealingEffect(6)))),
|
||||
ENERGY_MIX(new BarbarianMix(new int[] {11453, 11455}, new MultiEffect(new EnergyEffect(10), new HealingEffect(3)))),
|
||||
DEF_MIX(new BarbarianMix(new int[] {11457, 11459}, new MultiEffect(new SkillEffect(Skills.DEFENCE, 3, 0.1), new HealingEffect(6)))),
|
||||
AGIL_MIX(new BarbarianMix(new int[] {11461, 11463}, new MultiEffect(new SkillEffect(Skills.AGILITY, 3, 0), new HealingEffect(6)))),
|
||||
COMBAT_MIX(new BarbarianMix(new int[] {11445, 11447}, new MultiEffect(new SkillEffect(Skills.ATTACK, 3, 0.1), new SkillEffect(Skills.STRENGTH, 3, 0.1), new HealingEffect(6)))),
|
||||
|
|
@ -353,6 +365,13 @@ public enum Consumables {
|
|||
SUPER_ENERGY_MIX(new BarbarianMix(new int[] {11481, 11483}, new MultiEffect(new EnergyEffect(20), new HealingEffect(6)))),
|
||||
HUNTING_MIX(new BarbarianMix(new int[] {11517, 11519}, new MultiEffect(new SkillEffect(Skills.HUNTER, 3, 0), new HealingEffect(6)))),
|
||||
SUPER_STR_MIX(new BarbarianMix(new int[] {11485, 11487}, new MultiEffect(new SkillEffect(Skills.STRENGTH, 5, 0.15), new HealingEffect(6)))),
|
||||
ANTIDOTE_PLUS_MIX(new BarbarianMix(new int[] {11501, 11503}, new MultiEffect(new AddTimerEffect("poison:immunity", minutesToTicks(9)), new HealingEffect(6)))),
|
||||
ANTIP_SUPERMIX(new BarbarianMix(new int[] {11473, 11475}, new MultiEffect(new AddTimerEffect("poison:immunity", minutesToTicks(6)), new HealingEffect(6)))),
|
||||
ANTIFIRE_MIX(new BarbarianMix(new int[] {11505, 11507}, new MultiEffect(new AddTimerEffect("dragonfire:immunity", 600, true), new HealingEffect(6)))),
|
||||
MAGIC_ESS_MIX(new BarbarianMix(new int[] {11489, 11491}, new MultiEffect(new SkillEffect(Skills.MAGIC, 3, 0), new HealingEffect(6)))),
|
||||
SUPER_DEF_MIX(new BarbarianMix(new int[] {11497, 11499}, new MultiEffect(new SkillEffect(Skills.DEFENCE, 5, 0.15), new HealingEffect(6)))),
|
||||
RANGING_MIX(new BarbarianMix(new int[] {11509, 11511}, new MultiEffect(new SkillEffect(Skills.RANGE, 4, 0.1), new HealingEffect(6)))),
|
||||
MAGIC_MIX(new BarbarianMix(new int[] {11513, 11515}, new MultiEffect(new SkillEffect(Skills.MAGIC, 4, 0), new HealingEffect(6)))),
|
||||
|
||||
/** Stealing creation potions */
|
||||
SC_PRAYER(new Potion(new int[] {14207, 14209, 14211, 14213, 14215}, new PrayerEffect(7, 0.25))),
|
||||
|
|
@ -364,24 +383,28 @@ public enum Consumables {
|
|||
SC_MAGIC(new Potion(new int[] {14267, 14269, 14271, 14273, 14275}, new SkillEffect(Skills.MAGIC, 3, 0.1))),
|
||||
SC_SUMMONING(new Potion(new int[] {14277, 14279, 14281, 14283, 14285}, new SummoningEffect(7, 0.25)));
|
||||
|
||||
public static HashMap<Integer,Consumable> consumables = new HashMap<>();
|
||||
public static HashMap<Integer,Consumables> consumables = new HashMap<>();
|
||||
|
||||
public static ArrayList<Integer> potions = new ArrayList<>();
|
||||
|
||||
private final Consumable consumable;
|
||||
public boolean isIgnoreMainClock = false;
|
||||
|
||||
Consumables(Consumable consumable) {
|
||||
this.consumable = consumable;
|
||||
}
|
||||
Consumables(Consumable consumable, boolean isIgnoreMainClock) {this.consumable = consumable; this.isIgnoreMainClock = isIgnoreMainClock;}
|
||||
|
||||
public Consumable getConsumable() {
|
||||
return consumable;
|
||||
}
|
||||
|
||||
public static Consumable getConsumableById(final int itemId) {
|
||||
public static Consumables getConsumableById(final int itemId) {
|
||||
return consumables.get(itemId);
|
||||
}
|
||||
|
||||
public static void add(final Consumable consumable) {
|
||||
for (int id : consumable.getIds()) {
|
||||
public static void add(final Consumables consumable) {
|
||||
for (int id : consumable.consumable.getIds()) {
|
||||
consumables.putIfAbsent(id, consumable);
|
||||
}
|
||||
}
|
||||
|
|
@ -391,7 +414,12 @@ public enum Consumables {
|
|||
*/
|
||||
static {
|
||||
for (Consumables consumable : Consumables.values()) {
|
||||
add(consumable.consumable);
|
||||
add(consumable);
|
||||
if (consumable.consumable instanceof Potion) {
|
||||
for (int pot : consumable.consumable.getIds()) {
|
||||
potions.add(pot);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
package content.data.consumables.effects
|
||||
|
||||
import core.api.registerTimer
|
||||
import core.api.removeTimer
|
||||
import core.api.spawnTimer
|
||||
import core.game.consumable.ConsumableEffect
|
||||
import core.game.node.entity.player.Player
|
||||
|
||||
class AddTimerEffect (val identifier: String, vararg val args: Any) : ConsumableEffect() {
|
||||
override fun activate (p: Player) {
|
||||
removeTimer (p, identifier)
|
||||
val timer = spawnTimer (identifier, *args) ?: return
|
||||
registerTimer (p, timer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package content.data.consumables.effects
|
||||
|
||||
import core.api.*
|
||||
import core.game.consumable.ConsumableEffect
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.system.timer.impl.Disease
|
||||
|
||||
class CureDiseaseEffect () : ConsumableEffect() {
|
||||
override fun activate (p: Player) {
|
||||
val existingTimer = getTimer<Disease>(p)
|
||||
if (existingTimer != null) {
|
||||
existingTimer.hitsLeft -= 9
|
||||
if (existingTimer.hitsLeft <= 0) {
|
||||
sendMessage(p, "The disease has been cured.")
|
||||
removeTimer<Disease>(p)
|
||||
}else{
|
||||
sendMessage(p,"You feel slightly better.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
package content.data.consumables.effects;
|
||||
|
||||
import core.game.consumable.ConsumableEffect;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.entity.skill.Skills;
|
||||
|
||||
public class PrayerEffect extends ConsumableEffect {
|
||||
double base, bonus;
|
||||
public PrayerEffect(double base, double bonus){
|
||||
this.base = base;
|
||||
this.bonus = bonus;
|
||||
}
|
||||
@Override
|
||||
public void activate(Player p) {
|
||||
int level = p.getSkills().getStaticLevel(Skills.PRAYER);
|
||||
double amt = base + (level * bonus);
|
||||
p.getSkills().incrementPrayerPoints(amt);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package content.data.consumables.effects
|
||||
|
||||
import core.api.*
|
||||
import core.game.consumable.ConsumableEffect
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import org.rs09.consts.Items
|
||||
import kotlin.math.floor
|
||||
|
||||
class PrayerEffect(var base: Double, var bonus: Double) : ConsumableEffect() {
|
||||
override fun activate(player: Player?) {
|
||||
if(player == null) return
|
||||
val level = getStatLevel(player, Skills.PRAYER)
|
||||
var b = bonus
|
||||
if(inInventory(player, Items.HOLY_WRENCH_6714))
|
||||
b += 0.02 // Leaving this in for futureproofing. Current update is for properly rounding down.
|
||||
val amount = floor(base + (level * b))
|
||||
modPrayerPoints(player, amount)
|
||||
}
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package content.data.consumables.effects;
|
||||
|
||||
import core.game.consumable.ConsumableEffect;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.entity.state.EntityState;
|
||||
|
||||
public class RemoveStateEffect extends ConsumableEffect {
|
||||
int state = -1;
|
||||
String statekey;
|
||||
@Deprecated
|
||||
public RemoveStateEffect(int state){
|
||||
this.state = state;
|
||||
}
|
||||
public RemoveStateEffect(String key){
|
||||
statekey = key;
|
||||
}
|
||||
@Override
|
||||
public void activate(Player p) {
|
||||
if(state == -1){
|
||||
p.clearState(statekey);
|
||||
return;
|
||||
}
|
||||
p.getStateManager().remove(EntityState.values()[state]);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package content.data.consumables.effects
|
||||
|
||||
import core.api.*
|
||||
import core.game.consumable.ConsumableEffect
|
||||
import core.game.node.entity.player.Player
|
||||
|
||||
class RemoveTimerEffect (val identifier: String) : ConsumableEffect() {
|
||||
override fun activate (p: Player) {
|
||||
removeTimer (p, identifier)
|
||||
}
|
||||
}
|
||||
|
|
@ -6,21 +6,37 @@ import core.game.node.entity.skill.Skills;
|
|||
|
||||
public class RestoreEffect extends ConsumableEffect {
|
||||
double base,bonus;
|
||||
boolean all_skills; // Except for hitpoints
|
||||
public RestoreEffect(double base, double bonus){
|
||||
this.base = base;
|
||||
this.bonus = bonus;
|
||||
this.all_skills = false;
|
||||
}
|
||||
|
||||
public RestoreEffect(double base, double bonus, boolean all_skills){
|
||||
this.base = base;
|
||||
this.bonus = bonus;
|
||||
this.all_skills = all_skills;
|
||||
}
|
||||
final int[] SKILLS = new int[] { Skills.DEFENCE, Skills.ATTACK, Skills.STRENGTH, Skills.MAGIC, Skills.RANGE };
|
||||
final int[] ALL_SKILLS = new int[]{
|
||||
Skills.ATTACK,Skills.DEFENCE, Skills.STRENGTH,Skills.RANGE,Skills.PRAYER,Skills.MAGIC, Skills.COOKING,
|
||||
Skills.WOODCUTTING,Skills.FLETCHING,Skills.FISHING,Skills.FIREMAKING,Skills.CRAFTING,Skills.SMITHING,
|
||||
Skills.MINING,Skills.HERBLORE,Skills.AGILITY,Skills.THIEVING,Skills.SLAYER,Skills.FARMING,
|
||||
Skills.RUNECRAFTING,Skills.HUNTER,Skills.CONSTRUCTION,Skills.SUMMONING };
|
||||
@Override
|
||||
public void activate(Player p) {
|
||||
Skills sk = p.getSkills();
|
||||
for(int skill : SKILLS){
|
||||
int[] skills = this.all_skills ? ALL_SKILLS : SKILLS;
|
||||
for(int skill : skills){
|
||||
int statL = sk.getStaticLevel(skill);
|
||||
int boost = (int) (base + (statL * bonus));
|
||||
int curL = sk.getLevel(skill);
|
||||
if(curL < statL){
|
||||
int boost = (int) (base + (statL * bonus));
|
||||
p.getSkills().updateLevel(skill, boost, statL);
|
||||
}
|
||||
if (skill == Skills.PRAYER)
|
||||
p.getSkills().incrementPrayerPoints(boost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,103 +0,0 @@
|
|||
package content.data.skill;
|
||||
|
||||
import core.game.node.entity.skill.Skills;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.world.repository.Repository;
|
||||
|
||||
/**
|
||||
* Represents the skilling pets obtained randomly.
|
||||
* @author Empathy
|
||||
*
|
||||
*/
|
||||
public enum SkillingPets {
|
||||
|
||||
BABY_RED_CHINCHOMPA(new Item(14823), "Baby Chinchompa", Skills.HUNTER),
|
||||
BABY_GREY_CHINCHOMPA(new Item(14824), "Baby Chinchompa", Skills.HUNTER),
|
||||
BEAVER(new Item(14821), "Beaver", Skills.WOODCUTTING),
|
||||
GOLEM(new Item(14822), "Rock Golem", Skills.MINING),
|
||||
HERON(new Item(14827), "Heron", Skills.FISHING);
|
||||
|
||||
/**
|
||||
* The pet item drop.
|
||||
*/
|
||||
private final Item pet;
|
||||
|
||||
/**
|
||||
* The name.
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* The skill.
|
||||
*/
|
||||
private final int skill;
|
||||
|
||||
/**
|
||||
* Constructs a new {@code SkillingPets} object.
|
||||
* @param skill The skill id.
|
||||
* @param pet The pet item.
|
||||
*/
|
||||
SkillingPets(Item pet, String name, int skill) {
|
||||
this.pet = pet;
|
||||
this.name = name;
|
||||
this.skill = skill;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the pet drop.
|
||||
* @param player The player.
|
||||
* @param pet The pet drop to check.
|
||||
*/
|
||||
public static void checkPetDrop(Player player, SkillingPets pet) {
|
||||
if (pet == null) {
|
||||
return;
|
||||
}
|
||||
int defaultChance = 15000;
|
||||
int newChance = (defaultChance / player.getSkills().getStaticLevel(pet.getSkill()) * 55);
|
||||
int outOf = (newChance > defaultChance ? defaultChance : newChance);
|
||||
int getChance = outOf;
|
||||
if (getChance != 1) {
|
||||
return;
|
||||
}
|
||||
if (player.hasItem(pet.getPet())) {
|
||||
return;
|
||||
}
|
||||
if (player.getFamiliarManager().hasFamiliar() && player.getInventory().isFull()) {
|
||||
return;
|
||||
}
|
||||
if (player.getFamiliarManager().hasFamiliar()) {
|
||||
if (player.getFamiliarManager().getFamiliar().getName().equalsIgnoreCase(pet.getName())) {
|
||||
return;
|
||||
}
|
||||
player.getInventory().add(pet.getPet());
|
||||
player.sendNotificationMessage("You feel something weird sneaking into your backpack.");
|
||||
} else {
|
||||
player.getFamiliarManager().summon(pet.getPet(), true);
|
||||
player.sendNotificationMessage("You have a funny feeling like you're being followed.");
|
||||
}
|
||||
Repository.sendNews(player.getUsername() + " has found a " + pet.getPet().getName() + "!");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the pet
|
||||
*/
|
||||
public Item getPet() {
|
||||
return pet;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pet name.
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the skill.
|
||||
*/
|
||||
public int getSkill() {
|
||||
return skill;
|
||||
}
|
||||
}
|
||||
|
|
@ -3,13 +3,13 @@ package content.data.tables;
|
|||
import core.api.StartupListener;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.node.item.WeightedChanceItem;
|
||||
import core.tools.Log;
|
||||
import core.tools.RandomFunction;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import core.ServerConstants;
|
||||
import core.tools.SystemLogger;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static core.tools.SystemLogger.logInfo;
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Handles the allotment seed drop table.
|
||||
|
|
@ -57,11 +57,11 @@ public final class AllotmentSeedDropTable implements StartupListener {
|
|||
@Override
|
||||
public void startup() {
|
||||
if(ServerConstants.ASDT_DATA_PATH != null && !new File(ServerConstants.ASDT_DATA_PATH).exists()){
|
||||
SystemLogger.logErr(this.getClass(), "Can't locate ASDT file at " + ServerConstants.ASDT_DATA_PATH);
|
||||
log(this.getClass(), Log.ERR, "Can't locate ASDT file at " + ServerConstants.ASDT_DATA_PATH);
|
||||
return;
|
||||
}
|
||||
parse(ServerConstants.ASDT_DATA_PATH);
|
||||
logInfo(this.getClass(), "Initialized Allotment Seed Drop Table from " + ServerConstants.ASDT_DATA_PATH);
|
||||
log(this.getClass(), Log.FINE, "Initialized Allotment Seed Drop Table from " + ServerConstants.ASDT_DATA_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ import core.game.node.item.GroundItemManager;
|
|||
import core.game.node.item.Item;
|
||||
import core.tools.RandomFunction;
|
||||
import core.tools.StringUtils;
|
||||
import org.rs09.consts.Sounds;
|
||||
|
||||
import static core.api.ContentAPIKt.playAudio;
|
||||
|
||||
/**
|
||||
* Represents a birds nest.
|
||||
|
|
@ -93,7 +96,7 @@ public enum BirdNest {
|
|||
*/
|
||||
public static void drop(final Player player) {
|
||||
final BirdNest nest = getRandomNest(false);
|
||||
player.getAudioManager().send(1997);
|
||||
playAudio(player, Sounds.CUCKOO_1_1997);
|
||||
GroundItemManager.create(nest.getNest(), player);
|
||||
player.getPacketDispatch().sendMessage("<col=FF0000>A bird's nest falls out of the tree.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import core.api.StartupListener;
|
|||
import core.ServerConstants;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.node.item.WeightedChanceItem;
|
||||
import core.tools.SystemLogger;
|
||||
import core.tools.Log;
|
||||
import core.tools.RandomFunction;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
|
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static core.tools.SystemLogger.logInfo;
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Handles the Chaos Elemental's minor drop table. It is supposed to roll this table alongside its standard major drops on the main table.
|
||||
|
|
@ -57,11 +57,11 @@ public final class CELEMinorTable implements StartupListener {
|
|||
@Override
|
||||
public void startup() {
|
||||
if(ServerConstants.CELEDT_DATA_PATH != null && !new File(ServerConstants.CELEDT_DATA_PATH).exists()){
|
||||
SystemLogger.logErr(this.getClass(), "Can't locate CELEDT file at " + ServerConstants.CELEDT_DATA_PATH);
|
||||
log(this.getClass(), Log.ERR, "Can't locate CELEDT file at " + ServerConstants.CELEDT_DATA_PATH);
|
||||
return;
|
||||
}
|
||||
parse(ServerConstants.CELEDT_DATA_PATH);
|
||||
logInfo(this.getClass(), "Loaded up Chaos Elemental drop table from " + ServerConstants.CELEDT_DATA_PATH);
|
||||
log(this.getClass(), Log.FINE, "Loaded up Chaos Elemental drop table from " + ServerConstants.CELEDT_DATA_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ package content.data.tables;
|
|||
import core.api.StartupListener;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.node.item.WeightedChanceItem;
|
||||
import core.tools.Log;
|
||||
import core.tools.RandomFunction;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import core.ServerConstants;
|
||||
import core.tools.SystemLogger;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static core.tools.SystemLogger.logInfo;
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Handles the gem drop table.
|
||||
|
|
@ -57,11 +57,11 @@ public final class GemDropTable implements StartupListener {
|
|||
@Override
|
||||
public void startup() {
|
||||
if(ServerConstants.GDT_DATA_PATH != null && !new File(ServerConstants.GDT_DATA_PATH).exists()){
|
||||
SystemLogger.logErr(this.getClass(), "Can't locate GDT file at " + ServerConstants.GDT_DATA_PATH);
|
||||
log(this.getClass(), Log.ERR, "Can't locate GDT file at " + ServerConstants.GDT_DATA_PATH);
|
||||
return;
|
||||
}
|
||||
parse(ServerConstants.GDT_DATA_PATH);
|
||||
logInfo(this.getClass(), "Initialized Gem Drop Table from " + ServerConstants.GDT_DATA_PATH);
|
||||
log(this.getClass(), Log.FINE, "Initialized Gem Drop Table from " + ServerConstants.GDT_DATA_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ package content.data.tables;
|
|||
import core.api.StartupListener;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.node.item.WeightedChanceItem;
|
||||
import core.tools.Log;
|
||||
import core.tools.RandomFunction;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import core.ServerConstants;
|
||||
import core.tools.SystemLogger;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static core.tools.SystemLogger.logInfo;
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Handles the herb drop table.
|
||||
|
|
@ -57,11 +57,11 @@ public final class HerbDropTable implements StartupListener {
|
|||
@Override
|
||||
public void startup() {
|
||||
if(ServerConstants.HDT_DATA_PATH != null && !new File(ServerConstants.HDT_DATA_PATH).exists()){
|
||||
SystemLogger.logErr(this.getClass(), "Can't locate HDT file at " + ServerConstants.HDT_DATA_PATH);
|
||||
log(this.getClass(), Log.ERR, "Can't locate HDT file at " + ServerConstants.HDT_DATA_PATH);
|
||||
return;
|
||||
}
|
||||
parse(ServerConstants.HDT_DATA_PATH);
|
||||
logInfo(this.getClass(), "Initialized Herb Drop Table from " + ServerConstants.HDT_DATA_PATH);
|
||||
log(this.getClass(), Log.FINE, "Initialized Herb Drop Table from " + ServerConstants.HDT_DATA_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ package content.data.tables
|
|||
|
||||
import core.ServerConstants
|
||||
import core.api.StartupListener
|
||||
import core.api.log
|
||||
import core.api.shouldRemoveNothings
|
||||
import core.api.utils.WeightBasedTable
|
||||
import core.api.utils.WeightedItem
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.item.Item
|
||||
import core.tools.Log
|
||||
import core.tools.RandomFunction
|
||||
import core.tools.SystemLogger.logErr
|
||||
import core.tools.SystemLogger.logInfo
|
||||
import org.rs09.consts.Items
|
||||
import org.w3c.dom.Element
|
||||
import org.w3c.dom.Node
|
||||
|
|
@ -26,11 +26,11 @@ import javax.xml.parsers.ParserConfigurationException
|
|||
class RareDropTable : StartupListener {
|
||||
override fun startup() {
|
||||
if (ServerConstants.RDT_DATA_PATH != null && !File(ServerConstants.RDT_DATA_PATH).exists()) {
|
||||
logErr(this.javaClass, "Can't locate RDT file at " + ServerConstants.RDT_DATA_PATH)
|
||||
log(this::class.java, Log.ERR, "Can't locate RDT file at " + ServerConstants.RDT_DATA_PATH)
|
||||
return
|
||||
}
|
||||
parse(ServerConstants.RDT_DATA_PATH)
|
||||
logInfo(this.javaClass, "Initialized Rare Drop Table from " + ServerConstants.RDT_DATA_PATH)
|
||||
log(this::class.java, Log.FINE, "Initialized Rare Drop Table from " + ServerConstants.RDT_DATA_PATH)
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ package content.data.tables;
|
|||
import core.api.StartupListener;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.node.item.WeightedChanceItem;
|
||||
import core.tools.Log;
|
||||
import core.tools.RandomFunction;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import core.ServerConstants;
|
||||
import core.tools.SystemLogger;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static core.tools.SystemLogger.logInfo;
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Handles the rare seed drop table.
|
||||
|
|
@ -57,11 +57,11 @@ public final class RareSeedDropTable implements StartupListener {
|
|||
@Override
|
||||
public void startup() {
|
||||
if(ServerConstants.RSDT_DATA_PATH != null && !new File(ServerConstants.RSDT_DATA_PATH).exists()){
|
||||
SystemLogger.logErr(this.getClass(), "Can't locate RSDT file at " + ServerConstants.RSDT_DATA_PATH);
|
||||
log(this.getClass(), Log.ERR, "Can't locate RSDT file at " + ServerConstants.RSDT_DATA_PATH);
|
||||
return;
|
||||
}
|
||||
parse(ServerConstants.RSDT_DATA_PATH);
|
||||
logInfo(this.getClass(), "Initialized Rare Seed Drop Table from " + ServerConstants.RSDT_DATA_PATH);
|
||||
log(this.getClass(), Log.FINE, "Initialized Rare Seed Drop Table from " + ServerConstants.RSDT_DATA_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ package content.data.tables;
|
|||
import core.api.StartupListener;
|
||||
import core.game.node.item.Item;
|
||||
import core.game.node.item.WeightedChanceItem;
|
||||
import core.tools.Log;
|
||||
import core.tools.RandomFunction;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import core.ServerConstants;
|
||||
import core.tools.SystemLogger;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
|
@ -18,7 +18,7 @@ import java.io.File;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static core.tools.SystemLogger.logInfo;
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Handles the uncommon seed drop table.
|
||||
|
|
@ -57,11 +57,11 @@ public final class UncommonSeedDropTable implements StartupListener {
|
|||
@Override
|
||||
public void startup() {
|
||||
if(ServerConstants.USDT_DATA_PATH != null && !new File(ServerConstants.USDT_DATA_PATH).exists()){
|
||||
SystemLogger.logErr(this.getClass(), "Can't locate USDT file at " + ServerConstants.USDT_DATA_PATH);
|
||||
log(this.getClass(), Log.ERR, "Can't locate USDT file at " + ServerConstants.USDT_DATA_PATH);
|
||||
return;
|
||||
}
|
||||
parse(ServerConstants.USDT_DATA_PATH);
|
||||
logInfo(this.getClass(), "Initialized Uncommon Seed Drop Table from " + ServerConstants.USDT_DATA_PATH);
|
||||
log(this.getClass(), Log.FINE, "Initialized Uncommon Seed Drop Table from " + ServerConstants.USDT_DATA_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -0,0 +1,230 @@
|
|||
package content.global.activity.cchallange
|
||||
|
||||
import content.global.activity.cchallange.npc.EarthWarriorChampionNPC.Companion.spawnEarthWarriorChampion
|
||||
import content.global.activity.cchallange.npc.GhoulChampionNPC.Companion.spawnGhoulChampion
|
||||
import content.global.activity.cchallange.npc.GiantChampionNPC.Companion.spawnGiantChampion
|
||||
import content.global.activity.cchallange.npc.GoblinChampionNPC.Companion.spawnGoblinChampion
|
||||
import content.global.activity.cchallange.npc.HobgoblinChampionNPC.Companion.spawnHobgoblinChampion
|
||||
import content.global.activity.cchallange.npc.ImpChampionNPC.Companion.spawnImpChampion
|
||||
import content.global.activity.cchallange.npc.JogreChampionNPC.Companion.spawnJogreChampion
|
||||
import content.global.activity.cchallange.npc.LesserDemonChampionNPC.Companion.spawnLesserDemonChampion
|
||||
import content.global.activity.cchallange.npc.SkeletonChampionNPC.Companion.spawnSkeletonChampion
|
||||
import content.global.activity.cchallange.npc.ZombieChampionNPC.Companion.spawnZombieChampion
|
||||
import core.api.*
|
||||
import core.game.global.action.DoorActionHandler
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.item.Item
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.map.Location
|
||||
import core.game.world.map.zone.ZoneBorders
|
||||
import core.game.world.map.zone.ZoneRestriction
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
import org.rs09.consts.Scenery
|
||||
|
||||
/**
|
||||
* Represents the Champion challenge.
|
||||
*/
|
||||
|
||||
class ChampionChallengeListener : InteractionListener, MapArea {
|
||||
|
||||
val EARTH_WARRIOR_SCROLL = Items.CHAMPION_SCROLL_6798
|
||||
val GHOUL_SCROLL = Items.CHAMPION_SCROLL_6799
|
||||
val GIANT_SCROLL = Items.CHAMPION_SCROLL_6800
|
||||
val GOBLIN_SCROLL = Items.CHAMPION_SCROLL_6801
|
||||
val HOBGOBLIN_SCROLL = Items.CHAMPION_SCROLL_6802
|
||||
val IMP_SCROLL = Items.CHAMPION_SCROLL_6803
|
||||
val JOGRE_SCROLL = Items.CHAMPION_SCROLL_6804
|
||||
val LESSER_DEMON_SCROLL = Items.CHAMPION_SCROLL_6805
|
||||
val SKELETON_SCROLL = Items.CHAMPION_SCROLL_6806
|
||||
val ZOMBIE_SCROLL = Items.CHAMPION_SCROLL_6807
|
||||
|
||||
val MESSAGE_SCROLL = 222
|
||||
|
||||
private val IMP_SCROLL_TEXT = arrayOf(
|
||||
"How about picking on someone your own size? I'll",
|
||||
"see you at the Champions' Guild.",
|
||||
"",
|
||||
"Champion of Imps"
|
||||
)
|
||||
|
||||
private val GOBLIN_SCROLL_TEXT = arrayOf(
|
||||
"Fight me if you think you can human, I'll wait",
|
||||
"for you in the Champions' Guild.",
|
||||
"",
|
||||
"Champion of Goblins"
|
||||
)
|
||||
|
||||
private val SKELETON_SCROLL_TEXT = arrayOf(
|
||||
"I'll be waiting at the Champions' Guild to collect",
|
||||
"your bones.",
|
||||
"",
|
||||
"Champion of Skeletons"
|
||||
)
|
||||
|
||||
private val ZOMBIE_SCROLL_TEXT = arrayOf(
|
||||
"You come to Champions' Guild, you fight me, I",
|
||||
"squish you, I get brains!",
|
||||
"",
|
||||
"Champion of Zombies"
|
||||
)
|
||||
|
||||
private val GIANT_SCROLL_TEXT = arrayOf(
|
||||
"Get yourself to the Champions' Guild, if you dare",
|
||||
"to face me puny human.",
|
||||
"",
|
||||
"Champion of Giants"
|
||||
)
|
||||
|
||||
private val HOBGOBLIN_SCROLL_TEXT = arrayOf(
|
||||
"You won't defeat me, though you're welcome to",
|
||||
"try at the Champions' Guild.",
|
||||
"",
|
||||
"Champion of Hobgoblins"
|
||||
)
|
||||
|
||||
private val GHOUL_SCROLL_TEXT = arrayOf(
|
||||
"Come and duel me at the Champions' Guild, I'll",
|
||||
"make sure nothing goes to waste.",
|
||||
"",
|
||||
"Champion of Ghouls"
|
||||
)
|
||||
|
||||
private val EARTH_WARRIOR_TEXT = arrayOf(
|
||||
"I challenge you to a duel, come to the arena",
|
||||
"beneath the Champions' Guild and fight me if you",
|
||||
"dare.",
|
||||
"",
|
||||
"Champion of Earth Warriors"
|
||||
)
|
||||
|
||||
private val JOGRE_SCROLL_TEXT = arrayOf(
|
||||
"You think you can defeat me? Come to the",
|
||||
"Champions' Guild and prove it!",
|
||||
"",
|
||||
"Champion of Jogres"
|
||||
)
|
||||
|
||||
private val LESSER_DEMON_SCROLL_TEXT = arrayOf(
|
||||
"Come to the Champions' Guild so I can banish",
|
||||
"you mortal!",
|
||||
"",
|
||||
"Champion of Lesser Demons"
|
||||
)
|
||||
|
||||
private val PORTCULLIS = Scenery.PORTCULLIS_10553
|
||||
private val CHAMPION_STATUE_CLOSED = Scenery.CHAMPION_STATUE_10556
|
||||
private val CHAMPION_STATUE_OPEN = Scenery.CHAMPION_STATUE_10557
|
||||
private val TRAPDOOR_CLOSED = Scenery.TRAPDOOR_10558
|
||||
private val TRAPDOOR_OPEN = Scenery.TRAPDOOR_10559
|
||||
private val LARXUS = NPCs.LARXUS_3050
|
||||
|
||||
private val ARENA_ZONE = 12696
|
||||
|
||||
override fun defineListeners() {
|
||||
// Champion's Guild Basement Ladder to Main Floor
|
||||
addClimbDest(Location(3190, 9758, 0), Location(3190, 3356, 0))
|
||||
// Champion Statue Ladder to Arena
|
||||
addClimbDest(Location(3184, 9758, 0), Location(3182, 9758, 0))
|
||||
// Arena Ladder to Champion's Guild Basement
|
||||
addClimbDest(Location(3183, 9758, 0), Location(3185, 9758, 0))
|
||||
|
||||
on(LARXUS, IntType.NPC, "talk-to") { player, _ ->
|
||||
openDialogue(player, LarxusDialogue(false))
|
||||
return@on true
|
||||
}
|
||||
|
||||
on(ChampionScrollsDropHandler.SCROLLS, IntType.ITEM, "read") { player, node ->
|
||||
updateAndReadScroll(player, node.asItem())
|
||||
return@on true
|
||||
}
|
||||
|
||||
onUseWith(IntType.NPC, ChampionScrollsDropHandler.SCROLLS, NPCs.LARXUS_3050) { player, _, _ ->
|
||||
openDialogue(player, LarxusDialogue(true))
|
||||
return@onUseWith true
|
||||
}
|
||||
|
||||
on(TRAPDOOR_CLOSED, IntType.SCENERY, "open") { _, node ->
|
||||
replaceScenery(node.asScenery(), TRAPDOOR_OPEN, 100, node.location)
|
||||
return@on true
|
||||
}
|
||||
|
||||
on(TRAPDOOR_OPEN, IntType.SCENERY, "close") { _, node ->
|
||||
replaceScenery(node.asScenery(), TRAPDOOR_CLOSED, -1, node.location)
|
||||
return@on true
|
||||
}
|
||||
|
||||
on(CHAMPION_STATUE_CLOSED, IntType.SCENERY, "open") { _, node ->
|
||||
replaceScenery(node.asScenery(), CHAMPION_STATUE_OPEN, 100, node.location)
|
||||
return@on true
|
||||
}
|
||||
|
||||
on(PORTCULLIS, IntType.SCENERY, "open") { player, node ->
|
||||
if (player.getAttribute("championsarena:start", false) == false) {
|
||||
sendNPCDialogue(player, NPCs.LARXUS_3050, "You need to arrange a challenge with me before you enter the arena.")
|
||||
} else {
|
||||
lock(player, 3)
|
||||
submitWorldPulse(object : Pulse() {
|
||||
var counter = 0
|
||||
override fun pulse(): Boolean {
|
||||
when (counter++) {
|
||||
1 -> {
|
||||
player.familiarManager.dismiss()
|
||||
}
|
||||
2 -> DoorActionHandler.handleDoor(player, node.asScenery())
|
||||
3 -> when{
|
||||
removeItem(player, IMP_SCROLL) -> spawnImpChampion(player)
|
||||
removeItem(player, GOBLIN_SCROLL) -> spawnGoblinChampion(player)
|
||||
removeItem(player, SKELETON_SCROLL) -> spawnSkeletonChampion(player)
|
||||
removeItem(player, ZOMBIE_SCROLL) -> spawnZombieChampion(player)
|
||||
removeItem(player, GIANT_SCROLL) -> spawnGiantChampion(player)
|
||||
removeItem(player, HOBGOBLIN_SCROLL) -> spawnHobgoblinChampion(player)
|
||||
removeItem(player, GHOUL_SCROLL) -> spawnGhoulChampion(player)
|
||||
removeItem(player, EARTH_WARRIOR_SCROLL) -> {
|
||||
spawnEarthWarriorChampion(player)
|
||||
player.prayer.reset()
|
||||
}
|
||||
removeItem(player, JOGRE_SCROLL) -> spawnJogreChampion(player)
|
||||
removeItem(player, LESSER_DEMON_SCROLL) -> spawnLesserDemonChampion(player)
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateAndReadScroll(player: Player, item: Item) {
|
||||
val id = item.id
|
||||
openInterface(player, MESSAGE_SCROLL).also {
|
||||
when (id) {
|
||||
IMP_SCROLL -> setInterfaceText(player, IMP_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
GOBLIN_SCROLL -> setInterfaceText(player, GOBLIN_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
SKELETON_SCROLL -> setInterfaceText(player, SKELETON_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
ZOMBIE_SCROLL -> setInterfaceText(player, ZOMBIE_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
GIANT_SCROLL -> setInterfaceText(player, GIANT_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
HOBGOBLIN_SCROLL -> setInterfaceText(player, HOBGOBLIN_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
GHOUL_SCROLL -> setInterfaceText(player, GHOUL_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
EARTH_WARRIOR_SCROLL -> setInterfaceText(player, EARTH_WARRIOR_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
JOGRE_SCROLL -> setInterfaceText(player, JOGRE_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
LESSER_DEMON_SCROLL -> setInterfaceText(player, LESSER_DEMON_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 4)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun defineAreaBorders(): Array<ZoneBorders> {
|
||||
return arrayOf(getRegionBorders(ARENA_ZONE))
|
||||
}
|
||||
|
||||
override fun getRestrictions(): Array<ZoneRestriction> {
|
||||
return arrayOf(
|
||||
ZoneRestriction.CANNON,
|
||||
ZoneRestriction.FIRES,
|
||||
ZoneRestriction.RANDOM_EVENTS
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,279 @@
|
|||
package content.global.activity.cchallange
|
||||
|
||||
import core.api.sendMessage
|
||||
import core.api.sendNews
|
||||
import core.game.event.NPCKillEvent
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.item.GroundItemManager
|
||||
import core.game.node.item.Item
|
||||
import core.tools.*
|
||||
import core.game.world.GameWorld
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Handles the drop for champion challenge.
|
||||
* @authors Phil, Skelsoft, Ceikry
|
||||
*/
|
||||
|
||||
class ChampionScrollsDropHandler : ChampionScrollsEventHookBase() {
|
||||
companion object {
|
||||
|
||||
private val IMPS = intArrayOf(
|
||||
NPCs.IMP_708, NPCs.IMP_709, NPCs.IMP_1531, NPCs.IMP_6211
|
||||
)
|
||||
|
||||
private val GOBLINS = intArrayOf(
|
||||
NPCs.GOBLIN_100, NPCs.GOBLIN_101, NPCs.GOBLIN_102, NPCs.GOBLIN_444, NPCs.GOBLIN_445,
|
||||
|
||||
NPCs.GOBLIN_1769, NPCs.GOBLIN_1770, NPCs.GOBLIN_1771, NPCs.GOBLIN_1772, NPCs.GOBLIN_1773,
|
||||
NPCs.GOBLIN_1774, NPCs.GOBLIN_1775, NPCs.GOBLIN_1776, NPCs.GOBLIN_2274, NPCs.GOBLIN_2275,
|
||||
NPCs.GOBLIN_2276, NPCs.GOBLIN_2277, NPCs.GOBLIN_2278, NPCs.GOBLIN_2279, NPCs.GOBLIN_2280,
|
||||
NPCs.GOBLIN_2281, NPCs.GOBLIN_2678, NPCs.GOBLIN_2679, NPCs.GOBLIN_2680, NPCs.GOBLIN_2681,
|
||||
NPCs.GOBLIN_3264, NPCs.GOBLIN_3265, NPCs.GOBLIN_3266, NPCs.GOBLIN_3267, NPCs.GOBLIN_3726,
|
||||
NPCs.GOBLIN_4261, NPCs.GOBLIN_4262, NPCs.GOBLIN_4263, NPCs.GOBLIN_4264, NPCs.GOBLIN_4265,
|
||||
NPCs.GOBLIN_4266, NPCs.GOBLIN_4267, NPCs.GOBLIN_4268, NPCs.GOBLIN_4269, NPCs.GOBLIN_4270,
|
||||
NPCs.GOBLIN_4271, NPCs.GOBLIN_4272, NPCs.GOBLIN_4273, NPCs.GOBLIN_4274, NPCs.GOBLIN_4275,
|
||||
NPCs.GOBLIN_4276, NPCs.GOBLIN_4407, NPCs.GOBLIN_4408, NPCs.GOBLIN_4409, NPCs.GOBLIN_4410,
|
||||
NPCs.GOBLIN_4411, NPCs.GOBLIN_4412, NPCs.GOBLIN_4479, NPCs.GOBLIN_4480, NPCs.GOBLIN_4481,
|
||||
NPCs.GOBLIN_4482, NPCs.GOBLIN_4483, NPCs.GOBLIN_4484, NPCs.GOBLIN_4485, NPCs.GOBLIN_4486,
|
||||
NPCs.GOBLIN_4487, NPCs.GOBLIN_4488, NPCs.GOBLIN_4489, NPCs.GOBLIN_4490, NPCs.GOBLIN_4491,
|
||||
NPCs.GOBLIN_4492, NPCs.GOBLIN_4499, NPCs.GOBLIN_4633, NPCs.GOBLIN_4634, NPCs.GOBLIN_4635,
|
||||
NPCs.GOBLIN_4636, NPCs.GOBLIN_4637, NPCs.GOBLIN_5855, NPCs.GOBLIN_5856, NPCs.GOBLIN_6125,
|
||||
NPCs.GOBLIN_6126, NPCs.GOBLIN_6132, NPCs.GOBLIN_6133, NPCs.GOBLIN_6279, NPCs.GOBLIN_6280,
|
||||
NPCs.GOBLIN_6281, NPCs.GOBLIN_6282, NPCs.GOBLIN_6283, NPCs.GOBLIN_6284, NPCs.GOBLIN_6402,
|
||||
NPCs.GOBLIN_6403, NPCs.GOBLIN_6404, NPCs.GOBLIN_6405, NPCs.GOBLIN_6406, NPCs.GOBLIN_6407,
|
||||
NPCs.GOBLIN_6408, NPCs.GOBLIN_6409, NPCs.GOBLIN_6410, NPCs.GOBLIN_6411, NPCs.GOBLIN_6412,
|
||||
NPCs.GOBLIN_6413, NPCs.GOBLIN_6414, NPCs.GOBLIN_6415, NPCs.GOBLIN_6416, NPCs.GOBLIN_6417,
|
||||
NPCs.GOBLIN_6418, NPCs.GOBLIN_6419, NPCs.GOBLIN_6420, NPCs.GOBLIN_6421, NPCs.GOBLIN_6422,
|
||||
NPCs.GOBLIN_6423, NPCs.GOBLIN_6424, NPCs.GOBLIN_6425, NPCs.GOBLIN_6426, NPCs.GOBLIN_6427,
|
||||
NPCs.GOBLIN_6428, NPCs.GOBLIN_6429, NPCs.GOBLIN_6430, NPCs.GOBLIN_6431, NPCs.GOBLIN_6432,
|
||||
NPCs.GOBLIN_6433, NPCs.GOBLIN_6434, NPCs.GOBLIN_6435, NPCs.GOBLIN_6436, NPCs.GOBLIN_6437,
|
||||
NPCs.GOBLIN_6438, NPCs.GOBLIN_6439, NPCs.GOBLIN_6440, NPCs.GOBLIN_6441, NPCs.GOBLIN_6442,
|
||||
NPCs.GOBLIN_6443, NPCs.GOBLIN_6444, NPCs.GOBLIN_6445, NPCs.GOBLIN_6446, NPCs.GOBLIN_6447,
|
||||
NPCs.GOBLIN_6448, NPCs.GOBLIN_6449, NPCs.GOBLIN_6450, NPCs.GOBLIN_6451, NPCs.GOBLIN_6452,
|
||||
NPCs.GOBLIN_6453, NPCs.GOBLIN_6454, NPCs.GOBLIN_6455, NPCs.GOBLIN_6456, NPCs.GOBLIN_6457,
|
||||
NPCs.GOBLIN_6458, NPCs.GOBLIN_6459, NPCs.GOBLIN_6460, NPCs.GOBLIN_6461, NPCs.GOBLIN_6462,
|
||||
NPCs.GOBLIN_6463, NPCs.GOBLIN_6464, NPCs.GOBLIN_6465, NPCs.GOBLIN_6466, NPCs.GOBLIN_6467,
|
||||
NPCs.GOBLIN_6490, NPCs.GOBLIN_6491, NPCs.GOBLIN_6492, NPCs.GOBLIN_6493, NPCs.GOBLIN_6494,
|
||||
NPCs.GOBLIN_6495, NPCs.GOBLIN_7964, NPCs.GOBLIN_7965,
|
||||
|
||||
NPCs.CAVE_GOBLIN_1822, NPCs.CAVE_GOBLIN_1823, NPCs.CAVE_GOBLIN_1824, NPCs.CAVE_GOBLIN_1825,
|
||||
NPCs.CAVE_GOBLIN_5752, NPCs.CAVE_GOBLIN_5753, NPCs.CAVE_GOBLIN_5754, NPCs.CAVE_GOBLIN_5755,
|
||||
NPCs.CAVE_GOBLIN_5756, NPCs.CAVE_GOBLIN_5757, NPCs.CAVE_GOBLIN_5758, NPCs.CAVE_GOBLIN_5759,
|
||||
NPCs.CAVE_GOBLIN_5760, NPCs.CAVE_GOBLIN_5761, NPCs.CAVE_GOBLIN_5762, NPCs.CAVE_GOBLIN_5763,
|
||||
NPCs.CAVE_GOBLIN_5764, NPCs.CAVE_GOBLIN_5765, NPCs.CAVE_GOBLIN_5766, NPCs.CAVE_GOBLIN_5767,
|
||||
NPCs.CAVE_GOBLIN_5768, NPCs.CAVE_GOBLIN_5769, NPCs.CAVE_GOBLIN_5783, NPCs.CAVE_GOBLIN_5785,
|
||||
NPCs.CAVE_GOBLIN_5873, NPCs.CAVE_GOBLIN_5874, NPCs.CAVE_GOBLIN_5875, NPCs.CAVE_GOBLIN_5876,
|
||||
NPCs.CAVE_GOBLIN_5877, NPCs.CAVE_GOBLIN_5878, NPCs.CAVE_GOBLIN_8451,
|
||||
|
||||
NPCs.CAVE_GOBLIN_GUARD_2073, NPCs.CAVE_GOBLIN_GUARD_2074,
|
||||
|
||||
NPCs.GOBLIN_GUARD_6496, NPCs.GOBLIN_GUARD_6497,
|
||||
NPCs.SERGEANT_GRIMSPIKE_6265,
|
||||
NPCs.SERGEANT_STEELWILL_6263,
|
||||
NPCs.SERGEANT_STRONGSTACK_6261
|
||||
)
|
||||
|
||||
private val SKELETONS = intArrayOf(
|
||||
NPCs.SKELETON_90, NPCs.SKELETON_91, NPCs.SKELETON_92, NPCs.SKELETON_93,
|
||||
|
||||
NPCs.SKELETON_459,
|
||||
|
||||
NPCs.SKELETON_1471, NPCs.SKELETON_2036, NPCs.SKELETON_2037, NPCs.SKELETON_2715,
|
||||
NPCs.SKELETON_3151, NPCs.SKELETON_3152, NPCs.SKELETON_3291, NPCs.SKELETON_3581,
|
||||
NPCs.SKELETON_4384, NPCs.SKELETON_4385, NPCs.SKELETON_4386, NPCs.SKELETON_5332,
|
||||
NPCs.SKELETON_5333, NPCs.SKELETON_5334, NPCs.SKELETON_5335, NPCs.SKELETON_5336,
|
||||
NPCs.SKELETON_5337, NPCs.SKELETON_5338, NPCs.SKELETON_5339, NPCs.SKELETON_5340,
|
||||
NPCs.SKELETON_5341, NPCs.SKELETON_5365, NPCs.SKELETON_5366, NPCs.SKELETON_5367,
|
||||
NPCs.SKELETON_5368, NPCs.SKELETON_5381, NPCs.SKELETON_5385, NPCs.SKELETON_5386,
|
||||
NPCs.SKELETON_5387, NPCs.SKELETON_5388, NPCs.SKELETON_5389, NPCs.SKELETON_5390,
|
||||
NPCs.SKELETON_5391, NPCs.SKELETON_5392, NPCs.SKELETON_5411, NPCs.SKELETON_5412,
|
||||
NPCs.SKELETON_5422, NPCs.SKELETON_5423, NPCs.SKELETON_6091, NPCs.SKELETON_6092,
|
||||
NPCs.SKELETON_6093, NPCs.SKELETON_6764, NPCs.SKELETON_6765, NPCs.SKELETON_6766,
|
||||
NPCs.SKELETON_6767, NPCs.SKELETON_6768, NPCs.SKELETON_7774, NPCs.SKELETON_7775,
|
||||
NPCs.SKELETON_7776, NPCs.SKELETON_7777, NPCs.SKELETON_7778, NPCs.SKELETON_7779,
|
||||
NPCs.SKELETON_7788, NPCs.SKELETON_7815, NPCs.GIANT_SKELETON_1973,
|
||||
|
||||
NPCs.GIANT_SKELETON_5359, NPCs.GIANT_SKELETON_5384, NPCs.SKELETON_HELLHOUND_1575,
|
||||
|
||||
NPCs.SKELETON_MAGE_94, NPCs.SKELETON_MAGE_2717, NPCs.SKELETON_MAGE_3844,
|
||||
|
||||
NPCs.SKELETON_MAGE_3850, NPCs.SKELETON_MAGE_3851,
|
||||
|
||||
NPCs.SKELETON_HERO_6103, NPCs.SKELETON_BRUTE_6104, NPCs.SKELETON_WARLORD_6105,
|
||||
|
||||
NPCs.SKELETON_HEAVY_6106, NPCs.SKELETON_THUG_6107,
|
||||
NPCs.NAZASTAROOL_508,
|
||||
|
||||
NPCs.UNDEAD_ONE_5353, NPCs.UNDEAD_ONE_5354, NPCs.UNDEAD_ONE_5355,
|
||||
NPCs.UNDEAD_ONE_5356, NPCs.UNDEAD_ONE_5357, NPCs.UNDEAD_ONE_5358,
|
||||
)
|
||||
|
||||
private val ZOMBIES = intArrayOf(
|
||||
NPCs.ZOMBIE_73, NPCs.ZOMBIE_74, NPCs.ZOMBIE_75, NPCs.ZOMBIE_76, NPCs.ZOMBIE_419,
|
||||
NPCs.ZOMBIE_420, NPCs.ZOMBIE_421, NPCs.ZOMBIE_422, NPCs.ZOMBIE_423, NPCs.ZOMBIE_424,
|
||||
|
||||
NPCs.ZOMBIE_1826, NPCs.ZOMBIE_2714, NPCs.ZOMBIE_2863, NPCs.ZOMBIE_2866, NPCs.ZOMBIE_2869,
|
||||
NPCs.ZOMBIE_2878, NPCs.ZOMBIE_3622, NPCs.ZOMBIE_3623, NPCs.ZOMBIE_4392, NPCs.ZOMBIE_4393,
|
||||
NPCs.ZOMBIE_4394, NPCs.ZOMBIE_5293, NPCs.ZOMBIE_5294, NPCs.ZOMBIE_5295, NPCs.ZOMBIE_5296,
|
||||
NPCs.ZOMBIE_5297, NPCs.ZOMBIE_5298, NPCs.ZOMBIE_5299, NPCs.ZOMBIE_5300, NPCs.ZOMBIE_5301,
|
||||
NPCs.ZOMBIE_5302, NPCs.ZOMBIE_5303, NPCs.ZOMBIE_5304, NPCs.ZOMBIE_5305, NPCs.ZOMBIE_5306,
|
||||
NPCs.ZOMBIE_5307, NPCs.ZOMBIE_5308, NPCs.ZOMBIE_5309, NPCs.ZOMBIE_5310, NPCs.ZOMBIE_5311,
|
||||
NPCs.ZOMBIE_5312, NPCs.ZOMBIE_5313, NPCs.ZOMBIE_5314, NPCs.ZOMBIE_5315, NPCs.ZOMBIE_5316,
|
||||
NPCs.ZOMBIE_5317, NPCs.ZOMBIE_5318, NPCs.ZOMBIE_5319, NPCs.ZOMBIE_5320, NPCs.ZOMBIE_5321,
|
||||
NPCs.ZOMBIE_5322, NPCs.ZOMBIE_5323, NPCs.ZOMBIE_5324, NPCs.ZOMBIE_5325, NPCs.ZOMBIE_5326,
|
||||
NPCs.ZOMBIE_5327, NPCs.ZOMBIE_5328, NPCs.ZOMBIE_5329, NPCs.ZOMBIE_5330, NPCs.ZOMBIE_5331,
|
||||
NPCs.ZOMBIE_5375, NPCs.ZOMBIE_5376, NPCs.ZOMBIE_5377, NPCs.ZOMBIE_5378, NPCs.ZOMBIE_5379,
|
||||
NPCs.ZOMBIE_5380, NPCs.ZOMBIE_5393, NPCs.ZOMBIE_5394, NPCs.ZOMBIE_5395, NPCs.ZOMBIE_5396,
|
||||
NPCs.ZOMBIE_5397, NPCs.ZOMBIE_5398, NPCs.ZOMBIE_5399, NPCs.ZOMBIE_5400, NPCs.ZOMBIE_5401,
|
||||
NPCs.ZOMBIE_5402, NPCs.ZOMBIE_5403, NPCs.ZOMBIE_5404, NPCs.ZOMBIE_5405, NPCs.ZOMBIE_5406,
|
||||
NPCs.ZOMBIE_5407, NPCs.ZOMBIE_5408, NPCs.ZOMBIE_5409, NPCs.ZOMBIE_5410, NPCs.ZOMBIE_6099,
|
||||
NPCs.ZOMBIE_6100, NPCs.ZOMBIE_6131, NPCs.ZOMBIE_7789, NPCs.ZOMBIE_7790, NPCs.ZOMBIE_7791,
|
||||
NPCs.ZOMBIE_7792, NPCs.ZOMBIE_7817, NPCs.ZOMBIE_7818, NPCs.ZOMBIE_7819, NPCs.ZOMBIE_7820,
|
||||
NPCs.ZOMBIE_8142, NPCs.ZOMBIE_8143, NPCs.ZOMBIE_8144, NPCs.ZOMBIE_8145,
|
||||
|
||||
NPCs.ZOMBIE_PIRATE_2837, NPCs.ZOMBIE_PIRATE_2838, NPCs.ZOMBIE_PIRATE_2839,
|
||||
NPCs.ZOMBIE_PIRATE_2840, NPCs.ZOMBIE_PIRATE_2841, NPCs.ZOMBIE_PIRATE_2842,
|
||||
NPCs.ZOMBIE_PIRATE_5629, NPCs.ZOMBIE_PIRATE_5630, NPCs.ZOMBIE_PIRATE_5631,
|
||||
NPCs.ZOMBIE_PIRATE_5632, NPCs.ZOMBIE_PIRATE_5633, NPCs.ZOMBIE_PIRATE_5634,
|
||||
NPCs.ZOMBIE_PIRATE_5635, NPCs.ZOMBIE_PIRATE_5636, NPCs.ZOMBIE_PIRATE_5637,
|
||||
NPCs.ZOMBIE_PIRATE_5638, NPCs.ZOMBIE_PIRATE_5639, NPCs.ZOMBIE_PIRATE_5640,
|
||||
NPCs.ZOMBIE_PIRATE_5641, NPCs.ZOMBIE_PIRATE_5642, NPCs.ZOMBIE_PIRATE_5643,
|
||||
NPCs.ZOMBIE_PIRATE_5644, NPCs.ZOMBIE_PIRATE_5645, NPCs.ZOMBIE_PIRATE_5646,
|
||||
NPCs.ZOMBIE_PIRATE_5647, NPCs.ZOMBIE_PIRATE_5648, NPCs.ZOMBIE_PIRATE_5649,
|
||||
NPCs.ZOMBIE_PIRATE_5650, NPCs.ZOMBIE_PIRATE_5651, NPCs.ZOMBIE_PIRATE_5652,
|
||||
NPCs.ZOMBIE_PIRATE_5653, NPCs.ZOMBIE_PIRATE_5654, NPCs.ZOMBIE_PIRATE_5655,
|
||||
NPCs.ZOMBIE_PIRATE_5656, NPCs.ZOMBIE_PIRATE_5657, NPCs.ZOMBIE_PIRATE_5658,
|
||||
NPCs.ZOMBIE_PIRATE_5659, NPCs.ZOMBIE_PIRATE_5660, NPCs.ZOMBIE_PIRATE_5661,
|
||||
NPCs.ZOMBIE_PIRATE_5662, NPCs.ZOMBIE_PIRATE_5663, NPCs.ZOMBIE_PIRATE_5664,
|
||||
NPCs.ZOMBIE_PIRATE_5665,
|
||||
|
||||
NPCs.ZOMBIE_SWAB_2843, NPCs.ZOMBIE_SWAB_2845,
|
||||
NPCs.ZOMBIE_SWAB_2846, NPCs.ZOMBIE_SWAB_2847,
|
||||
NPCs.ZOMBIE_SWAB_2848,
|
||||
NPCs.NAZASTAROOL_507,
|
||||
|
||||
NPCs.SLASH_BASH_2060, NPCs.SOREBONES_5627, NPCs.SOREBONES_5628,
|
||||
|
||||
NPCs.UNDEAD_LUMBERJACK_1524,
|
||||
|
||||
NPCs.UNDEAD_ONE_502, NPCs.UNDEAD_ONE_503, NPCs.UNDEAD_ONE_504, NPCs.UNDEAD_ONE_505,
|
||||
|
||||
NPCs.ZOGRE_2044, NPCs.ZOGRE_2045, NPCs.ZOGRE_2046, NPCs.ZOGRE_2047, NPCs.ZOGRE_2048,
|
||||
NPCs.ZOGRE_2049, NPCs.ZOGRE_2051, NPCs.ZOGRE_2052, NPCs.ZOGRE_2053, NPCs.ZOGRE_2054,
|
||||
NPCs.ZOGRE_2055,
|
||||
NPCs.UNDEAD_LUMBERJACK_1524, NPCs.UNDEAD_LUMBERJACK_1525, NPCs.UNDEAD_LUMBERJACK_5678,
|
||||
NPCs.UNDEAD_LUMBERJACK_5679, NPCs.UNDEAD_LUMBERJACK_5680, NPCs.UNDEAD_LUMBERJACK_5681,
|
||||
NPCs.UNDEAD_LUMBERJACK_5682, NPCs.UNDEAD_LUMBERJACK_5683, NPCs.UNDEAD_LUMBERJACK_5684,
|
||||
NPCs.UNDEAD_LUMBERJACK_5685, NPCs.UNDEAD_LUMBERJACK_5686, NPCs.UNDEAD_LUMBERJACK_5687,
|
||||
NPCs.UNDEAD_LUMBERJACK_5688, NPCs.UNDEAD_LUMBERJACK_5689, NPCs.UNDEAD_LUMBERJACK_5690,
|
||||
NPCs.UNDEAD_LUMBERJACK_5691, NPCs.UNDEAD_LUMBERJACK_5692, NPCs.UNDEAD_LUMBERJACK_5693,
|
||||
NPCs.UNDEAD_LUMBERJACK_5694, NPCs.UNDEAD_LUMBERJACK_5695, NPCs.UNDEAD_LUMBERJACK_5696,
|
||||
NPCs.UNDEAD_LUMBERJACK_5697, NPCs.UNDEAD_LUMBERJACK_5698, NPCs.UNDEAD_LUMBERJACK_5699,
|
||||
NPCs.UNDEAD_LUMBERJACK_5700, NPCs.UNDEAD_LUMBERJACK_5701, NPCs.UNDEAD_LUMBERJACK_5702,
|
||||
NPCs.UNDEAD_LUMBERJACK_5703, NPCs.UNDEAD_LUMBERJACK_5704, NPCs.UNDEAD_LUMBERJACK_5705,
|
||||
NPCs.UNDEAD_LUMBERJACK_5706, NPCs.UNDEAD_LUMBERJACK_5707, NPCs.UNDEAD_LUMBERJACK_5708,
|
||||
NPCs.UNDEAD_LUMBERJACK_5709, NPCs.UNDEAD_LUMBERJACK_5710, NPCs.UNDEAD_LUMBERJACK_5711,
|
||||
NPCs.UNDEAD_LUMBERJACK_5712, NPCs.UNDEAD_LUMBERJACK_5713, NPCs.UNDEAD_LUMBERJACK_5714,
|
||||
NPCs.UNDEAD_LUMBERJACK_5715, NPCs.UNDEAD_LUMBERJACK_5716, NPCs.UNDEAD_LUMBERJACK_5717,
|
||||
NPCs.UNDEAD_LUMBERJACK_5718, NPCs.UNDEAD_LUMBERJACK_5719, NPCs.UNDEAD_LUMBERJACK_5720,
|
||||
NPCs.UNDEAD_LUMBERJACK_5721, NPCs.UNDEAD_LUMBERJACK_5722, NPCs.UNDEAD_LUMBERJACK_5723,
|
||||
NPCs.UNDEAD_LUMBERJACK_5724, NPCs.UNDEAD_LUMBERJACK_5725, NPCs.UNDEAD_LUMBERJACK_5726,
|
||||
NPCs.UNDEAD_LUMBERJACK_5727, NPCs.UNDEAD_LUMBERJACK_5728, NPCs.UNDEAD_LUMBERJACK_5729,
|
||||
NPCs.UNDEAD_LUMBERJACK_5730, NPCs.UNDEAD_LUMBERJACK_5731, NPCs.UNDEAD_LUMBERJACK_5732,
|
||||
NPCs.UNDEAD_LUMBERJACK_5733, NPCs.UNDEAD_LUMBERJACK_5734, NPCs.UNDEAD_LUMBERJACK_5735,
|
||||
NPCs.UNDEAD_LUMBERJACK_5736, NPCs.UNDEAD_LUMBERJACK_5737, NPCs.UNDEAD_LUMBERJACK_5738,
|
||||
NPCs.UNDEAD_LUMBERJACK_5739, NPCs.UNDEAD_LUMBERJACK_5740, NPCs.UNDEAD_LUMBERJACK_5741,
|
||||
NPCs.UNDEAD_LUMBERJACK_5742, NPCs.UNDEAD_LUMBERJACK_5743, NPCs.UNDEAD_LUMBERJACK_5744,
|
||||
NPCs.UNDEAD_LUMBERJACK_5745, NPCs.UNDEAD_LUMBERJACK_5746, NPCs.UNDEAD_LUMBERJACK_5747,
|
||||
)
|
||||
|
||||
private val GIANTS = intArrayOf(
|
||||
NPCs.HILL_GIANT_117, NPCs.HILL_GIANT_4689, NPCs.HILL_GIANT_4690, NPCs.HILL_GIANT_4691,
|
||||
NPCs.HILL_GIANT_4692, NPCs.HILL_GIANT_4693,
|
||||
|
||||
NPCs.FIRE_GIANT_110, NPCs.FIRE_GIANT_1582, NPCs.FIRE_GIANT_1583, NPCs.FIRE_GIANT_1584,
|
||||
NPCs.FIRE_GIANT_1585, NPCs.FIRE_GIANT_1586, NPCs.FIRE_GIANT_7003, NPCs.FIRE_GIANT_7004,
|
||||
|
||||
NPCs.MOSS_GIANT_112, NPCs.MOSS_GIANT_1587, NPCs.MOSS_GIANT_1588, NPCs.MOSS_GIANT_1681,
|
||||
NPCs.MOSS_GIANT_4534, NPCs.MOSS_GIANT_4688, NPCs.MOSS_GIANT_4706,
|
||||
|
||||
NPCs.ICE_GIANT_111, NPCs.ICE_GIANT_3072, NPCs.ICE_GIANT_4685, NPCs.ICE_GIANT_4686,
|
||||
NPCs.ICE_GIANT_4687,
|
||||
NPCs.BLACK_KNIGHT_TITAN_221,
|
||||
|
||||
NPCs.CYCLOPS_116, NPCs.CYCLOPS_4291, NPCs.CYCLOPS_4292, NPCs.CYCLOPS_6078,
|
||||
NPCs.CYCLOPS_6079, NPCs.CYCLOPS_6080, NPCs.CYCLOPS_6081, NPCs.CYCLOPS_6082,
|
||||
NPCs.CYCLOPS_6083, NPCs.CYCLOPS_6269, NPCs.CYCLOPS_6270,
|
||||
)
|
||||
|
||||
private val HOBGOBLINS = intArrayOf(
|
||||
NPCs.HOBGOBLIN_122, NPCs.HOBGOBLIN_123, NPCs.HOBGOBLIN_2685, NPCs.HOBGOBLIN_2686,
|
||||
NPCs.HOBGOBLIN_2687, NPCs.HOBGOBLIN_2688, NPCs.HOBGOBLIN_3583, NPCs.HOBGOBLIN_4898,
|
||||
NPCs.HOBGOBLIN_6275,
|
||||
)
|
||||
|
||||
private val GHOUL = NPCs.GHOUL_1218
|
||||
private val EARTH_WARRIOR = NPCs.EARTH_WARRIOR_124
|
||||
|
||||
private val JOGRES = intArrayOf(NPCs.JOGRE_113, NPCs.JOGRE_6268)
|
||||
|
||||
private val LESSER_DEMONS = intArrayOf(
|
||||
NPCs.LESSER_DEMON_82, NPCs.LESSER_DEMON_4694, NPCs.LESSER_DEMON_4695,
|
||||
NPCs.LESSER_DEMON_4696, NPCs.LESSER_DEMON_4697, NPCs.LESSER_DEMON_6101,
|
||||
)
|
||||
|
||||
private val ZAKLN = NPCs.ZAKLN_GRITCH_6206
|
||||
|
||||
val SCROLLS = intArrayOf(
|
||||
Items.CHAMPION_SCROLL_6803, Items.CHAMPION_SCROLL_6801, Items.CHAMPION_SCROLL_6806,
|
||||
Items.CHAMPION_SCROLL_6807, Items.CHAMPION_SCROLL_6800, Items.CHAMPION_SCROLL_6802,
|
||||
Items.CHAMPION_SCROLL_6799, Items.CHAMPION_SCROLL_6798, Items.CHAMPION_SCROLL_6804,
|
||||
Items.CHAMPION_SCROLL_6805
|
||||
)
|
||||
|
||||
val idMap = HashMap<Int, Int>()
|
||||
|
||||
init {
|
||||
for (id in IMPS)
|
||||
idMap[id] = 0
|
||||
for (id in GOBLINS)
|
||||
idMap[id] = 1
|
||||
for (id in SKELETONS)
|
||||
idMap[id] = 2
|
||||
for (id in ZOMBIES)
|
||||
idMap[id] = 3
|
||||
for (id in GIANTS)
|
||||
idMap[id] = 4
|
||||
for (id in HOBGOBLINS)
|
||||
idMap[id] = 5
|
||||
for (id in JOGRES)
|
||||
idMap[id] = 8
|
||||
for (id in LESSER_DEMONS)
|
||||
idMap[id] = 9
|
||||
|
||||
idMap[GHOUL] = 6
|
||||
idMap[EARTH_WARRIOR] = 7
|
||||
}
|
||||
}
|
||||
|
||||
override fun onNpcKilled(player: Player, event: NPCKillEvent) {
|
||||
if (player.isArtificial) return
|
||||
if (player.questRepository.points >= 32) {
|
||||
val scrollType = idMap[event.npc.id] ?: return
|
||||
rollForScroll (player, scrollType, event.npc)
|
||||
}
|
||||
}
|
||||
|
||||
private fun rollForScroll(player: Player, scroll: Int, npc: NPC) {
|
||||
val scrollID = SCROLLS[scroll]
|
||||
val roll = RandomFunction.roll(if (GameWorld.settings!!.isDevMode) 5 else 5000)
|
||||
if (roll) {
|
||||
GroundItemManager.create(Item(scrollID), npc.location, player)
|
||||
sendMessage(player, colorize("%RA Champion's scroll falls to the ground as you slay your opponent."))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package content.global.activity.cchallange
|
||||
|
||||
import core.api.LoginListener
|
||||
import core.game.event.Event
|
||||
import core.game.event.EventHook
|
||||
import core.game.event.NPCKillEvent
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.player.Player
|
||||
|
||||
/**
|
||||
* Manages the champion scrolls drop.
|
||||
* @authors Phil, Skelsoft.
|
||||
*/
|
||||
|
||||
abstract class ChampionScrollsEventHookBase : LoginListener {
|
||||
|
||||
protected companion object {
|
||||
private fun <T> forEligibleEntityDo(entity: Entity, event: T, handler: (Player, T) -> Unit) {
|
||||
if (entity !is Player) return
|
||||
if (entity.isArtificial) return
|
||||
handler(entity, event)
|
||||
}
|
||||
}
|
||||
|
||||
class EventHandler<T : Event>(
|
||||
private val owner: ChampionScrollsEventHookBase,
|
||||
private val handler: (Player, T) -> Unit) : EventHook<T> {
|
||||
override fun process(entity: Entity, event: T) {
|
||||
forEligibleEntityDo(entity, event, handler)
|
||||
}
|
||||
}
|
||||
|
||||
final override fun login(player: Player) {
|
||||
player.hook(core.api.Event.NPCKilled, EventHandler(this, ::onNpcKilled))
|
||||
}
|
||||
|
||||
protected open fun onNpcKilled(player: Player, event: NPCKillEvent) {}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
package content.global.activity.cchallange
|
||||
|
||||
import core.api.*
|
||||
import core.game.dialogue.DialogueFile
|
||||
import core.game.dialogue.FacialExpression
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.plugin.Initializable
|
||||
import core.tools.END_DIALOGUE
|
||||
import core.tools.START_DIALOGUE
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the dialogue plugin used for the larxus npc.
|
||||
* @author 'Vexia
|
||||
* @version 1.1
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class LarxusDialogue(val ChallengeStart: Boolean = false) : DialogueFile() {
|
||||
|
||||
override fun handle(componentID: Int, buttonID: Int) {
|
||||
val scrolls = intArrayOf(Items.CHAMPION_SCROLL_6798, Items.CHAMPION_SCROLL_6799, Items.CHAMPION_SCROLL_6800, Items.CHAMPION_SCROLL_6801, Items.CHAMPION_SCROLL_6802, Items.CHAMPION_SCROLL_6803, Items.CHAMPION_SCROLL_6804, Items.CHAMPION_SCROLL_6805, Items.CHAMPION_SCROLL_6806, Items.CHAMPION_SCROLL_6807,)
|
||||
npc = NPC(NPCs.LARXUS_3050)
|
||||
if (ChallengeStart) {
|
||||
when (stage) {
|
||||
0 -> {
|
||||
face(findNPC(NPCs.LARXUS_3050)!!, player!!, 1)
|
||||
for (i in scrolls)when{
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6798) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're not allowed to use any Prayers. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6799) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're only allowed to take Weapons, no other items are allowed. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6800) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're only allowed to use Melee attacks, no Ranged or Magic. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6801) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're only allowed to use Magic attacks, no Melee or Ranged. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6802) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're not allowed to use any Melee attacks. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6803) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're not allowed to use any Special Attacks. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6804) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're not allowed to use any Ranged attacks. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6805) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're not allowed any Weapons or Armour. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6806) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're only allowed to use Ranged attacks, no Melee or Magic. Do you still want to proceed?").also { stage = 1 }
|
||||
inInventory(player!!,Items.CHAMPION_SCROLL_6807) -> npcl("So you want to accept the challenge huh? Well there are some specific rules for these Champion fights. For this fight you're not allowed to use any Magic attacks. Do you still want to proceed?").also { stage = 1 }
|
||||
else -> {
|
||||
sendMessage(player!!, "Nothing interesting happens.").also { stage = END_DIALOGUE } }
|
||||
}
|
||||
}
|
||||
1 -> options("Yes, let me at him!", "No thanks, I'll pass.").also { stage = 2 }
|
||||
2 -> when (buttonID) {
|
||||
1 -> playerl("Yes, let me at him!").also { stage = 3 }
|
||||
2 -> playerl("No thanks, I'll pass.").also { stage = END_DIALOGUE }
|
||||
}
|
||||
3 -> npcl("Your challenger is ready, please go down through the trapdoor when you're ready.").also { stage = 4 }
|
||||
4 -> {
|
||||
end()
|
||||
setAttribute(player!!, "championsarena:start", true)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
when (stage) {
|
||||
START_DIALOGUE -> {
|
||||
face(findNPC(NPCs.LARXUS_3050)!!, player!!, 1)
|
||||
npcl(FacialExpression.NEUTRAL, "Is there something I can help you with?").also { stage = 1 }
|
||||
}
|
||||
1 -> options("I was given a challenge, what now?", "What is this place?", "Nothing thanks.").also { stage = 2 }
|
||||
2 -> when (buttonID) {
|
||||
1 -> playerl("I was given a challenge, what now?").also { stage = 3 }
|
||||
2 -> playerl("What is this place?").also { stage = 4 }
|
||||
3 -> playerl("Nothing thanks.").also { stage = END_DIALOGUE }
|
||||
}
|
||||
3 -> npcl("Well pass it here and we'll get you started.").also { stage = END_DIALOGUE }
|
||||
4 -> npcl("This is the champions' arena. The champions of various races use it to duel those they deem worthy of the honour. If you find a challenge scroll in your travels, bring it here to face your challenger.").also { stage = END_DIALOGUE }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Earth warrior champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class EarthWarriorChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return EarthWarriorChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.EARTH_WARRIOR_CHAMPION_3057)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnEarthWarriorChampion(player: Player) {
|
||||
val champion = EarthWarriorChampionNPC(NPCs.EARTH_WARRIOR_CHAMPION_3057)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
val prayerItems = intArrayOf(
|
||||
Items.PRAYER_POTION1_143, Items.PRAYER_POTION1_144,
|
||||
Items.PRAYER_POTION2_141, Items.PRAYER_POTION2_142,
|
||||
Items.PRAYER_POTION3_139, Items.PRAYER_POTION3_140,
|
||||
Items.PRAYER_POTION4_2434, Items.PRAYER_POTION4_2435,
|
||||
|
||||
Items.SUPER_RESTORE1_3030, Items.SUPER_RESTORE1_3031,
|
||||
Items.SUPER_RESTORE2_3028, Items.SUPER_RESTORE2_3029,
|
||||
Items.SUPER_RESTORE3_3026, Items.SUPER_RESTORE3_3027,
|
||||
Items.SUPER_RESTORE4_3024, Items.SUPER_RESTORE4_3025,
|
||||
|
||||
Items.PRAYER_CAPE_9759, Items.PRAYER_CAPET_9760,
|
||||
Items.PRAYER_HOOD_9761, Items.PRAYER_CAPE_10643,
|
||||
|
||||
Items.PRAYER_POTION4_14209, Items.PRAYER_POTION4_14210,
|
||||
Items.PRAYER_POTION3_14211, Items.PRAYER_POTION3_14212,
|
||||
Items.PRAYER_POTION2_14213, Items.PRAYER_POTION2_14214,
|
||||
Items.PRAYER_POTION1_14215, Items.PRAYER_POTION1_14216,
|
||||
|
||||
Items.FALADOR_SHIELD_1_14577, Items.FALADOR_SHIELD_2_14578,
|
||||
Items.FALADOR_SHIELD_3_14579,
|
||||
|
||||
Items.PRAYER_MIX1_11467, Items.PRAYER_MIX1_11468,
|
||||
Items.PRAYER_MIX2_11465, Items.PRAYER_MIX2_11466,
|
||||
|
||||
Items.SUP_RESTORE_MIX1_11495, Items.SUP_RESTORE_MIX1_11496,
|
||||
Items.SUP_RESTORE_MIX2_11493, Items.SUP_RESTORE_MIX2_11494,
|
||||
)
|
||||
if (player.inventory.containsAtLeastOneItem(prayerItems) || player.equipment.containsAtLeastOneItem(
|
||||
prayerItems
|
||||
)
|
||||
) {
|
||||
sendNPCDialogue(player, NPCs.LARXUS_3050, "For this fight you're not allowed to use prayers!")
|
||||
teleport(player, Location.create(3182, 9758, 0)) // Behind Doors.
|
||||
} else {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
}
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Earth Warrior Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6798, 260, 63, 3)
|
||||
setInterfaceText(killer, "432 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "432 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1452, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 432.0)
|
||||
rewardXP(killer, Skills.SLAYER, 432.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.container.impl.EquipmentContainer
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.node.item.Item
|
||||
import core.game.system.config.ItemConfigParser
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Ghoul champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class GhoulChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return GhoulChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.GHOUL_CHAMPION_3059)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnGhoulChampion(player: Player) {
|
||||
val champion = GhoulChampionNPC(NPCs.GHOUL_CHAMPION_3059)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
val i: Item = player.equipment[EquipmentContainer.SLOT_WEAPON].id.asItem()
|
||||
if (i.definition.getConfiguration(ItemConfigParser.TWO_HANDED, false) == true && state.style == CombatStyle.MELEE) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
}
|
||||
if (state.style == CombatStyle.MAGIC) {
|
||||
sendMessage(player, "You can use only weapons in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Ghoul Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6799, 260, 63, 3)
|
||||
setInterfaceText(killer, "400 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "400 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1453, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 400.0)
|
||||
rewardXP(killer, Skills.SLAYER, 400.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,103 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Giant champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class GiantChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return GiantChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.GIANT_CHAMPION_3058)
|
||||
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnGiantChampion(player: Player) {
|
||||
val champion = GiantChampionNPC(NPCs.GIANT_CHAMPION_3058)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (state.style == CombatStyle.MELEE) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
}
|
||||
if (state.style == CombatStyle.RANGE || state.style == CombatStyle.MAGIC) {
|
||||
sendMessage(player, "You can use only melee in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Giant Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6800, 260, 63, 3)
|
||||
setInterfaceText(killer, "280 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "280 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1454, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 280.0)
|
||||
rewardXP(killer, Skills.SLAYER, 280.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Goblin champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class GoblinChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return GoblinChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.GOBLIN_CHAMPION_3060)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnGoblinChampion(player: Player) {
|
||||
val champion = GoblinChampionNPC(NPCs.GOBLIN_CHAMPION_3060)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (state.style == CombatStyle.MAGIC) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
}
|
||||
if (state.style == CombatStyle.MELEE || state.style == CombatStyle.RANGE) {
|
||||
sendMessage(player, "You can use only spells in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Goblin Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6801, 260, 63, 3)
|
||||
setInterfaceText(killer, "128 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "128 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1455, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 128.0)
|
||||
rewardXP(killer, Skills.SLAYER, 128.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,103 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Hobgoblin champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class HobgoblinChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return HobgoblinChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.HOBGOBLIN_CHAMPION_3061)
|
||||
}
|
||||
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnHobgoblinChampion(player: Player) {
|
||||
val champion = HobgoblinChampionNPC(NPCs.HOBGOBLIN_CHAMPION_3061)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (state.style == CombatStyle.MAGIC || state.style == CombatStyle.RANGE) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
}
|
||||
|
||||
if (state.style == CombatStyle.MELEE) {
|
||||
sendMessage(player, "You cannot use melee in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Hobgoblin Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6802, 260, 63, 3)
|
||||
setInterfaceText(killer, "232 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "232 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1456, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 232.0)
|
||||
rewardXP(killer, Skills.SLAYER, 232.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Imp champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class ImpChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return ImpChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.IMP_CHAMPION_3062)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnImpChampion(player: Player) {
|
||||
val champion = ImpChampionNPC(NPCs.IMP_CHAMPION_3062)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
|
||||
//somehow the maximumHit is determined to be zero by this point if you're using a melee special attack.
|
||||
if (state.maximumHit == 0) {
|
||||
state.neutralizeHits()
|
||||
sendMessage(player, "Larxus said you couldn't use special attacks in this duel.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Imp Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6803, 260, 63, 3)
|
||||
setInterfaceText(killer, "160 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "160 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1457, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 160.0)
|
||||
rewardXP(killer, Skills.SLAYER, 160.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.combat.equipment.Weapon
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Jogre champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class JogreChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return JogreChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.JOGRE_CHAMPION_3063)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnJogreChampion(player: Player) {
|
||||
val champion = JogreChampionNPC(NPCs.JOGRE_CHAMPION_3063)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (state.style == CombatStyle.MAGIC || state.style == CombatStyle.MELEE) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
}
|
||||
if (state.weapon.type == Weapon.WeaponType.DEGRADING || state.style == CombatStyle.RANGE) {
|
||||
sendMessage(player, "You cannot use ranged weapons.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Jogre Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6804, 260, 63, 3)
|
||||
setInterfaceText(killer, "480 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "480 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1458, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 480.0)
|
||||
rewardXP(killer, Skills.SLAYER, 480.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.container.impl.EquipmentContainer
|
||||
import core.game.global.action.EquipHandler
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Lesser demon champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class LesserDemonChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return LesserDemonChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.LESSER_DEMON_CHAMPION_3064)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnLesserDemonChampion(player: Player) {
|
||||
val champion = LesserDemonChampionNPC(NPCs.LESSER_DEMON_CHAMPION_3064)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (!player.equipment[3].hasItemPlugin()) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
} else {
|
||||
EquipHandler.unequip(player, EquipmentContainer.SLOT_WEAPON, id)
|
||||
sendMessage(player, "You cannot use weapons in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Lesser Demon Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6805, 260, 63, 3)
|
||||
setInterfaceText(killer, "592 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "592 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1459, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 592.0)
|
||||
rewardXP(killer, Skills.SLAYER, 592.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,103 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.combat.equipment.Weapon
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Skeleton champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class SkeletonChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return SkeletonChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.SKELETON_CHAMPION_3065)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnSkeletonChampion(player: Player) {
|
||||
val champion = SkeletonChampionNPC(NPCs.SKELETON_CHAMPION_3065)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
animate(champion, 259, true)
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (state.style == CombatStyle.RANGE && state.weapon.type == Weapon.WeaponType.DEGRADING && state.weapon.type == Weapon.WeaponType.DOUBLE_SHOT) {
|
||||
state.neutralizeHits()
|
||||
state.estimatedHit = state.maximumHit
|
||||
}
|
||||
if (state.style == CombatStyle.MAGIC || state.style == CombatStyle.MELEE) {
|
||||
sendMessage(player, "You can use only ranged weapons in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Skeleton Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6806, 260, 63, 3)
|
||||
setInterfaceText(killer, "232 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "232 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1460, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 232.0)
|
||||
rewardXP(killer, Skills.SLAYER, 232.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
package content.global.activity.cchallange.npc
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.BattleState
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.npc.AbstractNPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.system.task.Pulse
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.map.Location
|
||||
import core.plugin.Initializable
|
||||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
/**
|
||||
* Represents the Zombie champion NPC for Champions challenge.
|
||||
*/
|
||||
|
||||
@Initializable
|
||||
class ZombieChampionNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, location) {
|
||||
var clearTime = 0
|
||||
override fun construct(id: Int, location: Location, vararg objects: Any): AbstractNPC {
|
||||
return ZombieChampionNPC(id, location)
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.ZOMBIES_CHAMPION_3066)
|
||||
}
|
||||
|
||||
override fun handleTickActions() {
|
||||
super.handleTickActions()
|
||||
if (clearTime++ > 288) poofClear(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun spawnZombieChampion(player: Player) {
|
||||
val champion = ZombieChampionNPC(NPCs.ZOMBIES_CHAMPION_3066)
|
||||
champion.location = location(3170, 9758, 0)
|
||||
champion.isWalks = true
|
||||
champion.isAggressive = true
|
||||
champion.isActive = false
|
||||
|
||||
if (champion.asNpc() != null && champion.isActive) {
|
||||
champion.properties.teleportLocation = champion.properties.spawnLocation
|
||||
}
|
||||
|
||||
champion.isActive = true
|
||||
GameWorld.Pulser.submit(object : Pulse(0, champion) {
|
||||
override fun pulse(): Boolean {
|
||||
champion.init()
|
||||
registerHintIcon(player, champion)
|
||||
champion.attack(player)
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun checkImpact(state: BattleState) {
|
||||
super.checkImpact(state)
|
||||
val player = state.attacker
|
||||
if (player is Player) {
|
||||
if (state.style == CombatStyle.MELEE || state.style == CombatStyle.RANGE) {
|
||||
state.estimatedHit = state.maximumHit
|
||||
state.neutralizeHits()
|
||||
}
|
||||
if (state.style == CombatStyle.MAGIC) {
|
||||
sendMessage(player, "You cannot use spells in this challenge.")
|
||||
if (state.estimatedHit > -1) {
|
||||
state.estimatedHit = 0
|
||||
return
|
||||
}
|
||||
if (state.secondaryHit > -1) {
|
||||
state.secondaryHit = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun finalizeDeath(killer: Entity?) {
|
||||
if (killer is Player) {
|
||||
lock(killer, 2)
|
||||
runTask(killer, 1) {
|
||||
openInterface(killer, 63)
|
||||
setInterfaceText(killer, "Well done, you defeated the Zombie Champion!", 63, 2)
|
||||
killer.packetDispatch.sendItemZoomOnInterface(Items.CHAMPION_SCROLL_6807, 260, 63, 3)
|
||||
setInterfaceText(killer, "240 Slayer Xp", 63, 6)
|
||||
setInterfaceText(killer, "240 Hitpoint Xp", 63, 7)
|
||||
}
|
||||
setVarbit(killer, 1461, 1, true)
|
||||
rewardXP(killer, Skills.HITPOINTS, 240.0)
|
||||
rewardXP(killer, Skills.SLAYER, 240.0)
|
||||
removeAttribute("championsarena:start")
|
||||
clearHintIcon(killer)
|
||||
}
|
||||
clear()
|
||||
super.finalizeDeath(killer)
|
||||
}
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ class LarryHandler(player: Player? = null) : core.game.dialogue.DialoguePlugin(p
|
|||
}
|
||||
|
||||
val level = getStatLevel(player, skill)
|
||||
System.out.println("Level: $level")
|
||||
|
||||
val expGained = points?.toDouble()?.times((level * 25))
|
||||
System.out.print("exp: $expGained")
|
||||
player.skills.addExperience(skill,expGained!!)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
package content.global.activity.penguinhns
|
||||
|
||||
import org.json.simple.JSONObject
|
||||
import core.ServerStore
|
||||
import core.api.StartupListener
|
||||
import core.game.worldevents.PluginSet
|
||||
import core.game.worldevents.WorldEvent
|
||||
import core.game.world.GameWorld
|
||||
import core.api.log
|
||||
import core.plugin.ClassScanner
|
||||
import core.tools.SystemLogger
|
||||
import core.tools.Log
|
||||
import org.json.simple.JSONObject
|
||||
|
||||
class PenguinHNSEvent : StartupListener {
|
||||
val manager = PenguinManager()
|
||||
|
|
@ -15,7 +13,7 @@ class PenguinHNSEvent : StartupListener {
|
|||
override fun startup() {
|
||||
manager.rebuildVars()
|
||||
ClassScanner.definePlugins(LarryHandler(), NotebookHandler())
|
||||
SystemLogger.logInfo(this::class.java, "Penguin HNS initialized.")
|
||||
log(this::class.java, Log.FINE, "Penguin HNS initialized.")
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ import core.game.world.map.Location
|
|||
import org.json.simple.JSONArray
|
||||
import org.json.simple.JSONObject
|
||||
import core.ServerStore.Companion.toJSONArray
|
||||
import core.api.log
|
||||
import core.tools.Log
|
||||
import java.util.*
|
||||
|
||||
class PenguinManager{
|
||||
|
|
@ -31,7 +33,7 @@ class PenguinManager{
|
|||
private fun updateStoreFile(){
|
||||
val jsonTags = JSONArray()
|
||||
tagMapping.filter { it.value.isNotEmpty() }.forEach { (ordinal,taggers) ->
|
||||
SystemLogger.logInfo(this::class.java, "$ordinal - ${taggers.first()}")
|
||||
log(this::class.java, Log.FINE, "$ordinal - ${taggers.first()}")
|
||||
val tag = JSONObject()
|
||||
tag["ordinal"] = ordinal
|
||||
tag["taggers"] = taggers
|
||||
|
|
@ -64,8 +66,4 @@ class PenguinManager{
|
|||
penguins = spawnedOrdinals.toMutableList()
|
||||
}
|
||||
}
|
||||
|
||||
fun log(message: String){
|
||||
SystemLogger.logInfo(this::class.java, "[Penguins] $message")
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package content.global.activity.penguinhns
|
||||
|
||||
import core.api.*
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.system.task.Pulse
|
||||
|
|
@ -17,6 +18,7 @@ class PenguinSpyingHandler : InteractionListener {
|
|||
player.sendMessage("You've already tagged this penguin.")
|
||||
} else {
|
||||
GameWorld.submit(SpyPulse(player, npc))
|
||||
playJingle(player, 345)
|
||||
}
|
||||
return@on true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,12 +11,13 @@ import core.ServerStore.Companion.getString
|
|||
|
||||
import content.global.bots.ShootingStarBot
|
||||
import core.game.world.repository.Repository
|
||||
import core.tools.RandomFunction
|
||||
|
||||
/**
|
||||
* Represents a shooting star object (Only ever initialized once) (ideally)
|
||||
* @author Ceikry
|
||||
*/
|
||||
class ShootingStar(var level: ShootingStarType = ShootingStarType.values().random()){
|
||||
class ShootingStar(var level: ShootingStarType = ShootingStarType.values().random()) {
|
||||
val crash_locations = mapOf(
|
||||
"East of Dark Wizards' Tower" to Location.create(2925, 3339, 0), // East of Dark Wizards' Tower
|
||||
"Crafting Guild" to Location.create(2940, 3280, 0), // Crafting Guild Mine
|
||||
|
|
@ -26,12 +27,12 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
|
|||
"Brimhaven mining site" to Location.create(2743, 3143, 0), // Brimhaven mining site
|
||||
"South Crandor mining site" to Location.create(2822, 3239, 0), // South Crandor mining site (requires Dragon Slayer)
|
||||
"Karamja mining site" to Location.create(2854, 3032, 0), // Karamja mining site
|
||||
"Shilo Village mining site" to Location.create(2826, 2997, 0), // Shilo Village mining site/Gem rocks
|
||||
"Shilo Village mining site" to Location.create(2826, 2997, 0), // Shilo Village mining site/Gem rocks (requires Shilo Village prereqs)
|
||||
"Relleka mining site" to Location.create(2682, 3700, 0), // Rellekka mining site
|
||||
"Jatizso mine" to Location.create(2393, 3815, 0), //Jatiszo mining site (requires Fremennik Trials)
|
||||
//"Lunar Isle mine" to Location.create(2140, 3939, 0), // Lunar Isle mine (requires Lunar Diplomacy?)
|
||||
//"Miscellania coal mine" to Location.create(2529, 3887, 0), // Miscellania coal mine (requires Fremennik Trials)
|
||||
//"Neitiznot runite mine" to Location.create(2376, 3835, 0), // Near the Neitiznot runite mine (requires Fremennik Trials) currently inaccessible as bridge does not work
|
||||
"Jatizso mine" to Location.create(2393, 3815, 0), //Jatiszo mining site (requires Fremennik Isles prereqs)
|
||||
"Lunar Isle mine" to Location.create(2140, 3939, 0), // Lunar Isle mine (requires Lunar Diplomacy prereqs)
|
||||
"Miscellania coal mine" to Location.create(2529, 3887, 0), // Miscellania coal mine (requires The Fremennik Trials)
|
||||
//"Neitiznot runite mine" to Location.create(2376, 3835, 0), // Near the Neitiznot runite mine (requires Fremennik Isles prereqs) currently inaccessible as bridge does not work
|
||||
"Ardougne mining site" to Location.create(2600, 3232, 0), // Ardougne mining site (Monastery)
|
||||
"Ardougne eastern mine" to Location.create(2706, 3334, 0), // Ardougne mining site (Legends Guild)
|
||||
"Kandarin Coal trucks" to Location.create(2589, 3485, 0), // Kandarin Coal trucks
|
||||
|
|
@ -48,11 +49,11 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
|
|||
"South-west Varrock mine" to Location.create(3176, 3362, 0), // South-west Varrock mine / Champion's Guild mine
|
||||
"Varrock east bank" to Location.create(3259, 3407, 0), // Varrock east bank / Rune shop
|
||||
"Lumbridge Swamp south-east mine" to Location.create(3227, 3150, 0), // Lumbridge Swamp south-east mine
|
||||
//"Burgh de Rott bank" to Location.create(3500, 3219, 0), // Burgh de Rott bank (requires Quest to enter)
|
||||
//"Burgh de Rott bank" to Location.create(3500, 3219, 0), // Burgh de Rott bank (requires quest to enter)
|
||||
"Canifis Bank" to Location.create(3504, 3487, 0), // Canifis bank
|
||||
"Mos Le'Harmless bank" to Location.create(3687, 2969, 0), // Mos Le'Harmless bank (requires Quest to enter but is currently accessible for Slayer)
|
||||
"Mos Le'Harmless bank" to Location.create(3687, 2969, 0), // Mos Le'Harmless bank (requires quest to enter but is currently accessible for Slayer)
|
||||
"Gnome stronghold Bank" to Location.create(2460, 3432, 0), // Gnome stronghold bank
|
||||
"Lletya bank" to Location.create(2329, 3163, 0), // Lletya bank (requires Roving Elves?)
|
||||
"Lletya bank" to Location.create(2329, 3163, 0), // Lletya bank (requires MEP1 prereqs)
|
||||
"Piscatoris mining site" to Location.create(2336, 3636, 0), // Piscatoris mining site
|
||||
"North Edgeville mining site" to Location.create(3101, 3569, 0), // Wilderness Steel mine / Zamorak mage mine
|
||||
"Southern wilderness mine" to Location.create(3025, 3591, 0), // Wilderness skeleton mine
|
||||
|
|
@ -79,22 +80,15 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
|
|||
* Degrades a ShootingStar (or removes the starObject and spawns a Star Sprite if it's the last star)
|
||||
*/
|
||||
fun degrade() {
|
||||
if(level.ordinal == 0){
|
||||
selfBots.filter { it.isMining() }.forEach { it.sleep() }
|
||||
SceneryBuilder.remove(starObject)
|
||||
isSpawned = false
|
||||
starSprite.location = starObject.location
|
||||
starSprite.init()
|
||||
spriteSpawned = true
|
||||
ShootingStarPlugin.getStoreFile().clear()
|
||||
if(level.ordinal == 0) {
|
||||
spawnSprite()
|
||||
return
|
||||
}
|
||||
level = getNextType()
|
||||
maxDust = level.totalStardust
|
||||
dustLeft = level.totalStardust
|
||||
|
||||
ShootingStarPlugin.getStoreFile()["level"] = level.ordinal
|
||||
ShootingStarPlugin.getStoreFile()["isDiscovered"] = isDiscovered
|
||||
ShootingStarPlugin.getStoreFile()["dustLeft"] = dustLeft
|
||||
|
||||
val newStar = Scenery(level.objectId, starObject.location)
|
||||
SceneryBuilder.replace(starObject, newStar)
|
||||
|
|
@ -110,7 +104,6 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
|
|||
*/
|
||||
fun fire() {
|
||||
SceneryBuilder.remove(starObject)
|
||||
rebuildVars()
|
||||
clearSprite()
|
||||
SceneryBuilder.add(starObject)
|
||||
if(!isSpawned) {
|
||||
|
|
@ -122,38 +115,55 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
|
|||
selfBots.filter { it.isIdle() }.forEach { it.activate(true) }
|
||||
}
|
||||
isSpawned = true
|
||||
Repository.sendNews("A shooting star level ${level.ordinal + 1} just crashed near ${location.toLowerCase()}!")
|
||||
Repository.sendNews("A shooting star level ${level.ordinal + 1} just crashed near ${location}!")
|
||||
ShootingStarPlugin.getStoreFile()["level"] = level.ordinal
|
||||
ShootingStarPlugin.getStoreFile()["location"] = location
|
||||
ShootingStarPlugin.getStoreFile()["isDiscovered"] = isDiscovered
|
||||
ShootingStarPlugin.getStoreFile()["dustLeft"] = dustLeft
|
||||
}
|
||||
|
||||
/**
|
||||
* Rebuilds some of the variables with new information.
|
||||
*/
|
||||
fun rebuildVars(){
|
||||
if(firstStar && ShootingStarPlugin.getStoreFile().isNotEmpty()){
|
||||
level = ShootingStarType.values()[ShootingStarPlugin.getStoreFile().getInt("level")]
|
||||
location = ShootingStarPlugin.getStoreFile().getString("location")
|
||||
isDiscovered = ShootingStarPlugin.getStoreFile().getBoolean("isDiscovered")
|
||||
} else {
|
||||
level = ShootingStarType.values().random()
|
||||
location = crash_locations.entries.random().key
|
||||
isDiscovered = false
|
||||
// Defaults
|
||||
var levelOrd = RandomFunction.random(9)
|
||||
level = ShootingStarType.values()[levelOrd]
|
||||
location = crash_locations.entries.random().key
|
||||
isDiscovered = false
|
||||
dustLeft = level.totalStardust
|
||||
ticks = 0
|
||||
spriteSpawned = false
|
||||
|
||||
if (firstStar && ShootingStarPlugin.getStoreFile().isNotEmpty()) {
|
||||
// Replace default with stored values, if any
|
||||
levelOrd = ShootingStarPlugin.getStoreFile().getInt("level", levelOrd)
|
||||
level = ShootingStarType.values()[levelOrd]
|
||||
location = ShootingStarPlugin.getStoreFile().getString("location", location)
|
||||
isDiscovered = ShootingStarPlugin.getStoreFile().getBoolean("isDiscovered", false)
|
||||
dustLeft = ShootingStarPlugin.getStoreFile().getInt("dustLeft", dustLeft)
|
||||
ticks = ShootingStarPlugin.getStoreFile().getInt("ticks", ticks)
|
||||
spriteSpawned = ShootingStarPlugin.getStoreFile().getBoolean("spriteSpawned", false)
|
||||
}
|
||||
|
||||
maxDust = level.totalStardust
|
||||
dustLeft = level.totalStardust
|
||||
starObject = Scenery(level.objectId, crash_locations.get(location))
|
||||
}
|
||||
|
||||
ShootingStarPlugin.getStoreFile()["level"] = level.ordinal
|
||||
ShootingStarPlugin.getStoreFile()["location"] = location
|
||||
ShootingStarPlugin.getStoreFile()["isDiscovered"] = false
|
||||
|
||||
ticks = 0
|
||||
firstStar = false
|
||||
fun spawnSprite() {
|
||||
selfBots.filter { it.isMining() }.forEach { it.sleep() }
|
||||
SceneryBuilder.remove(starObject)
|
||||
isSpawned = false
|
||||
starSprite.location = starObject.location
|
||||
starSprite.init()
|
||||
spriteSpawned = true
|
||||
ShootingStarPlugin.getStoreFile()["spriteSpawned"] = spriteSpawned
|
||||
}
|
||||
|
||||
fun clearSprite() {
|
||||
starSprite.clear()
|
||||
spriteSpawned = false
|
||||
ShootingStarPlugin.getStoreFile()["spriteSpawned"] = spriteSpawned
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -161,6 +171,7 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
|
|||
*/
|
||||
fun decDust() {
|
||||
if(--dustLeft <= 0) degrade()
|
||||
ShootingStarPlugin.getStoreFile()["dustLeft"] = dustLeft
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -220,4 +231,4 @@ enum class ShootingStarType(val objectId: Int, val exp: Int, val totalStardust:
|
|||
LEVEL_7(38662, 114, 40, 0.80),
|
||||
LEVEL_8(38661, 145, 25, 0.85),
|
||||
LEVEL_9(38660, 210, 15, 0.95);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import core.game.node.entity.player.Player
|
|||
import core.game.node.entity.skill.SkillPulse
|
||||
import core.game.node.entity.skill.Skills
|
||||
import content.data.skill.SkillingTool
|
||||
import core.ServerConstants
|
||||
import core.game.node.item.Item
|
||||
import core.tools.RandomFunction
|
||||
import org.rs09.consts.Items
|
||||
|
|
@ -13,6 +14,9 @@ import core.game.world.GameWorld
|
|||
import core.game.world.repository.Repository
|
||||
import core.tools.colorize
|
||||
|
||||
// TODO: Shooting stars should roll for bonus gems while mining
|
||||
// See: https://youtu.be/6OqZ2TGc6fM?si=U8nB5IDQREhWXApD
|
||||
|
||||
/**
|
||||
* The pulse used to handle mining shooting stars.
|
||||
*/
|
||||
|
|
@ -46,14 +50,14 @@ class ShootingStarMiningPulse(player: Player?, node: Scenery?, val star: Shootin
|
|||
//checks if the star has been discovered and if not, awards the bonus xp. Xp can be awarded regardless of mining level as per the wiki.
|
||||
if (!star.isDiscovered && !player.isArtificial) {
|
||||
val bonusXp = 75 * player.skills.getStaticLevel(Skills.MINING)
|
||||
player.incrementAttribute("/save:shooting-star:bonus-xp", bonusXp)
|
||||
rewardXP(player, Skills.MINING, bonusXp.toDouble())
|
||||
Repository.sendNews(player.username + " is the discoverer of the crashed star near " + star.location + "!")
|
||||
player.sendMessage("You have ${player.skills.experienceMutiplier * player.getAttribute("shooting-star:bonus-xp", 0).toDouble()} bonus xp towards mining stardust.")
|
||||
ShootingStarPlugin.submitScoreBoard(player)
|
||||
star.isDiscovered = true
|
||||
ShootingStarPlugin.getStoreFile()["isDiscovered"] = star.isDiscovered
|
||||
return player.skills.getLevel(Skills.MINING) >= star.miningLevel
|
||||
}
|
||||
|
||||
|
||||
if (player.skills.getLevel(Skills.MINING) < star.miningLevel) {
|
||||
player.dialogueInterpreter.sendDialogue("You need a Mining level of at least " + star.miningLevel + " in order to mine this layer.")
|
||||
return false
|
||||
|
|
@ -83,14 +87,14 @@ class ShootingStarMiningPulse(player: Player?, node: Scenery?, val star: Shootin
|
|||
if (GameWorld.settings?.isDevMode == true) {
|
||||
star.dustLeft = 1
|
||||
}
|
||||
star.decDust()
|
||||
|
||||
val bonusXp = player.getAttribute("shooting-star:bonus-xp", 0).toDouble()
|
||||
var xp = star.level.exp.toDouble()
|
||||
if(bonusXp > 0) {
|
||||
// legacy: shooting star bonus xp used to be handed out in an inauthentic way; see GL !2092
|
||||
val delta = Math.min(bonusXp, xp)
|
||||
player.incrementAttribute("/save:shooting-star:bonus-xp", (-delta).toInt())
|
||||
xp += delta;
|
||||
xp += delta
|
||||
if(player.getAttribute("shooting-star:bonus-xp", 0) <= 0) {
|
||||
player.sendMessage("You have obtained all of your bonus xp from the star.")
|
||||
}
|
||||
|
|
@ -100,9 +104,11 @@ class ShootingStarMiningPulse(player: Player?, node: Scenery?, val star: Shootin
|
|||
if (ShootingStarPlugin.getStarDust(player) < 200) {
|
||||
player.inventory.add(Item(ShootingStarPlugin.STAR_DUST, 1))
|
||||
}
|
||||
if(!inInventory(player, Items.ANCIENT_BLUEPRINT_14651) && !inBank(player, Items.ANCIENT_BLUEPRINT_14651)){
|
||||
if (ServerConstants.SHOOTING_STAR_RING && hasAnItem(player, Items.ANCIENT_BLUEPRINT_14651).container == null) {
|
||||
rollBlueprint(player)
|
||||
}
|
||||
|
||||
star.decDust()
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
@ -128,7 +134,7 @@ class ShootingStarMiningPulse(player: Player?, node: Scenery?, val star: Shootin
|
|||
|
||||
override fun message(type: Int) {
|
||||
when (type) {
|
||||
0 -> player.packetDispatch.sendMessage("You swing your pickaxe at the rock...")
|
||||
0 -> player.packetDispatch.sendMessage("You swing your pickaxe at the rock.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,10 +12,11 @@ import core.ServerStore.Companion.getBoolean
|
|||
import core.game.dialogue.DialogueFile
|
||||
import core.game.interaction.InteractionListener
|
||||
import core.game.interaction.IntType
|
||||
import core.tools.SystemLogger
|
||||
import core.game.system.command.Privilege
|
||||
import core.game.world.GameWorld
|
||||
import core.tools.Log
|
||||
import core.tools.secondsToTicks
|
||||
import content.data.Quests
|
||||
|
||||
class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Commands, StartupListener {
|
||||
override fun login(player: Player) {
|
||||
|
|
@ -26,14 +27,30 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
|||
override fun tick() {
|
||||
++star.ticks
|
||||
|
||||
// Check if the current star sprite should expire
|
||||
val maxDelay = tickDelay + (tickDelay / 3)
|
||||
if(star.ticks > maxDelay && star.spriteSpawned){
|
||||
star.clearSprite()
|
||||
}
|
||||
|
||||
if ((star.ticks >= tickDelay && !star.spriteSpawned) || (!star.isSpawned && !star.spriteSpawned)) {
|
||||
if (star.firstStar && !star.isSpawned && !star.spriteSpawned) {
|
||||
// Apparently, the server has only just booted
|
||||
star.rebuildVars()
|
||||
if (star.spriteSpawned) {
|
||||
star.spawnSprite()
|
||||
} else {
|
||||
star.fire()
|
||||
}
|
||||
star.firstStar = false
|
||||
}
|
||||
|
||||
// Check if it's time to fire a new one
|
||||
if (star.ticks >= tickDelay && !star.spriteSpawned) {
|
||||
star.rebuildVars()
|
||||
star.fire()
|
||||
}
|
||||
|
||||
getStoreFile()["ticks"] = star.ticks
|
||||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
|
|
@ -65,34 +82,52 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
|||
return@on true
|
||||
}
|
||||
|
||||
val condition: (Player) -> Boolean = when(star.location.toLowerCase()){
|
||||
"canifis bank" -> { p -> p.questRepository.isComplete("Priest in Peril")}
|
||||
//"Burgh de Rott bank" -> { p -> p.questRepository.isComplete("Priest in Peril")} // for now, require this as it is in Morytania. remove when appropriate quests added - Crash
|
||||
"crafting guild" -> {p -> hasLevelStat(p, Skills.CRAFTING, 40) }
|
||||
"lletya bank" -> {p -> p.questRepository.isComplete("Roving Elves")}
|
||||
"jatizso mine" -> {p -> p.questRepository.isComplete("Fremennik Trials")}
|
||||
"south crandor mining site" -> {p -> p.questRepository.isComplete("Dragon Slayer")}
|
||||
else -> {_ -> true}
|
||||
class RingDialogue(val star: ShootingStar) : DialogueFile() {
|
||||
val shouldWarn = when (star.location) {
|
||||
"North Edgeville mining site",
|
||||
"Southern wilderness mine",
|
||||
"Wilderness hobgoblin mine",
|
||||
"Pirates' Hideout mine",
|
||||
"Lava Maze mining site",
|
||||
"Mage Arena bank" -> true
|
||||
else -> false
|
||||
}
|
||||
|
||||
override fun handle(componentID: Int, buttonID: Int) {
|
||||
fun teleportToStar(player: Player) {
|
||||
val condition: (p: Player) -> Boolean = when (star.location.toLowerCase()) {
|
||||
"canifis bank" -> {p -> requireQuest(p, Quests.PRIEST_IN_PERIL, "to access this.")}
|
||||
//"burgh de rott bank" -> {p -> hasRequirement(p, Quests.IN_AID_OF_THE_MYREQUE)} //disabled: crash
|
||||
"crafting guild" -> {p -> hasLevelStat(p, Skills.CRAFTING, 40)}
|
||||
"lletya bank" -> {p -> hasRequirement(p, Quests.MOURNINGS_END_PART_I)}
|
||||
"jatizso mine" -> {p -> hasRequirement(p, Quests.THE_FREMENNIK_ISLES)}
|
||||
"south crandor mining site" -> {p -> hasRequirement(p, Quests.DRAGON_SLAYER)}
|
||||
"shilo village mining site" -> {p -> hasRequirement(p, Quests.SHILO_VILLAGE)}
|
||||
"mos le'harmless bank" -> {p -> hasRequirement(p, Quests.CABIN_FEVER)} //needs to be updated to check for completion when the quest releases; https://runescape.wiki/w/Mos_Le%27Harmless?oldid=913025
|
||||
"lunar isle mine" -> {p -> hasRequirement(p, Quests.LUNAR_DIPLOMACY)}
|
||||
"miscellania coal mine" -> {p -> requireQuest(p, Quests.THE_FREMENNIK_TRIALS, "to access this.")}
|
||||
//"neitiznot runite mine" -> {p -> hasRequirement(p, Quests.THE_FREMENNIK_ISLES)} //disabled: currently not reachable
|
||||
else -> {_ -> true}
|
||||
}
|
||||
if (!condition.invoke(player)) {
|
||||
sendDialogue(player,"Magical forces prevent your teleportation.")
|
||||
} else if (teleport(player, star.crash_locations[star.location]!!.transform(0, -1, 0), TeleportManager.TeleportType.MINIGAME)) {
|
||||
getRingStoreFile()[player.username.toLowerCase()] = true
|
||||
}
|
||||
}
|
||||
when (stage) {
|
||||
0 -> dialogue(if (star.spriteSpawned) "The star sprite has already been freed." else "The star sprite is still trapped.").also { if (shouldWarn) stage++ else stage += 2 }
|
||||
1 -> dialogue("WARNING: The star is located in the wilderness.").also { stage++ }
|
||||
2 -> player.dialogueInterpreter.sendOptions("Teleport to the star?", "Yes", "No").also { stage++ }
|
||||
3 -> when (buttonID) {
|
||||
1 -> end().also { teleportToStar(player) }
|
||||
2 -> end()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!condition.invoke(player) || player.skullManager.isWilderness){
|
||||
sendDialogue(player, "Magical forces prevent your teleportation.")
|
||||
return@on true
|
||||
}
|
||||
|
||||
val shouldWarn = when(star.location){
|
||||
"North Edgeville mining site",
|
||||
"Southern wilderness mine",
|
||||
"Wilderness Volcano bank",
|
||||
"Wilderness hobgoblin mine",
|
||||
"Pirates' Hideout mine",
|
||||
"Lava Maze mining site",
|
||||
"Mage Arena bank" -> true
|
||||
else -> false
|
||||
}
|
||||
|
||||
openDialogue(player, RingDialogue(shouldWarn, star))
|
||||
|
||||
openDialogue(player, RingDialogue(star))
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
|
|
@ -103,6 +138,7 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
|||
}
|
||||
|
||||
define("submit", Privilege.ADMIN) { _, _ ->
|
||||
star.rebuildVars()
|
||||
star.fire()
|
||||
}
|
||||
|
||||
|
|
@ -112,30 +148,11 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
|||
}
|
||||
|
||||
override fun startup() {
|
||||
SystemLogger.logInfo(this::class.java, "Shooting Stars initialized.")
|
||||
log(this::class.java, Log.FINE, "Shooting Stars initialized.")
|
||||
}
|
||||
|
||||
private data class ScoreboardEntry(val player: String, val time: Int)
|
||||
|
||||
private class RingDialogue(val shouldWarn: Boolean, val star: ShootingStar) : DialogueFile(){
|
||||
override fun handle(componentID: Int, buttonID: Int) {
|
||||
when (stage) {
|
||||
0 -> dialogue(if (star.spriteSpawned) "The star sprite has already been freed." else "The star sprite is still trapped.").also { if (shouldWarn) stage++ else stage += 2 }
|
||||
1 -> dialogue("WARNING: The star is located in the wilderness.").also { stage++ }
|
||||
2 -> player!!.dialogueInterpreter.sendOptions("Teleport to the star?", "Yes", "No").also { stage++ }
|
||||
3 -> when (buttonID) {
|
||||
1 -> teleport(player!!, star).also { end() }
|
||||
2 -> end()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun teleport(player: Player, star: ShootingStar){
|
||||
teleport(player, star.crash_locations[star.location]!!.transform(0, -1, 0), TeleportManager.TeleportType.MINIGAME)
|
||||
getRingStoreFile()[player.username.toLowerCase()] = true
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val star = ShootingStar()
|
||||
private val tickDelay = if(GameWorld.settings?.isDevMode == true) 200 else 25000
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
package content.global.activity.shootingstar
|
||||
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.state.PlayerState
|
||||
import core.game.node.entity.state.State
|
||||
import core.game.system.task.Pulse
|
||||
import core.tools.ticksToSeconds
|
||||
import org.json.simple.JSONObject
|
||||
|
||||
@PlayerState("shooting-star")
|
||||
class ShootingStarState(player: Player? = null) : State(player) {
|
||||
var ticksLeft = 1500
|
||||
|
||||
override fun save(root: JSONObject) {
|
||||
root["ticksLeft"] = ticksLeft
|
||||
}
|
||||
|
||||
override fun parse(_data: JSONObject) {
|
||||
if(_data.containsKey("ticksLeft")){
|
||||
ticksLeft = _data["ticksLeft"].toString().toInt()
|
||||
}
|
||||
}
|
||||
|
||||
override fun newInstance(player: Player?): State {
|
||||
return ShootingStarState(player)
|
||||
}
|
||||
|
||||
override fun createPulse() {
|
||||
player ?: return
|
||||
if(ticksLeft <= 0) return
|
||||
pulse = object : Pulse(){
|
||||
override fun pulse(): Boolean {
|
||||
val minutes = ticksToSeconds(ticksLeft) / 60.0
|
||||
if(minutes % 5.0 == 0.0){
|
||||
player.sendMessage("<col=f0f095>You have $minutes minutes of your mining bonus left</col>")
|
||||
}
|
||||
if(ticksLeft-- <= 0){
|
||||
player.sendMessage("<col=FF0000>Your mining bonus has run out!</col>")
|
||||
pulse = null
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package content.global.activity.shootingstar
|
||||
|
||||
import core.api.*
|
||||
import core.game.system.timer.*
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.player.Player
|
||||
import org.json.simple.*
|
||||
|
||||
class StarBonus : PersistTimer (1, "shootingstar:bonus") {
|
||||
var ticksLeft = 1500
|
||||
|
||||
override fun save (root: JSONObject, entity: Entity) {
|
||||
root["ticksLeft"] = ticksLeft.toString()
|
||||
}
|
||||
|
||||
override fun parse (root: JSONObject, entity: Entity) {
|
||||
ticksLeft = root["ticksLeft"].toString().toInt()
|
||||
}
|
||||
|
||||
override fun run (entity: Entity) : Boolean {
|
||||
if (entity is Player && ticksLeft == 500) {
|
||||
entity.sendMessage("<col=f0f095>You have 5 minutes of your mining bonus left</col>")
|
||||
} else if (entity is Player && ticksLeft == 0) {
|
||||
entity.sendMessage("<col=FF0000>Your mining bonus has run out!</col>")
|
||||
}
|
||||
return ticksLeft-- > 0
|
||||
}
|
||||
}
|
||||
|
|
@ -82,7 +82,7 @@ class StarSpriteDialogue(player: Player? = null) : core.game.dialogue.DialoguePl
|
|||
override fun handle(interfaceId: Int, buttonId: Int): Boolean {
|
||||
when (stage) {
|
||||
0 -> {
|
||||
npc("I'm a star sprite! I Was in my star in the sky, when it", "lost control and crashed into the ground. With half my", "star sticking into the ground, I became stuck.", "Fortunately, I was mined out by the kind creatures of")
|
||||
npc("I'm a star sprite! I was in my star in the sky, when it", "lost control and crashed into the ground. With half my", "star sticking into the ground, I became stuck.", "Fortunately, I was mined out by the kind creatures of")
|
||||
stage++
|
||||
}
|
||||
1 -> {
|
||||
|
|
@ -198,7 +198,8 @@ class StarSpriteDialogue(player: Player? = null) : core.game.dialogue.DialoguePl
|
|||
|
||||
getStoreFile()[player.username.toLowerCase()] = true //flag daily as completed
|
||||
|
||||
player.registerState("shooting-star")?.init()
|
||||
val timer = getOrStartTimer <StarBonus> (player)
|
||||
timer.ticksLeft = 1500
|
||||
|
||||
if(wearingRing){
|
||||
val item = intArrayOf(Items.COSMIC_RUNE_564, Items.ASTRAL_RUNE_9075, Items.GOLD_ORE_445, Items.COINS_995).random()
|
||||
|
|
@ -263,8 +264,8 @@ class StarSpriteDialogue(player: Player? = null) : core.game.dialogue.DialoguePl
|
|||
|
||||
fun rollForRingBonus(player: Player, bonusId: Int, bonusBaseAmt: Int){
|
||||
if(RandomFunction.roll(3)){
|
||||
val state = player.states["shooting-star"] as? ShootingStarState ?: return
|
||||
state.ticksLeft += secondsToTicks(TimeUnit.MINUTES.toSeconds(5).toInt())
|
||||
var bonus = getOrStartTimer <StarBonus> (player)
|
||||
bonus.ticksLeft += 500
|
||||
sendMessage(player, colorize("%RYour ring shines dimly as if imbued with energy."))
|
||||
} else if(RandomFunction.roll(5)){
|
||||
addItem(player, bonusId, bonusBaseAmt)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package content.global.activity.ttrail;
|
|||
import core.game.component.Component;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.item.Item;
|
||||
import core.tools.Log;
|
||||
import core.tools.SystemLogger;
|
||||
import core.game.world.map.zone.MapZone;
|
||||
import core.game.world.map.zone.ZoneBorders;
|
||||
|
|
@ -15,6 +16,8 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static core.api.ContentAPIKt.log;
|
||||
|
||||
/**
|
||||
* Represents a clue scroll plugin.
|
||||
* @author Vexia
|
||||
|
|
@ -138,7 +141,7 @@ public abstract class ClueScrollPlugin extends MapZone implements Plugin<Object>
|
|||
if(clue.getClueId() == 2681)
|
||||
return;
|
||||
if (CLUE_SCROLLS.containsKey(clue.getClueId())) {
|
||||
SystemLogger.logErr(this.getClass(), "Error! Plugin already registered with clue id - " + clue.getClueId() + ", trying to register " + clue.getClass().getCanonicalName() + " the real plugin using the id is " + CLUE_SCROLLS.get(clue.getClueId()).getClass().getCanonicalName() + "!");
|
||||
log(this.getClass(), Log.ERR, "Error! Plugin already registered with clue id - " + clue.getClueId() + ", trying to register " + clue.getClass().getCanonicalName() + " the real plugin using the id is " + CLUE_SCROLLS.get(clue.getClueId()).getClass().getCanonicalName() + "!");
|
||||
return;
|
||||
}
|
||||
List<ClueScrollPlugin> organized = (List<ClueScrollPlugin>) ORGANIZED.get(clue.getLevel());
|
||||
|
|
@ -169,7 +172,7 @@ public abstract class ClueScrollPlugin extends MapZone implements Plugin<Object>
|
|||
public static Item getClue(ClueLevel clueLevel) {
|
||||
List<ClueScrollPlugin> clues = ORGANIZED.get(clueLevel);
|
||||
if (clues == null) {
|
||||
SystemLogger.logErr(ClueScrollPlugin.class, "Error! There are no clues for level " + clueLevel + "!");
|
||||
log(ClueScrollPlugin.class, Log.ERR, "Error! There are no clues for level " + clueLevel + "!");
|
||||
return null;
|
||||
}
|
||||
ClueScrollPlugin clue = clues.get(RandomFunction.random(clues.size()));
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public final class EmoteCluePlugin extends EmoteClueScroll {
|
|||
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||
Emotes emote = Emotes.BECKON;
|
||||
register(new EmoteCluePlugin("digsite-beckon", 2677, ClueLevel.MEDIUM, emote, Emotes.BOW, new int[][] { { 6328 }, { 1267 }, { 658 } }, "Beckon in the Digsite, near the<br>eastern winch. Bow or curtsy<br>before you talk to me.<br>Equip a green gnome hat,<br>snakeskin boots and an<br>iron pickaxe.", new ZoneBorders(3368, 3425, 3371, 3429)));
|
||||
register(new EmoteCluePlugin("tai-bwo-beckon", 2678, ClueLevel.MEDIUM, emote, Emotes.CLAP, new int[][] { { 1099 }, { 2552, 2554, 2556, 2558, 2560, 2562, 2564, 2568 }, { 1143 } }, "Beckon in Tai Bwo<br>Wannai. Clap before<br>you talk to me.<br>Equip green<br>dragonhide chaps, a<br>ring of dueling and a<br>mithril medium helmet.", new ZoneBorders(2771, 3053, 2814, 3074)));
|
||||
register(new EmoteCluePlugin("tai-bwo-beckon", 2678, ClueLevel.MEDIUM, emote, Emotes.CLAP, new int[][] { { 1099 }, { 2552, 2554, 2556, 2558, 2560, 2562, 2564, 2566, 2568 }, { 1143 } }, "Beckon in Tai Bwo<br>Wannai. Clap before<br>you talk to me.<br>Equip green<br>dragonhide chaps, a<br>ring of dueling and a<br>mithril medium helmet.", new ZoneBorders(2771, 3053, 2814, 3074)));
|
||||
emote = Emotes.BLOW_KISS;
|
||||
//register(new EmoteCluePlugin("shilo-kiss", 2681, ClueLevel.HARD, emote, new int[][] { { 4089 }, { 5016 }, { 1127 } }, "Blow a kiss between<br>the tables in Shilo<br>Village bank. Beware<br>of double agents!<br>Equip a blue mystic<br>hat, bone spear and<br>rune plate body.", new ZoneBorders(2849, 2950, 2855, 2957)));
|
||||
emote = Emotes.BOW;
|
||||
|
|
@ -99,7 +99,7 @@ public final class EmoteCluePlugin extends EmoteClueScroll {
|
|||
//Fixed JFJ and Laugh Clues
|
||||
//When Vexia emote is removed below.
|
||||
//emote = Emotes.JUMP_FOR_JOY;
|
||||
register(new EmoteCluePlugin("beehive-jump", 2703, ClueLevel.EASY, Emotes.JUMP_FOR_JOY, new int[][] { { 1833 }, { 648 }, { 1353 } }, "Jump for joy at the beehives.<br>Equip a desert shirt, green<br>gnome robe bottoms and a<br>steel axe.", new ZoneBorders(2762, 3439, 2764, 3441)));
|
||||
register(new EmoteCluePlugin("beehive-jump", 2703, ClueLevel.EASY, Emotes.JUMP_FOR_JOY, new int[][] { { 1833 }, { 648 }, { 1353 } }, "Jump for joy at the beehives.<br>Equip a desert shirt, green<br>gnome robe bottoms and a<br>steel axe.", new ZoneBorders(2752, 3437,2766, 3450)));
|
||||
// And emote, is replaced with what it is shortcutting Emotes.JUMP_FOR_JOY
|
||||
// the clues work perfect. It seems to only be a problem with multiple emote clues.
|
||||
// If you look around EmoteCluePlugin you will see there are multiple emote, shortcuts
|
||||
|
|
|
|||
58
Server/src/main/content/global/ame/KidnapHelper.kt
Normal file
58
Server/src/main/content/global/ame/KidnapHelper.kt
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
package content.global.ame
|
||||
|
||||
import core.ServerConstants
|
||||
import core.api.*
|
||||
import core.game.interaction.QueueStrength
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.player.link.TeleportManager.TeleportType
|
||||
import core.game.world.map.Location
|
||||
import core.game.world.update.flag.context.Graphics
|
||||
import org.rs09.consts.Sounds
|
||||
|
||||
fun kidnapPlayer(npc: NPC, player: Player, dest: Location, playerLine: String? = null, callback: (player: Player, npc: NPC) -> Unit) {
|
||||
val lockDuration = if (playerLine != null) 4 else 6
|
||||
lock(player, lockDuration)
|
||||
queueScript(player, 1, QueueStrength.SOFT) { stage: Int ->
|
||||
when (stage) {
|
||||
0 -> {
|
||||
if (playerLine != null) {
|
||||
sendChat(player, playerLine)
|
||||
return@queueScript delayScript(player, 2)
|
||||
}
|
||||
return@queueScript delayScript(player, 0)
|
||||
}
|
||||
1 -> {
|
||||
sendGraphics(Graphics(1576, 0, 0), player.location)
|
||||
animate(player,8939)
|
||||
playAudio(player, Sounds.TELEPORT_ALL_200)
|
||||
return@queueScript delayScript(player, 3)
|
||||
}
|
||||
2 -> {
|
||||
setAttribute(player, "kidnapped-by-random", true)
|
||||
if (getAttribute<Location?>(player, "/save:original-loc", null) == null) {
|
||||
setAttribute(player, "/save:original-loc", player.location)
|
||||
}
|
||||
teleport(player, dest, TeleportType.INSTANT)
|
||||
sendGraphics(Graphics(1577, 0, 0), player.location)
|
||||
animate(player, 8941)
|
||||
resetAnimator(player)
|
||||
callback(player, npc)
|
||||
return@queueScript delayScript(player, 2)
|
||||
}
|
||||
3 -> {
|
||||
removeAttribute(player, "kidnapped-by-random") //this is not needed at this point anymore and will reenable the original-loc sanity check tick action
|
||||
return@queueScript stopExecuting(player)
|
||||
}
|
||||
else -> return@queueScript stopExecuting(player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun returnPlayer(player: Player) {
|
||||
player.locks.unlockTeleport()
|
||||
val destination = getAttribute(player, "/save:original-loc", ServerConstants.HOME_LOCATION)
|
||||
teleport(player, destination!!)
|
||||
unlock(player)
|
||||
removeAttributes(player, "/save:original-loc", "kidnapped-by-random")
|
||||
}
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
package content.global.ame
|
||||
|
||||
import core.api.Commands
|
||||
import core.api.LoginListener
|
||||
import core.game.event.EventHook
|
||||
import core.game.event.TickEvent
|
||||
import core.api.getAttribute
|
||||
import core.api.setAttribute
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.world.map.zone.ZoneRestriction
|
||||
import core.tools.RandomFunction
|
||||
import core.api.Event
|
||||
import core.tools.SystemLogger
|
||||
import core.game.system.command.Privilege
|
||||
import core.game.world.GameWorld
|
||||
import core.game.world.repository.Repository
|
||||
import kotlin.random.Random
|
||||
|
||||
class RandomEventManager(val player: Player? = null) : LoginListener, EventHook<TickEvent>, Commands {
|
||||
var event: content.global.ame.RandomEventNPC? = null
|
||||
var enabled: Boolean = false
|
||||
var nextSpawn = 0
|
||||
val skills = arrayOf("WoodcuttingSkillPulse","FishingPulse","MiningSkillPulse","BoneBuryingOptionPlugin")
|
||||
|
||||
override fun login(player: Player) {
|
||||
if(player.isArtificial) return
|
||||
val instance = content.global.ame.RandomEventManager(player)
|
||||
player.hook(Event.Tick, instance)
|
||||
setAttribute(player, "random-manager", instance)
|
||||
instance.rollNextSpawn()
|
||||
instance.enabled = true
|
||||
SystemLogger.logRE("Initialized REManager for ${player.username}.")
|
||||
}
|
||||
|
||||
override fun process(entity: Entity, event: TickEvent) {
|
||||
if (GameWorld.ticks > nextSpawn && getAttribute(player!!, "tutorial:complete", false)) fireEvent()
|
||||
}
|
||||
|
||||
fun fireEvent() {
|
||||
if(!enabled){
|
||||
rollNextSpawn()
|
||||
return
|
||||
}
|
||||
if (player!!.zoneMonitor.isRestricted(ZoneRestriction.RANDOM_EVENTS)) {
|
||||
nextSpawn = GameWorld.ticks + 3000
|
||||
return
|
||||
}
|
||||
if (getAttribute<content.global.ame.RandomEventNPC?>(player, "re-npc", null) != null) return
|
||||
val currentAction = player.pulseManager.current?.toString() ?: "None"
|
||||
val ame: content.global.ame.RandomEvents = if(currentAction.contains("WoodcuttingSkillPulse") && Random.nextBoolean()){
|
||||
content.global.ame.RandomEvents.TREE_SPIRIT
|
||||
} else if(currentAction.contains("FishingPulse") && Random.nextBoolean()){
|
||||
content.global.ame.RandomEvents.RIVER_TROLL
|
||||
} else if(currentAction.contains("MiningSkillPulse") && Random.nextBoolean()){
|
||||
content.global.ame.RandomEvents.ROCK_GOLEM
|
||||
} else if(currentAction.contains("BoneBuryingOptionPlugin") && Random.nextBoolean()){
|
||||
content.global.ame.RandomEvents.SHADE
|
||||
} else {
|
||||
content.global.ame.RandomEvents.values().filter { it.type != "skill" }.random()
|
||||
}
|
||||
event = ame.npc.create(player,ame.loot,ame.type)
|
||||
if (event!!.spawnLocation == null) {
|
||||
nextSpawn = GameWorld.ticks + 3000
|
||||
SystemLogger.logWarn(this::class.java, "Tried to spawn random event for ${player.username} but spawn location was null!")
|
||||
return
|
||||
}
|
||||
event!!.init()
|
||||
rollNextSpawn()
|
||||
SystemLogger.logRE("Fired ${event!!.name} for ${player.username}")
|
||||
}
|
||||
|
||||
private fun rollNextSpawn() {
|
||||
nextSpawn = GameWorld.ticks + RandomFunction.random(content.global.ame.RandomEventManager.Companion.MIN_DELAY_TICKS, content.global.ame.RandomEventManager.Companion.MAX_DELAY_TICKS)
|
||||
}
|
||||
|
||||
override fun defineCommands() {
|
||||
define("targeted-ame", Privilege.ADMIN, "targeted-ame username", "Summons a random for the given user") {player, args ->
|
||||
val username = args[1]
|
||||
val target = Repository.getPlayerByName(username)
|
||||
|
||||
if (target == null)
|
||||
reject(player, "Unable to find player $username!")
|
||||
|
||||
content.global.ame.RandomEventManager.Companion.getInstance(target!!)?.fireEvent()
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val AVG_DELAY_TICKS = 6000 // 60 minutes
|
||||
const val MIN_DELAY_TICKS = content.global.ame.RandomEventManager.Companion.AVG_DELAY_TICKS / 2
|
||||
const val MAX_DELAY_TICKS = content.global.ame.RandomEventManager.Companion.MIN_DELAY_TICKS + content.global.ame.RandomEventManager.Companion.AVG_DELAY_TICKS // window of 60 min centered on 60 min (30 to 90 min)
|
||||
|
||||
@JvmStatic fun getInstance(player: Player): content.global.ame.RandomEventManager?
|
||||
{
|
||||
return getAttribute(player, "random-manager", null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,18 @@
|
|||
package content.global.ame
|
||||
|
||||
import content.global.ame.events.MysteriousOldManNPC
|
||||
import content.global.ame.events.surpriseexam.MysteriousOldManNPC
|
||||
import core.api.playGlobalAudio
|
||||
import core.api.poofClear
|
||||
import core.api.sendMessage
|
||||
import core.api.setAttribute
|
||||
import core.api.utils.WeightBasedTable
|
||||
import core.game.interaction.MovementPulse
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.combat.CombatStyle
|
||||
import core.game.node.entity.impl.PulseType
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.npc.agg.AggressiveBehavior
|
||||
import core.game.node.entity.npc.agg.AggressiveHandler
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.item.Item
|
||||
import core.game.world.map.Location
|
||||
|
|
@ -12,8 +20,13 @@ import core.game.world.map.RegionManager
|
|||
import core.game.world.map.path.Pathfinder
|
||||
import core.game.world.update.flag.context.Graphics
|
||||
import core.integrations.discord.Discord
|
||||
import core.api.utils.WeightBasedTable
|
||||
import core.tools.RandomFunction
|
||||
import core.tools.secondsToTicks
|
||||
import core.tools.ticksToCycles
|
||||
import org.rs09.consts.NPCs
|
||||
import org.rs09.consts.Sounds
|
||||
import kotlin.math.ceil
|
||||
import kotlin.math.min
|
||||
import kotlin.random.Random
|
||||
import kotlin.reflect.full.createInstance
|
||||
|
||||
|
|
@ -33,16 +46,17 @@ abstract class RandomEventNPC(id: Int) : NPC(id) {
|
|||
event.loot = loot
|
||||
event.player = player
|
||||
event.spawnLocation = RegionManager.getSpawnLocation(player, this)
|
||||
setAttribute(event, "spawned-by-ame", true)
|
||||
return event
|
||||
}
|
||||
|
||||
open fun terminate() {
|
||||
finalized = true
|
||||
pulseManager.clear(PulseType.STANDARD)
|
||||
content.global.ame.RandomEventManager.getInstance(player)?.event = null
|
||||
if (initialized) {
|
||||
if (initialized && !finalized) {
|
||||
poofClear(this)
|
||||
playGlobalAudio(this.location, Sounds.SMOKEPUFF_1930, ticksToCycles(1))
|
||||
}
|
||||
finalized = true
|
||||
}
|
||||
|
||||
open fun follow() {
|
||||
|
|
@ -63,7 +77,6 @@ abstract class RandomEventNPC(id: Int) : NPC(id) {
|
|||
if (!player.getAttribute("random:pause", false)) {
|
||||
ticksLeft--
|
||||
}
|
||||
|
||||
if (!pulseManager.hasPulseRunning() && !finalized) {
|
||||
follow()
|
||||
}
|
||||
|
|
@ -84,10 +97,14 @@ abstract class RandomEventNPC(id: Int) : NPC(id) {
|
|||
location = spawnLocation
|
||||
player.setAttribute("re-npc", this)
|
||||
super.init()
|
||||
super.aggressiveHandler = AggressiveHandler(this, object : AggressiveBehavior() {
|
||||
override fun canSelectTarget(entity: Entity, target: Entity): Boolean {
|
||||
return target == player
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
open fun onTimeUp() {
|
||||
noteAndTeleport()
|
||||
terminate()
|
||||
}
|
||||
|
||||
|
|
@ -115,4 +132,38 @@ abstract class RandomEventNPC(id: Int) : NPC(id) {
|
|||
}
|
||||
|
||||
abstract fun talkTo(npc: NPC)
|
||||
}
|
||||
|
||||
override fun isAttackable(entity: Entity, style: CombatStyle, message: Boolean): Boolean {
|
||||
if (entity != player) {
|
||||
if (entity is Player) {
|
||||
sendMessage(entity, "It isn't interested in fighting you.") //TODO authentic message
|
||||
}
|
||||
return false
|
||||
}
|
||||
return super.isAttackable(entity, style, message)
|
||||
}
|
||||
|
||||
fun idForCombatLevel(ids: List<Int>, player: Player): Int {
|
||||
val index = min(ids.size, ceil(player.properties.currentCombatLevel / 20.0).toInt()) - 1
|
||||
return ids[index]
|
||||
}
|
||||
|
||||
fun sayLine(npc: NPC, phrases: Array<String>, hasOpeningPhrase: Boolean, hasOverTimePhrase: Boolean) {
|
||||
if (!timerPaused && (ticksLeft % 20 == 0 || ticksLeft <= 2)) { //unless the Certer interface is up, speak every 20 ticks, or in the 2nd-to-last tick before attack/note-&-teleport
|
||||
var playDwarfWhistle = true
|
||||
if (ticksLeft == secondsToTicks(180) && hasOpeningPhrase) {
|
||||
sendChat(phrases[0])
|
||||
} else if (ticksLeft <= 2 && hasOverTimePhrase) {
|
||||
sendChat(phrases[phrases.size - 1])
|
||||
playDwarfWhistle = false
|
||||
} else {
|
||||
val start = if (hasOpeningPhrase) 0 else 1
|
||||
val end = if (hasOverTimePhrase) phrases.size - 2 else phrases.size - 1
|
||||
sendChat(phrases[RandomFunction.random(start, end + 1)])
|
||||
}
|
||||
if (npc.id == NPCs.DRUNKEN_DWARF_956 && playDwarfWhistle) {
|
||||
playGlobalAudio(this.location, Sounds.DWARF_WHISTLE_2297)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,38 @@
|
|||
package content.global.ame
|
||||
|
||||
import org.rs09.consts.Items
|
||||
import content.global.ame.events.MysteriousOldManNPC
|
||||
import content.global.ame.events.surpriseexam.MysteriousOldManNPC
|
||||
import content.global.ame.events.certer.CerterNPC
|
||||
import content.global.ame.events.drilldemon.SeargentDamienNPC
|
||||
import content.global.ame.events.drilldemon.SergeantDamienNPC
|
||||
import content.global.ame.events.drunkendwarf.DrunkenDwarfNPC
|
||||
import content.global.ame.events.evilbob.EvilBobNPC
|
||||
import content.global.ame.events.evilchicken.EvilChickenNPC
|
||||
import content.global.ame.events.freakyforester.FreakyForesterNPC
|
||||
import content.global.ame.events.maze.MazeNPC
|
||||
import content.global.ame.events.genie.GenieNPC
|
||||
import content.global.ame.events.candlelight.PiousPeteNPC
|
||||
import content.global.ame.events.pillory.PilloryNPC
|
||||
import content.global.ame.events.rickturpentine.RickTurpentineNPC
|
||||
import content.global.ame.events.rivertroll.RiverTrollRENPC
|
||||
import content.global.ame.events.rockgolem.RockGolemRENPC
|
||||
import content.global.ame.events.quizmaster.QuizMasterNPC
|
||||
import content.global.ame.events.sandwichlady.SandwichLadyRENPC
|
||||
import content.global.ame.events.shade.ShadeRENPC
|
||||
import content.global.ame.events.strangeplant.StrangePlantNPC
|
||||
import content.global.ame.events.swarm.SwarmNPC
|
||||
import content.global.ame.events.treespirit.TreeSpiritRENPC
|
||||
import content.global.ame.events.zombie.ZombieRENPC
|
||||
import core.ServerConstants
|
||||
|
||||
import core.api.utils.WeightBasedTable
|
||||
import core.api.utils.WeightedItem
|
||||
import core.game.node.entity.skill.Skills
|
||||
|
||||
enum class RandomEvents(val npc: RandomEventNPC, val loot: WeightBasedTable? = null) {
|
||||
SANDWICH_LADY(SandwichLadyRENPC()),
|
||||
GENIE(GenieNPC()),
|
||||
CERTER(CerterNPC(), WeightBasedTable.create(
|
||||
enum class RandomEvents(val npc: RandomEventNPC, val loot: WeightBasedTable? = null, val skillIds: IntArray = intArrayOf(), val type: String = "") {
|
||||
SANDWICH_LADY(npc = SandwichLadyRENPC()),
|
||||
GENIE(npc = GenieNPC()),
|
||||
CANDLELIGHT(npc = PiousPeteNPC(), skillIds = intArrayOf(Skills.PRAYER)),
|
||||
CERTER(npc = CerterNPC(), loot = WeightBasedTable.create(
|
||||
WeightedItem(Items.UNCUT_SAPPHIRE_1623,1,1,3.4),
|
||||
WeightedItem(Items.KEBAB_1971,1,1,1.7),
|
||||
WeightedItem(Items.UNCUT_EMERALD_1621,1,1,1.7),
|
||||
|
|
@ -36,25 +49,52 @@ enum class RandomEvents(val npc: RandomEventNPC, val loot: WeightBasedTable? = n
|
|||
WeightedItem(Items.TOOTH_HALF_OF_A_KEY_985,1,1,0.1),
|
||||
WeightedItem(Items.LOOP_HALF_OF_A_KEY_987,1,1,0.1)
|
||||
)),
|
||||
DRILL_DEMON(SeargentDamienNPC()),
|
||||
EVIL_CHICKEN(EvilChickenNPC()),
|
||||
SURPRISE_EXAM(MysteriousOldManNPC(),"sexam"),
|
||||
TREE_SPIRIT(TreeSpiritRENPC(),"skill"),
|
||||
RIVER_TROLL(RiverTrollRENPC(),"skill"),
|
||||
ROCK_GOLEM(RockGolemRENPC(),"skill"),
|
||||
SHADE(ShadeRENPC(),"skill"),
|
||||
ZOMBIE(ZombieRENPC(),"skill");
|
||||
|
||||
var type: String = ""
|
||||
private set
|
||||
|
||||
constructor(npc: RandomEventNPC, type: String) : this(npc,null){
|
||||
this.type = type
|
||||
}
|
||||
MAZE(npc = MazeNPC()),
|
||||
DRILL_DEMON(npc = SergeantDamienNPC()),
|
||||
EVIL_CHICKEN(npc = EvilChickenNPC()),
|
||||
STRANGE_PLANT(npc = StrangePlantNPC()),
|
||||
SWARM(npc = SwarmNPC()),
|
||||
EVIL_BOB(npc = EvilBobNPC(), skillIds = intArrayOf(Skills.FISHING, Skills.MAGIC)),
|
||||
DRUNKEN_DWARF(npc = DrunkenDwarfNPC()),
|
||||
RICK_TURPENTINE(npc = RickTurpentineNPC(), loot = CERTER.loot),
|
||||
SURPRISE_EXAM(npc = MysteriousOldManNPC(), type = "sexam"),
|
||||
FREAKY_FORESTER(npc = FreakyForesterNPC(), skillIds = intArrayOf(Skills.WOODCUTTING)),
|
||||
PILLORY(npc = PilloryNPC(), skillIds = intArrayOf(Skills.THIEVING)),
|
||||
TREE_SPIRIT(npc = TreeSpiritRENPC(), skillIds = intArrayOf(Skills.WOODCUTTING)),
|
||||
QUIZ_MASTER(npc = QuizMasterNPC()),
|
||||
RIVER_TROLL(RiverTrollRENPC(), skillIds = intArrayOf(Skills.FISHING)),
|
||||
ROCK_GOLEM(RockGolemRENPC(), skillIds = intArrayOf(Skills.MINING)),
|
||||
SHADE(ShadeRENPC(), skillIds = intArrayOf(Skills.PRAYER)),
|
||||
ZOMBIE(ZombieRENPC(), skillIds = intArrayOf(Skills.PRAYER));
|
||||
|
||||
companion object {
|
||||
@JvmField
|
||||
val randomIDs = values().map { it.npc.id }.toList()
|
||||
}
|
||||
val skillMap = HashMap<Int, ArrayList<RandomEvents>>()
|
||||
val nonSkillList = ArrayList<RandomEvents>()
|
||||
|
||||
}
|
||||
init { populateMappings() }
|
||||
|
||||
fun getSkillBasedRandomEvent (skill: Int) : RandomEvents? {
|
||||
return skillMap[skill]?.random()
|
||||
}
|
||||
|
||||
fun getNonSkillRandom() : RandomEvents {
|
||||
return nonSkillList.random()
|
||||
}
|
||||
|
||||
private fun populateMappings() {
|
||||
for (event in values()) {
|
||||
if (!ServerConstants.INAUTHENTIC_CANDLELIGHT_RANDOM && event == CANDLELIGHT) {
|
||||
continue
|
||||
}
|
||||
for (id in event.skillIds) {
|
||||
val list = skillMap[id] ?: ArrayList<RandomEvents>().also { skillMap[id] = it }
|
||||
list.add (event)
|
||||
}
|
||||
if (event.skillIds.isEmpty())
|
||||
nonSkillList.add (event)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
package content.global.ame.events
|
||||
|
||||
import core.api.getAttribute
|
||||
import core.game.node.entity.Entity
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.npc.NPCBehavior
|
||||
import org.rs09.consts.NPCs
|
||||
|
||||
class HostileRandomEventBehavior : NPCBehavior(
|
||||
NPCs.EVIL_CHICKEN_2463, NPCs.EVIL_CHICKEN_2464, NPCs.EVIL_CHICKEN_2465, NPCs.EVIL_CHICKEN_2466, NPCs.EVIL_CHICKEN_2467, NPCs.EVIL_CHICKEN_2468,
|
||||
NPCs.RIVER_TROLL_391, NPCs.RIVER_TROLL_392, NPCs.RIVER_TROLL_393, NPCs.RIVER_TROLL_394, NPCs.RIVER_TROLL_395, NPCs.RIVER_TROLL_396,
|
||||
NPCs.SHADE_425, NPCs.SHADE_426, NPCs.SHADE_427, NPCs.SHADE_428, NPCs.SHADE_429, NPCs.SHADE_430, NPCs.SHADE_431,
|
||||
NPCs.TREE_SPIRIT_438, NPCs.TREE_SPIRIT_439, NPCs.TREE_SPIRIT_440, NPCs.TREE_SPIRIT_441, NPCs.TREE_SPIRIT_442, NPCs.TREE_SPIRIT_443,
|
||||
NPCs.ZOMBIE_419, NPCs.ZOMBIE_420, NPCs.ZOMBIE_421, NPCs.ZOMBIE_422, NPCs.ZOMBIE_423, NPCs.ZOMBIE_424
|
||||
) {
|
||||
override fun getXpMultiplier(self: NPC, attacker: Entity): Double {
|
||||
val xprate = super.getXpMultiplier(self, attacker)
|
||||
return if (getAttribute(self, "spawned-by-ame", false)) xprate / 16.0 else xprate
|
||||
}
|
||||
}
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
package content.global.ame.events
|
||||
|
||||
import core.game.node.entity.player.Player
|
||||
import content.global.ame.events.supriseexam.SurpriseExamUtils
|
||||
import core.game.dialogue.DialogueFile
|
||||
|
||||
class MysteriousOldManDialogue(val type: String) : DialogueFile() {
|
||||
|
||||
val CHOICE_STAGE = 50000
|
||||
|
||||
override fun handle(componentID: Int, buttonID: Int) {
|
||||
|
||||
if(type == "sexam" && stage < CHOICE_STAGE){
|
||||
npc("Would you like to come do a surprise exam?")
|
||||
stage = CHOICE_STAGE
|
||||
}
|
||||
|
||||
else if(stage >= CHOICE_STAGE){
|
||||
when(stage) {
|
||||
CHOICE_STAGE -> options("Yeah, sure!", "No, thanks.").also { stage++ }
|
||||
CHOICE_STAGE.substage(1) -> when(buttonID){
|
||||
1 -> {
|
||||
end()
|
||||
teleport(player!!,type)
|
||||
content.global.ame.RandomEventManager.getInstance(player!!)?.event?.terminate()
|
||||
}
|
||||
2 -> {
|
||||
end()
|
||||
content.global.ame.RandomEventManager.getInstance(player!!)?.event?.terminate()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
fun teleport(player: Player,type: String){
|
||||
when(type){
|
||||
"sexam" -> SurpriseExamUtils.teleport(player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
package content.global.ame.events
|
||||
|
||||
import content.global.ame.RandomEventNPC
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.tools.RandomFunction
|
||||
import org.rs09.consts.NPCs
|
||||
import core.api.utils.WeightBasedTable
|
||||
|
||||
class MysteriousOldManNPC(var type: String = "", override var loot: WeightBasedTable? = null) : RandomEventNPC(NPCs.MYSTERIOUS_OLD_MAN_410) {
|
||||
override fun init() {
|
||||
super.init()
|
||||
sayLine()
|
||||
}
|
||||
|
||||
override fun tick() {
|
||||
super.tick()
|
||||
if(RandomFunction.random(1,10) == 5) sayLine()
|
||||
}
|
||||
|
||||
fun sayLine() {
|
||||
when(type){
|
||||
"sexam" -> sendChat("Surprise exam, ${player.username.capitalize()}!")
|
||||
}
|
||||
}
|
||||
|
||||
override fun talkTo(npc: NPC) {
|
||||
when(type){
|
||||
"sexam" -> player.dialogueInterpreter.open(MysteriousOldManDialogue("sexam"),this.asNpc())
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue