begin AmuletUNity_Scriptshort buttonshort messageOnshort TimesUsedshort OnPcEquipshort CurrentDayshort DoOnceif CurrentDay != Day set CurrentDay to Day set TimesUsed to 0endifif ( OnPCEquip == 1 ) Set OnPCEquip to 0 if GetPcCell "Solstheim, Mortrag Glacier" == 1 MessageBox "You feel a powerful force interrupt the Amulet of Unity's spell." return elseif GetPcCell "Akulakhan's Chamber" == 1 MessageBox "You feel a powerful force interrupt the Amulet of Unity's spell." return elseif GetPcCell "Sotha Sil," == 1 MessageBox "You feel a powerful force interrupt the Amulet of Unity's spell." return endif if ( TimesUsed < 2 ) messagebox "Use the Amulet of Unity to teleport where?" "Sadrith Mora" "Tel Arhun" "Tel Branora" "Tel Fyr" "Tel Mora" "Tel Uvirith" "Tel Vos" "Mournhold" "Nowhere" set messageon to 1 else messagebox "The Amulet can teleport you only twice per day" endifendifif ( messageOn == 1) set button to GetButtonPressed if ( button >= 0 ) set messageOn to 0 endif if ( button == 0 ) playsound "conjuration hit" player->positioncell 144860 42230 945 315, "Sadrith Mora" set TimesUsed to TimesUsed +1 elseif ( button == 1 ) playsound "conjuration hit" player->positioncell 126140 45550 2100 300, "Tel Aruhn" set TimesUsed to TimesUsed +1 elseif ( button == 2 ) playsound "conjuration hit" player->positioncell 127310 -101510 1300 140, "Tel Branora" set TimesUsed to TimesUsed +1 elseif ( button == 3 ) playsound "conjuration hit" player->positioncell 124385 15857 490 180, "Tel Fyr" set TimesUsed to TimesUsed +1 elseif ( button == 4 ) playsound "conjuration hit" player->positioncell 106930 117170 260 35, "Tel Mora" set TimesUsed to TimesUsed +1 elseif ( button == 5 ) playsound "conjuration hit" player->positioncell 87280 10180 2280 135, "Uvirith's Grave" set TimesUsed to TimesUsed +1 elseif ( button == 6 ) playsound "conjuration hit" player->positioncell 85730 117960 5080 315, "Tel Vos" set TimesUsed to TimesUsed +1 elseif ( button == 7 ) playsound "conjuration hit" player->positioncell 2752 0 384 270, "Mournhold, Great Bazaar" set TimesUsed to TimesUsed +1 elseif ( button == 8 ) return endifendifEnd