AutoLearnSkills.lua --升级自动学习技能

  1 --[[作者信息:
  2     Auto Learn SKills  (升级自动学习技能)
  3     作者QQ:247321453
  4     作者Email:[email protected]
  5     修改日期:2014-3-12
  6     功能:在玩家升级时,自动学习相应等级的技能(可以连续升级)
  7 ]]--
  8 print(">>Script: Auto Learn SKills.")
  9
 10 --CLASS                    职业
 11 local CLASS_WARRIOR         = 1        --战士
 12 local CLASS_PALADIN            = 2        --圣骑士
 13 local CLASS_HUNTER            = 3        --猎人
 14 local CLASS_ROGUE            = 4        --盗贼
 15 local CLASS_PRIEST            = 5        --牧师
 16 local CLASS_DEATH_KNIGHT    = 6        --死亡骑士
 17 local CLASS_SHAMAN            = 7        --萨满
 18 local CLASS_MAGE            = 8        --法师
 19 local CLASS_WARLOCK            = 9        --术士
 20 local CLASS_DRUID            = 11    --德鲁伊
 21
 22 --[[
 23 --任务技能
 24 --战士 2458,71,20252,18499
 25 --术士 688,697,712 691 23161
 26 --猎人 883 982  1515  2641 5149 6991
 27 --圣骑士 23214 7328 13819 34767
 28 --盗贼 8681 2842
 29 --德鲁伊 768 9634 1066 40120 783 6807
 30 --死亡骑士 52382
 31 --31700内域飞行 40
 32 --44140全地图飞行
 33 ]]--
 34
 35 local SKILL={--技能表
 36     [CLASS_WARRIOR]={--战士
 37         [2]={6673},
 38         [4]={772},
 39         [6]={6343,34428},
 40         [8]={1715,284},
 41         [9]={  71},
 42         [10]={6546,2687,3127},
 43         [12]={7384,5242,72},
 44         [14]={1160,6572},
 45         [16]={285,694,2565},
 46         [18]={8198,676},
 47         [20]={6547,20230,845,12678},
 48         [22]={6192,5246},
 49         [24]={1608,6190,5308,6574},
 50         [26]={6178,1161},
 51         [28]={8204,871},
 52         [30]={6548,7369,1464,  20252},
 53         [32]={11564,11549,20658 ,  18499},
 54         [34]={11554,7379, 2458},
 55         [36]={1680},
 56         [38]={8205,6552,8820},
 57         [40]={11565,11572,11608,20660,23922},
 58         [42]={11550},
 59         [44]={11555,11600},
 60         [46]={11578,11604},
 61         [48]={11566,11580,20661,23923},
 62         [50]={11573,11609,1719},
 63         [52]={11551},
 64         [54]={11556,11605,11601,23924},
 65         [56]={11567,20662},
 66         [58]={11581},
 67         [60]={25286,11574,25289,20569,25288,23925},
 68         [61]={25241},
 69         [62]={25202},
 70         [63]={25269},
 71         [64]={23920},
 72         [65]={25234},
 73         [66]={29707,25258},
 74         [67]={25264},
 75         [68]={25208,25231,469},
 76         [69]={2048,25242},
 77         [70]={30324,25203,25236,3411,30357},
 78         [71]={46845,64382},
 79         [72]={47449,47519},
 80         [73]={47501,47470},
 81         [74]={47439,47474},
 82         [75]={55694,47487},
 83         [76]={47450,47465},
 84         [77]={47520},
 85         [78]={47502,47436},
 86         [79]={47437,47475},
 87         [80]={57755,47440,47471,57823,47488},
 88     },
 89
 90     [CLASS_PALADIN]={--圣骑士
 91         [4]={465,19740,20271},
 92         [6]={639,498},
 93         [8]={1152,853},
 94         [10]={633,10290,1022},
 95         [12]={19834,53408},
 96         [13]={ 7328},
 97         [14]={19742,647,31789},
 98         [16]={62124,25780,7294},
 99         [18]={1044},
100         [20]={26573,879,19750,5502,20217,643, 13819},
101         [22]={19746,1026,20164,19835},
102         [24]={19850,10322,10326,5588,5599},
103         [26]={19939,1038,10298},
104         [28]={5614,19876,53407},
105         [30]={20116,1042,2800,20165,10291,19752},
106         [32]={19888,19836},
107         [34]={19852,19940,642},
108         [36]={5615,10324,19891,10299},
109         [38]={3472,20166,10278},
110         [40]={20922,1032,5589,19895,  23214,34767},
111         [42]={4987,19941,19837},
112         [44]={19853,10312,19897,24275},
113         [46]={10328,6940,10300},
114         [48]={20772,19899},
115         [50]={20923,19942,2812,10310,10292},
116         [52]={10313,19896,19838,25782,24274},
117         [54]={19854,25894,10329,1030},
118         [56]={19898,10301},
119         [58]={19943},
120         [60]={25290,20924,10314,25918,25292,10318,20773,10293,19900,25898,25899,25291,25916,24239},
121         [62]={27135,32223},
122         [63]={27151},
123         [65]={27142,27143},
124         [66]={27137,27150},
125         [68]={27138,27152,27180},
126         [69]={27139,27154},
127         [70]={27173,27136,27149,27153,27140,27141,31884},
128         [71]={48935,54428,48937},
129         [72]={48816,48949},
130         [73]={48800,48931,48933},
131         [74]={48784,48941,48805},
132         [75]={48818,48781,53600},
133         [76]={48943,54043},
134         [77]={48936,48938,48945},
135         [78]={48817,48788,48947},
136         [79]={48801,48785,48950,48942,48932,48934},
137         [80]={48819,48782,53601,61411,48806},
138     },
139
140     [CLASS_HUNTER]={--猎人
141         [2]={1494},
142         [4]={13163,1978},
143         [6]={3044,1130},
144         [8]={5116,14260},
145         [10]={13165,13549,19883,   883,982,1515,1528,2641,6991,5149},
146         [12]={136,14281,20736,2974},
147         [14]={6197,1002,1513},
148         [16]={5118,13795,1495,14261},
149         [18]={14318,2643,13550,19884},
150         [20]={34074,3111,674,14282,781,1499},
151         [22]={14323,3043},
152         [24]={1462,14262,19885},
153         [26]={19880,14302,13551,3035},
154         [28]={14319,3661,14283,13809},
155         [30]={13161,14326,14288,5384,14269},
156         [32]={1543,14263,19878},
157         [34]={13552,13813},
158         [36]={3662,14284,3034,14303},
159         [38]={14320},
160         [40]={13159,14324,1510,14310,14264,19882},
161         [42]={14289,13553},
162         [44]={13542,14285,14316,14270},
163         [46]={20043,14327,14304},
164         [48]={14321,14265},
165         [50]={13554,56641,14294,19879},
166         [52]={13543,14286},
167         [54]={14290,14317},
168         [56]={20190,14305,14266},
169         [58]={14322,14325,13555,14295,14271},
170         [60]={25296,13544,14287,25294,25295,19801,19263,14311},
171         [61]={27025},
172         [62]={34120},
173         [63]={27014},
174         [65]={27023},
175         [66]={34026},
176         [67]={27021,27016,27022},
177         [68]={27044,27045,27046,34600},
178         [69]={27019},
179         [70]={34477,36916},
180         [71]={53351,49051,49066,48995},
181         [72]={49055},
182         [73]={49044,49000},
183         [74]={61846,48989,49047,58431},
184         [75]={53271,61005},
185         [76]={49071,53338},
186         [77]={49052,49067,48996},
187         [78]={49056},
188         [79]={49045,49001},
189         [80]={61847,62757,48990,61006,49048,58434,60192,53339},
190     },
191
192     [CLASS_DRUID]={--德鲁伊
193         [4]={8921,774},
194         [6]={467,5177,  768},
195         [8]={339,5186,5487,  6807},
196         [9]={71},
197         [10]={8924,16689,99,5232,1058, 9634},
198         [12]={5229,8936,50769},
199         [14]={782,5178,5211,5187},
200         [16]={8925,779,1430, 783},
201         [18]={1062,770,2637,16810,16857,8938,1066},
202         [20]={2912,1082,1735,5215,1079,5188,6756,20484},
203         [22]={8926,2908,5179,5221,2090},
204         [24]={1075,1822,780,5217,8939,2782,50768},
205         [26]={8949,1850,2893,5189},
206         [28]={5195,8927,16811,5209,3029,8998,9492,2091},
207         [30]={5180,6798,6800,5234,20739,8940,740},
208         [32]={9490,22568,6785,5225,6778},
209         [34]={2458,8928,8950,8914,1823,769,3627},
210         [36]={22842,9005,9493,6793,8941,50767},
211         [38]={5196,18657,16812,8955,6780,5201,8992,8903},
212         [40]={16914,29166,8929,9000,9634,20719,22827,62600,8907,20742,8910,8918},
213         [42]={8951,9747,6787,9750},
214         [44]={22812,9756,1824,9752,9754,9758},
215         [46]={9833,8905,8983,9821,9823,9829,9839},
216         [48]={9852,16813,9849,22828,9845,9856,50766},
217         [50]={17401,9875,9866,21849,9888,9884,20747,9862},
218         [52]={9834,9892,9898,9894,9840},
219         [54]={9901,9910,9912,9904,9830,9908,9857},
220         [56]={22829,9827,9889},
221         [58]={9853,18658,9835,17329,9876,9850,9867,9841},
222         [60]={17402,25298,31709,31018,33943,9896,9846,21850,25297,9885,20748,9858,25299,50765,9863},
223         [61]={26984,27001},
224         [62]={26998,22570,26978},
225         [63]={26987,24248,26981},
226         [64]={26992,27003,26997,33763},
227         [65]={33357,26980},
228         [66]={33745,27006,27005},
229         [67]={26986,27000,27008},
230         [68]={26989,27009},
231         [69]={26985,27004,26979,26994,26982,50764},
232         [70]={33786,27012,26988,26995,27002,26991,26990,26983, 40120},
233         [71]={48559,49799,62078,50212,48442},
234         [72]={48464,48576,48573,48561,48450},
235         [73]={48569,48567,48578},
236         [74]={53307,48459,49802,48377},
237         [75]={48462,52610,48571,48440,48446},
238         [76]={48575},
239         [77]={48560,49803,48562,48443},
240         [78]={53308,53312,48465,48577,48574},
241         [79]={48461,48570,48579,50213,48378,48477},
242         [80]={48467,48463,48568,49800,48572,48470,48451,48469,50464,48441,50763,48447},
243     },
244     [CLASS_WARLOCK]={--术士
245         [2]={688,348},
246         [4]={172,702},
247         [6]={1454,695},
248         [8]={980,5782,   697},
249         [10]={1120,6201,696,707},
250         [12]={1108,755,705},
251         [14]={6222,689},
252         [16]={1455,5697},
253         [18]={1014,693,5676},
254         [20]={706,3698,698,1094,5740,1088,5784,  712,},
255         [22]={6205,699,6202,126},
256         [24]={6223,5138,8288,5500},
257         [26]={1714,1456,132,17919},
258         [28]={6217,710,6366,3699,1106},
259         [29]={  691},
260         [30]={709,20752,1086,1098,1949,2941},
261         [32]={1490,7646,6213,6229},
262         [34]={7648,5699,6219,17920},
263         [36]={11687,17951,2362,3700,7641},
264         [38]={11711,7651,8289},
265         [40]={5484,20755,11733,11665,  23161},
266         [42]={11707,6789,11739,11683,17921},
267         [44]={11671,11725,11693,11659},
268         [46]={11721,11699,11688,17952,11729,11677},
269         [48]={11712,18647,17727,6353},
270         [50]={11719,17925,20756,11734,11667,17922},
271         [52]={11708,11675,11694,11740,11660},
272         [54]={11672,11700,17928,11684},
273         [56]={6215,11689,17953,17924},
274         [58]={11713,17926,11730,11726,11678,17923},
275         [60]={25311,603,11722,20757,17728,11735,11695,28610,11668,11661},
276         [61]={27224},
277         [62]={27219,28176,25307},
278         [64]={29722,27211},
279         [65]={27216,27210},
280         [66]={27250,28172,29858},
281         [67]={27218,27217,27259},
282         [68]={27223,27222,27230,29893,27213},
283         [69]={27228,30909,27220,28189,27215,27212,27209},
284         [70]={30910,27243,27238,27260,32231,30459,30545},
285         [71]={47812,50511},
286         [72]={47886,61191,47890,47819},
287         [73]={47863,47859,47871},
288         [74]={60219,47892,47837,47814,47808},
289         [75]={47835,47810,47897,47824},
290         [76]={47884,47793,47856},
291         [77]={47813,47855},
292         [78]={47865,47860,47857,47888,47891,47823},
293         [79]={47864,47878,47893,47820,47815,47809},
294         [80]={47867,57946,47836,60220,47889,48018,48020,58887,47811,47838,61290,47825},
295     },
296     [CLASS_MAGE]={--法师
297         [2]={1459},
298         [4]={5504,116},
299         [6]={587,2136,143},
300         [8]={5143,118,205},
301         [10]={5505,7300,122},
302         [12]={597,604,130,145},
303         [14]={1449,1460,2137,837},
304         [16]={5144,2120},
305         [18]={1008,475,3140},
306         [20]={1953,5506,12051,1463,12824,543,10,7301,7322},
307         [22]={8437,990,2138,2948,6143},
308         [24]={5145,2139,8450,8400,2121},
309         [26]={120,865,8406},
310         [28]={1461,759,8494,8444,6141},
311         [30]={8455,8438,6127,8412,8457,8401,7302,45438},
312         [32]={8416,6129,8422,8461,8407},
313         [34]={6117,8445,8492},
314         [36]={8451,8495,8402,8427},
315         [38]={8439,3552,8413,8408},
316         [40]={8417,10138,12825,8458,8423,8446,6131,7320},
317         [42]={10169,10156,10144,10148,10159,8462},
318         [44]={10191,10185,10179},
319         [46]={10201,22782,10197,10205},
320         [48]={10211,10053,10173,10149,10215},
321         [50]={10139,10223,10160,10180,10219},
322         [52]={10145,10192,10206,10186,10177},
323         [54]={10170,10202,10199,10150,10230},
324         [56]={23028,10157,10212,10216,10181},
325         [58]={10054,22783,10207,10161},
326         [60]={25345,28612,10140,10174,10193,12826,10225,10151,10187,28609,25304,10220},
327         [61]={27078},
328         [62]={27080,25306,30482},
329         [63]={27130,27075,27071},
330         [64]={30451,27086},
331         [65]={37420,27073,27087},
332         [66]={27070,30455},
333         [67]={33944,27088},
334         [68]={27101,66,27131,27085},
335         [69]={33946,38699,27125,27128,27072,27124},
336         [70]={27127,27082,27126,38704,33717,27090,43987,30449,27079,38692,27074,32796,38697},
337         [71]={42894,43023,43045},
338         [72]={42925,42930,42913},
339         [73]={43019,42858},
340         [74]={42872,42832,42939},
341         [75]={42843,42955,44614,42917,42841},
342         [76]={42896,42920,43015},
343         [77]={43017,42985},
344         [78]={43010,42833,42859,42914},
345         [79]={42846,43024,43020,42926,43046,42931,43012,42842,43008},
346         [80]={42897,43002,42921,42995,42956,55342,58659,42873,47610,42940},
347     },
348
349     [CLASS_PRIEST]={--牧师
350         [4]={1243,2052,589},
351         [6]={17,591},
352         [8]={139,586},
353         [10]={2053,2006,8092,594},
354         [12]={588,1244,592},
355         [14]={528,6074,598,8122},
356         [16]={2054,8102},
357         [18]={527,600,970},
358         [20]={6346,7128,9484,2061,14914,15237,6075,2944,453},
359         [22]={2055,2010,984,8103,2096},
360         [24]={8129,1245,3747,15262},
361         [26]={9472,6076,992},
362         [28]={6063,15430,19276,8104,8124},
363         [30]={14752,602,6065,15263,596,1004,605,976},
364         [32]={552,9473,6077},
365         [34]={1706,6064,10880,8105,2767},
366         [36]={988,2791,6066,15264,15431,19277},
367         [38]={9474,6078,6060},
368         [40]={14818,1006,9485,2060,996,8106},
369         [42]={10898,15265,10888,10957,10892},
370         [44]={10915,27799,10927,19278,10909},
371         [46]={10963,10881,10933,10945},
372         [48]={10937,10899,21562,15266},
373         [50]={14819,10951,10916,10960,10928,10893},
374         [52]={10964,27800,19279,10946},
375         [54]={10900,15267,10934},
376         [56]={10917,10929,27683,10890,10958},
377         [58]={10965,20770,10947,10894},
378         [60]={27841,10952,10938,10901,21564,27681,10955,25314,15261,27801,10961,25316,25315,19280},
379         [61]={25233,25363},
380         [62]={32379},
381         [63]={25210,25372},
382         [64]={32546},
383         [65]={25217,25221,25367},
384         [66]={25384,34433},
385         [67]={25235},
386         [68]={25213,25331,25308,33076,25435,25467,25433},
387         [69]={25431,25364,25375},
388         [70]={25312,32375,25389,25218,25392,32999,25222,39374,32996,25368},
389         [71]={48040},
390         [72]={48119,48134},
391         [73]={48070,48062,48299},
392         [74]={48112,48122,48126},
393         [75]={48065,48077,48067,48045,48157,48124},
394         [76]={48072,48169},
395         [77]={48168,48170},
396         [78]={48120,48063,48135,48171},
397         [79]={48071,48113,48123,48300,48127},
398         [80]={48073,48161,48066,48162,48074,64843,48078,64901,48068,53023,48158,48125},
399     },
400
401     [CLASS_SHAMAN]={--萨满
402         [2]={8017,5394},
403         [4]={8042},
404         [6]={2484,332},
405         [8]={8044,529,5730,324,8018},
406         [10]={8050,8024,8075},
407         [12]={1535,370,2008,547},
408         [14]={8045,548},
409         [16]={57994,2645,325,8019,526},
410         [18]={8052,6390,8027,913,8143},
411         [20]={8056,915,8033,8004,52127},
412         [22]={8498,131},
413         [24]={8046,8181,905,10399,8160,20609,939},
414         [26]={943,8190,6196,8030,5675},
415         [28]={8053,6391,8184,8227,8038,546,8008,52129},
416         [30]={66842,556,8177,10595,8232,51730,6375,20608,36936},
417         [32]={421,8499,6041,8012,945,8512,959},
418         [34]={8058,6495,52131},
419         [36]={10412,10585,16339,20610,8010,10495},
420         [38]={10391,6392,8249,10478,10456,8161,8170},
421         [40]={66843,930,10447,8134,8235,1064,51988,6377,8005},
422         [41]={52134},
423         [42]={11314,10537},
424         [44]={10392,10600,10466},
425         [46]={10472,10586,16341,10622,10496},
426         [48]={2860,10413,10427,10526,16355,10431,20776,10395,52136},
427         [50]={66844,15207,10486,51991,10462},
428         [52]={11315,10448,10442,10467},
429         [54]={10479,10623},
430         [55]={52138},
431         [56]={10605,15208,10587,16342,10432,10396,10497},
432         [58]={10473,10428,10538,16387,16356},
433         [60]={10414,29228,10601,25361,16362,20777,51992,10463,25357,10468},
434         [61]={25546,25422},
435         [62]={25448,24398},
436         [63]={25439,25469,25391},
437         [64]={25489,3738},
438         [65]={25552,25528,25570},
439         [66]={2062,25500,25420},
440         [67]={25449,25525,25557,25560},
441         [68]={2894,25464,25563,25505,25423},
442         [69]={25454,25574,25590,25567,33736},
443         [70]={25442,25547,25457,25472,51993,25396},
444         [71]={58580,58649,58785,58794,58801,58755,58771},
445         [72]={49275},
446         [73]={49235,49237,58731},
447         [74]={49270,49230,55458},
448         [75]={61649,49232,51505,58581,58737,58652,58741,49280,58746,57622,49272},
449         [76]={58789,58795,58803,58756,58773,57960},
450         [77]={49276},
451         [78]={49236,58734,58582},
452         [79]={49231,49238},
453         [80]={49271,61657,49233,51514,60043,58739,58656,58790,58745,58796,49281,58749,58643,58804,49277,55459,51994,58757,49273,58774},
454     },
455
456     [CLASS_ROGUE]={--盗贼
457         [4]={53,921,1784},
458         [6]={1776,1757},
459         [8]={6760,5277},
460         [10]={5171,2983,6770},
461         [12]={2589,1766},
462         [14]={8647,703,1758},
463         [16]={6761,1966,1804},
464         [18]={8676},
465         [20]={51722,1943,2590},
466         [22]={8631,1759,1725,1856},
467         [24]={6762,2836},
468         [26]={8724,1833},
469         [28]={8639,2591,6768,2070},
470         [30]={8632,408,1760,1842},
471         [32]={8623},
472         [34]={8725,8696,2094},
473         [36]={8640,8721},
474         [38]={8633,8621},
475         [40]={8624,8637,1860},
476         [42]={11267,6774,1857},
477         [44]={11273,11279},
478         [46]={11289,11293},
479         [48]={11299,11297},
480         [50]={11268,8643,26669},
481         [52]={11274,11280,11303},
482         [54]={11290,11294},
483         [56]={11300},
484         [58]={11269,11305},
485         [60]={31016,11275,11281,25300,25302},
486         [61]={26839},
487         [62]={32645,26861,26889},
488         [64]={26679,26865,27448},
489         [66]={27441,31224},
490         [68]={26867,26863},
491         [69]={32684},
492         [70]={48689,48673,26884,5938,26862},
493         [71]={51724},
494         [72]={48658},
495         [73]={48667},
496         [74]={57992,48671,48656},
497         [75]={48690,48675,57934},
498         [76]={48674,48637},
499         [78]={48659},
500         [79]={48668,48672},
501         [80]={48691,57993,48676,48657,51723,48638},
502     },
503     [CLASS_DEATH_KNIGHT]={--死亡骑士
504         [56]={50842,49998,46584,52382},
505         [57]={48263,47528},
506         [58]={48721,45524},
507         [59]={49926,47476},
508         [60]={43265,49917},
509         [61]={49896,49020,3714},
510         [62]={48792,49892},
511         [63]={49999},
512         [64]={49927,45529},
513         [65]={56222,57330,49918},
514         [66]={49939,48743},
515         [67]={49903,51423,56815,49936},
516         [68]={48707,49893},
517         [69]={49928},
518         [70]={45463,49919,48265},
519         [72]={49940,61999},
520         [73]={49904,51424,49937},
521         [74]={49929},
522         [75]={47568,57623,49923,49920},
523         [76]={49894},
524         [78]={49941,49909},
525         [79]={51425},
526         [80]={49930,42650,49938,49895,49924,49921},
527     },
528
529 }
530
531 function SKILL.AutoLearn(event, player, oldLevel)
532         local Pclass    = player:GetClass()--得到职业号
533     local level        = player:GetLevel()--得到当前等级
534     local ClassSkills    = SKILL[Pclass]--该职业的该等级技能表
535     if(ClassSkills)then--该职业技能表存在
536         for i=oldLevel+1,level do    --从旧等级到现在等级
537             local LevelSkills    = ClassSkills[i] or {}--该职业技能表存在?存在就获取该等级技能表,不存在就为空
538             for k, v in pairs(LevelSkills) do    --k=1,开始把每个技能读出来赋值为v
539                 player:LearnSpell(v)    --学习每个技能
540             end
541         end
542     end
543 end
544
545 --PLAYER_EVENT_ON_LEVEL_CHANGE            =     13       -- (event, player, oldLevel)
546     RegisterPlayerEvent(13, SKILL.AutoLearn)--玩家升级时
时间: 2024-10-15 00:38:25

