i managed to fix it, just moved this:
//disable unused npcs for now
disablenpc instance_npcname( "sfwarp#1", instance_id() );
disablenpc instance_npcname( "sfwarp#2", instance_id() );
from line 141,142,143, to line 233
OnInstanceInit:
set .@map$, strnpcinfo(4);
set .@npc_name$, instance_npcname( strnpcinfo(0), instance_id() );
//apply mapflags
setmapflag .@map$,mf_nomobloot;
setmapflag .@map$,mf_nomvploot;
//disable unused npcs for now
disablenpc instance_npcname( "sfwarp#1", instance_id() );
disablenpc instance_npcname( "sfwarp#2", instance_id() );