đó nếu share full hết thì đâu có nhưng bài như này đâu
tiện cho hỏi cách phục sinh pet luôn kakkaa nha các bạn
Lần thứ 1001 hỏi về cách phục sinh pet . Thôi sẵn hôm nay rãnh làm luôn cho bạn. Mình đã cố làm cho gọn.. nhưng đã gọn hết mức rồi...
Mã:
function phucsinhpetnoi()
local kiemtra = mod(floor(GetTask(2539)/10),10)
if kiemtra >= 1 then
Talk(1,"", "BDH da phuc sinh roi!!!!")
return 0
end
------------------------------
local nId = 30149
if GetSkillLevel(nId) == 0 then
LearnSkill(nId)
for i = 1,8 do
LevelUpSkill(nId)
end
end
SetTask(1535, 12000*100)
SetTask(2560, GetTask(2560) + (12000 * 100))
------------------------------
SetTask(2538, 1601600000)
SetTask(2539, 330303013)
------------------------------
local nIsPS = floor(GetTask(2539)/10)
nIsPS = (nIsPS +1) *10 + mod(GetTask(2539),10)
SetTask(2539, nIsPS)
-------------
local nCount_PET_PS = floor(GetTask(2538)/10)
nCount_PET_PS = (nCount_PET_PS +1) *10 + mod(GetTask(2538),10)
SetTask(2538, nCount_PET_PS)
-------------
local nNewValue = SetBytePos(GetTask(2538),1,4)
SetTask(2538, nNewValue )
-------------
CastState("state_m_attack_percent_add",6,-1, 1,2908130);
CastState("state_life_max_point_add",8000,-1, 1,2908131);
CastState("state_life_max_percent_add",6,-1, 1,2908132);
CastState("state_add_allability",12,-1, 1,2908133);
-------------
AddPet(26);
Msg2Player("Phuc sinh BDH thanh cong!!!!")
end
function phucsinhpetngoai()
local kiemtra = mod(floor(GetTask(2539)/10),10)
if kiemtra >= 1 then
Talk(1,"", "BDH da phuc sinh roi!!!!")
return 0
end
------------------------------
local nId = 30149
if GetSkillLevel(nId) == 0 then
LearnSkill(nId)
for i = 1,8 do
LevelUpSkill(nId)
end
end
SetTask(1535, 12000*100)
SetTask(2560, GetTask(2560) + (12000 * 100))
------------------------------
SetTask(2538, 1601600000)
SetTask(2539, 330303013)
------------------------------
local nIsPS = floor(GetTask(2539)/10)
nIsPS = (nIsPS +1) *10 + mod(GetTask(2539),10)
SetTask(2539, nIsPS)
-------------
local nCount_PET_PS = floor(GetTask(2538)/10)
nCount_PET_PS = (nCount_PET_PS +1) *10 + mod(GetTask(2538),10)
SetTask(2538, nCount_PET_PS)
-------------
local nNewValue = SetBytePos(GetTask(2538),2,4)
SetTask(2538, nNewValue )
-------------
CastState("state_p_attack_percent_add",12,-1, 1,2908130);
CastState("state_life_max_point_add",10000,-1, 1,2908131);
CastState("state_life_max_percent_add",6,-1, 1,2908132);
CastState("state_i_defence_point_add",60,-1, 1,2908133);
CastState("state_o_defence_point_add",60,-1, 1,2908134);
-------------
AddPet(26);
Msg2Player("Phuc sinh BDH thanh cong!!!!")
end