From e25c0cbeef68863c0cbca8af9e605651a1eda1ba Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sun, 17 Apr 2011 14:35:46 -0700 Subject: Remove deprecated setarray-with-index syntax --- npc/031-4_Cave/cindyCave.txt | 2 +- npc/xmas/2010/golbanez.txt | 6 ++++-- npc/xmas/2010/santa.txt | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/031-4_Cave/cindyCave.txt b/npc/031-4_Cave/cindyCave.txt index e6b8702d..223aa80b 100644 --- a/npc/031-4_Cave/cindyCave.txt +++ b/npc/031-4_Cave/cindyCave.txt @@ -94,7 +94,7 @@ L_Reward: L_Wizard_Hat: // get a wizard hat in one of the ten colors - no white - setarray @wizardhats[0], 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209; + setarray @wizardhats, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209; getitem @wizardhats[@reward], 1; set @rescue_Cindy, 3; callsub S_Update_Mask; diff --git a/npc/xmas/2010/golbanez.txt b/npc/xmas/2010/golbanez.txt index 0b145ca9..f5a0e01b 100755 --- a/npc/xmas/2010/golbanez.txt +++ b/npc/xmas/2010/golbanez.txt @@ -133,8 +133,10 @@ L_Menu: "Nevermind.", Glb_nvm; // in this array the items should be filled in. Remember to change the ID when the boxes are added to item_db. - setarray @menuitem[2], "4021", "4022"; - setarray @menuvalue[2], 50000, 100000; + set @menuitem[2], 4021; + set @menuitem[3], 4022; + set @menuvalue[2], 50000; + set @menuvalue[3], 100000; mes "\"How many presents do you want to give?\""; diff --git a/npc/xmas/2010/santa.txt b/npc/xmas/2010/santa.txt index 3ef9257d..bd82a251 100755 --- a/npc/xmas/2010/santa.txt +++ b/npc/xmas/2010/santa.txt @@ -45,7 +45,7 @@ L_Skip_Dialogue: L_Calculate_Prizes: getinventorylist; if (@inventorylist_count == 100) goto L_full; - setarray @prizes[0], 1216, 629, 630, 634, 1214, 633, 628, 627, 621; + setarray @prizes, 1216, 629, 630, 634, 1214, 633, 628, 627, 621; mes "\"You are so generous! I believe I can give you one of the hats from this bag. I know you like these silly hats. Yes, Santa knows this kind of thing... Ho-Ho-Ho! Put your hand here and pick one hat... No, you cant look, it MUST be a surprise...\""; getitem @prizes[rand(8)], 1; set Xmas2010, 2; -- cgit v1.2.3-70-g09d2