begin HB_companion_teleport; uses global short HB_noVoicefloat teleTimerfloat resetTimershort part1short part2short part3; Part 1: cast spellif ( part1 == 0 ) if ( teleTimer == 0 ) cast "Recall" player set teleTimer to 1 elseif ( teleTimer < 4 ) set teleTimer to ( teleTimer + GetSecondsPassed ) else set teleTimer to 0 set part1 to 1 set part2 to 1 endifendif; Part 2: teleportif ( part2 == 1 ) if ( MCA_Location == 1 ) PositionCell 666 -1110 -497 0 "Ald-Ruhn, Ald Skar Inn" elseif ( MCA_Location == 2 ) PositionCell 226 738 -244 0 "Balmora, Eight Plates" elseif ( MCA_Location == 3 ) PositionCell 474 -424 396 0 "Caldera, Shenk's Shovel" elseif ( MCA_Location == 4 ) PositionCell -470 -3 399 0 "Dagon Fel, The End of the World" elseif ( MCA_Location == 5 ) PositionCell -30 -67 12 0 "Ebonheart, Six Fishes" elseif ( MCA_Location == 6 ) PositionCell -86 125 -122 0 "Fort Frostmoth, General Quarters" elseif ( MCA_Location == 7 ) PositionCell -22 256 -144 0 "Gnisis, Madach Tradehouse" elseif ( MCA_Location == 8 ) PositionCell 4158 4377 13730 0 "Khuul, Thongar's Tradehouse" elseif ( MCA_Location == 9 ) PositionCell -22 198 9 0 "Maar Gan, Andus Tradehouse" elseif ( MCA_Location == 10 ) PositionCell -553 -349 14 0 "Molag Mar, The Pilgrim's Rest" elseif ( MCA_Location == 11 ) PositionCell -723 152 36 0 "Mournhold, Great Bazaar" elseif ( MCA_Location == 12 ) PositionCell 353 98 17 0 "Pelagiad, Halfway Tavern" elseif ( MCA_Location == 13 ) PositionCell 131 73 385 0 "Sadrith Mora, Fara's Hole in the Wall" elseif ( MCA_Location == 14 ) PositionCell -381 -227 396 0 "Seyda Neen, Arrille's Tradehouse" elseif ( MCA_Location == 15 ) PositionCell 84 -101 -249 0 "Skaal Village, The Greathall" elseif ( MCA_Location == 16 ) PositionCell 242 -238 11 0 "Suran, Desele's House of Earthly Delights" elseif ( MCA_Location == 17 ) PositionCell 1094 -188 137 0 "Tel Branora, Sethan's Tradehouse" elseif ( MCA_Location == 18 ) PositionCell 1333 -326 619 0 "Tel Mora, The Covenant" elseif ( MCA_Location == 19 ) PositionCell 503 241 233 0 "Vivec, Foreign Quarter Plaza" endif disable enable set part2 to 0 set part3 to 1endif; Part 3: reset NPCif ( part3 == 1 ) if ( resetTimer < 1 ) set resetTimer to ( resetTimer + GetSecondsPassed ) else disable enable set HB_noVoice to 1 StartCombat player StopCombat set HB_noVoice to 0 set resetTimer to 0 set part1 to 0 set part3 to 0 StopScript HB_companion_teleport endifendifend
This script works over 95% of the time. Any suggestions to make it 100% reliable?