[Gunny] TUT TỒ Chỉnh xu PVP
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 4 của 4
  1. #1
    Baka Gà Mờ haidang115's Avatar
    Ngày tham gia
    May 2012
    Bài viết
    599
    Thanks
    126
    Thanked 288 Times in 87 Posts

    TUT TỒ Chỉnh xu PVP

    Như trên cái này trong 3.0 mình lấy ra thôi

    đầu tiên vào Game.Logic/PVPGame.cs
    tìm đoạn

    private static readonly new ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod() .DeclaringType);

    khúc gần đầu ấy rồi thêm sau nó:

    private static readonly int Xu_Rate = Int32.Parse(ConfigurationSettings.AppSettings["Xu_Rate"]);
    private static readonly int Gold_Rate = Int32.Parse(ConfigurationSettings.AppSettings["Gold_Rate"]);
    private static readonly int GP_Rate = Int32.Parse(ConfigurationSettings.AppSettings["GP_Rate"]);
    private static readonly int Gift_Rate = Int32.Parse(ConfigurationSettings.AppSettings["Gift_Rate"]);

    ok tiếp theo tìm

    p.GainGP = p.PlayerDetail.AddGP(gp);

    thay bằng

    if (RoomType != eRoomType.Freedom)
    {
    p.PlayerDetail.AddMoney((int)Math.Round((double)Xu _Rate * gp));
    p.PlayerDetail.AddGold((int)Math.Round((double)Gol d_Rate * gp));
    p.PlayerDetail.AddGiftToken((int)Math.Round((doubl e)Gift_Rate * gp));
    }
    p.GainGP = p.PlayerDetail.AddGP((int)GP_Rate * gp);

    var msg = LanguageMgr.GetTranslation("PVPGame.SendGameOVer.M sg1", (int)Math.Round((double)Xu_Rate * gp), (int)Math.Round((double)Xu_Rate * gp));
    p.PlayerDetail.SendMessage(msg);

    ok save lại rồi dùng visual build ra nhé



    tùy chỉnh lương xu vào Fighting.Service.exe.config và Road.Service.exe.config

    tìm dòng

    <add key="GP_Rate" value="1"/>
    <add key="Xu_Rate" value="5"/>
    <add key="Gold_Rate" value="0"/>
    <add key="Gift_Rate" value="0"/>

    làm được thanks phát
    [Only registered and activated users can see links. ] nghiện hen cmnr
    [Only registered and activated users can see links. ] xem cùng cho vui
    [Only registered and activated users can see links. ] Bức tượng đài web hen @@

  2. The Following 9 Users Say Thank You to haidang115 For This Useful Post:

    bombom859 (15-07-13), chickenmut (17-08-13), datdn74 (14-07-13), KaizLuvPy (14-07-13), kjssdara99 (14-07-13), meocon5000 (14-07-13), phamlegiabao (23-08-13), trunghhyy (16-07-13), vinh8c058 (07-03-15)

  3. #2
    Thành Viên datdn74's Avatar
    Ngày tham gia
    Jan 2013
    Bài viết
    214
    Thanks
    120
    Thanked 97 Times in 26 Posts

    Ðề: TUT TỒ Chỉnh xu PVP

    mơ hàng đầu tiên đây (30 chả cá )
    Khách viếng thăm hãy cùng datdn74 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #3
    Baka Gà Mờ haidang115's Avatar
    Ngày tham gia
    May 2012
    Bài viết
    599
    Thanks
    126
    Thanked 288 Times in 87 Posts

    Ðề: TUT TỒ Chỉnh xu PVP

    cái này nhận xu theo lượng GP nhá GP* vs cái Xurate
    [Only registered and activated users can see links. ] nghiện hen cmnr
    [Only registered and activated users can see links. ] xem cùng cho vui
    [Only registered and activated users can see links. ] Bức tượng đài web hen @@

  5. #4
    Vi phạm quy định
    Ngày tham gia
    Jan 2013
    Bài viết
    107
    Thanks
    2
    Thanked 84 Times in 22 Posts

    Icon6 Ðề: TUT TỒ Chỉnh xu PVP

    Trích dẫn Gửi bởi haidang115 [Only registered and activated users can see links. ]
    Như trên cái này trong 3.0 mình lấy ra thôi

    đầu tiên vào Game.Logic/PVPGame.cs
    tìm đoạn

    private static readonly new ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod() .DeclaringType);

    khúc gần đầu ấy rồi thêm sau nó:

    private static readonly int Xu_Rate = Int32.Parse(ConfigurationSettings.AppSettings["Xu_Rate"]);
    private static readonly int Gold_Rate = Int32.Parse(ConfigurationSettings.AppSettings["Gold_Rate"]);
    private static readonly int GP_Rate = Int32.Parse(ConfigurationSettings.AppSettings["GP_Rate"]);
    private static readonly int Gift_Rate = Int32.Parse(ConfigurationSettings.AppSettings["Gift_Rate"]);

    ok tiếp theo tìm

    p.GainGP = p.PlayerDetail.AddGP(gp);

    thay bằng

    if (RoomType != eRoomType.Freedom)
    {
    p.PlayerDetail.AddMoney((int)Math.Round((double)Xu _Rate * gp));
    p.PlayerDetail.AddGold((int)Math.Round((double)Gol d_Rate * gp));
    p.PlayerDetail.AddGiftToken((int)Math.Round((doubl e)Gift_Rate * gp));
    }
    p.GainGP = p.PlayerDetail.AddGP((int)GP_Rate * gp);

    var msg = LanguageMgr.GetTranslation("PVPGame.SendGameOVer.M sg1", (int)Math.Round((double)Xu_Rate * gp), (int)Math.Round((double)Xu_Rate * gp));
    p.PlayerDetail.SendMessage(msg);

    ok save lại rồi dùng visual build ra nhé



    tùy chỉnh lương xu vào Fighting.Service.exe.config và Road.Service.exe.config

    tìm dòng

    <add key="GP_Rate" value="1"/>
    <add key="Xu_Rate" value="5"/>
    <add key="Gold_Rate" value="0"/>
    <add key="Gift_Rate" value="0"/>

    làm được thanks phát
    Gunny II làm như hướng dẫn , có sữa lại P. -> player. nhưng lỗi tè le hết. có thể free hết cái PVPGame.cs không
    haiđăng
    Khách viếng thăm hãy cùng nmvuong52 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 04:19 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.