Commit Graph

340 Commits

Author SHA1 Message Date
Ceikry dcd45ebb15 Merge branch 'add-sfx' into 'master'
Add protect from summoning and antifire/antipoison 30 second ticking sounds.

See merge request 2009scape/2009scape!286
2021-10-01 02:39:49 +00:00
Ceikry 4852ac4cce Merge branch 'fix-crystal-recharge' into 'master'
Fixes to crystal equipment:

See merge request 2009scape/2009scape!283
2021-10-01 02:38:54 +00:00
Ceikry 881ab07a48 Merge branch 'ardougne-spice-stall' into 'master'
Fix broken Ardougne spice stall

See merge request 2009scape/2009scape!282
2021-10-01 02:38:25 +00:00
Avi Weinstock 3d7322e4f9 Add protect from summoning and antifire/antipoison 30 second ticking sounds. 2021-09-30 15:46:11 -04:00
Avi Weinstock 232bc463c6 Fixes to crystal equipment:
- The price of recharging bows/shields decreases by 180k per recharge, to a minimum of 180k.
- The price of a new bow/shield is always 900k.
- Elven teleport crystals similarly decrease from 750 to 150 by 150, using a separate recharge counter.
- Eluned doesn't sell additional teleport crystals, only recharges them.
- Removed custom functionality from teleport crystals that allowed teleporting into unallocated instances.
2021-09-30 14:31:24 -04:00
James Triantafylos cfe95c1a19 Fix broken Ardougne spice stall
This commit allows players to theive from the Ardougne spice stall as
they should be able to.

It also corrects the theiving XP from 16 to 81 as it should be.
2021-09-30 14:27:09 -04:00
James Triantafylos 4cf4545cf8 Fix hang when depositing inventory or equipped items
This commit fixes an issue where the DumpContainer dialogue hangs when
a player attempts to deposit their inventory or equipped items when they
do not have any items in their inventory or are not wearing any items.

This commit also converts the DumpContainer dialogue plugin from Java to
Kotlin to work towards converting the 2009scape codebase to Kotlin.
2021-09-30 13:09:21 -04:00
Avi Weinstock 1365b612ba Fixes to things using the PlayerState machinery:
- Charge now clears the state when it finishes, allowing consecutive uses without relogging.
- Ava's device clears the state when unequipped, allong it to be equipped again later.
- (Unrelated to states) Binding necklace now uses amulet-slot degradation instead of degrading your hat.
2021-09-28 16:15:13 -04:00
Ceikry 732af62e8c Merge branch 'prayer-sfx' into 'master'
Add proper sound effect for running out of prayer, and clear the overhead icon when that happens.

See merge request 2009scape/2009scape!275
2021-09-28 13:48:37 +00:00
Ceikry fc4959dc4b Merge branch 'runecrafting-sfx' into 'master'
Add proper sound effects for crafting runes and antifire/antiposion expiration.

See merge request 2009scape/2009scape!276
2021-09-28 13:48:18 +00:00
Ceikry 888eaa12eb Merge branch 'bind-sfx-1' into 'master'
Fix sound effects for bind/snare/entangle, and also the essence mine teleport.

See merge request 2009scape/2009scape!277
2021-09-28 13:48:08 +00:00
vk d027728c7f fix clue scroll drops.
There is a fairly significant bug with clue scrolls. The only npcs that drops clue scrolls right now are hellhonds (that is because their ids are hard-coded in TreasureTrailPlugin.createDrop()). All other npcs do not drop clues due to a bug in `NPCDropTables`.

`NPCDropTables` has two separate ways to access the actual table: one is though `List<WeightedChanceItem> defaultTable`, ` List<WeightedChanceItem> charmTable`, and `List<WeightedChanceItem> mainTable`; And the other is though a combined table `NPCDropTable table`. The problem is that only `NPCDropTable table` is set properly--the other 3 tables are always empty.

The reason clues were bugged was because `TreasureTrailPlugin.createDrop()` has a check for `npc.getDefinition().getDropTables().getMainTable().size() < 3`, which always fails. I really do not see the point in this check to begin with, so i am going to remove it. The hard-coded check for hellounds is pointless as well and should be removed.
I am also going to remove the 3 empty tables from `NPCDropTables` to avoid and similar bugs in the future.

Alternatively, it is possible to make changes to `DropTableParser` and keep those tables, then add post-parsing step to populate `NPCDropTable table` from them. However that would just duplicate all the data in all drops table, and since nothing else was using these individual tables, i just opted for removing them.
2021-09-28 01:44:09 -07:00
Avi Weinstock 6a118b3a32 Fix sound effects for bind/snare/entangle, and also the essence mine teleport. 2021-09-27 20:44:51 -04:00
Avi Weinstock a7ff35c9d2 Add proper sound effects for crafting runes and antifire/antiposion expiration. 2021-09-27 16:56:40 -04:00
Avi Weinstock eed3b4d880 Add proper sound effect for running out of prayer, and clear the overhead icon when that happens. 2021-09-27 14:57:37 -04:00
vk 6589d73ef8 pc improvement - implement priority 2021-09-26 22:21:49 +00:00
vk b519afd1ed use item.value instead of item.maxValue as base shop price
This fixes the issue of all shop prices being 5% more than they are supposed to (like dlong/d skimmy being 105k insread of 100k, and even spirit shards being 26 ea instead of 25 ea).
2021-09-25 13:25:48 -07:00
vk 2dc4ac49f4 ironman drop fix: get drop if npcs delt damage.
Currenly the check is done against the entire ImpactLog, which includes NPC damage.
This becomes very annoying when it comes to places like god wars where npcs constantly attach each other.
This change makes the loot check only look at other players, and not npcs.
The ironman player in question still has to do the most damage (including npcs) to get the drop.
2021-09-23 12:47:33 -07:00
Ceikry 009fdde1c7 Merge branch 'bolts' into 'master'
Fix broad bolts on turroths and kurasks

