summaryrefslogtreecommitdiff
path: root/world/map/npc/052-2/chest.txt
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2025-01-08 16:04:08 +0000
committerLed Mitz <smoothshifter@tuta.io>2025-01-08 16:04:08 +0000
commit9448d4ac90c13b717e7e5a246cdbc77b826042fe (patch)
tree483f15d76c41c654f83f4a7706f32ef794f78773 /world/map/npc/052-2/chest.txt
parentfd9d9489de68ce56789446c7741265d8ffe672fc (diff)
downloadserverdata-9448d4ac90c13b717e7e5a246cdbc77b826042fe.tar.gz
serverdata-9448d4ac90c13b717e7e5a246cdbc77b826042fe.tar.bz2
serverdata-9448d4ac90c13b717e7e5a246cdbc77b826042fe.tar.xz
serverdata-9448d4ac90c13b717e7e5a246cdbc77b826042fe.zip
Better Weight Checks for Cindy, Illia and xmas quests
- for Illia if you go overweight to a certain point you can exclude bow and helm from the drops and get 1/3 chance on the heart this works on common rewards too to exclude some drops. - for cindy this prevents drops to ground - iten check was way to much on xmas core so i made it heaviest reward * 3 instead - removed weight check of santa helper since presents weight more than any of the rewards - added a comment to snowman Co-authored-by: Led Mitz <smoothshifter@tuta.io>
Diffstat (limited to 'world/map/npc/052-2/chest.txt')
-rw-r--r--world/map/npc/052-2/chest.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/052-2/chest.txt b/world/map/npc/052-2/chest.txt
index 00645c76..06d8b972 100644
--- a/world/map/npc/052-2/chest.txt
+++ b/world/map/npc/052-2/chest.txt
@@ -62,7 +62,7 @@ L_GetCommonReward:
getinventorylist;
set @index, rand(getarraysize($@illia_common_rewards$));
set @reward$, $@illia_common_rewards$[@index];
- if ((checkweight(@reward$, 1) == 0) || (@inventorylist_count == 100))
+ if ((checkweight("WarlordPlate", 1) == 0) || (@inventorylist_count == 100)) // check for the heaviest of them all here to avoid limiting chances. WarlordPlate = 2.6kg
goto L_InventoryNoSpace;
set @illia_current_num_rewards, @illia_current_num_rewards + 1;
getitem @reward$, 1;
@@ -78,7 +78,7 @@ L_GetUniqueReward:
getinventorylist;
set @index, rand(getarraysize($@illia_unique_rewards$));
set @reward$, $@illia_unique_rewards$[@index];
- if ((checkweight(@reward$, 1) == 0) || (@inventorylist_count == 100))
+ if ((checkweight("BullHelmet", 1) == 0) || (@inventorylist_count == 100)) // check for the heaviest of them all here to avoid limiting chances. BullHelmet = 1.3kg
goto L_InventoryNoSpace;
next;
mes "You notice an interesting shape hidden under a cover...";