Begin Sorterscript A
short itemCount
short totalCount
short loopControl
if ( MenuMode == 1 )
return
endif
set loopControl to 0
if ( OnActivate = 1 )
set loopControl to 1
set totalCount to 0
endif
if (loopControl == 1)
set itemCount to ( player->GetItemCount, "ingred_alit_hide_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_alit_hide_01", 1
"Container-ID"->AddItem, "ingred_alit_hide_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bc_ampoule_pod" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bc_ampoule_pod", 1
"Container-ID"->AddItem, "ingred_bc_ampoule_pod", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_ash_salts_01" )
; MessageBox "Player has %g pieces of Ash Salts", itemCount
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_ash_salts_01", 1
"Container-ID"->AddItem, "ingred_ash_salts_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_ash_yam_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_ash_yam_01", 1
"Container-ID"->AddItem, "ingred_ash_yam_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bittergreen_petals_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bittergreen_petals_01", 1
"Container-ID"->AddItem, "ingred_bittergreen_petals_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_black_anther_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_black_anther_01", 1
"Container-ID"->AddItem, "ingred_black_anther_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_black_lichen_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_black_lichen_01", 1
"Container-ID"->AddItem, "ingred_black_lichen_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bloat_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bloat_01", 1
"Container-ID"->AddItem, "ingred_bloat_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bonemeal_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bonemeal_01", 1
"Container-ID"->AddItem, "ingred_bonemeal_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bread_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bread_01", 1
"Container-ID"->AddItem, "ingred_bread_01", 1
endwhile
endif
set loopControl to 2
endif
if ( loopControl == 2)
set itemCount to ( player->GetItemCount, "ingred_bc_bungler's_bane" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bc_bungler's_bane", 1
"Container-ID"->AddItem, "ingred_bc_bungler's_bane", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_chokeweed_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_chokeweed_01", 1
"Container-ID"->AddItem, "ingred_chokeweed_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bc_coda_flower" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bc_coda_flower", 1
"Container-ID"->AddItem, "ingred_bc_coda_flower", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_comberry_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_comberry_01", 1
"Container-ID"->AddItem, "ingred_comberry_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_coprinus_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_coprinus_01", 1
"Container-ID"->AddItem, "ingred_coprinus_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_corkbulb_root_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_corkbulb_root_01", 1
"Container-ID"->AddItem, "ingred_corkbulb_root_01", 1
endwhile
endif
; It's all the same Corprus Meat, really.
;
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_01", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_02" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_02", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_02", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_03" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_03", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_03", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_04" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_04", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_04", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_05" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_05", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_05", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_06" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_06", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_06", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_6th_corprusmeat_07" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_6th_corprusmeat_07", 1
"Container-ID"->AddItem, "ingred_6th_corprusmeat_07", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_corprus_weepings_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_corprus_weepings_01", 1
"Container-ID"->AddItem, "ingred_corprus_weepings_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_crab_meat_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_crab_meat_01", 1
"Container-ID"->AddItem, "ingred_crab_meat_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_daedras_heart_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_daedras_heart_01", 1
"Container-ID"->AddItem, "ingred_daedras_heart_01", 1
endwhile
endif
set loopControl to 3
endif
if (loopControl == 3)
set itemCount to ( player->GetItemCount, "ingred_daedra_skin_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_daedra_skin_01", 1
"Container-ID"->AddItem, "ingred_daedra_skin_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_diamond_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_diamond_01", 1
"Container-ID"->AddItem, "ingred_diamond_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_dreugh_wax_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_dreugh_wax_01", 1
"Container-ID"->AddItem, "ingred_dreugh_wax_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_raw_ebony_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_raw_ebony_01", 1
"Container-ID"->AddItem, "ingred_raw_ebony_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_ectoplasm_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_ectoplasm_01", 1
"Container-ID"->AddItem, "ingred_ectoplasm_01", 1
endwhile
endif
; Unless noted, all good above here.
set itemCount to ( player->GetItemCount, "food_kwama_egg_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "food_kwama_egg_01", 1
"Container-ID"->AddItem, "food_kwama_egg_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "food_kwama_egg_02" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "food_kwama_egg_02", 1
"Container-ID"->AddItem, "food_kwama_egg_02", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_emerald_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_emerald_01", 1
"Container-ID"->AddItem, "ingred_emerald_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_fire_petal_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_fire_petal_01", 1
"Container-ID"->AddItem, "ingred_fire_petal_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_fire_salts_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_fire_salts_01", 1
"Container-ID"->AddItem, "ingred_fire_salts_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_frost_salts_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_frost_salts_01", 1
"Container-ID"->AddItem, "ingred_frost_salts_01", 1
endwhile
endif
set loopControl to 4
endif
if (loopControl == 4)
; Ditto.
set itemCount to ( player->GetItemCount, "ingred_ghoul_heart_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_ghoul_heart_01", 1
"Container-ID"->AddItem, "ingred_ghoul_heart_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_raw_glass_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_raw_glass_01", 1
"Container-ID"->AddItem, "ingred_raw_glass_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_gold_kanet_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_gold_kanet_01", 1
"Container-ID"->AddItem, "ingred_gold_kanet_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_gravedust_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_gravedust_01", 1
"Container-ID"->AddItem, "ingred_gravedust_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_green_lichen_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_green_lichen_01", 1
"Container-ID"->AddItem, "ingred_green_lichen_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_guar_hide_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_guar_hide_01", 1
"Container-ID"->AddItem, "ingred_guar_hide_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_hackle-lo_leaf_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_hackle-lo_leaf_01", 1
"Container-ID"->AddItem, "ingred_hackle-lo_leaf_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_heather_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_heather_01", 1
"Container-ID"->AddItem, "ingred_heather_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_hound_meat_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_hound_meat_01", 1
"Container-ID"->AddItem, "ingred_hound_meat_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bc_hypha_facia" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bc_hypha_facia", 1
"Container-ID"->AddItem, "ingred_bc_hypha_facia", 1
endwhile
endif
set loopControl to 5
endif
if (loopControl == 5)
set itemCount to ( player->GetItemCount, "ingred_kagouti_hide_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_kagouti_hide_01", 1
"Container-ID"->AddItem, "ingred_kagouti_hide_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_kresh_fiber_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_kresh_fiber_01", 1
"Container-ID"->AddItem, "ingred_kresh_fiber_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_kwama_cuttle_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_kwama_cuttle_01", 1
"Container-ID"->AddItem, "ingred_kwama_cuttle_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_marshmerrow_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_marshmerrow_01", 1
"Container-ID"->AddItem, "ingred_marshmerrow_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_moon_sugar_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_moon_sugar_01", 1
"Container-ID"->AddItem, "ingred_moon_sugar_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_muck_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_muck_01", 1
"Container-ID"->AddItem, "ingred_muck_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_netch_leather_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_netch_leather_01", 1
"Container-ID"->AddItem, "ingred_netch_leather_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_pearl_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_pearl_01", 1
"Container-ID"->AddItem, "ingred_pearl_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_racer_plumes_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_racer_plumes_01", 1
"Container-ID"->AddItem, "ingred_racer_plumes_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_rat_meat_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_rat_meat_01", 1
"Container-ID"->AddItem, "ingred_rat_meat_01", 1
endwhile
endif
set loopControl to 6
endif
if (loopControl == 6)
set itemCount to ( player->GetItemCount, "ingred_red_lichen_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_red_lichen_01", 1
"Container-ID"->AddItem, "ingred_red_lichen_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_resin_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_resin_01", 1
"Container-ID"->AddItem, "ingred_resin_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_roobrush_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_roobrush_01", 1
"Container-ID"->AddItem, "ingred_roobrush_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_ruby_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_ruby_01", 1
"Container-ID"->AddItem, "ingred_ruby_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_russula_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_russula_01", 1
"Container-ID"->AddItem, "ingred_russula_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_saltrice_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_saltrice_01", 1
"Container-ID"->AddItem, "ingred_saltrice_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_scales_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scales_01", 1
"Container-ID"->AddItem, "ingred_scales_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_scamp_skin_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scamp_skin_01", 1
"Container-ID"->AddItem, "ingred_scamp_skin_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_scrap_metal_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scrap_metal_01", 1
"Container-ID"->AddItem, "ingred_scrap_metal_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_scathecraw_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scathecraw_01", 1
"Container-ID"->AddItem, "ingred_scathecraw_01", 1
endwhile
endif
set loopControl to 7
endif
if (loopControl == 7)
set itemCount to ( player->GetItemCount, "ingred_scrib_jerky_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scrib_jerky_01", 1
"Container-ID"->AddItem, "ingred_scrib_jerky_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_scrib_jelly_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scrib_jelly_01", 1
"Container-ID"->AddItem, "ingred_scrib_jelly_01", 1
endwhile
endif
; Meteor Slime is just Scrib Jelly with another name. The sooner you realise that, the
; happier you'll be.
set itemCount to ( player->GetItemCount, "ingred_scrib_jelly_02" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scrib_jelly_02", 1
"Container-ID"->AddItem, "ingred_scrib_jelly_02", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_scuttle_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_scuttle_01", 1
"Container-ID"->AddItem, "ingred_scuttle_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_shalk_resin_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_shalk_resin_01", 1
"Container-ID"->AddItem, "ingred_shalk_resin_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_sload_soap_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_sload_soap_01", 1
"Container-ID"->AddItem, "ingred_sload_soap_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_bc_spore_pod" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_bc_spore_pod", 1
"Container-ID"->AddItem, "ingred_bc_spore_pod", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_stoneflower_petals_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_stoneflower_petals_01", 1
"Container-ID"->AddItem, "ingred_stoneflower_petals_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_trama_root_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_trama_root_01", 1
"Container-ID"->AddItem, "ingred_trama_root_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_vampire_dust_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_vampire_dust_01", 1
"Container-ID"->AddItem, "ingred_vampire_dust_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_void_salts_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_void_salts_01", 1
"Container-ID"->AddItem, "ingred_void_salts_01", 1
endwhile
endif
set loopControl to 8
endif
if ( loopControl == 8)
set itemCount to ( player->GetItemCount, "ingred_wickwheat_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_wickwheat_01", 1
"Container-ID"->AddItem, "ingred_wickwheat_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_willow_anther_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_willow_anther_01", 1
"Container-ID"->AddItem, "ingred_willow_anther_01", 1
endwhile
endif
set loopControl to 9
endif
; The following loop is all cursed items. It replaces them with uncursed items of the same
; type. This isn't a cheat as by the time the item gets to the sorter, the curse has already
; been activated (Dremora Lord summoned when the item is picked up).
if ( loopControl == 9 )
set itemCount to ( player->GetItemCount, "ingred_cursed_daedras_heart_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_cursed_daedras_heart_01", 1
"Container-ID"->AddItem, "ingred_daedras_heart_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_Dae_cursed_diamond_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_Dae_cursed_diamond_01", 1
"Container-ID"->AddItem, "ingred_diamond_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_Dae_cursed_emerald_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_Dae_cursed_emerald_01", 1
"Container-ID"->AddItem, "ingred_emerald_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_Dae_cursed_pearl_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_Dae_cursed_pearl_01", 1
"Container-ID"->AddItem, "ingred_diamond_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_Dae_cursed_raw_ebony_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_Dae_cursed_raw_ebony_01", 1
"Container-ID"->AddItem, "ingred_raw_ebony_01", 1
endwhile
endif
set itemCount to ( player->GetItemCount, "ingred_Dae_cursed_ruby_01" )
set totalCount to totalCount + itemCount
if ( itemCount > 0 )
while ( itemCount > 0 )
set itemCount to ( itemCount - 1 )
player->RemoveItem, "ingred_Dae_cursed_ruby_01", 1
"Container-ID"->AddItem, "ingred_ruby_01", 1
endwhile
endif
; The end is nigh!
set loopControl to 100
endif
if ( loopControl == 100)
if ( totalCount > 0 )
PlaySound "Item Misc Up"
MessageBox "%g Zutaten entfernt.", totalCount
else
PlaySound "Menu Click"
MessageBox "Ihr habt keine Zutaten bei Euch."
endif
endif
End