DarkOfTheMoon
30-11-12, 08:17 PM
Bùn ngồi rảnh code cho zui, share cho pà kon xài thử.....Code đơn giản thôi.
-New Bie:
* Cách xài hàm: lấy vd của vật phẩm gà quay server BFF
Include("\\script\\congdonexp.lua")
function main()
if (GetTask(111) < 100000*10000000) then
SetTask(111,GetTask(111)+1)
a = congdon(99999999)
AddOwnExp(a)
Msg2Player("B¹n nhËn ®îc"..a.." kinh nghiÖm")
else
Talk(1,"","B¹n ®· sö dông tèi ®a 1000000000000 b¸nh gµ quay")
end
end
-Còn pro thì nhìn hỉu liền khỏi cần giải thix:D
+Code:
--------------CHUC NANG + DON EXP CHO SERVER--------------
-----------------------CALL : 11/27/12-----------------------------------
----------------------CHI AP DUNG CHO CAP 60 TRO LEN (co the add them neu muon)-------------------
KN =
{
{60 ,44292},
{61 ,47928},
{62 ,52146},
{63 ,56406},
{64 ,62328},
{65 ,68292},
{66 ,74838},
{67 ,81966},
{68 ,89676},
{69 ,97968},
{70 ,106842},
{71 ,116298},
{72 ,127206},
{73 ,139566},
{74 ,153378},
{75 ,168642},
{76 ,185358},
{77 ,203526},
{78 ,223146},
{79 ,244218},
{80 ,266742},
{81 ,290718},
{82 ,318024},
{83 ,348660},
{84 ,382626},
{85 ,419922},
{86 ,460548},
{87 ,504504},
{88 ,551790},
{89 ,602406},
{90 ,656352},
{91 ,713628},
{92 ,777990},
{93 ,849438},
{94 ,927972},
{95 ,1013592},
{96 ,1106298},
{97 ,1206090},
{98 ,1312968},
{99 ,1426932},
{100 ,1511948},
{101 ,1548739},
{102 ,1583098},
{103 ,1603875},
{104 ,1634985},
{105 ,1689340},
{106 ,1709384},
{107 ,1723746},
{108 ,1782983},
{109 ,1823492},
{110 ,1889203},
{111 ,1923749},
{112 ,1992834},
{113 ,2092384},
{114 ,2182349},
{115 ,2293842},
{116 ,2394834},
{117 ,2492489},
{118 ,2792482},
{119 ,2984739},
{120 ,3098374},
{121 ,3182791},
{122 ,3298676},
{123 ,3398734},
{124 ,3598829},
{125 ,3692769},
{126 ,3792846},
{127 ,3874352},
{128 ,3974628},
{129 ,3989874},
{130 ,4292847},
{131 ,4398246},
{132 ,4598346},
{133 ,4673892},
{134 ,4783257},
{135 ,5082368},
{136 ,5329374},
{137 ,5698347},
{138 ,5823849},
{139 ,6927468},
{140 ,9192883},
{141 ,9394327},
{142 ,9592384},
{143 ,9892378},
{144 ,9982364},
{145 ,10973899},
{146 ,11923469},
{147 ,12932746},
{148 ,13892834},
{149 ,14927642},
{150 ,15928347},
{151 ,16984780},
{152 ,17220842},
{153 ,17423487},
{154 ,17689283},
{155 ,18732902},
{156 ,18937289},
{157 ,19782928},
{158 ,19927328},
{159 ,20923892},
{160 ,21823492},
{161 ,22934432},
{162 ,23923420},
{163 ,24923428},
{164 ,25989223},
{165 ,26932934},
{166 ,27923428},
{167 ,28923472},
{168 ,29923842},
{169 ,30832428},
{170 ,31983472},
{171 ,32923428},
{172 ,33987428},
{173 ,34978662},
{174 ,35982342},
{175 ,36862362},
{176 ,37594383},
{177 ,38937453},
{178 ,39293492},
{179 ,40923427},
{180 ,42959582},
{181 ,43724005},
{182 ,43986780},
{183 ,44648935},
{184 ,44931547},
{185 ,45621451},
{186 ,45995242},
{187 ,46932415},
{188 ,47924545},
{189 ,48326145},
{190 ,52932621},
{191 ,53953252},
{192 ,54931256},
{193 ,55932645},
{194 ,56951148},
{195 ,58923541},
{196 ,60984232},
{197 ,61963251},
{198 ,64912624},
{199 ,68924156},
{200 ,0}
}
----HAM congdon(exp muon cho nv) : vd: congdon(50000)----
function congdon(kn)
checkkn = GetExp()
expuplevel = readexp() - checkkn --ra so diem de len cap
if kn < expuplevel then
AddOwnExp(kn)
else
remain1 = kn - expuplevel --ra kn con du
if remain1 > 0 then SetTaskTemp(4,remain1) end
AddOwnExp(kn)
if GetTaskTemp(4) > 0 then
diem = GetTaskTemp(4)
AddOwnExp(diem)
SetTaskTemp(4,0)
end
end
end
----lay exp cua tung level tu mang
function readexp()
a = GetLevel()
for i = 1, getn(KN) do
if a == KN[i][1] then return KN[i][2] end
end
end
+Share lun cái ăn x2 của server BFF lun.(dùng timer để check đã test work dc, nhưng ko bik online thì có lag ko..ai xài thử cho ý kiến dùm. Thanks)
link : <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>
-New Bie:
* Cách xài hàm: lấy vd của vật phẩm gà quay server BFF
Include("\\script\\congdonexp.lua")
function main()
if (GetTask(111) < 100000*10000000) then
SetTask(111,GetTask(111)+1)
a = congdon(99999999)
AddOwnExp(a)
Msg2Player("B¹n nhËn ®îc"..a.." kinh nghiÖm")
else
Talk(1,"","B¹n ®· sö dông tèi ®a 1000000000000 b¸nh gµ quay")
end
end
-Còn pro thì nhìn hỉu liền khỏi cần giải thix:D
+Code:
--------------CHUC NANG + DON EXP CHO SERVER--------------
-----------------------CALL : 11/27/12-----------------------------------
----------------------CHI AP DUNG CHO CAP 60 TRO LEN (co the add them neu muon)-------------------
KN =
{
{60 ,44292},
{61 ,47928},
{62 ,52146},
{63 ,56406},
{64 ,62328},
{65 ,68292},
{66 ,74838},
{67 ,81966},
{68 ,89676},
{69 ,97968},
{70 ,106842},
{71 ,116298},
{72 ,127206},
{73 ,139566},
{74 ,153378},
{75 ,168642},
{76 ,185358},
{77 ,203526},
{78 ,223146},
{79 ,244218},
{80 ,266742},
{81 ,290718},
{82 ,318024},
{83 ,348660},
{84 ,382626},
{85 ,419922},
{86 ,460548},
{87 ,504504},
{88 ,551790},
{89 ,602406},
{90 ,656352},
{91 ,713628},
{92 ,777990},
{93 ,849438},
{94 ,927972},
{95 ,1013592},
{96 ,1106298},
{97 ,1206090},
{98 ,1312968},
{99 ,1426932},
{100 ,1511948},
{101 ,1548739},
{102 ,1583098},
{103 ,1603875},
{104 ,1634985},
{105 ,1689340},
{106 ,1709384},
{107 ,1723746},
{108 ,1782983},
{109 ,1823492},
{110 ,1889203},
{111 ,1923749},
{112 ,1992834},
{113 ,2092384},
{114 ,2182349},
{115 ,2293842},
{116 ,2394834},
{117 ,2492489},
{118 ,2792482},
{119 ,2984739},
{120 ,3098374},
{121 ,3182791},
{122 ,3298676},
{123 ,3398734},
{124 ,3598829},
{125 ,3692769},
{126 ,3792846},
{127 ,3874352},
{128 ,3974628},
{129 ,3989874},
{130 ,4292847},
{131 ,4398246},
{132 ,4598346},
{133 ,4673892},
{134 ,4783257},
{135 ,5082368},
{136 ,5329374},
{137 ,5698347},
{138 ,5823849},
{139 ,6927468},
{140 ,9192883},
{141 ,9394327},
{142 ,9592384},
{143 ,9892378},
{144 ,9982364},
{145 ,10973899},
{146 ,11923469},
{147 ,12932746},
{148 ,13892834},
{149 ,14927642},
{150 ,15928347},
{151 ,16984780},
{152 ,17220842},
{153 ,17423487},
{154 ,17689283},
{155 ,18732902},
{156 ,18937289},
{157 ,19782928},
{158 ,19927328},
{159 ,20923892},
{160 ,21823492},
{161 ,22934432},
{162 ,23923420},
{163 ,24923428},
{164 ,25989223},
{165 ,26932934},
{166 ,27923428},
{167 ,28923472},
{168 ,29923842},
{169 ,30832428},
{170 ,31983472},
{171 ,32923428},
{172 ,33987428},
{173 ,34978662},
{174 ,35982342},
{175 ,36862362},
{176 ,37594383},
{177 ,38937453},
{178 ,39293492},
{179 ,40923427},
{180 ,42959582},
{181 ,43724005},
{182 ,43986780},
{183 ,44648935},
{184 ,44931547},
{185 ,45621451},
{186 ,45995242},
{187 ,46932415},
{188 ,47924545},
{189 ,48326145},
{190 ,52932621},
{191 ,53953252},
{192 ,54931256},
{193 ,55932645},
{194 ,56951148},
{195 ,58923541},
{196 ,60984232},
{197 ,61963251},
{198 ,64912624},
{199 ,68924156},
{200 ,0}
}
----HAM congdon(exp muon cho nv) : vd: congdon(50000)----
function congdon(kn)
checkkn = GetExp()
expuplevel = readexp() - checkkn --ra so diem de len cap
if kn < expuplevel then
AddOwnExp(kn)
else
remain1 = kn - expuplevel --ra kn con du
if remain1 > 0 then SetTaskTemp(4,remain1) end
AddOwnExp(kn)
if GetTaskTemp(4) > 0 then
diem = GetTaskTemp(4)
AddOwnExp(diem)
SetTaskTemp(4,0)
end
end
end
----lay exp cua tung level tu mang
function readexp()
a = GetLevel()
for i = 1, getn(KN) do
if a == KN[i][1] then return KN[i][2] end
end
end
+Share lun cái ăn x2 của server BFF lun.(dùng timer để check đã test work dc, nhưng ko bik online thì có lag ko..ai xài thử cho ý kiến dùm. Thanks)
link : <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>