See merge request 2009scape/2009scape!264
2021-09-22 21:09:53 +00:00
vk a0c6522fbc Fix broad bolts on turroths and kurasks 2021-09-22 21:09:53 +00:00
Ceikry 9cdd121a8d Merge branch 'fix-multitarget-xp' into 'master'
Fix xp of multitarget attacks (like chinchompas, dragon claw/halberd spec) and...

See merge request 2009scape/2009scape!265
2021-09-22 21:09:31 +00:00
Ceikry bf0376c4fa Merge branch 'fix-bunyip-nullderef' into 'master'
Fix null dereference in bunyip special (the cooking map is keyed by raw food, not cooked food).

See merge request 2009scape/2009scape!266
2021-09-22 21:08:54 +00:00
Avi Weinstock 91657296dd Superglass Make has a 30% chance of yielding 2 molten glass. 2021-09-22 16:11:31 -04:00
Avi Weinstock 65aa4a82c3 Fix null dereference in bunyip special (the cooking map is keyed by raw food, not cooked food). 2021-09-22 15:31:02 -04:00
Avi Weinstock 849273ecb5 Fix xp of multitarget attacks (like chinchompas, dragon claw/halberd spec) and fix chinchompa attack pattern (square instead of plus). 2021-09-22 15:10:49 -04:00
ceikry 9c18af8f8d Possible fix for needing kicks 2021-09-17 13:01:35 -05:00
Avi Weinstock 45dd084f5c Implement pitfall trapping for larupias, graahks, and kyatts. 2021-09-16 15:54:14 -04:00
Avi Weinstock d85b7223db Special attacks now have proper types (so they no longer ignore prayer) and give experience.
Also add "::infinitespecial" admin command for testing special attacks.
2021-09-15 13:18:00 -04:00
Avi Weinstock c1021dac4e Add the roar animation each time TDs change attack styles. 2021-09-14 21:45:18 -04:00
Ceikry bee2d26de2 Merge branch 'thessalia-change-clothes' into 'master'
Thessalia change-clothes bug-fix option and migrate to kotlin

See merge request 2009scape/2009scape!257
2021-09-14 22:38:43 +00:00
Avi Weinstock 4039ce65f1 Explicitly set the combat style from the NPC config instead of assuming the default is melee.
Previously, TDs would just keep their previous style when switching to a state that had melee defined.
2021-09-14 15:37:27 -04:00
downthecrop 0182b93bc2 Fixes right-click change-clothes option and migrate the file to kotlin 2021-09-13 15:04:05 -07:00
Avi Weinstock 24e417619e Tormented demons now correctly retaliate if attacked while non-aggressive. 2021-09-13 16:56:17 -04:00
Avi Weinstock e9f7b4e515 Improve NPC usage of protection prayers.
- `NPC.hasProtectionPrayer` now accurately reflects protection prayers defined in `npc_configs.json`.
- NPC protection prayers now block 100% of the damage when attacked by a player in `Entity.getFormattedHit` instead of only blocking 40%.
2021-09-12 21:21:36 -04:00
Avi Weinstock b4bd9d7f08 Fix bunyip health formula and NPC id. 2021-09-11 19:43:05 -04:00
Ceikry 2849f55087 Merge branch 'more-tds-fixes' into 'master'
Increase tds aggro range and add proper music for the Ancient Guthix Temple.

See merge request 2009scape/2009scape!253
2021-09-11 01:52:05 +00:00
Avi Weinstock 07a7541a26 More TDs fixes:
- Increase TDs aggro range
- Add proper music for the Ancient Guthix Temple.
- Add a kill counter for TDs, and replace Bork with it in `::stats`.
2021-09-10 21:28:49 -04:00
Avi Weinstock 0c818ba752 Fly fishing rainbow fish now consumes stripy feathers instead of normal feathers. 2021-09-09 23:41:46 -04:00
Avi Weinstock e4419a4951 Improve mechanics relating to Tormented Demons. 2021-09-10 01:52:49 +00:00
skelsoft 42bac3233b Fix: Taverley Dungeon QA Pass 5 2021-09-06 13:30:44 +00:00
ceikry 72c426a466 Refactor more old object naming to scenery 2021-08-28 21:53:12 -05:00
ceikry 83d57bfc3c Merge remote-tracking branch 'origin/master' 2021-08-28 13:54:18 -05:00
ceikry e004e8a0d6 Fixed barcrawl 2021-08-28 13:54:08 -05:00
Avi Weinstock 57eb018c27 Make "What Lies Below" completable by fixing Zaff's dialog. 2021-08-28 13:39:23 -04:00
ceikry 7e29d24d2b Gnome stronghold gate no longer restores run energy 2021-08-28 11:59:33 -05:00
ceikry e896879f0f Fixed fire orb charging 2021-08-28 11:53:53 -05:00
ceikry eecdaa9478 Add the dusty key "mini-quest" 2021-08-28 11:46:48 -05:00
skelsoft 060ce6e549 Fix: Misc fixes, examine cleanup 2021-08-26 21:57:38 +00:00
ceikry 0dc59c29ba Add entity passthrough to destination overrides 2021-08-25 17:55:42 -05:00
ceikry cea00a6998 Merge remote-tracking branch 'origin/master' 2021-08-25 16:29:00 -05:00