jxonline94
05-06-11, 11:41 AM
Sửa dùm mình cái này với , mình tẩy kỹ năng thì OK . Tẩy tiềm năng thì nó đứng im ... GSV báo lỗi
function Doing()
TayTuy()
end;
function TayTuy()
TayDiem()
TaySkill()
ResetAll()
end;
function ResetAll()
diemkn = GetMagicPoint()
diemtn = GetProp()
AddMagicPoint(- diemkn)
AddProp(- diemtn)
point1 = GetTask(TaskTayTuyKinh)
point2 = GetTask(TaskVoLamMatTich)
lv = GetLevel()
pointThem1 = (((lv - 1)*5) + point1)
pointThem2 = ((lv - 1) + point2)
AddMagicPoint(pointThem2)
AddProp(pointThem1)
--CallSkillFaction()
Msg2Player(">>>Da tay diem thanh cong cho nhan vat<<<")
KickOutSelf()
end;
function TiemNangClear()
TayDiem()
ResetAp(1)
end;
function KyNangClear()
TaySkill()
ResetAp(2)
end;
function ResetAp(id)
if id == 1 then
diemtn = GetProp()
AddProp(- diemtn)
point1 = GetTask(TaskTayTuyKinh)
pointThem1 = (((GetLevel() - 1)*5) + point1)
AddProp(pointThem1)
--CallSkillFaction()
Msg2Player(">>>Da tay diem Tiem Nang thanh cong cho nhan vat<<<")
KickOutSelf()
elseif id == 2 then
diemkn = GetMagicPoint()
AddMagicPoint(- diemkn)
point2 = GetTask(TaskVoLamMatTich)
pointThem2 = ((GetLevel() - 1) + point2)
AddMagicPoint(pointThem2)
--CallSkillFaction()
Msg2Player(">>>Da tay diem Ky Nang thanh cong cho nhan vat<<<")
KickOutSelf()
end
end;
Sửa giúp mình nhé . Thanks :D
function Doing()
TayTuy()
end;
function TayTuy()
TayDiem()
TaySkill()
ResetAll()
end;
function ResetAll()
diemkn = GetMagicPoint()
diemtn = GetProp()
AddMagicPoint(- diemkn)
AddProp(- diemtn)
point1 = GetTask(TaskTayTuyKinh)
point2 = GetTask(TaskVoLamMatTich)
lv = GetLevel()
pointThem1 = (((lv - 1)*5) + point1)
pointThem2 = ((lv - 1) + point2)
AddMagicPoint(pointThem2)
AddProp(pointThem1)
--CallSkillFaction()
Msg2Player(">>>Da tay diem thanh cong cho nhan vat<<<")
KickOutSelf()
end;
function TiemNangClear()
TayDiem()
ResetAp(1)
end;
function KyNangClear()
TaySkill()
ResetAp(2)
end;
function ResetAp(id)
if id == 1 then
diemtn = GetProp()
AddProp(- diemtn)
point1 = GetTask(TaskTayTuyKinh)
pointThem1 = (((GetLevel() - 1)*5) + point1)
AddProp(pointThem1)
--CallSkillFaction()
Msg2Player(">>>Da tay diem Tiem Nang thanh cong cho nhan vat<<<")
KickOutSelf()
elseif id == 2 then
diemkn = GetMagicPoint()
AddMagicPoint(- diemkn)
point2 = GetTask(TaskVoLamMatTich)
pointThem2 = ((GetLevel() - 1) + point2)
AddMagicPoint(pointThem2)
--CallSkillFaction()
Msg2Player(">>>Da tay diem Ky Nang thanh cong cho nhan vat<<<")
KickOutSelf()
end
end;
Sửa giúp mình nhé . Thanks :D