AutoLearnSkills.lua --升级自动学习技能的相关文章

Bolt XML和JQBolt Lua代码自动补全插件配置教程

Bolt没有提供官方IDE,缺少强大的代码提示和自动补全,Notepad++写起界面和脚本来比较费劲. Notepad++有个QuickText插件,支持多语言的自动补全,进行简单的配置就可以支持Bolt XML和JQBolt Lua代码. 配置后的效果,输入关键字,Ctrl+Enter自动补全: 下面介绍一下配置方法: 1.在JQBolt中下载QuickText插件和已经配置好的配置文件:https://github.com/zhenghecn/JQBolt,这两个文件在plugins目录下:

cocos2dx lua 如何自动绑定自定义类

cococs2dx 3.13.1 + vs2013 + win10 1.首先定义C++类Student 在cocos2d-x\cocos文件夹下新建一个user_define的文件夹放置两个文件. 注意:这个类没有从Ref继承,是一个简单的C++类. ①头文件Student.h 1 #pragma once 2 3 #include "base/ccMacros.h" 4 #include <iostream> 5 #include <string> 6 7 /

实全软件产品自动升级管理解决方案

实全软件产品自动升级管理解决方案 目 录 1.    描述... 1 2.    产品管理后台系统... 1 2.1.     产品发布... 1 2.2.     产品下载... 2 2.3.     下载日志... 3 2.4.     异常日志... 3 3.    产品Web Service服务接口... 3 3.1.     接口说明... 4 4.    产品升级更新程序... 4 4.1.     产品升级自动更新工具... 5 4.2.     产品版本信息... 5 5.   

