BUILDIN_FUNC(bg_reward)
{
int bg_id, nameid, amount, kafrapoints, quest_id, add_value, bg_arena, bg_result;
const char *var;
bg_id = script_getnum(st,2);
nameid = script_getnum(st,3);
amount = script_getnum(st,4);
kafrapoints = script_getnum(st,5);
quest_id = script_getnum(st,6);
var = script_getstr(st,7);
add_value = script_getnum(st,8);
bg_arena = script_getnum(st,9);
bg_result = script_getnum(st,10);
bg_team_rewards(bg_id, nameid, amount, kafrapoints, quest_id, var, add_value, bg_arena, bg_result);
return 0;
}