From 613c825d85ca83ebfcd0f32d29aaaac3ca4fe07e Mon Sep 17 00:00:00 2001 From: mekolat Date: Sat, 21 Feb 2015 08:24:14 -0500 Subject: make illia chest use aegis names --- world/map/npc/052-2/chest.txt | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'world/map/npc/052-2') 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: -- cgit v1.2.3-60-g2f50