PDA

View Full Version : [JX] fix dùm boss sát thủ một ngày chỉ đánh được 8 con



fzxgl136
17-11-12, 12:56 AM
ai fix dùm boss sát thủ một ngày chỉ đánh được 8 con. fix hoài không được các pro fix dùm thanks






Include("\\script\\global\\monter\\satthu.lua")
Include("\\script\\global\\npc\\lekienquan.lua")
Include("\\script\\source\\sourcejx49.lua")
Include("\\script\\source\\tasklist.lua")

function main()
updatengay()
if (GetTask(39) == 0) then
Say("<bclr=red><color=yellow>NhiÕp ThÞ TrÇn :<color><bclr> 1 ngµy chØ cã thÓ tiªu diÖt <color=fire>8 boss s¸t thñ !<color> mµ th«i , Ng­¬i muèn g× ë ta ?",3,"NhËn nhiÖm vô s¸t thñ (1 v¹n)/thbst","ChÕ t¹o (S¸t Thñ Gi¶n)/ghks","Kh«ng cã g×/no")
elseif GetTask(39) == 99 then
Say("<bclr=red><color=yellow>NhiÕp ThÞ TrÇn :<color><bclr> 1 ngµy chØ cã thÓ tiªu diÖt <color=fire>8 boss s¸t thñ !<color> mµ th«i , Ng­¬i muèn g× ë ta ?",2,"Tr¶ nhiÖm vô s¸t thñ/tranv","Kh«ng cã g×/no")
else
Say("<bclr=red><color=yellow>NhiÕp ThÞ TrÇn :<color><bclr> NhiÖm vô cña ng­¬i lµ tiªu diÖt "..boss[GetTask(TaskSatThu)][6].."",4,"§­a ta ®Õn boss s¸t thñ/goboss1","Hñy nhiÖm vô/bnvst","ChÕ t¹o (S¸t Thñ Gi¶n)/ghks","Kh«ng cã g×/no")
end
end;

function tranv()
if GetTask(39) == 99 then
SetTask(39,0)
if GetTask(39) == 0 then
Msg2Player("Hoµn thµnh nhiÖm vô !")
for i=1,10 do
AddEventItem(137)
end
Msg2Player("NhËn 10 Tói Nguyªn LiÖu Trung Thu")
else
Talk(1,"","hack !!")
end
end
end



function bnvst()
SetTask(39,0)
Msg2Player("Bá nhiÖm vô s¸t thñ thµnh c«ng !");
end;

function thbst()
if GetTask(TaskNSatThu) < 8 then
if GetLevel() >= 80 then
if GetCash() >= 10000 then
Say("Xin mêi chän boss s¸t thñ",8,"S¸t Thñ ThiÕu L©m/boss1","S¸t Thñ Thiªn V­¬ng/boss1","S¸t Thñ §­êng M«n/boss1","S¸t Thñ Ngò §éc/boss1","S¸t Thñ Nga My/boss1","S¸t Thñ Thóy Yªn/boss1","Trang sau/tiep","Tho¸t/no")
else
Talk(1,"no","Ng­¬i kh«ng cã <color=red>1 v¹n l­îng<color> , kh«ng thÓ nhËn nhiÖm vô !")
end
else
Talk(1,"","§¼ng cÊp d­íi 80 ko thÓ nhËn nhiÖm vô!")
end
else
Talk(1,"","H«m Nay Ng­êi §· Hoµn Thµnh 8 NhiÖm Vô Råi, H·y §îi §Õn Ngµy Mai")
end
end;

function tiep()
Say("Xin mêi chän boss s¸t thñ",6,"S¸t Thñ C¸i Bang/boss2","S¸t Thñ Thiªn NhÉn/boss2","S¸t Thñ Vâ §ang/boss2","S¸t Thñ C«n L«n/boss2","Trang tr­íc/thbst","Tho¸t/no")
end

function boss1(sel)
tien = GetCash()
n = sel + 1
if n >= 1 and n <= 6 then
Pay(10000)
if GetCash() == (tien - 10000) then
SetTask(TaskNSatThu,GetTask(TaskNSatThu)+1)
SetTask(39,n)
Say("NhËn nhiÖm vô tiªu diÖt "..boss[n][6].."",2,"§­a ta ®Õn chç s¸t thñ/goboss1","Ta biÕt råi/no")
else
Talk(1,"","Hack !!")
end
end
end

function boss2(sel)
tien = GetCash()
n = sel + 1
if n >= 1 and n <= 6 then
Pay(10000)
if GetCash() == (tien - 10000) then
SetTask(TaskNSatThu,GetTask(TaskNSatThu)+1)
SetTask(39,n+6)
else
Talk(1,"","Hack !!")
end
Say("NhËn nhiÖm vô tiªu diÖt "..boss[n+6][6].."",2,"§­a ta ®Õn chç s¸t thñ/goboss2","Ta biÕt råi/no")
end
end


function goboss1()
map = boss[GetTask(39)][3]
toadox = boss[GetTask(39)][4] + random(-2,2)
toadoy = boss[GetTask(39)][5] + random(-2,2)
NewWorld(map,toadox,toadoy)
SetFightState(1)
SetTask(18,GetTask(18)+1)
--Msg2Player("Tiªu diÖt "..boss[GetTask(TaskSatThu)][6].."")
end
function goboss2()
map = boss[GetTask(39)][3]
toadox = boss[GetTask(39)][4] + random(-2,2)
toadoy = boss[GetTask(39)][5] + random(-2,2)
NewWorld(map,toadox,toadoy)
SetTask(18,GetTask(18)+1)
SetFightState(1)
--Msg2Player("Tiªu diÖt "..boss[GetTask(TaskSatThu)][6].."")
end

function ghks()
Say("<bclr=red><color=yellow>NhiÕp ThÞ TrÇn :<color><bclr> §Ó chÕ t¹o <color=fire>S¸t Thñ Gi¶n<color> cÇn cã <color=fire>3 S¸t thñ lÖnh",2,"ChÕ t¹o/ghep","Tho¸t/no")
end;

function ghep()
n = GetItemCount(130)
if GetItemCount(130) >= 3 then
DelItem(130)
DelItem(130)
DelItem(130)
if GetItemCount(130) == n - 3 then
AddEventItem(131)
Talk(1,"","NhËn ®­îc 1 s¸t thñ gian")
else
Talk(1,"","Hack !")
end
else
Talk(1,"","Kh«ng cã 3 s¸t thñ lÖnh")
end
end

function no()
end