随笔 - 298  文章 - 377  trackbacks - 0
<2007年8月>
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(34)

随笔分类

随笔档案

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜

 case 7 :
                      
if(player->GetLevelPlayedTime() > 28800// 条件检查你在线时间大于8H.                      {
                        player->ModifyMoney(int32(1500000)); //满足条件获得150金币
                        player->SetInGameTime(uint32(NULL)); //将在玩家线时间归零
                        player->SEND_GOSSIP_MENU(88882,_Item->GetGUID());
                      } 
else if(player->GetLevelPlayedTime() > 18000)
                      {
                        player
->ModifyMoney(int32(800000));
                        player
->SetInGameTime(uint32(NULL));
                        player
->SEND_GOSSIP_MENU(88883,_Item->GetGUID());
                      } 
else if(player->GetLevelPlayedTime() > 7200)
                      {
                        player
->ModifyMoney(int32(300000));
                        player
->SetInGameTime(uint32(NULL));
                        player
->SEND_GOSSIP_MENU(88884,_Item->GetGUID());
                                          } 
else if(player->GetLevelPlayedTime() > 3600)
                      {
                        player
->ModifyMoney(int32(100000));
                        player
->SetInGameTime(uint32(NULL));
                        player
->SEND_GOSSIP_MENU(88886,_Item->GetGUID());
                    }
else player->SEND_GOSSIP_MENU(88885,_Item->GetGUID());
                    
break;


最后在数据库npc_text里面加入 
88881~88886的npc说话内容
posted on 2007-08-27 17:16 聂文龙 阅读(458) 评论(0)  编辑 收藏 引用 所属分类: ascent

只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理