Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!newstop!sun!rushforth!kcr From: kcr%rushforth@Sun.COM (Kevin Rushforth) Newsgroups: comp.sources.games.bugs Subject: Ularn bug -- selling the same gem more than once Keywords: larn Ularn Message-ID: <114443@sun.Eng.Sun.COM> Date: 9 Jul 89 19:53:50 GMT Sender: news@sun.Eng.Sun.COM Lines: 43 There is a bug in larn that was carried over into Ularn which allows one to sell a gem an unlimited number of times. To reproduce this bug, follw these simple steps: 1. Enter the bank with one or more gems in your possesion 2. Note the inventory letter of each gem 3. Exit the bank 4. drop all your gems 5. Enter the bank -- notice that no gems are listed by the bank that you can sell. 6. Sell them anyway (using the same inventory letters that you wrote down in step 2). 7. Exit the bank 8. pick up the gems 9. repeat steps 1-8 until you have enough money to buy the lance of death (or whatever else you need). Following is a fix for this bug. It is a patch that should be applied to store.c -- this patch works for larn as well as Ularn. ------------------------------cut here------------------------------ *** store.c.old Sun Jul 9 12:42:33 1989 --- store.c Fri Jul 7 22:39:28 1989 *************** *** 536,541 **** --- 536,544 ---- if (level==8) c[TELEFLAG] = 0; + for(i = 0; i < 26; i++) + gemvalue[i] = 0; + for (k=i=0; i<26; i++) switch(iven[i]) { case OLARNEYE: ------------------------------cut here------------------------------ -- Kevin C. Rushforth | "If winning is not important, Sun Microsystems | then commander, why keep score?" | - Lt. Worf ARPA: kcr@sun.com | UUCP: !sun!kcr |