function sudungdvcond(sel)
id = sel + 1
if id == 1 then
cp = 500
item = 3
elseif id == 2 then
cp = 500
item = 14
elseif id == 3 then
cp = 500
item = 16
elseif id == 4 then
cp = 500
item = 43
elseif id == 5 then
cp = 500
item = 126
elseif id == 6 then
cp = 500
item = 191
end
a = GetRepute()
if GetRepute() >= cp then
AddRepute(-cp)
if GetRepute() == a - cp then
AddEventItem(item)
Msg2Player("Giao dÞch thµnh c«ng !")
else
Msg2Player("B¹n kh«ng cã ®ñ "..cp.." danh väng !")
end
else
Msg2Player("B¹n kh«ng cã ®ñ "..cp.." danh väng !")
end
end
function checkpoint()
Talk(1,"","§iÓm phóc duyªn : "..GetTask(idtaskpd).."<enter>§iÓm danh väng : "..GetRepute().."")
end
function knb()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(219)
Msg2Player("NhËn ®îc Kim Nguyªn B¶o")
else
Msg2Player("Kh«ng cã 20000 ®iÓm phóc duyªn")
end
else
Msg2Player("Kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function paylbva()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 200 then
SetTask(idtaskpd,GetTask(idtaskpd)-200)
if GetTask(idtaskpd) == a - 200 then
AddEventItem(131)
Msg2Player("NhËn ®îc S¸t thñ gi¶n")
else
Msg2Player("Kh«ng cã 200 ®iÓm phóc duyªn")
end
else
Msg2Player("Kh«ng cã 200 ®iÓm phóc duyªn")
end
end
function paytt()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 200 then
SetTask(idtaskpd,GetTask(idtaskpd)-200)
if GetTask(idtaskpd) == a - 200 then
AddEventItem(28)
AddEventItem(30)
AddEventItem(29)
Msg2Player("NhËn ®îc 1 bé thñy tinh !")
else
Msg2Player("Kh«ng cã 200 ®iÓm phóc duyªn")
end
else
Msg2Player("Kh«ng cã 200 ®iÓm phóc duyªn")
end
end
function paythbt()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 60 then
SetTask(idtaskpd,GetTask(idtaskpd)-60)
if GetTask(idtaskpd) == a - 60 then
AddEventItem(31)
Msg2Player("NhËn ®îc 1 tÝnh hång b¶o th¹ch")
else
Msg2Player("Kh«ng cã 60 ®iÓm phóc duyªn")
end
else
Msg2Player("Kh«ng cã 60 ®iÓm phóc duyªn")
end
end
function nb120tv()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(169)
Msg2Player("NhËn ®îc bÝ kÝp 120 thiªn v¬ng")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120dm()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(166)
Msg2Player("NhËn ®îc bÝ kÝp 120 ®êng m«n")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120nd()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(162)
Msg2Player("NhËn ®îc bÝ kÝp 120 ngò ®éc")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120nm()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(161)
Msg2Player("NhËn ®îc bÝ kÝp 120 nga my")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120ty()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(165)
Msg2Player("NhËn ®îc bÝ kÝp 120 thóy yªn")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120cb()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(164)
Msg2Player("NhËn ®îc bÝ kÝp 120 c¸i bang")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120tn()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(168)
Msg2Player("NhËn ®îc bÝ kÝp 120 thiªn nhÉn")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120vd()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(170)
Msg2Player("NhËn ®îc bÝ kÝp 120 vâ ®ang")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function nb120cl()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 2000 then
SetTask(idtaskpd,GetTask(idtaskpd)-2000)
if GetTask(idtaskpd) == a - 2000 then
AddEventItem(167)
Msg2Player("NhËn ®îc bÝ kÝp 120 c«n l«n")
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
else
Msg2Player("B¹n kh«ng cã 2000 ®iÓm phóc duyªn")
end
end
function payruou1nb()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 20 then
SetTask(idtaskpd,GetTask(idtaskpd)-20)
if GetTask(idtaskpd) == a - 20 then
AddEventItem(109)
Msg2Player("Giao dÞch thµnh c«ng !")
else
Msg2Player("B¹n kh«ng cã 20 ®iÓm phóc duyªn.")
end
else
Msg2Player("B¹n kh«ng cã 20 ®iÓm phóc duyªn.")
end
end
function payruou2nb()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 80 then
SetTask(idtaskpd,GetTask(idtaskpd)-80)
if GetTask(idtaskpd) == a - 80 then
AddEventItem(110)
Msg2Player("Giao dÞch thµnh c«ng !")
else
Msg2Player("B¹n kh«ng cã 80 ®iÓm phóc duyªn.")
end
else
Msg2Player("B¹n kh«ng cã 80 ®iÓm phóc duyªn.")
end
end
function payruou3nb()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 120 then
SetTask(idtaskpd,GetTask(idtaskpd)-120)
if GetTask(idtaskpd) == a - 120 then
AddEventItem(111)
Msg2Player("Giao dÞch thµnh c«ng !")
else
Msg2Player("B¹n kh«ng cã 120 ®iÓm phóc duyªn.")
end
else
Msg2Player("B¹n kh«ng cã 120 ®iÓm phóc duyªn.")
end
end
function payruou4nb()
a = GetTask(idtaskpd)
if GetTask(idtaskpd) >= 200 then
SetTask(idtaskpd,GetTask(idtaskpd)-200)
if GetTask(idtaskpd) == a - 200 then
AddEventItem(151)
Msg2Player("Giao dÞch thµnh c«ng !")
else
Msg2Player("B¹n kh«ng cã 200 ®iÓm phóc duyªn.")
end
else
Msg2Player("B¹n kh«ng cã 200 ®iÓm phóc duyªn.")
end
end
function Exit()
end;
Lần sửa cuối bởi gia_muvn, ngày 15-09-12 lúc 01:41 AM.
Khách viếng thăm
hãy cùng gia_muvn xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!