Perhaps try this:
Edit spells.cpp and go to the line it says, 3382
and change it from :
Code:
if(caster && caster->IsBot())
to:
Code:
if(caster && caster->CastToNPC()->IsBot())
Same with 3386
from:
Code:
sint32 focusResist = caster->GetBotFocusEffect(botfocusResistRate, spell_id);
To:
Code:
sint32 focusResist = caster->CastToBot()->GetBotFocusEffect(12, spell_id);
Since when the bot class gets declared, it's 'class Bot : public NPC {' I think if you cast it over to NPC it should work alright for the IsBot() function, then for the Focus Effect the check is made prior to see if it's a bot or not, so shold be safe to cast it to bot...
botfocusResistRate is just an enumerator for the value of 12, and since it's giving you issues I just temp fixed it with that value.
Anyways, let me know if it compiles. Seems ubuntu's gcc compiler is being more anal receptive than VS2k8