viewing paste Unknown #22970 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// script.c после BUILDIN(bg_reward) { .... }
// добавляем:
BUILDIN(bg_team_reveal)
{
        struct battleground_data *bgd;
        int bg_id;
 
        bg_id = script_getnum(st,2);
        if( (bgd = bg->team_search(bg_id)) == NULL )
                return false;
 
        bgd->reveal_pos_sub = 1; // Reveal Position Mode
        return true;
}
 
// после BUILDIN_DEF(bg_reward,"iiiiisiii"),
// добавляем:
BUILDIN_DEF(bg_team_reveal,"i"),
Viewed 337 times, submitted by unknown.