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/xmas/2010/golbanez.txt | 6 ++++-- npc/xmas/2010/santa.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'npc/xmas') 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-60-g2f50