PDA

View Full Version : NpC mới T_T



jxvietnam
21-11-10, 06:59 AM
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

À 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.


-----------------------------------------------------------
--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:)

jxvietnam
22-11-10, 07:19 PM
up không ai giúp tui àh :(....................

kinkina2009
22-11-10, 07:35 PM
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 :)