if (!IS_NPC(victim)){
dam = ch->pcdata->powers[VAM_OBTE] * 20;
}else if (IS_NPC(victim)){
dam = ch->pcdata->powers[VAM_OBTE] * 100;
}
if (!IS_NPC(victim)){
dam = ch->pcdata->powers[VAM_OBTE] * 20;
}else{
dam = ch->pcdata->powers[VAM_OBTE] * 100;
}
dam = ch->pcdata->powers[VAM_OBTE] * (IS_NPC(victim))? 100: 20;
int dam = 0;
dam = ch->pcdata->powers[VAM_OBTE] * (IS_NPC(victim))? 100: 20;
if (IS_NPC(ch)) return;
i = 1;
if (condition)
j = 1;
else
j = 2;
k = 3;
int i = 1;
int j;
if (condition)
j = 2
I think the biggest problem with this function is how sloppy it is but maybe thats just me. Anyway, if somebody can see whats in the wrong place please let me know.