  IF ~~ THEN BEGIN c2itemupgrade
    SAY #59707 /* ~Hmmmn... I couldn't rightly say.  Let me have a look into yer goods, then.  A minute of rummagin' and I'll know fer sure, aye?~ */
    IF ~~ THEN REPLY @12340 GOTO 13
    IF ~OR(3) PartyHasItem("ring06") PartyHasItem("cdpp11") PartyHasItem("c!pp11")~ THEN REPLY @12342 GOTO rop1
    IF ~OR(6) PartyHasItem("ring07") PartyHasItem("cdpp12") PartyHasItem("c!pp12") PartyHasItem("bdring07") PartyHasItem("cdpp29") PartyHasItem("c!pp29")~ THEN REPLY @12343 GOTO rop2
    IF ~OR(3) PartyHasItem("ring41") PartyHasItem("cdpp14") PartyHasItem("c!pp14")~ THEN REPLY @12350 GOTO rop3
    IF ~OR(3) PartyHasItem("ring27") 
              PartyHasItem("ring28") 
              PartyHasItem("ring29")~ 
      THEN REPLY @12344 GOTO roem
    IF ~OR(3) PartyHasItem("staf15") 
              PartyHasItem("staf16") 
              PartyHasItem("staf17")~ 
      THEN REPLY @12345 GOTO soem
    IF ~PartyHasItem("boot02")~ THEN REPLY @12346 GOTO b_stealth
    IF ~PartyHasItem("boot03")~ THEN REPLY @12347 GOTO b_north
    IF ~PartyHasItem("boot05")~ THEN REPLY @12348 GOTO b_ground
    IF ~PartyHasItem("boot04")~ THEN REPLY @12349 GOTO b_avoid
    IF ~PartyHasItem("blun22")~ THEN REPLY @123410 GOTO pitch
    IF ~PartyHasItem("blun23")~ THEN REPLY @123411 GOTO fulcrum
    IF ~PartyHasItem("blun18")~ THEN REPLY @123412 GOTO skull
    IF ~PartyHasItem("bow10")~ THEN REPLY @123413 GOTO teleo
    IF ~PartyHasItem("npchan")~ THEN REPLY @123414 GOTO valy
    IF ~Global("CD_SCS_Contingency","MYAREA",0)
        OR(4) PartyHasItem("clck15")
              PartyHasItem("clck16")
              PartyHasItem("clck17")
              PartyHasItem("clck19")~
      THEN REPLY @123415 GOTO robe_contin
    IF ~Global("CD_SCS_Contingency","MYAREA",1)
        OR(4) PartyHasItem("clck15")
              PartyHasItem("clck16")
              PartyHasItem("clck17")
              PartyHasItem("clck19")~
      THEN REPLY @123415 GOTO robe_goi
    IF ~PartyHasItem("helm04")~ THEN REPLY @123416 GOTO cita
    IF ~PartyHasItem("helm06")~ THEN REPLY @123417 GOTO will
    IF ~PartyHasItem("leat20")~ THEN REPLY @123418 GOTO aeger
    IF ~PartyHasItem("npplat")~ THEN REPLY @123419 GOTO keld_a
    IF ~PartyHasItem("plat06")~ THEN REPLY @123420 GOTO ankheg
    IF ~PartyHasItem("shld25")~ THEN REPLY @123421 GOTO harmony
    IF ~PartyHasItem("sper06")~ THEN REPLY @123422 GOTO spear1
    IF ~PartyHasItem("sper07")~ THEN REPLY @123423 GOTO spear2
    IF ~PartyHasItem("sper08")~ THEN REPLY @123424 GOTO spear3
    IF ~PartyHasItem("staf14")~ THEN REPLY @123425 GOTO stafw
    IF ~PartyHasItem("sw1h31")~ THEN REPLY @123426 GOTO day
    IF ~OR(3) PartyHasItem("sw1h51") PartyHasItem("cdkt23") PartyHasItem("c!kt23")~ THEN REPLY @123427 GOTO cf
    IF ~PartyHasItem("npsw01")~ THEN REPLY @123428 GOTO mazzy
    IF ~PartyHasItem("npsw03")~ THEN REPLY @123429 GOTO keld_s
    IF ~PartyHasItem("npshld")~ THEN REPLY @123430 GOTO anomen
    IF ~PartyHasItem("sw2h14")~ THEN REPLY @123431 GOTO lil
    IF ~OR(2) PartyHasItem("dagg14") PartyHasItem("dagg13")~ 
      THEN REPLY @123432 GOTO dagg
    IF ~PartyHasItem("shld17")~ THEN REPLY @123433 GOTO buckler
    IF ~PartyHasItem("brac17")~ THEN REPLY @123434 GOTO thief
    IF ~OR(3) PartyHasItem("amul22") PartyHasItem("amul24") PartyHasItem("amul25")~ THEN REPLY @123437 GOTO ilmater
    IF ~PartyHasItem("sw1h52")~ THEN REPLY @123438 GOTO water
    IF ~PartyHasItem("ax1h10")~ THEN REPLY @123439 GOTO azur
    IF ~OR(3) PartyHasItem("ring08") PartyHasItem("ring08a") PartyHasItem("ohringwi")~ THEN REPLY @123484 GOTO sorcerian
    IF ~OR(2) PartyHasItem("belt03") PartyHasItem("bdbelt13")~ THEN REPLY @123482 GOTO girdle
    IF ~PartyHasItem("misc3e")~ THEN REPLY @123495 GOTO kitthix
    IF ~PartyHasItem("npsw05")~ THEN REPLY @123497 GOTO hd
    IF ~PartyHasItem("chan14")~ THEN REPLY @123499 GOTO chan01
    IF ~~ THEN REPLY #992 EXIT 
  END

  IF ~~ THEN BEGIN rop1
    SAY @123440 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~!PartyHasItem("c!pp11") !PartyHasItem("cdpp11") PartyHasItem("ring06") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~!PartyHasItem("c!pp11") PartyHasItem("cdpp11") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("cdpp11",1)   DestroyItem("cdpp11")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("c!pp11") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("c!pp11",1)   DestroyItem("c!pp11")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN rop2
    SAY @123441 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~!PartyHasItem("c!pp29") !PartyHasItem("cdpp29") !PartyHasItem("bdring07") 
        !PartyHasItem("c!pp12") !PartyHasItem("cdpp12") PartyHasItem("ring07") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring07",1)   DestroyItem("ring07")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~!PartyHasItem("c!pp29") !PartyHasItem("cdpp29") !PartyHasItem("bdring07") 
        !PartyHasItem("c!pp12") PartyHasItem("cdpp12") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("cdpp12",1)   DestroyItem("cdpp12")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~!PartyHasItem("c!pp29") !PartyHasItem("cdpp29") !PartyHasItem("bdring07") 
        PartyHasItem("c!pp12") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("c!pp12",1)   DestroyItem("c!pp12")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~!PartyHasItem("c!pp29") !PartyHasItem("cdpp29") PartyHasItem("bdring07") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("bdring07",1) DestroyItem("bdring07")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~!PartyHasItem("c!pp29") PartyHasItem("cdpp29") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("cdpp29",1)   DestroyItem("cdpp29")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("c!pp29") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("c!pp29",1)   DestroyItem("c!pp29")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN rop3
    SAY @12351 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~!PartyHasItem("c!pp14") !PartyHasItem("cdpp14") PartyHasItem("ring41") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(29999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(30000)      DestroyGold(30000)
          TakePartyItemNum("ring41",1)   DestroyItem("ring41")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring05",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~!PartyHasItem("c!pp14") PartyHasItem("cdpp14") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(29999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(30000)      DestroyGold(30000)
          TakePartyItemNum("cdpp14",1)   DestroyItem("cdpp14")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring05",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("c!pp14") PartyHasItem("ring31") PartyHasItem("misc42")
        PartyGoldGT(29999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(30000)      DestroyGold(30000)
          TakePartyItemNum("c!pp14",1)   DestroyItem("c!pp14")
          TakePartyItemNum("ring31",1)   DestroyItem("ring31")
          TakePartyItemNum("misc42",1)   DestroyItem("misc42")
          GiveItemCreate("c2ring05",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN roem
    SAY @123442 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("ring27") PartyHasItem("ring28") PartyHasItem("ring29")
        PartyHasItem("scrl15") PartyHasItem("scrl05") PartyHasItem("scrl06")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring27",1)   DestroyItem("ring27")
          TakePartyItemNum("ring28",1)   DestroyItem("ring28")
          TakePartyItemNum("ring29",1)   DestroyItem("ring29")
          TakePartyItemNum("scrl15",1)   DestroyItem("scrl15")
          TakePartyItemNum("scrl05",1)   DestroyItem("scrl05")
          TakePartyItemNum("scrl06",1)   DestroyItem("scrl06")
          GiveItemCreate("c2ring03",Player1,3,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN soem
    SAY @123443 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("staf15") PartyHasItem("staf16") PartyHasItem("staf17")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("staf15",1)   DestroyItem("staf15")
          TakePartyItemNum("staf16",1)   DestroyItem("staf16")
          TakePartyItemNum("staf17",1)   DestroyItem("staf17")
          GiveItemCreate("c2staf01",Player1,2,1,2)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END
          
  IF ~~ THEN BEGIN b_stealth SAY @123444 
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("boot02") PartyHasItem("boot01") !PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("boot01",1)   DestroyItem("boot01")
          TakePartyItemNum("boot02",1)   DestroyItem("boot02")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("boot02") PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("bdboot05",1) DestroyItem("bdboot05")
          TakePartyItemNum("boot02",1)   DestroyItem("boot02")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN b_north SAY @123445 
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("boot03") PartyHasItem("boot01") !PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("boot01",1)   DestroyItem("boot01")
          TakePartyItemNum("boot03",1)   DestroyItem("boot03")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("boot03") PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("bdboot05",1) DestroyItem("bdboot05")
          TakePartyItemNum("boot03",1)   DestroyItem("boot03")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN b_ground SAY @123446 
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("boot05") PartyHasItem("boot01") !PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("boot01",1)   DestroyItem("boot01")
          TakePartyItemNum("boot05",1)   DestroyItem("boot05")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("boot05") PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("bdboot05",1) DestroyItem("bdboot05")
          TakePartyItemNum("boot05",1)   DestroyItem("boot05")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN b_avoid SAY @123447 
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("boot04") PartyHasItem("boot01") !PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(19999)~
      THEN REPLY @123436  // boot03 = boot of hornet
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("boot01",1)   DestroyItem("boot01")
          TakePartyItemNum("boot04",1)   DestroyItem("boot04")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("boot04") PartyHasItem("bdboot05") PartyHasItem("misc45")
        PartyGoldGT(19999)~
      THEN REPLY @123436  // boot03 = boot of hornet
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("bdboot05",1) DestroyItem("bdboot05")
          TakePartyItemNum("boot04",1)   DestroyItem("boot04")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2boot03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN pitch
    SAY @123448 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("blun22") PartyHasItem("blun24")
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("blun22",1)   DestroyItem("blun22")
          TakePartyItemNum("blun24",1)   DestroyItem("blun24")
          GiveItemCreate("c2blun01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN fulcrum
    SAY @123449 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("blun23") PartyHasItem("blun24")
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("blun23",1)   DestroyItem("blun23")
          TakePartyItemNum("blun24",1)   DestroyItem("blun24")
          GiveItemCreate("c2blun03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN skull
    SAY @123450 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("blun18") PartyHasItem("scrl8O") PartyHasItem("potn25")
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("blun18",1)   DestroyItem("blun18")
          TakePartyItemNum("scrl8o",1)   DestroyItem("scrl8o")
          TakePartyItemNum("potn25",1)   DestroyItem("potn25")
          GiveItemCreate("c2blun02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN teleo
    SAY @123451 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("bow10") PartyHasItem("bow19b") PartyHasItem("potn41")
        NumItemsPartyGT("amul12",3)~
      THEN REPLY @123452 
      DO ~TakePartyItemNum("bow10",1)    DestroyItem("bow10")
          TakePartyItemNum("bow19b",1)   DestroyItem("bow19b")
          TakePartyItemNum("potn41",1)   DestroyItem("potn41")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          GiveItemCreate("c2bow01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("bow10") PartyHasItem("compon10") PartyHasItem("potn41")
        NumItemsPartyGT("amul12",3)~
      THEN REPLY @123453 
      DO ~TakePartyItemNum("bow10",1)    DestroyItem("bow10")
          TakePartyItemNum("compon10",1) DestroyItem("compon10")
          TakePartyItemNum("potn41",1)   DestroyItem("potn41")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          TakePartyItemNum("amul12",1)   DestroyItem("amul12")
          GiveItemCreate("c2bow01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN valy
    SAY @123454 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("npchan") PartyHasItem("leat19") PartyHasItem("scrl07")
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("npchan",1)   DestroyItem("npchan")
          TakePartyItemNum("leat19",1)   DestroyItem("leat19")
          TakePartyItemNum("scrl07",1)   DestroyItem("scrl07")
          GiveItemCreate("c2valy01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN robe_contin
    SAY @12349955 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("clck15") !PartyHasItem("clck19") PartyHasItem("clck01") !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck15",1)   DestroyItem("clck15")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck15") !PartyHasItem("clck19") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck15",1)   DestroyItem("clck15")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck15") !PartyHasItem("clck19") PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck15",1)   DestroyItem("clck15")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck19") PartyHasItem("clck01") !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck19",1)   DestroyItem("clck19")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck19") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck19",1)   DestroyItem("clck19")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck19") PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck19",1)   DestroyItem("clck19")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck16") PartyHasItem("clck01")  !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123457 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck16",1)   DestroyItem("clck16")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck16") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123457 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck16",1)   DestroyItem("clck16")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck16") PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123457 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck16",1)   DestroyItem("clck16")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck17") PartyHasItem("clck01")   !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123458 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck17",1)   DestroyItem("clck17")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck17") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123458 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck17",1)   DestroyItem("clck17")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck17") PartyHasItem("c!pp8")
        PartyHasItem("scrl7u") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123458 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck17",1)   DestroyItem("clck17")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7u",1)   DestroyItem("scrl7u")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN robe_goi
    SAY @12349956 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("clck15") !PartyHasItem("clck19") PartyHasItem("clck01") !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck15",1)   DestroyItem("clck15")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck15") !PartyHasItem("clck19") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck15",1)   DestroyItem("clck15")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck15") !PartyHasItem("clck19") PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck15",1)   DestroyItem("clck15")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck19") PartyHasItem("clck01") !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck19",1)   DestroyItem("clck19")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck19") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck19",1)   DestroyItem("clck19")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck19") PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123456 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck19",1)   DestroyItem("clck19")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck16") PartyHasItem("clck01")  !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123457 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck16",1)   DestroyItem("clck16")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck16") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123457 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck16",1)   DestroyItem("clck16")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck16") PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123457 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck16",1)   DestroyItem("clck16")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck17") PartyHasItem("clck01")   !PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123458 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck17",1)   DestroyItem("clck17")
          TakePartyItemNum("clck01",1)   DestroyItem("clck01")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck17") PartyHasItem("cdpp8")  !PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123458 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck17",1)   DestroyItem("clck17")
          TakePartyItemNum("cdpp8",1)   DestroyItem("cdpp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("clck17") PartyHasItem("c!pp8")
        PartyHasItem("scrl7f") PartyHasItem("scrl5k")
        PartyGoldGT(19999)~
      THEN REPLY @123458 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("clck17",1)   DestroyItem("clck17")
          TakePartyItemNum("c!pp8",1)   DestroyItem("c!pp8")
          TakePartyItemNum("scrl7f",1)   DestroyItem("scrl7f")
          TakePartyItemNum("scrl5k",1)   DestroyItem("scrl5k")
          GiveItemCreate("c2robe03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN cita
    SAY @123459 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("helm04") PartyHasItem("helm06") 
        NumItemsPartyGT("misc36",3) PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("helm04",1)   DestroyItem("helm04")
          TakePartyItemNum("helm06",1)   DestroyItem("helm06")
          TakePartyItemNum("misc36",1)   DestroyItem("misc36")
          TakePartyItemNum("misc36",1)   DestroyItem("misc36")
          TakePartyItemNum("misc36",1)   DestroyItem("misc36")
          TakePartyItemNum("misc36",1)   DestroyItem("misc36")
          GiveItemCreate("c2helm01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN will
    SAY @123460 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("helm06") 
        NumItemsPartyGT("misc9y",1) PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("helm06",1)   DestroyItem("helm06")
          TakePartyItemNum("misc9y",1)   DestroyItem("misc9y")
          TakePartyItemNum("misc9y",1)   DestroyItem("misc9y")
          GiveItemCreate("c2helm02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN aeger
    SAY @123461 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("leat20") PartyHasItem("scrl8e") 
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("leat20",1)   DestroyItem("leat20")
          TakePartyItemNum("scrl8e",1)   DestroyItem("scrl8e")
          GiveItemCreate("c2hide01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN keld_a
    SAY @123462 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("npplat") PartyHasItem("plat16") 
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("npplat",1)   DestroyItem("npplat")
          TakePartyItemNum("plat16",1)   DestroyItem("plat16")
          GiveItemCreate("c2keld01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN ankheg
    SAY @123463 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("plat06") PartyHasItem("scrl03") PartyHasItem("scrl6y") 
        PartyGoldGT(4999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(5000)      DestroyGold(5000)
          TakePartyItemNum("plat06",1)   DestroyItem("plat06")
          TakePartyItemNum("scrl03",1)   DestroyItem("scrl03")
          TakePartyItemNum("scrl6y",1)   DestroyItem("scrl6y")
          GiveItemCreate("c2plat01",Player1,3,3,3)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN harmony
    SAY @123464 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("shld25") PartyHasItem("misc9x") PartyHasItem("misc6z") 
        NumItemsPartyGT("misc9y",1) PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("shld25",1)   DestroyItem("shld25")
          TakePartyItemNum("misc9x",1)   DestroyItem("misc9x")
          TakePartyItemNum("misc6z",1)   DestroyItem("misc6z")
          TakePartyItemNum("misc9y",1)   DestroyItem("misc9y")
          TakePartyItemNum("misc9y",1)   DestroyItem("misc9y")
          GiveItemCreate("c2shld01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN spear1
    SAY @123465 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sper06") PartyHasItem("misc45") PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("sper06",1)   DestroyItem("sper06")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2sper01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN spear2
    SAY @123466 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sper07") PartyHasItem("misc45") PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("sper07",1)   DestroyItem("sper07")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2sper02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN spear3
    SAY @123467 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sper08") PartyHasItem("misc45") PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("sper08",1)   DestroyItem("sper08")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          GiveItemCreate("c2sper03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN stafw
    SAY @123468 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("staf14") PartyHasItem("ring03") PartyHasItem("ring06")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("staf14",1)   DestroyItem("staf14")
          TakePartyItemNum("ring03",1)   DestroyItem("ring03")
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          GiveItemCreate("c2staf02",Player1,6,6,6)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN day
    SAY @123469 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sw1h31") 
        NumItemsPartyGT("scrl09",3)
        NumItemsPartyGT("miscau",1)
        NumItemsPartyGT("misc41",1)
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyItemNum("sw1h31",1)   DestroyItem("sw1h31")
          TakePartyItemNum("scrl09",1)   DestroyItem("scrl09")
          TakePartyItemNum("scrl09",1)   DestroyItem("scrl09")
          TakePartyItemNum("scrl09",1)   DestroyItem("scrl09")
          TakePartyItemNum("scrl09",1)   DestroyItem("scrl09")
          TakePartyItemNum("miscau",1)   DestroyItem("miscau")
          TakePartyItemNum("miscau",1)   DestroyItem("miscau")
          TakePartyItemNum("misc41",1)   DestroyItem("misc41")
          TakePartyItemNum("misc41",1)   DestroyItem("misc41")
          TakePartyGold(15000)           DestroyGold(15000)
          GiveItemCreate("c2sw1h01",Player1,2,2,2)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN cf
    SAY @123470 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sw1h51") PartyHasItem("wand07") PartyHasItem("misc6m") !PartyHasItem("plot02i") !PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("sw1h51",1)   DestroyItem("sw1h51")
          TakePartyItemNum("misc6m",1)   DestroyItem("misc6m")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("sw1h51") PartyHasItem("wand07") PartyHasItem("plot02i") !PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("sw1h51",1)   DestroyItem("sw1h51")
          TakePartyItemNum("plot02i",1)   DestroyItem("plot02i")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("sw1h51") PartyHasItem("wand07") PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("sw1h51",1)   DestroyItem("sw1h51")
          TakePartyItemNum("plot02j",1)   DestroyItem("plot02j")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("cdkt23") PartyHasItem("wand07") PartyHasItem("misc6m") !PartyHasItem("plot02i") !PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("cdkt23",1)   DestroyItem("cdkt23")
          TakePartyItemNum("misc6m",1)   DestroyItem("misc6m")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("cdkt23") PartyHasItem("wand07") PartyHasItem("plot02i") !PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("cdkt23",1)   DestroyItem("cdkt23")
          TakePartyItemNum("plot02i",1)   DestroyItem("plot02i")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("cdkt23") PartyHasItem("wand07") PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("cdkt23",1)   DestroyItem("cdkt23")
          TakePartyItemNum("plot02j",1)   DestroyItem("plot02j")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("c!kt23") PartyHasItem("wand07") PartyHasItem("misc6m") !PartyHasItem("plot02i") !PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("c!kt23",1)   DestroyItem("c!kt23")
          TakePartyItemNum("misc6m",1)   DestroyItem("misc6m")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("c!kt23") PartyHasItem("wand07") PartyHasItem("plot02i") !PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("c!kt23",1)   DestroyItem("c!kt23")
          TakePartyItemNum("plot02i",1)   DestroyItem("plot02i")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("c!kt23") PartyHasItem("wand07") PartyHasItem("plot02j")
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("c!kt23",1)   DestroyItem("c!kt23")
          TakePartyItemNum("plot02j",1)   DestroyItem("plot02j")
          TakePartyItemNum("wand07",1)   DestroyItem("wand07")
          GiveItemCreate("c2sw1h02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN mazzy
    SAY @123471 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("npsw01") 
        Reputation(Player1,20)
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("npsw01",1)   DestroyItem("npsw01")
          GiveItemCreate("c2mazz01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN keld_s
    SAY @123472 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("npsw03") PartyHasItem("misc6m") 
        NumItemsPartyGT("scrl1e",4)
        Reputation(Player1,20)
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("npsw03",1)   DestroyItem("npsw03")
          TakePartyItemNum("misc6m",1)   DestroyItem("misc6m")
          TakePartyItemNum("scrl1e",1)   DestroyItem("scrl1e")
          TakePartyItemNum("scrl1e",1)   DestroyItem("scrl1e")
          TakePartyItemNum("scrl1e",1)   DestroyItem("scrl1e")
          TakePartyItemNum("scrl1e",1)   DestroyItem("scrl1e")
          TakePartyItemNum("scrl1e",1)   DestroyItem("scrl1e")
          GiveItemCreate("c2keld02",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN anomen
    SAY @123473 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("npshld") 
        PartyHasItem("shld27") 
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("npshld",1)   DestroyItem("npshld")
          TakePartyItemNum("shld27",1)   DestroyItem("shld27")
          GiveItemCreate("c2anom01",Player1,2,2,2)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN lil
    SAY @123474 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sw2h14") 
        PartyHasItem("misc9x") 
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("sw2h14",1)   DestroyItem("sw2h14")
          TakePartyItemNum("misc9x",1)   DestroyItem("misc9x")
          GiveItemCreate("c2sw2h01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN dagg
    SAY @123475 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("dagg14") 
        PartyHasItem("dagg13") 
        NumItemsPartyGT("potn36",3)
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("dagg14",1)   DestroyItem("dagg14")
          TakePartyItemNum("dagg13",1)   DestroyItem("dagg13")
          TakePartyItemNum("potn36",1)   DestroyItem("potn36")
          TakePartyItemNum("potn36",1)   DestroyItem("potn36")
          TakePartyItemNum("potn36",1)   DestroyItem("potn36")
          TakePartyItemNum("potn36",1)   DestroyItem("potn36")
          GiveItemCreate("c2dagg01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN buckler
    SAY @123476 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("shld17") PartyHasItem("key23") 
        NumItemsPartyGT("misc18",4)
        PartyGoldGT(9999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
          TakePartyItemNum("shld17",1)   DestroyItem("shld17")
          TakePartyItemNum("key23",1)   DestroyItem("key23")
          TakePartyItemNum("misc18",1)   DestroyItem("misc18")
          TakePartyItemNum("misc18",1)   DestroyItem("misc18")
          TakePartyItemNum("misc18",1)   DestroyItem("misc18")
          TakePartyItemNum("misc18",1)   DestroyItem("misc18")
          TakePartyItemNum("misc18",1)   DestroyItem("misc18")
          GiveItemCreate("c2shld02",Player1,2,2,2)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN thief
    SAY @123477 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("brac17") PartyHasItem("brac14") 
        PartyHasItem("ring35") PartyHasItem("ring36") 
        NumItemsPartyGT("ring06",1)
        PartyGoldGT(4999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(5000)      DestroyGold(5000)
          TakePartyItemNum("brac17",1)   DestroyItem("brac17")
          TakePartyItemNum("brac14",1)   DestroyItem("brac14")
          TakePartyItemNum("ring35",1)   DestroyItem("ring35")
          TakePartyItemNum("ring36",1)   DestroyItem("ring36")
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          GiveItemCreate("c2brac01",Player1,2,2,2)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN ilmater
    SAY @123478
  IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsPartyGT("amul14",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsPartyGT("bdamul24",1)
    !NumItemsPartyGT("amul14",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
  DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsPartyGT("cdpp7",1)
    !NumItemsPartyGT("amul14",1)
    !NumItemsPartyGT("bdamul24",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("cdpp7",1) DestroyItem("cdpp7")
    TakePartyItemNum("cdpp7",1) DestroyItem("cdpp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsPartyGT("c!pp7",1)
    !NumItemsPartyGT("amul14",1)
    !NumItemsPartyGT("bdamul24",1)
    !NumItemsPartyGT("cdpp7",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("c!pp7",1) DestroyItem("c!pp7")
    TakePartyItemNum("c!pp7",1) DestroyItem("c!pp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsPartyGT("cdpp26",1)
    !NumItemsPartyGT("amul14",1)
    !NumItemsPartyGT("bdamul24",1)
    !NumItemsPartyGT("cdpp7",1)
    !NumItemsPartyGT("c!pp7",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("cdpp26",1) DestroyItem("cdpp26")
    TakePartyItemNum("cdpp26",1) DestroyItem("cdpp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsPartyGT("c!pp26",1)
    !NumItemsPartyGT("amul14",1)
    !NumItemsPartyGT("bdamul24",1)
    !NumItemsPartyGT("cdpp7",1)
    !NumItemsPartyGT("c!pp7",1)
    !NumItemsPartyGT("cdpp26",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("c!pp26",1) DestroyItem("c!pp26")
    TakePartyItemNum("c!pp26",1) DestroyItem("c!pp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("amul14",1)
    NumItemsParty("bdamul24",1)
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("amul14",1)
    NumItemsParty("c!pp7",1)
    !PartyHasItem("bdamul24")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    TakePartyItemNum("c!pp7",1) DestroyItem("c!pp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("amul14",1)
    NumItemsParty("cdpp7",1)
    !PartyHasItem("bdamul24")
    !PartyHasItem("c!pp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    TakePartyItemNum("cdpp7",1) DestroyItem("cdpp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("amul14",1)
    NumItemsParty("c!pp26",1)
    !PartyHasItem("bdamul24")
    !PartyHasItem("c!pp7")
    !PartyHasItem("cdpp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    TakePartyItemNum("c!pp26",1) DestroyItem("c!pp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("amul14",1)
    NumItemsParty("cdpp26",1)
    !PartyHasItem("bdamul24")
    !PartyHasItem("c!pp7")
    !PartyHasItem("cdpp7")
    !PartyHasItem("c!pp26")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("amul14",1) DestroyItem("amul14")
    TakePartyItemNum("cdpp26",1) DestroyItem("cdpp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("bdamul24",1)
    NumItemsParty("c!pp7",1)
    !PartyHasItem("amul14")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    TakePartyItemNum("c!pp7",1)    DestroyItem("c!pp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("bdamul24",1)
    NumItemsParty("cdpp7",1)
    !PartyHasItem("amul14")
    !PartyHasItem("c!pp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    TakePartyItemNum("cdpp7",1)    DestroyItem("cdpp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("bdamul24",1)
    NumItemsParty("c!pp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("c!pp7")
    !PartyHasItem("cdpp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    TakePartyItemNum("c!pp26",1)   DestroyItem("c!pp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("bdamul24",1)
    NumItemsParty("cdpp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("c!pp7")
    !PartyHasItem("cdpp7")
    !PartyHasItem("c!pp26")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("bdamul24",1) DestroyItem("bdamul24")
    TakePartyItemNum("cdpp26",1)   DestroyItem("cdpp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("c!pp7",1)
    NumItemsParty("cdpp7",1)
    !PartyHasItem("amul14")
    !PartyHasItem("bdamul24")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("c!pp7",1) DestroyItem("c!pp7")
    TakePartyItemNum("cdpp7",1) DestroyItem("cdpp7")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("c!pp7",1)
    NumItemsParty("c!pp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("bdamul24")
    !PartyHasItem("cdpp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("c!pp7",1)  DestroyItem("c!pp7")
    TakePartyItemNum("c!pp26",1) DestroyItem("c!pp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("c!pp7",1)
    NumItemsParty("cdpp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("bdamul24")
    !PartyHasItem("cdpp7")
    !PartyHasItem("c!pp26")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("c!pp7",1)  DestroyItem("c!pp7")
    TakePartyItemNum("cdpp26",1) DestroyItem("cdpp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("cdpp7",1)
    NumItemsParty("c!pp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("bdamul24")
    !PartyHasItem("c!pp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("cdpp7",1)  DestroyItem("cdpp7")
    TakePartyItemNum("c!pp26",1) DestroyItem("c!pp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("cdpp7",1)
    NumItemsParty("cdpp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("bdamul24")
    !PartyHasItem("c!pp7")
    !PartyHasItem("c!pp26")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("cdpp7",1)  DestroyItem("cdpp7")
    TakePartyItemNum("cdpp26",1) DestroyItem("cdpp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

  IF ~PartyHasItem("amul22") PartyHasItem("amul24") 
    PartyHasItem("amul25")
    NumItemsParty("c!pp26",1)
    NumItemsParty("cdpp26",1)
    !PartyHasItem("amul14")
    !PartyHasItem("bdamul24")
    !PartyHasItem("c!pp7")
    !PartyHasItem("cdpp7")
    PartyGoldGT(9999)~
  THEN REPLY @123436
    DO ~TakePartyGold(10000)      DestroyGold(10000)
    TakePartyItemNum("amul22",1)   DestroyItem("amul22")
    TakePartyItemNum("amul24",1)   DestroyItem("amul24")
    TakePartyItemNum("amul25",1)   DestroyItem("amul25")
    TakePartyItemNum("c!pp26",1) DestroyItem("c!pp26")
    TakePartyItemNum("cdpp26",1) DestroyItem("cdpp26")
    GiveItemCreate("c2amul01",Player1,1,1,1)
    CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN water SAY @123479 
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("sw1h52") 
        PartyHasItem("sw1h23") 
        !PartyHasItem("bdsw1h23") 
        PartyHasItem("sw1h35")
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("sw1h52",1)   DestroyItem("sw1h52")
          TakePartyItemNum("sw1h23",1)   DestroyItem("sw1h23")
          TakePartyItemNum("sw1h35",1)   DestroyItem("sw1h35")
          GiveItemCreate("c2sw1h03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("sw1h52") 
        PartyHasItem("bdsw1h23") 
        PartyHasItem("sw1h35")
        PartyGoldGT(14999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(15000)      DestroyGold(15000)
          TakePartyItemNum("sw1h52",1)   DestroyItem("sw1h52")
          TakePartyItemNum("bdsw1h23",1) DestroyItem("bdsw1h23")
          TakePartyItemNum("sw1h35",1)   DestroyItem("sw1h35")
          GiveItemCreate("c2sw1h03",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN azur
    SAY @123480 IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("ax1h10") PartyHasItem("misc5k") 
        PartyGoldGT(19999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ax1h10",1)   DestroyItem("ax1h10")
          TakePartyItemNum("misc5k",1)   DestroyItem("misc5k")
          GiveItemCreate("c2ax1h01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN sorcerian SAY @123481
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("ring08") !PartyHasItem("ring08a") !PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("ring06") !PartyHasItem("cdpp11") !PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring08",1)   DestroyItem("ring08")
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ring08a") !PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("ring06") !PartyHasItem("cdpp11") !PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring08a",1)  DestroyItem("ring08a")
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("ring06") !PartyHasItem("cdpp11") !PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ohringwi",1) DestroyItem("ohringwi")
          TakePartyItemNum("ring06",1)   DestroyItem("ring06")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ring08") !PartyHasItem("ring08a") !PartyHasItem("ohringwi") 
        PartyHasItem("ring40")
        PartyHasItem("cdpp11") !PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring08",1)   DestroyItem("ring08")
          TakePartyItemNum("cdpp11",1)   DestroyItem("cdpp11")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ring08a") !PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("cdpp11") !PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring08a",1)  DestroyItem("ring08a")
          TakePartyItemNum("cdpp11",1)   DestroyItem("cdpp11")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("cdpp11") !PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ohringwi",1) DestroyItem("ohringwi")
          TakePartyItemNum("cdpp11",1)   DestroyItem("cdpp11")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ring08") !PartyHasItem("ring08a") !PartyHasItem("ohringwi") 
        PartyHasItem("ring40")
        PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring08",1)   DestroyItem("ring08")
          TakePartyItemNum("c!pp11",1)   DestroyItem("c!pp11")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ring08a") !PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ring08a",1)  DestroyItem("ring08a")
          TakePartyItemNum("c!pp11",1)   DestroyItem("c!pp11")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("ohringwi")
        PartyHasItem("ring40")
        PartyHasItem("c!pp11")
        PartyHasItem("amul16")
        PartyGoldGT(19999)~ THEN REPLY @123436
      DO ~TakePartyGold(20000)      DestroyGold(20000)
          TakePartyItemNum("ohringwi",1) DestroyItem("ohringwi")
          TakePartyItemNum("c!pp11",1)   DestroyItem("c!pp11")
          TakePartyItemNum("ring40",1)   DestroyItem("ring40")
          TakePartyItemNum("amul16",1)   DestroyItem("amul16")
          GiveItemCreate("c2ring04",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN girdle SAY @123483 
    IF ~~ THEN REPLY @123435 GOTO c2itemupgrade
    IF ~PartyHasItem("belt02")
      PartyHasItem("bdbelt13")
      PartyHasItem("bdbelt14")
      NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("bdbelt13",1) DestroyItem("bdbelt13")
      TakePartyItemNum("bdbelt14",1) DestroyItem("bdbelt14")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("belt03")
      PartyHasItem("bdbelt14")
      !PartyHasItem("bdbelt13")
      NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("belt03",1)   DestroyItem("belt03")
      TakePartyItemNum("bdbelt14",1) DestroyItem("bdbelt14")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("bdbelt13")
      PartyHasItem("belt04")
      !PartyHasItem("bdbelt14")
      NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("bdbelt13",1) DestroyItem("bdbelt13")
      TakePartyItemNum("belt04",1)   DestroyItem("belt04")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      TakePartyItemNum("misc20",1)   DestroyItem("misc20")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("belt03")
      PartyHasItem("belt04")
      !PartyHasItem("bdbelt13")
      !PartyHasItem("bdbelt14")
      NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("belt03",1) DestroyItem("belt03")
      TakePartyItemNum("belt04",1) DestroyItem("belt04")
      TakePartyItemNum("misc20",1) DestroyItem("misc20")
      TakePartyItemNum("misc20",1) DestroyItem("misc20")
      TakePartyItemNum("misc20",1) DestroyItem("misc20")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT




    IF ~PartyHasItem("belt02")
      PartyHasItem("bdbelt13")
      PartyHasItem("bdbelt14")
      NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("bdbelt13",1) DestroyItem("bdbelt13")
      TakePartyItemNum("bdbelt14",1) DestroyItem("bdbelt14")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("belt03")
      PartyHasItem("bdbelt14")
      !PartyHasItem("bdbelt13")
      NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("belt03",1)   DestroyItem("belt03")
      TakePartyItemNum("bdbelt14",1) DestroyItem("bdbelt14")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("bdbelt13")
      PartyHasItem("belt04")
      !PartyHasItem("bdbelt14")
      NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("bdbelt13",1) DestroyItem("bdbelt13")
      TakePartyItemNum("belt04",1)   DestroyItem("belt04")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      TakePartyItemNum("amul13",1)   DestroyItem("amul13")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("belt03")
      PartyHasItem("belt04")
      !PartyHasItem("bdbelt13")
      !PartyHasItem("bdbelt14")
      NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("belt03",1) DestroyItem("belt03")
      TakePartyItemNum("belt04",1) DestroyItem("belt04")
      TakePartyItemNum("amul13",1) DestroyItem("amul13")
      TakePartyItemNum("amul13",1) DestroyItem("amul13")
      TakePartyItemNum("amul13",1) DestroyItem("amul13")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT




    IF ~PartyHasItem("belt02")
      PartyHasItem("bdbelt13")
      PartyHasItem("bdbelt14")
      NumItemsPartyGT("ring15",2)
      !NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("bdbelt13",1) DestroyItem("bdbelt13")
      TakePartyItemNum("bdbelt14",1) DestroyItem("bdbelt14")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("belt03")
      PartyHasItem("bdbelt14")
      !PartyHasItem("bdbelt13")
      NumItemsPartyGT("ring15",2)
      !NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("belt03",1)   DestroyItem("belt03")
      TakePartyItemNum("bdbelt14",1) DestroyItem("bdbelt14")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("bdbelt13")
      PartyHasItem("belt04")
      !PartyHasItem("bdbelt14")
      NumItemsPartyGT("ring15",2)
      !NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("bdbelt13",1) DestroyItem("bdbelt13")
      TakePartyItemNum("belt04",1)   DestroyItem("belt04")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      TakePartyItemNum("ring15",1)   DestroyItem("ring15")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT

    IF ~PartyHasItem("belt02")
      PartyHasItem("belt03")
      PartyHasItem("belt04")
      !PartyHasItem("bdbelt13")
      !PartyHasItem("bdbelt14")
      NumItemsPartyGT("ring15",2)
      !NumItemsPartyGT("amul13",2)
      !NumItemsPartyGT("misc20",2)
      PartyGoldGT(9999)~
    THEN REPLY @123436 
      DO ~TakePartyGold(10000)      DestroyGold(10000)
      TakePartyItemNum("belt02",1)   DestroyItem("belt02")
      TakePartyItemNum("belt03",1) DestroyItem("belt03")
      TakePartyItemNum("belt04",1) DestroyItem("belt04")
      TakePartyItemNum("ring15",1) DestroyItem("ring15")
      TakePartyItemNum("ring15",1) DestroyItem("ring15")
      TakePartyItemNum("ring15",1) DestroyItem("ring15")
      GiveItemCreate("c2belt01",Player1,1,1,1)
      CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN kitthix
    SAY @123496 = @1234996 IF ~~ THEN REPLY @123435 GOTO 4
    IF ~PartyHasItem("misc3e") PartyHasItem("scrl6r") 
        PartyHasItem("scrl99") 
        NumItemsPartyGT("dagg16",4)
        PartyGoldGT(4999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(5000)      DestroyGold(5000)
          TakePartyItemNum("misc3e",1)   DestroyItem("misc3e")
          TakePartyItemNum("scrl6r",1)   DestroyItem("scrl6r")
          TakePartyItemNum("scrl99",1)   DestroyItem("scrl99")
          TakePartyItemNum("dagg16",5)   DestroyItem("dagg16")
          GiveItemCreate("c2kit",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN chan01
    SAY @1234100 IF ~~ THEN REPLY @123435 GOTO 4
    IF ~PartyHasItem("chan14") PartyHasItem("scaler") 
        NumItemsPartyGT("misc22",2)
        NumItemsPartyGT("misc16",2)
        PartyGoldGT(24999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(25000)      DestroyGold(25000)
          TakePartyItemNum("chan14",1)   DestroyItem("chan14")
          TakePartyItemNum("scaler",1)   DestroyItem("scaler")
          TakePartyItemNum("misc22",3)   DestroyItem("misc22")
          TakePartyItemNum("misc16",3)   DestroyItem("misc16")
          GiveItemCreate("c2chan01",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END

  IF ~~ THEN BEGIN hd
    SAY @123498 IF ~~ THEN REPLY @123435 GOTO 4
    IF ~PartyHasItem("npsw05") PartyHasItem("npsw06") 
        PartyHasItem("SW1H26") PartyHasItem("SW1H27") 
        PartyHasItem("misc45") PartyHasItem("scrl5p") 
        PartyHasItem("scrl5i") 
        PartyGoldGT(24999)~
      THEN REPLY @123436 
      DO ~TakePartyGold(25000)      DestroyGold(25000)
          TakePartyItemNum("npsw05",1)   DestroyItem("npsw05")
          TakePartyItemNum("npsw06",1)   DestroyItem("npsw06")
          TakePartyItemNum("sw1h26",1)   DestroyItem("sw1h26")
          TakePartyItemNum("sw1h27",1)   DestroyItem("sw1h27")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          TakePartyItemNum("scrl5p",1)   DestroyItem("scrl5p")
          TakePartyItemNum("scrl5i",1)   DestroyItem("scrl5i")
          TakePartyItemNum("dagg16",5)   DestroyItem("dagg16")
          GiveItemCreate("c2hd1",Player1,1,1,1)
          GiveItemCreate("c2hd2",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
    IF ~PartyHasItem("npsw05") PartyHasItem("npsw06") 
        PartyHasItem("SW1H26") PartyHasItem("SW1H27") 
        PartyHasItem("misc45") PartyHasItem("scrl5p") 
        PartyHasItem("scrl5w") 
        PartyGoldGT(24999)~
      THEN REPLY @123436
      DO ~TakePartyGold(25000)      DestroyGold(25000)
          TakePartyItemNum("npsw05",1)   DestroyItem("npsw05")
          TakePartyItemNum("npsw06",1)   DestroyItem("npsw06")
          TakePartyItemNum("sw1h26",1)   DestroyItem("sw1h26")
          TakePartyItemNum("sw1h27",1)   DestroyItem("sw1h27")
          TakePartyItemNum("misc45",1)   DestroyItem("misc45")
          TakePartyItemNum("scrl5p",1)   DestroyItem("scrl5p")
          TakePartyItemNum("scrl5w",1)   DestroyItem("scrl5w")
          TakePartyItemNum("dagg16",5)   DestroyItem("dagg16")
          GiveItemCreate("c2hd1",Player1,1,1,1)
          GiveItemCreate("c2hd2",Player1,1,1,1)
          CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
  END