NpC mới T_T
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 3 của 3

Chủ đề: NpC mới T_T

  1. #1
    Moderator
    Ngày tham gia
    May 2009
    Đang ở
    Nơi rất xa
    Bài viết
    2,479
    Thanks
    572
    Thanked 1,847 Times in 502 Posts

    NpC mới T_T

    Rãnh ngồi add mấy em npc mới. Chỉnh res xong copy qua client. Vào game test thử với CoreClient 4.1 thì thấy npc tàng hình @@. Sử dụng CoreClient bình thường thì thấy đc npc. Ai biết lỗi gì không

    À còn script của JX49 này nữa ai fix dùm tui nhé. Chuyển sinh xong không +point vào trấn phái đc.
    Code:
    -----------------------------------------------------------
    --Update by DNTmaster
    -----------------------------------------------------------
    Include("\\Script\\global\\sourcejx49.lua");
    Include("\\script\\两湖区\\巴陵县\\npc\\trungsinh.lua");
    
    function main()
        return skillfaction()
    end;
    
    function faction()
        if GetFaction() == "Thieu Lam Phai" then
        return 1
        elseif GetFaction() == "Thien Vuong Bang" then
        return 2
        elseif GetFaction() == "Nga My Phai" then
        return 5
        elseif GetFaction() == "Thuy Yen Mon" then
        return 6
        elseif GetFaction() == "Duong Mon" then
        return 3
        elseif GetFaction() == "Ngu Doc Giao" then
        return 4
        elseif GetFaction() == "Cai Bang" then
        return 7
        elseif GetFaction() == "Thien Nhan Giao" then
        return 8
        elseif GetFaction() == "Vo Dang Phai" then
        return 9
        elseif GetFaction() == "Con Lon Phai" then
        return 10
        end
    end;
    
    mainskill = {
    {273,"Nhu Lai Thien Diep"},
    {36,"Thien Vuong Chien Y"},
    {48,"Tam Nhan"},
    {75,"Ngu Doc Ky Kinh"},
    {252,"Phat Phap Vo Bien"},
    {114,"Bang Cot Tuyet Tam"},
    {130,"Tuy Diep Cuong Vu"},
    {150,"Thien Ma Giai The"},
    {166,"Thai Cuc Than Cong"},
    {275,"Suong Ngao Con Luan"}
    }
    
    MESSAGES={
        "Ky nang tran phai『%s』tang len 1 cap。",
        "Ky nang tran phai『%s』da dat den muc gioi han。"
    }
    
    function skillfaction()
        if faction() == 1 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 2 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 3 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 4 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 5 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 6 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 7 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 8 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 9 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        elseif faction() == 10 then
            look = GetTask(TaskTrungSinh)
            if look == 0 then
            SkillUpLevel(30)
            elseif lock >= 1 and look < 10 then
            SkillUpLevel(33)
            elseif look >= 10 and look < 50 then
            SkillUpLevel(35)
            elseif look >= 50 and look < 150 then
            SkillUpLevel(40)
            elseif look >= 150 then
            SkillUpLevel(45)
            end
        end
    end;
    
    function SkillUpLevel(maxs)
    num = HaveMagic(mainskill[faction()][1])
    if GetLevel() >= num+60 then
        if num < maxs then
        AddMagic(mainskill[faction()][1],num+1)
        AddMagicPoint(-1)
        Msg2Player(format(MESSAGES[1],mainskill[faction()][2]))
        return 1
        else
        Msg2Player(format(MESSAGES[2],mainskill[faction()][2]))
        return 0
        end
    else
    Msg2Player("Can dang cap "..(num+60).." de thang cap")
    end
    end;
    Thank
    Khách viếng thăm hãy cùng jxvietnam xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Moderator
    Ngày tham gia
    May 2009
    Đang ở
    Nơi rất xa
    Bài viết
    2,479
    Thanks
    572
    Thanked 1,847 Times in 502 Posts

    Ðề: NpC mới T_T

    up không ai giúp tui àh ....................
    Khách viếng thăm hãy cùng jxvietnam xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #3
    Lão Làng Chém Gió
    Ngày tham gia
    Sep 2009
    Đang ở
    Chém
    Bài viết
    1,445
    Thanks
    1
    Thanked 45 Times in 14 Posts

    Ðề: NpC mới T_T

    Script chuyển sinh :
    xem lại cái function skillfaction()
    lock --> look là ok


    NPC mới add vào mà dùng CoreClient. 4.1 thì không hiện đâu, thử pack lại xem
    Khách viếng thăm hãy cùng kinkina2009 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à 03: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ệ.