I'm sure there's some sort of small error or scripting bug I'm overlooking here, and I'd appreciate if anyone could point the issue(s) out to me. I have the script running as a global script, though I have tried it as a targeted script as well and I get the same result. The issue with the version posted here is that it never updates the NewEnc value (I think) and just keeps applying drain skill spells over and over until my enchant skill is 0. I've tried many things, and can't get it to stop doing this.
The script is:
- Code: Select all
begin EB_EnchantCheck
short NewEnc;
short RealEnc;
short SkillCng;
short RemCast;
if ( MenuMode == 1 )
return
endif
; 200 Real Skill Restriction---------------------------
while ( ( player->GetEnchant ) > 200 )
player->setEnchant 200
endwhile
; SkillMod Section----------------------------------------
if ( NewEnc != ( player->GetEnchant ) )
set SkillCng to ( ( player->GetEnchant ) - NewEnc )
set RealEnc to ( RealEnc + SkillCng )
endif
if ( SkillCng == 0 )
return
endif
if ( SkillCng != 0 )
set SkillCng to 0
if ( RealEnc == 1 )
player->AddSpell, "1Enchant"
endif
if ( RealEnc == 2 )
player->AddSpell, "2Enchant"
endif
if ( RealEnc == 3 )
player->AddSpell, "3Enchant"
endif
if ( RealEnc == 4 )
player->AddSpell, "4Enchant"
endif
if ( RealEnc == 5 )
player->AddSpell, "5Enchant"
endif
if ( RealEnc == 6 )
player->AddSpell, "6Enchant"
endif
if ( RealEnc == 7 )
player->AddSpell, "7Enchant"
endif
if ( RealEnc == 8 )
player->AddSpell, "8Enchant"
endif
if ( RealEnc == 9 )
player->AddSpell, "9Enchant"
endif
if ( RealEnc == 10 )
player->AddSpell, "10Enchant"
endif
if ( RealEnc == 11 )
player->AddSpell, "11Enchant"
endif
if ( RealEnc == 12 )
player->AddSpell, "12Enchant"
endif
if ( RealEnc == 13 )
player->AddSpell, "13Enchant"
endif
if ( RealEnc == 14 )
player->AddSpell, "14Enchant"
endif
if ( RealEnc == 15 )
player->AddSpell, "15Enchant"
endif
if ( RealEnc == 16 )
player->AddSpell, "16Enchant"
endif
if ( RealEnc == 17 )
player->AddSpell, "17Enchant"
endif
if ( RealEnc == 18 )
player->AddSpell, "18Enchant"
endif
if ( RealEnc == 19 )
player->AddSpell, "19Enchant"
endif
if ( RealEnc == 20 )
player->AddSpell, "20Enchant"
endif
if ( RealEnc == 21 )
player->AddSpell, "21Enchant"
endif
if ( RealEnc == 22 )
player->AddSpell, "22Enchant"
endif
if ( RealEnc == 23 )
player->AddSpell, "23Enchant"
endif
if ( RealEnc == 24 )
player->AddSpell, "24Enchant"
endif
if ( RealEnc == 25 )
player->AddSpell, "25Enchant"
endif
if ( RealEnc == 26 )
player->AddSpell, "26Enchant"
endif
if ( RealEnc == 27 )
player->AddSpell, "27Enchant"
endif
if ( RealEnc == 28 )
player->AddSpell, "28Enchant"
endif
if ( RealEnc == 29 )
player->AddSpell, "29Enchant"
endif
if ( RealEnc == 30 )
player->AddSpell, "30Enchant"
endif
if ( RealEnc == 31 )
player->AddSpell, "31Enchant"
endif
if ( RealEnc == 32 )
player->AddSpell, "32Enchant"
endif
if ( RealEnc == 33 )
player->AddSpell, "33Enchant"
endif
if ( RealEnc == 34 )
player->AddSpell, "34Enchant"
endif
if ( RealEnc == 35 )
player->AddSpell, "35Enchant"
endif
if ( RealEnc == 36 )
player->AddSpell, "36Enchant"
endif
if ( RealEnc == 37 )
player->AddSpell, "37Enchant"
endif
if ( RealEnc == 38 )
player->AddSpell, "38Enchant"
endif
if ( RealEnc == 39 )
player->AddSpell, "39Enchant"
endif
if ( RealEnc == 40 )
player->AddSpell, "40Enchant"
endif
if ( RealEnc == 41 )
player->AddSpell, "41Enchant"
endif
if ( RealEnc == 42 )
player->AddSpell, "42Enchant"
endif
if ( RealEnc == 43 )
player->AddSpell, "43Enchant"
endif
if ( RealEnc == 44 )
player->AddSpell, "44Enchant"
endif
if ( RealEnc == 45 )
player->AddSpell, "45Enchant"
endif
if ( RealEnc == 46 )
player->AddSpell, "46Enchant"
endif
if ( RealEnc == 47 )
player->AddSpell, "47Enchant"
endif
if ( RealEnc == 48 )
player->AddSpell, "48Enchant"
endif
if ( RealEnc == 49 )
player->AddSpell, "49Enchant"
endif
if ( RealEnc == 50 )
player->AddSpell, "50Enchant"
endif
if ( RealEnc == 51 )
player->AddSpell, "51Enchant"
endif
if ( RealEnc == 52 )
player->AddSpell, "52Enchant"
endif
if ( RealEnc == 53 )
player->AddSpell, "53Enchant"
endif
if ( RealEnc == 54 )
player->AddSpell, "54Enchant"
endif
if ( RealEnc == 55 )
player->AddSpell, "55Enchant"
endif
if ( RealEnc == 56 )
player->AddSpell, "56Enchant"
endif
if ( RealEnc == 57 )
player->AddSpell, "57Enchant"
endif
if ( RealEnc == 58 )
player->AddSpell, "58Enchant"
endif
if ( RealEnc == 59 )
player->AddSpell, "59Enchant"
endif
if ( RealEnc == 60 )
player->AddSpell, "60Enchant"
endif
if ( RealEnc == 61 )
player->AddSpell, "61Enchant"
endif
if ( RealEnc == 62 )
player->AddSpell, "62Enchant"
endif
if ( RealEnc == 63 )
player->AddSpell, "63Enchant"
endif
if ( RealEnc == 64 )
player->AddSpell, "64Enchant"
endif
if ( RealEnc == 65 )
player->AddSpell, "65Enchant"
endif
if ( RealEnc == 66 )
player->AddSpell, "66Enchant"
endif
if ( RealEnc == 67 )
player->AddSpell, "67Enchant"
endif
if ( RealEnc == 68 )
player->AddSpell, "68Enchant"
endif
if ( RealEnc == 69 )
player->AddSpell, "69Enchant"
endif
if ( RealEnc == 70 )
player->AddSpell, "70Enchant"
endif
if ( RealEnc == 71 )
player->AddSpell, "71Enchant"
endif
if ( RealEnc == 72 )
player->AddSpell, "72Enchant"
endif
if ( RealEnc == 73 )
player->AddSpell, "73Enchant"
endif
if ( RealEnc == 74 )
player->AddSpell, "74Enchant"
endif
if ( RealEnc == 75 )
player->AddSpell, "75Enchant"
endif
if ( RealEnc == 76 )
player->AddSpell, "76Enchant"
endif
if ( RealEnc == 77 )
player->AddSpell, "77Enchant"
endif
if ( RealEnc == 78 )
player->AddSpell, "78Enchant"
endif
if ( RealEnc == 79 )
player->AddSpell, "79Enchant"
endif
if ( RealEnc == 80 )
player->AddSpell, "80Enchant"
endif
if ( RealEnc == 81 )
player->AddSpell, "81Enchant"
endif
if ( RealEnc == 82 )
player->AddSpell, "82Enchant"
endif
if ( RealEnc == 83 )
player->AddSpell, "83Enchant"
endif
if ( RealEnc == 84 )
player->AddSpell, "84Enchant"
endif
if ( RealEnc == 85 )
player->AddSpell, "85Enchant"
endif
if ( RealEnc == 86 )
player->AddSpell, "86Enchant"
endif
if ( RealEnc == 87 )
player->AddSpell, "87Enchant"
endif
if ( RealEnc == 88 )
player->AddSpell, "88Enchant"
endif
if ( RealEnc == 89 )
player->AddSpell, "89Enchant"
endif
if ( RealEnc == 90 )
player->AddSpell, "90Enchant"
endif
if ( RealEnc == 91 )
player->AddSpell, "91Enchant"
endif
if ( RealEnc == 92 )
player->AddSpell, "92Enchant"
endif
if ( RealEnc == 93 )
player->AddSpell, "93Enchant"
endif
if ( RealEnc == 94 )
player->AddSpell, "94Enchant"
endif
if ( RealEnc == 95 )
player->AddSpell, "95Enchant"
endif
if ( RealEnc == 96 )
player->AddSpell, "96Enchant"
endif
if ( RealEnc == 97 )
player->AddSpell, "97Enchant"
endif
if ( RealEnc == 98 )
player->AddSpell, "98Enchant"
endif
if ( RealEnc == 99 )
player->AddSpell, "99Enchant"
endif
if ( RealEnc == 100 )
player->AddSpell, "100Enchant"
endif
if ( RealEnc == 101 )
player->AddSpell, "101Enchant"
endif
if ( RealEnc == 102 )
player->AddSpell, "102Enchant"
endif
if ( RealEnc == 103 )
player->AddSpell, "103Enchant"
endif
if ( RealEnc == 104 )
player->AddSpell, "104Enchant"
endif
if ( RealEnc == 105 )
player->AddSpell, "105Enchant"
endif
if ( RealEnc == 106 )
player->AddSpell, "106Enchant"
endif
if ( RealEnc == 107 )
player->AddSpell, "107Enchant"
endif
if ( RealEnc == 108 )
player->AddSpell, "108Enchant"
endif
if ( RealEnc == 109 )
player->AddSpell, "109Enchant"
endif
if ( RealEnc == 110 )
player->AddSpell, "110Enchant"
endif
if ( RealEnc == 111 )
player->AddSpell, "111Enchant"
endif
if ( RealEnc == 112 )
player->AddSpell, "112Enchant"
endif
if ( RealEnc == 113 )
player->AddSpell, "113Enchant"
endif
if ( RealEnc == 114 )
player->AddSpell, "114Enchant"
endif
if ( RealEnc == 115 )
player->AddSpell, "115Enchant"
endif
if ( RealEnc == 116 )
player->AddSpell, "116Enchant"
endif
if ( RealEnc == 117 )
player->AddSpell, "117Enchant"
endif
if ( RealEnc == 118 )
player->AddSpell, "118Enchant"
endif
if ( RealEnc == 119 )
player->AddSpell, "119Enchant"
endif
if ( RealEnc == 120 )
player->AddSpell, "120Enchant"
endif
if ( RealEnc == 121 )
player->AddSpell, "121Enchant"
endif
if ( RealEnc == 122 )
player->AddSpell, "122Enchant"
endif
if ( RealEnc == 123 )
player->AddSpell, "123Enchant"
endif
if ( RealEnc == 124 )
player->AddSpell, "124Enchant"
endif
if ( RealEnc == 125 )
player->AddSpell, "125Enchant"
endif
if ( RealEnc == 126 )
player->AddSpell, "126Enchant"
endif
if ( RealEnc == 127 )
player->AddSpell, "127Enchant"
endif
if ( RealEnc == 128 )
player->AddSpell, "128Enchant"
endif
if ( RealEnc == 129 )
player->AddSpell, "129Enchant"
endif
if ( RealEnc == 130 )
player->AddSpell, "130Enchant"
endif
if ( RealEnc == 131 )
player->AddSpell, "131Enchant"
endif
if ( RealEnc == 132 )
player->AddSpell, "132Enchant"
endif
if ( RealEnc == 133 )
player->AddSpell, "133Enchant"
endif
if ( RealEnc == 134 )
player->AddSpell, "134Enchant"
endif
if ( RealEnc == 135 )
player->AddSpell, "135Enchant"
endif
if ( RealEnc == 136 )
player->AddSpell, "136Enchant"
endif
if ( RealEnc == 137 )
player->AddSpell, "137Enchant"
endif
if ( RealEnc == 138 )
player->AddSpell, "138Enchant"
endif
if ( RealEnc == 139 )
player->AddSpell, "139Enchant"
endif
if ( RealEnc == 140 )
player->AddSpell, "140Enchant"
endif
if ( RealEnc == 141 )
player->AddSpell, "141Enchant"
endif
if ( RealEnc == 142 )
player->AddSpell, "142Enchant"
endif
if ( RealEnc == 143 )
player->AddSpell, "143Enchant"
endif
if ( RealEnc == 144 )
player->AddSpell, "144Enchant"
endif
if ( RealEnc == 145 )
player->AddSpell, "145Enchant"
endif
if ( RealEnc == 146 )
player->AddSpell, "146Enchant"
endif
if ( RealEnc == 147 )
player->AddSpell, "147Enchant"
endif
if ( RealEnc == 148 )
player->AddSpell, "148Enchant"
endif
if ( RealEnc == 149 )
player->AddSpell, "149Enchant"
endif
if ( RealEnc == 150 )
player->AddSpell, "150Enchant"
endif
if ( RealEnc == 151 )
player->AddSpell, "151Enchant"
endif
if ( RealEnc == 152 )
player->AddSpell, "152Enchant"
endif
if ( RealEnc == 153 )
player->AddSpell, "153Enchant"
endif
if ( RealEnc == 154 )
player->AddSpell, "154Enchant"
endif
if ( RealEnc == 155 )
player->AddSpell, "155Enchant"
endif
if ( RealEnc == 156 )
player->AddSpell, "156Enchant"
endif
if ( RealEnc == 157 )
player->AddSpell, "157Enchant"
endif
if ( RealEnc == 158 )
player->AddSpell, "158Enchant"
endif
if ( RealEnc == 159 )
player->AddSpell, "159Enchant"
endif
if ( RealEnc == 160 )
player->AddSpell, "160Enchant"
endif
if ( RealEnc == 161 )
player->AddSpell, "161Enchant"
endif
if ( RealEnc == 162 )
player->AddSpell, "162Enchant"
endif
if ( RealEnc == 163 )
player->AddSpell, "163Enchant"
endif
if ( RealEnc == 164 )
player->AddSpell, "164Enchant"
endif
if ( RealEnc == 165 )
player->AddSpell, "165Enchant"
endif
if ( RealEnc == 166 )
player->AddSpell, "166Enchant"
endif
if ( RealEnc == 167 )
player->AddSpell, "167Enchant"
endif
if ( RealEnc == 168 )
player->AddSpell, "168Enchant"
endif
if ( RealEnc == 169 )
player->AddSpell, "169Enchant"
endif
if ( RealEnc == 170 )
player->AddSpell, "170Enchant"
endif
if ( RealEnc == 171 )
player->AddSpell, "171Enchant"
endif
if ( RealEnc == 172 )
player->AddSpell, "172Enchant"
endif
if ( RealEnc == 173 )
player->AddSpell, "173Enchant"
endif
if ( RealEnc == 174 )
player->AddSpell, "174Enchant"
endif
if ( RealEnc == 175 )
player->AddSpell, "175Enchant"
endif
if ( RealEnc == 176 )
player->AddSpell, "176Enchant"
endif
if ( RealEnc == 177 )
player->AddSpell, "177Enchant"
endif
if ( RealEnc == 178 )
player->AddSpell, "178Enchant"
endif
if ( RealEnc == 179 )
player->AddSpell, "179Enchant"
endif
if ( RealEnc == 180 )
player->AddSpell, "180Enchant"
endif
if ( RealEnc == 181 )
player->AddSpell, "181Enchant"
endif
if ( RealEnc == 182 )
player->AddSpell, "182Enchant"
endif
if ( RealEnc == 183 )
player->AddSpell, "183Enchant"
endif
if ( RealEnc == 184 )
player->AddSpell, "184Enchant"
endif
if ( RealEnc == 185 )
player->AddSpell, "185Enchant"
endif
if ( RealEnc == 186 )
player->AddSpell, "186Enchant"
endif
if ( RealEnc == 187 )
player->AddSpell, "187Enchant"
endif
if ( RealEnc == 188 )
player->AddSpell, "188Enchant"
endif
if ( RealEnc == 189 )
player->AddSpell, "189Enchant"
endif
if ( RealEnc == 190 )
player->AddSpell, "190Enchant"
endif
if ( RealEnc == 191 )
player->AddSpell, "191Enchant"
endif
if ( RealEnc == 192 )
player->AddSpell, "192Enchant"
endif
if ( RealEnc == 193 )
player->AddSpell, "193Enchant"
endif
if ( RealEnc == 194 )
player->AddSpell, "194Enchant"
endif
if ( RealEnc == 195 )
player->AddSpell, "195Enchant"
endif
if ( RealEnc == 196 )
player->AddSpell, "196Enchant"
endif
if ( RealEnc == 197 )
player->AddSpell, "197Enchant"
endif
if ( RealEnc == 198 )
player->AddSpell, "198Enchant"
endif
if ( RealEnc == 199 )
player->AddSpell, "199Enchant"
endif
if ( RealEnc == 200 )
player->AddSpell, "200Enchant"
endif
;Remove Previous Spell------------------------------------------
if ( RemCast == 1 )
player->RemoveSpell, "1Enchant"
endif
if ( RemCast == 2 )
player->RemoveSpell, "2Enchant"
endif
if ( RemCast == 3 )
player->RemoveSpell, "3Enchant"
endif
if ( RemCast == 4 )
player->RemoveSpell, "4Enchant"
endif
if ( RemCast == 5 )
player->RemoveSpell, "5Enchant"
endif
if ( RemCast == 6 )
player->RemoveSpell, "6Enchant"
endif
if ( RemCast == 7 )
player->RemoveSpell, "7Enchant"
endif
if ( RemCast == 8 )
player->RemoveSpell, "8Enchant"
endif
if ( RemCast == 9 )
player->RemoveSpell, "9Enchant"
endif
if ( RemCast == 10 )
player->RemoveSpell, "10Enchant"
endif
if ( RemCast == 11 )
player->RemoveSpell, "11Enchant"
endif
if ( RemCast == 12 )
player->RemoveSpell, "12Enchant"
endif
if ( RemCast == 13 )
player->RemoveSpell, "13Enchant"
endif
if ( RemCast == 14 )
player->RemoveSpell, "14Enchant"
endif
if ( RemCast == 15 )
player->RemoveSpell, "15Enchant"
endif
if ( RemCast == 16 )
player->RemoveSpell, "16Enchant"
endif
if ( RemCast == 17 )
player->RemoveSpell, "17Enchant"
endif
if ( RemCast == 18 )
player->RemoveSpell, "18Enchant"
endif
if ( RemCast == 19 )
player->RemoveSpell, "19Enchant"
endif
if ( RemCast == 20 )
player->RemoveSpell, "20Enchant"
endif
if ( RemCast == 21 )
player->RemoveSpell, "21Enchant"
endif
if ( RemCast == 22 )
player->RemoveSpell, "22Enchant"
endif
if ( RemCast == 23 )
player->RemoveSpell, "23Enchant"
endif
if ( RemCast == 24 )
player->RemoveSpell, "24Enchant"
endif
if ( RemCast == 25 )
player->RemoveSpell, "25Enchant"
endif
if ( RemCast == 26 )
player->RemoveSpell, "26Enchant"
endif
if ( RemCast == 27 )
player->RemoveSpell, "27Enchant"
endif
if ( RemCast == 28 )
player->RemoveSpell, "28Enchant"
endif
if ( RemCast == 29 )
player->RemoveSpell, "29Enchant"
endif
if ( RemCast == 30 )
player->RemoveSpell, "30Enchant"
endif
if ( RemCast == 31 )
player->RemoveSpell, "31Enchant"
endif
if ( RemCast == 32 )
player->RemoveSpell, "32Enchant"
endif
if ( RemCast == 33 )
player->RemoveSpell, "33Enchant"
endif
if ( RemCast == 34 )
player->RemoveSpell, "34Enchant"
endif
if ( RemCast == 35 )
player->RemoveSpell, "35Enchant"
endif
if ( RemCast == 36 )
player->RemoveSpell, "36Enchant"
endif
if ( RemCast == 37 )
player->RemoveSpell, "37Enchant"
endif
if ( RemCast == 38 )
player->RemoveSpell, "38Enchant"
endif
if ( RemCast == 39 )
player->RemoveSpell, "39Enchant"
endif
if ( RemCast == 40 )
player->RemoveSpell, "40Enchant"
endif
if ( RemCast == 41 )
player->RemoveSpell, "41Enchant"
endif
if ( RemCast == 42 )
player->RemoveSpell, "42Enchant"
endif
if ( RemCast == 43 )
player->RemoveSpell, "43Enchant"
endif
if ( RemCast == 44 )
player->RemoveSpell, "44Enchant"
endif
if ( RemCast == 45 )
player->RemoveSpell, "45Enchant"
endif
if ( RemCast == 46 )
player->RemoveSpell, "46Enchant"
endif
if ( RemCast == 47 )
player->RemoveSpell, "47Enchant"
endif
if ( RemCast == 48 )
player->RemoveSpell, "48Enchant"
endif
if ( RemCast == 49 )
player->RemoveSpell, "49Enchant"
endif
if ( RemCast == 50 )
player->RemoveSpell, "50Enchant"
endif
if ( RemCast == 51 )
player->RemoveSpell, "51Enchant"
endif
if ( RemCast == 52 )
player->RemoveSpell, "52Enchant"
endif
if ( RemCast == 53 )
player->RemoveSpell, "53Enchant"
endif
if ( RemCast == 54 )
player->RemoveSpell, "54Enchant"
endif
if ( RemCast == 55 )
player->RemoveSpell, "55Enchant"
endif
if ( RemCast == 56 )
player->RemoveSpell, "56Enchant"
endif
if ( RemCast == 57 )
player->RemoveSpell, "57Enchant"
endif
if ( RemCast == 58 )
player->RemoveSpell, "58Enchant"
endif
if ( RemCast == 59 )
player->RemoveSpell, "59Enchant"
endif
if ( RemCast == 60 )
player->RemoveSpell, "60Enchant"
endif
if ( RemCast == 61 )
player->RemoveSpell, "61Enchant"
endif
if ( RemCast == 62 )
player->RemoveSpell, "62Enchant"
endif
if ( RemCast == 63 )
player->RemoveSpell, "63Enchant"
endif
if ( RemCast == 64 )
player->RemoveSpell, "64Enchant"
endif
if ( RemCast == 65 )
player->RemoveSpell, "65Enchant"
endif
if ( RemCast == 66 )
player->RemoveSpell, "66Enchant"
endif
if ( RemCast == 67 )
player->RemoveSpell, "67Enchant"
endif
if ( RemCast == 68 )
player->RemoveSpell, "68Enchant"
endif
if ( RemCast == 69 )
player->RemoveSpell, "69Enchant"
endif
if ( RemCast == 70 )
player->RemoveSpell, "70Enchant"
endif
if ( RemCast == 71 )
player->RemoveSpell, "71Enchant"
endif
if ( RemCast == 72 )
player->RemoveSpell, "72Enchant"
endif
if ( RemCast == 73 )
player->RemoveSpell, "73Enchant"
endif
if ( RemCast == 74 )
player->RemoveSpell, "74Enchant"
endif
if ( RemCast == 75 )
player->RemoveSpell, "75Enchant"
endif
if ( RemCast == 76 )
player->RemoveSpell, "76Enchant"
endif
if ( RemCast == 77 )
player->RemoveSpell, "77Enchant"
endif
if ( RemCast == 78 )
player->RemoveSpell, "78Enchant"
endif
if ( RemCast == 79 )
player->RemoveSpell, "79Enchant"
endif
if ( RemCast == 80 )
player->RemoveSpell, "80Enchant"
endif
if ( RemCast == 81 )
player->RemoveSpell, "81Enchant"
endif
if ( RemCast == 82 )
player->RemoveSpell, "82Enchant"
endif
if ( RemCast == 83 )
player->RemoveSpell, "83Enchant"
endif
if ( RemCast == 84 )
player->RemoveSpell, "84Enchant"
endif
if ( RemCast == 85 )
player->RemoveSpell, "85Enchant"
endif
if ( RemCast == 86 )
player->RemoveSpell, "86Enchant"
endif
if ( RemCast == 87 )
player->RemoveSpell, "87Enchant"
endif
if ( RemCast == 88 )
player->RemoveSpell, "88Enchant"
endif
if ( RemCast == 89 )
player->RemoveSpell, "89Enchant"
endif
if ( RemCast == 90 )
player->RemoveSpell, "90Enchant"
endif
if ( RemCast == 91 )
player->RemoveSpell, "91Enchant"
endif
if ( RemCast == 92 )
player->RemoveSpell, "92Enchant"
endif
if ( RemCast == 93 )
player->RemoveSpell, "93Enchant"
endif
if ( RemCast == 94 )
player->RemoveSpell, "94Enchant"
endif
if ( RemCast == 95 )
player->RemoveSpell, "95Enchant"
endif
if ( RemCast == 96 )
player->RemoveSpell, "96Enchant"
endif
if ( RemCast == 97 )
player->RemoveSpell, "97Enchant"
endif
if ( RemCast == 98 )
player->RemoveSpell, "98Enchant"
endif
if ( RemCast == 99 )
player->RemoveSpell, "99Enchant"
endif
if ( RemCast == 100 )
player->RemoveSpell, "100Enchant"
endif
if ( RemCast == 101 )
player->RemoveSpell, "101Enchant"
endif
if ( RemCast == 102 )
player->RemoveSpell, "102Enchant"
endif
if ( RemCast == 103 )
player->RemoveSpell, "103Enchant"
endif
if ( RemCast == 104 )
player->RemoveSpell, "104Enchant"
endif
if ( RemCast == 105 )
player->RemoveSpell, "105Enchant"
endif
if ( RemCast == 106 )
player->RemoveSpell, "106Enchant"
endif
if ( RemCast == 107 )
player->RemoveSpell, "107Enchant"
endif
if ( RemCast == 108 )
player->RemoveSpell, "108Enchant"
endif
if ( RemCast == 109 )
player->RemoveSpell, "109Enchant"
endif
if ( RemCast == 110 )
player->RemoveSpell, "110Enchant"
endif
if ( RemCast == 111 )
player->RemoveSpell, "111Enchant"
endif
if ( RemCast == 112 )
player->RemoveSpell, "112Enchant"
endif
if ( RemCast == 113 )
player->RemoveSpell, "113Enchant"
endif
if ( RemCast == 114 )
player->RemoveSpell, "114Enchant"
endif
if ( RemCast == 115 )
player->RemoveSpell, "115Enchant"
endif
if ( RemCast == 116 )
player->RemoveSpell, "116Enchant"
endif
if ( RemCast == 117 )
player->RemoveSpell, "117Enchant"
endif
if ( RemCast == 118 )
player->RemoveSpell, "118Enchant"
endif
if ( RemCast == 119 )
player->RemoveSpell, "119Enchant"
endif
if ( RemCast == 120 )
player->RemoveSpell, "120Enchant"
endif
if ( RemCast == 121 )
player->RemoveSpell, "121Enchant"
endif
if ( RemCast == 122 )
player->RemoveSpell, "122Enchant"
endif
if ( RemCast == 123 )
player->RemoveSpell, "123Enchant"
endif
if ( RemCast == 124 )
player->RemoveSpell, "124Enchant"
endif
if ( RemCast == 125 )
player->RemoveSpell, "125Enchant"
endif
if ( RemCast == 126 )
player->RemoveSpell, "126Enchant"
endif
if ( RemCast == 127 )
player->RemoveSpell, "127Enchant"
endif
if ( RemCast == 128 )
player->RemoveSpell, "128Enchant"
endif
if ( RemCast == 129 )
player->RemoveSpell, "129Enchant"
endif
if ( RemCast == 130 )
player->RemoveSpell, "130Enchant"
endif
if ( RemCast == 131 )
player->RemoveSpell, "131Enchant"
endif
if ( RemCast == 132 )
player->RemoveSpell, "132Enchant"
endif
if ( RemCast == 133 )
player->RemoveSpell, "133Enchant"
endif
if ( RemCast == 134 )
player->RemoveSpell, "134Enchant"
endif
if ( RemCast == 135 )
player->RemoveSpell, "135Enchant"
endif
if ( RemCast == 136 )
player->RemoveSpell, "136Enchant"
endif
if ( RemCast == 137 )
player->RemoveSpell, "137Enchant"
endif
if ( RemCast == 138 )
player->RemoveSpell, "138Enchant"
endif
if ( RemCast == 139 )
player->RemoveSpell, "139Enchant"
endif
if ( RemCast == 140 )
player->RemoveSpell, "140Enchant"
endif
if ( RemCast == 141 )
player->RemoveSpell, "141Enchant"
endif
if ( RemCast == 142 )
player->RemoveSpell, "142Enchant"
endif
if ( RemCast == 143 )
player->RemoveSpell, "143Enchant"
endif
if ( RemCast == 144 )
player->RemoveSpell, "144Enchant"
endif
if ( RemCast == 145 )
player->RemoveSpell, "145Enchant"
endif
if ( RemCast == 146 )
player->RemoveSpell, "146Enchant"
endif
if ( RemCast == 147 )
player->RemoveSpell, "147Enchant"
endif
if ( RemCast == 148 )
player->RemoveSpell, "148Enchant"
endif
if ( RemCast == 149 )
player->RemoveSpell, "149Enchant"
endif
if ( RemCast == 150 )
player->RemoveSpell, "150Enchant"
endif
if ( RemCast == 151 )
player->RemoveSpell, "151Enchant"
endif
if ( RemCast == 152 )
player->RemoveSpell, "152Enchant"
endif
if ( RemCast == 153 )
player->RemoveSpell, "153Enchant"
endif
if ( RemCast == 154 )
player->RemoveSpell, "154Enchant"
endif
if ( RemCast == 155 )
player->RemoveSpell, "155Enchant"
endif
if ( RemCast == 156 )
player->RemoveSpell, "156Enchant"
endif
if ( RemCast == 157 )
player->RemoveSpell, "157Enchant"
endif
if ( RemCast == 158 )
player->RemoveSpell, "158Enchant"
endif
if ( RemCast == 159 )
player->RemoveSpell, "159Enchant"
endif
if ( RemCast == 160 )
player->RemoveSpell, "160Enchant"
endif
if ( RemCast == 161 )
player->RemoveSpell, "161Enchant"
endif
if ( RemCast == 162 )
player->RemoveSpell, "162Enchant"
endif
if ( RemCast == 163 )
player->RemoveSpell, "163Enchant"
endif
if ( RemCast == 164 )
player->RemoveSpell, "164Enchant"
endif
if ( RemCast == 165 )
player->RemoveSpell, "165Enchant"
endif
if ( RemCast == 166 )
player->RemoveSpell, "166Enchant"
endif
if ( RemCast == 167 )
player->RemoveSpell, "167Enchant"
endif
if ( RemCast == 168 )
player->RemoveSpell, "168Enchant"
endif
if ( RemCast == 169 )
player->RemoveSpell, "169Enchant"
endif
if ( RemCast == 170 )
player->RemoveSpell, "170Enchant"
endif
if ( RemCast == 171 )
player->RemoveSpell, "171Enchant"
endif
if ( RemCast == 172 )
player->RemoveSpell, "172Enchant"
endif
if ( RemCast == 173 )
player->RemoveSpell, "173Enchant"
endif
if ( RemCast == 174 )
player->RemoveSpell, "174Enchant"
endif
if ( RemCast == 175 )
player->RemoveSpell, "175Enchant"
endif
if ( RemCast == 176 )
player->RemoveSpell, "176Enchant"
endif
if ( RemCast == 177 )
player->RemoveSpell, "177Enchant"
endif
if ( RemCast == 178 )
player->RemoveSpell, "178Enchant"
endif
if ( RemCast == 179 )
player->RemoveSpell, "179Enchant"
endif
if ( RemCast == 180 )
player->RemoveSpell, "180Enchant"
endif
if ( RemCast == 181 )
player->RemoveSpell, "181Enchant"
endif
if ( RemCast == 182 )
player->RemoveSpell, "182Enchant"
endif
if ( RemCast == 183 )
player->RemoveSpell, "183Enchant"
endif
if ( RemCast == 184 )
player->RemoveSpell, "184Enchant"
endif
if ( RemCast == 185 )
player->RemoveSpell, "185Enchant"
endif
if ( RemCast == 186 )
player->RemoveSpell, "186Enchant"
endif
if ( RemCast == 187 )
player->RemoveSpell, "187Enchant"
endif
if ( RemCast == 188 )
player->RemoveSpell, "188Enchant"
endif
if ( RemCast == 189 )
player->RemoveSpell, "189Enchant"
endif
if ( RemCast == 190 )
player->RemoveSpell, "190Enchant"
endif
if ( RemCast == 191 )
player->RemoveSpell, "191Enchant"
endif
if ( RemCast == 192 )
player->RemoveSpell, "192Enchant"
endif
if ( RemCast == 193 )
player->RemoveSpell, "193Enchant"
endif
if ( RemCast == 194 )
player->RemoveSpell, "194Enchant"
endif
if ( RemCast == 195 )
player->RemoveSpell, "195Enchant"
endif
if ( RemCast == 196 )
player->RemoveSpell, "196Enchant"
endif
if ( RemCast == 197 )
player->RemoveSpell, "197Enchant"
endif
if ( RemCast == 198 )
player->RemoveSpell, "198Enchant"
endif
if ( RemCast == 199 )
player->RemoveSpell, "199Enchant"
endif
if ( RemCast == 200 )
player->RemoveSpell, "200Enchant"
endif
; Set final values------------------------------
set RemCast to RealEnc
set NewEnc to ( player->GetEnchant )
endif
end EB_EnchantCheck