xBuild APK差分与合成,Zip差分与合成,自动打包

在游戏开发中,为满足用户需求,产品运营需求,改动的特别多,升级是件极其频繁的事情(没办法,一切以用户为中心),如果一个游戏APP又同时是个集合类型的(内置多个游戏),做完这个游戏只有一个感觉:再也不会爱了... 我们的游戏是用Lua写的,所以Android客户端分为: Apk升级(细分为1.完整升级;2.增量升级;3.第三方升级): Lua升级(细分为1.大厅升级;2各个游戏升级),同时Lua的游戏采用的是热更新机制: 同时涉及 各个游戏->大厅->Apk的依赖关系,难度较大,代码逻辑实现相对

EditPlus 搭建 Lua 开发环境

转自http://blog.csdn.net/dofy/article/details/8513698 准备学一门语言之前,有个得心应手的编辑器是很有必要的(编辑器是程序员圈子中永恒的话题),因为我一直在用 EditPlus,所以这里介绍一下如何在 EditPlus 中搭建 Lua 开发环境. 当然动手之前我也上网搜索了一下,找到不少,但都如出一辙(都是转载的同一篇很老的文章),而且配置好后有些问题,几乎不能使用(不知是 Lua 升级还是 EditPlus 升级导致的) 这里介绍的配置是基于 E

