순위 소스

2007.04.12 13:05

그리움 조회 수:174 추천:44

/*********************************************************/
/* 순위 */
/*********************************************************/
/***************make by 천신의요정(작대기)****************/

int levellist(ply_ptr, cmnd)
creature *ply_ptr;
cmd *cmnd;
{
     int fd, i, j, k=1, a=0;
     fd = ply_ptr->fd;
     if(F_ISSET(ply_ptr, PBLIND)){
        print(fd, "당신은 눈이 멀어 있습니다!\n");
        return(0);
     }

     for(i=0; i              if(!Ply[i].ply) continue;
            a++;
     }
     if(a <= 8){
     print(fd, "━━━━━━━━━━━━━━━━━━━━━━━━━\n");
     print(fd, " 순 위 이 름\n");
     print(fd, "━━━━━━━━━━━━━━━━━━━━━━━━━\n ");
     }
     else {
     print(fd,
"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n");
print(fd,
" 순 위 이 름 순 위 이 름 순 위 이 름\n");
     print(fd,
"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n");
     }
     for(j=255;j>0;j--) {
        for(i=0; i              if(!Ply[i].ply) continue;
            if(Ply[i].ply->level==j) {
                  print(fd, "[%2d 등] %-12s[%3d] "
                            , k, Ply[i].ply->name, Ply[i].ply->level);
                  if(a <= 8)
                      print(fd, "\n ");
                  else if(k%3 ==0)
                      print(fd, "\n ");
                  k++;
            }
        }
     }
     return(0);

}

홈지기 "그륨"


XE Login