石器时代LA官方

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 6665|回复: 0

[源代码] 幸运星的主要代码

[复制链接]

1万

主题

491

回帖

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35506
石币
24669
发表于 2013-7-16 19:00:49 | 显示全部楼层 |阅读模式

#ifdef _LUCKSTAR
      if ( LuckStarTimeloop_counter > 60*getLuckStarTime() && getLuckStarTime() > 0 )
      {
        srand( (int)time(0) );
        if( rand() % getLuckStarTime() > 600 )
        {
          int LuckStarCharindex;
          srand( (int)time(0) );
          LuckStarCharindex = rand() % CHAR_getPlayerMaxNum();

          srand( (int)time(0) );
          int LuckItemNum = rand() % 10;

          srand( (int)time(0) );
          int LuckPetNum = rand() % 10;

          LuckStar( LuckStarCharindex, LuckItemNum, LuckPetNum );
        }
        LuckStarTimeloop_counter = 0;
      }
#endif
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|石器时代LA官方

GMT+8, 2024-5-1 23:51 , Processed in 0.110073 second(s), 24 queries .

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表