lua 环境探索

什么是环境? http://www.lua.org/manual/5.1/manual.html#2.9 Besides metatables, objects of types thread, function, and userdata have another table associated with them, called their environment. Like metatables, environments are regular tables and multiple

Lua的类型和值

Lua的类型和值 (一)基础介绍 Lua是一种动态类型的语言,变量不需要做定义.Lua中有八种类型,分别是 nil -- 空 boolean -- 布尔 number -- 数字 string -- 字符串 userdata -- 自定义 function -- 函数 thread -- 线程 table -- 表 用type()方法可以识别变量的类型. 1 print(type(nil)) --> nil 2 print(type(true)) --> boolean 3 print(typ

Lua学习笔记--函数初探

感觉学习语言的话,函数是个重头戏.来看一下Lua的函数是神马样纸的东东! 一.简单的函数例子 --一个简单的函数:阶乘 function factorial(num) if num == 0 then return 1 else return num * factorial(num - 1) end end 恩,这就是个函数.function关键字,说明这是个函数,然后是函数名,后面跟的是参数列表,使用括号括起来.函数的结尾需要一个end关键字,表明函数结束了. 下面看以下怎么调用: --一个简

Lua调用C函数

在上一篇文章(C调用lua函数)中,讲述了如何用c语言调用lua函数,通常,A语言能调用B语言,反过来也是成立的.正如Java 与c语言之间使用JNI来互调,Lua与C也可以互调. 当lua调用c函数时,使用了和c调用lua中的同一种栈,c函数从栈中得到函数,然后将结果压入栈中.为了区分返回结果和栈中的其他值,每一个函数返回结果的个数. 这里有个重要的概念:这个栈不是全局的结构,每个函数都有自己的私有局部栈.哪怕c函数调用了lua代码,lua代码再次调用该c函数,他们有各自独立的局部栈.第一个参