summaryrefslogtreecommitdiff
path: root/world/map/npc/052-2/chest.txt
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-04-04 01:06:08 -0500
committerWushin <pasekei@gmail.com>2015-04-04 01:06:08 -0500
commit49efa384c76d718a444db5af1789c877176f2140 (patch)
tree27a7ac05ae75ccb3e5b25e98637e91fcad0aeb43 /world/map/npc/052-2/chest.txt
parent1d69d1222f4c28e4b24ca5ebd44e5fa3fad95e8e (diff)
parent16659723f9589d0ea31746d594907a7a62bead7c (diff)
downloadserverdata-49efa384c76d718a444db5af1789c877176f2140.tar.gz
serverdata-49efa384c76d718a444db5af1789c877176f2140.tar.bz2
serverdata-49efa384c76d718a444db5af1789c877176f2140.tar.xz
serverdata-49efa384c76d718a444db5af1789c877176f2140.zip
Merge pull request #320 from mekolat/patch-1
Update chest.txt
Diffstat (limited to 'world/map/npc/052-2/chest.txt')
-rw-r--r--world/map/npc/052-2/chest.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/world/map/npc/052-2/chest.txt b/world/map/npc/052-2/chest.txt
index 1551d171..03b08b82 100644
--- a/world/map/npc/052-2/chest.txt
+++ b/world/map/npc/052-2/chest.txt
@@ -60,12 +60,13 @@ L_GetCommonReward:
if (@illia_current_num_rewards == $@illia_num_common_reward_items)
goto L_RewardDone;
getinventorylist;
- set @reward$, $@illia_common_rewards$[rand(getarraysize($@illia_common_rewards$))];
+ set @index, rand(getarraysize($@illia_common_rewards$));
+ set @reward$, $@illia_common_rewards$[@index];
if ((checkweight(@reward$, 1) == 0) || (@inventorylist_count == 100))
goto L_InventoryNoSpace;
set @illia_current_num_rewards, @illia_current_num_rewards + 1;
getitem @reward$, 1;
- mes "You found a " + $@illia_common_rewards_n$ + "!";
+ mes "You found a " + $@illia_common_rewards_n$[@index] + "!";
set @reward$, "";
goto L_GetCommonReward;
@@ -75,7 +76,8 @@ L_GetUniqueReward:
if (Illia_Uniques_Count >= 2)
goto L_GetUniqueReward2;
getinventorylist;
- set @reward$, $@illia_unique_rewards$[rand(getarraysize($@illia_unique_rewards$))];
+ set @index, rand(getarraysize($@illia_unique_rewards$));
+ set @reward$, $@illia_unique_rewards$[@index];
if ((checkweight(@reward$, 1) == 0) || (@inventorylist_count == 100))
goto L_InventoryNoSpace;
next;
@@ -83,7 +85,7 @@ L_GetUniqueReward:
next;
set @illia_current_num_rewards, @illia_current_num_rewards + 1;
getitem @reward$, 1;
- mes "You found a " + $@illia_unique_rewards_n$ + "!";
+ mes "You found a " + $@illia_unique_rewards_n$[@index] + "!";
set Illia_Uniques_Count, Illia_Uniques_Count + 1;
set @reward$, "";
goto L_GetUniqueReward;