No that is not the preload part, this is preload part:
function PreloadSounds() {
//Preload(PORTAL_WARNING_SOUND_FILE);
TriggerSleepAction(0.);
PlayBasicSound(PORTAL_WARNING_SOUND_FILE, false, 1., 0., 0., null);
PlayBasicSound(PORTAL_BIRTH_SOUND_FILE, true, 1., 0., 0., null);
PlayBasicSound(PORTAL_DEATH_SOUND_FILE, true, 1., 0., 0., null);
PlayBasicSound(PORTAL_ENTRANCE_SOUND_FILE, true, 1., 0., 0., null);
PlayBasicSound(PORTAL_AMBIENCE_SOUND_FILE, true, 1., 0., 0., null);
}
// -----------------------------
PreloadSounds.execute();
// -----------------------------
----------------------------------------------------------------------
you can delete first 90 lines of code except //! zinc line.
Glade you like the spell, and i think that you cant compile maybe because its old version of JNGP, here is newer version.