用户登录  | 
首 页技术文章软件发布广告价格
当前位置:传奇游戏服务端下载站传奇站长论坛资源网站程序技术文章文章资讯游戏架设教程魔兽技术文章

将天赋陪率在conf文件设置

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2014-10-04 08:10:52
  1. Index: ascent.conf
  2. ===================================================================
  3. --- ascent.conf    (revision 2576)
  4. +++ ascent.conf    (working copy)
  5. @@ -270,7 +270,9 @@
  6.         SkillRate="1"
  7.         ArenaMultiplier2x="1"
  8.         ArenaMultiplier3x="1"
  9. -       ArenaMultiplier5x="1">
  10. +       ArenaMultiplier5x="1"
  11. +     Professions="2"
  12. +     TalentRate="1">
  13. #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
  14. Index: game/Player.cpp
  15. ===================================================================
  16. --- game/Player.cpp    (revision 2576)
  17. +++ game/Player.cpp    (working copy)
  18. @@ -691,7 +691,7 @@
  19.     SetUInt32Value(PLAYER_BYTES_3, ((gender) | (0x00 << 8) | (0x00 << 16) | (GetPVPRank() << 24)));
  20.     SetUInt32Value(PLAYER_NEXT_LEVEL_XP, 400);
  21.     SetUInt32Value(PLAYER_FIELD_BYTES, 0x08 );
  22. -    SetUInt32Value(PLAYER_CHARACTER_POINTS2,2);
  23. +    SetUInt32Value(PLAYER_CHARACTER_POINTS2, ( 1 * RATE_PROFESSION ) );
  24.     SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f);
  25.     SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.m_levelCap);
  26.   
  27. @@ -1374,7 +1374,7 @@
  28.         levelup = true;
  29.         if(level > 9)
  30. -            ModUInt32Value(PLAYER_CHARACTER_POINTS1, 1);
  31. +            ModUInt32Value(PLAYER_CHARACTER_POINTS1, ( 5 * RATE_TALENT ) );
  32.         if(level >= GetUInt32Value(PLAYER_FIELD_MAX_LEVEL))
  33.             break;
  34. @@ -1992,8 +1992,8 @@
  35. void Player::SaveToDB(bool bNewCharacter /* =false */)
  36. {
  37. -    if(m_uint32Values[PLAYER_CHARACTER_POINTS2]>2)
  38. -        m_uint32Values[PLAYER_CHARACTER_POINTS2]=2;
  39. +    if(m_uint32Values[PLAYER_CHARACTER_POINTS2]> ( 1 * RATE_PROFESSION ) )
  40. +        m_uint32Values[PLAYER_CHARACTER_POINTS2]= ( 1 * RATE_PROFESSION );
  41.  
  42.     //Calc played times
  43.     uint32 playedt = (uint32)UNIXTIME - m_playedtime[2];
  44. @@ -5535,7 +5535,7 @@
  45.     uint32 l=getLevel();
  46.     if(l>9)
  47.     {
  48. -        SetUInt32Value(PLAYER_CHARACTER_POINTS1, l - 9);
  49. +        SetUInt32Value(PLAYER_CHARACTER_POINTS1, (l - 9) * ( RATE_TALENT * 5 ) );
  50.     }
  51.     else
  52.     {
  53. @@ -5575,7 +5575,7 @@
  54.     SetUInt32Value(UNIT_FIELD_STAT4, info->spirit );
  55.     SetUInt32Value(UNIT_FIELD_ATTACK_POWER, info->attackpower );
  56.     SetUInt32Value(PLAYER_CHARACTER_POINTS1,0);
  57. -    SetUInt32Value(PLAYER_CHARACTER_POINTS2,2);
  58. +    SetUInt32Value(PLAYER_CHARACTER_POINTS2, ( 1 * RATE_PROFESSION ) );
  59.     for(uint32 x=0;x<7;x++)
  60.         SetFloatValue(PLAYER_FIELD_MOD_DAMAGE_DONE_PCT+x, 1.00);
  61. @@ -6966,7 +6966,7 @@
  62.     // Calculate talentpoints
  63.     uint32 TalentPoints = 0;
  64.     if(Level >= 10)
  65. -        TalentPoints = Level - 9;
  66. +        TalentPoints = ( Level - 9 ) * ( RATE_TALENT * 5 );
  67.     SetUInt32Value(PLAYER_CHARACTER_POINTS1, TalentPoints);
  68. Index: game/World.cpp
  69. ===================================================================
  70. --- game/World.cpp    (revision 2576)
  71. +++ game/World.cpp    (working copy)
  72. @@ -4486,6 +4486,8 @@
  73.     setRate(RATE_ARENAPOINTMULTIPLIER2X, Config.MainConfig.GetFloatDefault("Rates", "ArenaMultiplier2x", 1.0f));
  74.     setRate(RATE_ARENAPOINTMULTIPLIER3X, Config.MainConfig.GetFloatDefault("Rates", "ArenaMultiplier3x", 1.0f));
  75.     setRate(RATE_ARENAPOINTMULTIPLIER5X, Config.MainConfig.GetFloatDefault("Rates", "ArenaMultiplier5x", 1.0f));
  76. +    setIntRate(RATE_PROFESSION, Config.MainConfig.GetIntDefault("Rates", "Professions",1));
  77. +    setIntRate(RATE_TALENT, Config.MainConfig.GetIntDefault("Rates", "TalentRate",1));
  78.     SetPlayerLimit(Config.MainConfig.GetIntDefault("Server", "PlayerLimit", 1000));
  79.     SetMotd(Config.MainConfig.GetStringDefault("Server", "Motd", "Ascent Default MOTD").c_str());
  80.     mQueueUpdateInterval = Config.MainConfig.GetIntDefault("Server", "QueueUpdateInterval", 5000);
  81. Index: game/World.h
  82. ===================================================================
  83. --- game/World.h    (revision 2576)
  84. +++ game/World.h    (working copy)
  85. @@ -61,6 +61,8 @@
  86.     RATE_ARENAPOINTMULTIPLIER2X,
  87.     RATE_ARENAPOINTMULTIPLIER3X,
  88.     RATE_ARENAPOINTMULTIPLIER5X,
  89. +    RATE_PROFESSION,
  90. +    RATE_TALENT,
  91.     MAX_RATES
  92. };
商业版发布站程序下载:发布站程序下载:

Tags:

作者:佚名
  • 好的评价 如果您觉得此文章好,就请您
      0%(0)
  • 差的评价 如果您觉得此文章差,就请您
      0%(0)

文章评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
传奇资源网提供最新传奇开区一条龙版本下载,本站声明:只更新最新最好的传奇服务端分享给大家。