summaryrefslogtreecommitdiff
path: root/world/map/npc/052-2
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-03-08 17:00:51 -0500
committerWushin <pasekei@gmail.com>2015-03-08 17:00:51 -0500
commit65b3ad8a9888ea538228c2de64bb8e66d4918743 (patch)
treee329ff2cb63f1d03588149e5ee1482483f6bf8bf /world/map/npc/052-2
parent95e8332fca6bc456bf437a40fc30db51a5312d0f (diff)
parent613c825d85ca83ebfcd0f32d29aaaac3ca4fe07e (diff)
downloadserverdata-65b3ad8a9888ea538228c2de64bb8e66d4918743.tar.gz
serverdata-65b3ad8a9888ea538228c2de64bb8e66d4918743.tar.bz2
serverdata-65b3ad8a9888ea538228c2de64bb8e66d4918743.tar.xz
serverdata-65b3ad8a9888ea538228c2de64bb8e66d4918743.zip
Merge pull request #286 from mekolat/illia-id
make illia chest use item names
Diffstat (limited to 'world/map/npc/052-2')
-rw-r--r--world/map/npc/052-2/chest.txt26
1 files changed, 14 insertions, 12 deletions
diff --git a/world/map/npc/052-2/chest.txt b/world/map/npc/052-2/chest.txt
index 7ba0d2df..1551d171 100644
--- a/world/map/npc/052-2/chest.txt
+++ b/world/map/npc/052-2/chest.txt
@@ -30,8 +30,10 @@ L_ShouldNotBeHere:
end;
OnInit:
- setarray $@illia_item_common_rewards, 601, 636, 637, 638, 639, 625, 626, 658, 571, 579, 876, 782, 545, 758, 4028, 602, 536, 720, 532, 570, 642;
- setarray $@illia_item_unique_rewards, 877, 878, 879, 880;
+ setarray $@illia_common_rewards$, "SteelShield", "WarlordHelmet", "KnightsHelmet", "InfantryHelmet", "CrusadeHelmet", "ChainmailShirt", "LightPlatemail", "WarlordPlate", "Setzer", "RockKnife", "WarlordBoots", "ForestArmor", "ForestBow", "WoodenStaff", "WizardHat", "WoodenShield", "ShortSword", "SilkRobe", "LeatherGloves", "BoneKnife", "JeansChaps";
+ setarray $@illia_common_rewards_n$, "Steel Shield", "Warlord Helmet", "Knights Helmet", "Infantry Helmet", "Crusade Helmet", "Chainmail Shirt", "Light Platemail", "Warlord Plate", "Setzer", "Rock Knife", "Warlord Boots", "Forest Armor", "Forest Bow", "Wooden Staff", "Wizard Hat", "Wooden Shield", "Short Sword", "Silk Robe", "Leather Gloves", "Bone Knife", "Jeans Chaps";
+ setarray $@illia_unique_rewards$, "BullHelmet", "BansheeBow", "HeartOfIsis", "LazuriteRobe";
+ setarray $@illia_unique_rewards_n$, "Bull Helmet", "Banshee Bow", "Heart of Isis", "Lazurite Robe";
end;
L_ResumePick:
@@ -58,13 +60,13 @@ L_GetCommonReward:
if (@illia_current_num_rewards == $@illia_num_common_reward_items)
goto L_RewardDone;
getinventorylist;
- set @reward, $@illia_item_common_rewards[rand(getarraysize($@illia_item_common_rewards))];
- if ((checkweight(@reward, 1) == 0) || (@inventorylist_count == 100))
+ set @reward$, $@illia_common_rewards$[rand(getarraysize($@illia_common_rewards$))];
+ 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 " + getitemname(@reward) + "!";
- set @reward, 0;
+ getitem @reward$, 1;
+ mes "You found a " + $@illia_common_rewards_n$ + "!";
+ set @reward$, "";
goto L_GetCommonReward;
L_GetUniqueReward:
@@ -73,17 +75,17 @@ L_GetUniqueReward:
if (Illia_Uniques_Count >= 2)
goto L_GetUniqueReward2;
getinventorylist;
- set @reward, $@illia_item_unique_rewards[rand(getarraysize($@illia_item_unique_rewards))];
- if ((checkweight(@reward, 1) == 0) || (@inventorylist_count == 100))
+ set @reward$, $@illia_unique_rewards$[rand(getarraysize($@illia_unique_rewards$))];
+ if ((checkweight(@reward$, 1) == 0) || (@inventorylist_count == 100))
goto L_InventoryNoSpace;
next;
mes "You notice an interesting shape hidden under a cover...";
next;
set @illia_current_num_rewards, @illia_current_num_rewards + 1;
- getitem @reward, 1;
- mes "You found a " + getitemname(@reward) + "!";
+ getitem @reward$, 1;
+ mes "You found a " + $@illia_unique_rewards_n$ + "!";
set Illia_Uniques_Count, Illia_Uniques_Count + 1;
- set @reward, 0;
+ set @reward$, "";
goto L_GetUniqueReward;
L_GetUniqueReward2: