From 5725af0f6b32461c4b7a2fed0c9b0991c293d3c4 Mon Sep 17 00:00:00 2001 From: Blst34 <85366425+Blst34@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:37:36 +0200 Subject: [PATCH] Add files via upload --- .../RareDropNotifications.2___.patch.s | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 system/client-functions/RareDropNotifications/RareDropNotifications.2___.patch.s diff --git a/system/client-functions/RareDropNotifications/RareDropNotifications.2___.patch.s b/system/client-functions/RareDropNotifications/RareDropNotifications.2___.patch.s new file mode 100644 index 00000000..7ce6505e --- /dev/null +++ b/system/client-functions/RareDropNotifications/RareDropNotifications.2___.patch.s @@ -0,0 +1,107 @@ +.meta name="Rare alerts" +.meta description="Show rare items on\nthe map and play a\nsound when a rare\nitem drops" +# Inspired by and adapted from the original patch for Ep1&2 made by Ralf @ GC-Forever and Aleron Ives +# https://www.gc-forever.com/forums/viewtopic.php?t=2050 +# https://www.gc-forever.com/forums/viewtopic.php?t=2049 + +.versions 2OJF 2OJ5 2OEF 2OPF + +entry_ptr: +reloc0: + .offsetof start +start: + .include WriteCodeBlocksDC + + + #replace function call from command 6x5f to call to custom code for sound + .align 4 + .data + .data 4 + .data + + #replace function call from TItem::update in the case when the item is on the ground + .align 4 + .data + .data 4 + .data + + #custom code that goes to check if item is rare and in the area the player is in and plays sound if it is + .align 4 + .data + .data 72 + .data 0x400BD00C + .data 0x67E0E500 + .data 0x6000D00B + .data 0x8B0C3700 + .data 0x65E3D00A + .data 0x400B7510 + .data 0x88006552 + .data 0xD4088905 + .data 0xD008E700 + .data 0x400B6673 + .data 0x7F106573 + .data 0x000B4F26 + .data 0x00096EF6 + .data + .data + .data + .data 0x00050013 + .data + + + + + #custom code for checking if an item is rare or not (from r5) + .align 4 + .data + .data 68 + .data 0x8800605C + .data 0x45198B06 + .data 0xE60C605C + .data 0x89173066 + .data 0xE000000B + .data 0x8B0A8801 + .data 0x605C4519 + .data 0x89048803 + .data 0x605C4519 + .data 0x3066E616 + .data 0x000B890A + .data 0x8803E000 + .data 0x45198B04 + .data 0xE60B605C + .data 0x89013066 + .data 0xE000000B + .data 0xE001000B + + + #custom code for checking if item is rare, then showing a dot on the map with color FF0000 if it is + .align 4 + .data + .data 88 + .data 0x767F66E3 + .data 0x763C767F + .data 0xE7026560 + .data 0x45183678 + .data 0x250B6060 + .data 0x45183678 + .data 0x250B6060 + .data 0x45183678 + .data 0xD0096760 + .data 0x257B400B + .data 0x89068800 + .data 0xD00764E3 + .data 0x743CD507 + .data 0x400BE700 + .data 0x64E3E601 + .data 0x400BD005 + .data 0x4F260009 + .data 0x6EF6000B + .data + .data + .data 0xFFFF0000 + .data + + + .align 4 + .data 0x00000000 + .data 0x00000000