icytalent
Advanced members-
Content Count
25 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout icytalent
-
Rank
Cabin Boy
Recent Profile Visitors
877 profile views
-
its already okay sir i jjust have to buy in bulk and put it on the bank
-
sir ive change it but i got this error
-
i just have to change it to 99 right? can it be done by client side? i mean the compiling
-
Hi can any1 teach me what to edit in iteminfo so that i dont have to buy gems in npc 1 by 1? i want to buy in numbers same as scrolls
-
need help with something im trying to test pko2 server i opened it on my rdp and everything seems to be good but how i connect it to the client ? i tried ip changer so the isle names dissapear i tried with serverset im still getting connection error could someone help me please?
-
thank you so much it worked now
-
can any1 teach me how to increase the iteminfo in game.exe?
-
DOWNLOAD here is my game.exe sir @V3ct0r
-
@V3ct0r ive already message you sir
-
i tried sir but i got this error
-
I copied the fresh iteminfo.bin created in my server and pasted it in my client now it shows this error.
-
Hi sir. How do i check the gameserver log files?
-
my ctrl.lua --此文件中,凡是可能被多次执行的函数,函数名都要加上地图名前缀 function config(map) MapCanSavePos(map, 0) --设置地图是否保存角色位置(地图,坐标,方向),此设置影响该地图的所有副本 MapCanPK(map, 1) --设置地图是否可以PK,此设置影响该地图的所有副本 MapCanTeam( map, 0 ) MapType( map , 3 ) MapCopyNum(map, 1) --设置地图的副本数目,如果不调用该语句,则使用默认值1 SingleMapCopyPlyNum(map, 300) --设置一个副本的玩家数 MapCanTeam(map , 0) MapCanStall(map , 0) end function get_map_entry_pos_chaosicicle() --设置入口的位置的坐标(坐标(米)) local POS_X=819 local POS_Y=3654 return POS_X , POS_Y end function init_entry(map) SetMapEntryMapName(map, "magicsea") --设置入口的位置(地图名) SetMapEntryTime(map, "2006/10/18/14/0", "0/5/0", "0/0/30", "0/0/45") --设置入口的时间,地图对象,首次开启时间(年/月/日/时/分),以后再次开启的间隔(日/时/分,全0表示只有首次开启),每次开启到入口消失的间隔(日/时/分,全0表示永不消失),每次开启到地图关闭的间隔(日/时/分,全0表示永不关闭)。。 end function after_enter_chaosicicle( role , map_copy ) end function before_leave_chaosicicle( role ) end --function map_copy_first_run_chaosicicle( map_copy ) -- lua_SetCopySpecialInter(map_copy , 10000) -- Notice("10") -- --end --function map_copy_run_chaosicicle( map_copy ) ----Notice("3") --local new1 = CreateChaEx(791, 120, 120, 145, 50) -- SetChaLifeTime(new1, 900000) -- --end --每5分钟秒执行1次 function map_copy_run_special_chaosicicle( map_copy ) local HowManyNoDead = GetMapActivePlayer(map_copy) Notice("[Chaos Icicle] still have "..HowManyNoDead.." Survivor(s)") Every_5_minute = Every_5_minute+1 if Every_5_minute == 2 then -- 初级宝箱 local Monster2 = CreateChaEx(859, 7466, 11771, 145, 60,map_copy) local Monster3 = CreateChaEx(859, 6761, 13062, 145, 60,map_copy) local Monster4 = CreateChaEx(859, 10820, 24989, 145, 60,map_copy) local Monster5 = CreateChaEx(859, 14673, 20803, 145, 60,map_copy) local Monster6 = CreateChaEx(859, 12311, 16188, 145, 60,map_copy) local Monster7 = CreateChaEx(859, 12015, 13994, 145, 60,map_copy) local Monster8 = CreateChaEx(859, 12380, 12324, 145, 60,map_copy) local Monster9 = CreateChaEx(859, 14339, 12947, 145, 60,map_copy) local Monster10 = CreateChaEx(859, 18442, 12863, 145, 60,map_copy) local Monster11 = CreateChaEx(859, 18791, 7534, 145, 60,map_copy) local Monster12 = CreateChaEx(859, 14373, 7541, 145, 60,map_copy) local Monster13 = CreateChaEx(859, 10186, 6273, 145, 60,map_copy) local Monster14 = CreateChaEx(859, 10043, 9649, 145, 60,map_copy) local Monster15 = CreateChaEx(859, 17186, 3343, 145, 60,map_copy) SetChaLifeTime(Monster2,299050) SetChaLifeTime(Monster3,299100) SetChaLifeTime(Monster4,299150) SetChaLifeTime(Monster5,299200) SetChaLifeTime(Monster6,299250) SetChaLifeTime(Monster7,299300) SetChaLifeTime(Monster8,299350) SetChaLifeTime(Monster9,299400) SetChaLifeTime(Monster10,299450) SetChaLifeTime(Monster11,299500) SetChaLifeTime(Monster12,299550) SetChaLifeTime(Monster13,299600) SetChaLifeTime(Monster14,299650) SetChaLifeTime(Monster15,299700) end if Every_5_minute == 3 then -- 中级宝箱 local Monster16 = CreateChaEx(860, 11339, 24276, 145, 60,map_copy) local Monster17 = CreateChaEx(860, 13812, 18439, 145, 60,map_copy) local Monster18 = CreateChaEx(860, 15189, 6218, 145, 60,map_copy) local Monster19 = CreateChaEx(860, 16393, 12239, 145, 60,map_copy) local Monster20 = CreateChaEx(860, 14895, 13905, 145, 60,map_copy) local Monster21 = CreateChaEx(860, 12824, 12767, 145, 60,map_copy) local Monster22 = CreateChaEx(860, 10154, 11890, 145, 60,map_copy) SetChaLifeTime(Monster16, 299050) SetChaLifeTime(Monster17, 299100) SetChaLifeTime(Monster18, 299150) SetChaLifeTime(Monster19, 299200) SetChaLifeTime(Monster20, 299250) SetChaLifeTime(Monster21, 299300) SetChaLifeTime(Monster22, 299350) end if Every_5_minute == 4 then -- 高级宝箱 local Monster23 = CreateChaEx(861, 12167, 25665, 145, 60,map_copy) local Monster24 = CreateChaEx(861, 13564, 23189, 145, 60,map_copy) local Monster25 = CreateChaEx(861, 18274, 13329, 145, 60,map_copy) local Monster26 = CreateChaEx(861, 19167, 9778, 145, 60,map_copy) local Monster27 = CreateChaEx(861, 14915, 14352, 145, 60,map_copy) local Monster28 = CreateChaEx(861, 13881, 9818, 145, 60,map_copy) local Monster29 = CreateChaEx(861, 10854, 11740, 145, 60,map_copy) SetChaLifeTime(Monster23, 299050) SetChaLifeTime(Monster24, 299100) SetChaLifeTime(Monster25, 299150) SetChaLifeTime(Monster26, 299200) SetChaLifeTime(Monster27, 299250) SetChaLifeTime(Monster28, 299300) SetChaLifeTime(Monster29, 299350) end if Every_5_minute == 5 then --新手 local Monster30 = CreateChaEx(876, 10785, 24073, 145, 60,map_copy) local Monster31 = CreateChaEx(873, 13477, 22976, 145, 60,map_copy) local Monster32 = CreateChaEx(869, 14639, 15668, 145, 60,map_copy) local Monster33 = CreateChaEx(873, 13318, 16448, 145, 60,map_copy) local Monster34 = CreateChaEx(880, 12347, 15640, 145, 60,map_copy) local Monster35 = CreateChaEx(873, 13948, 13970, 145, 60,map_copy) local Monster36 = CreateChaEx(876, 15914, 12813, 145, 60,map_copy) local Monster37 = CreateChaEx(869, 18943, 10871, 145, 60,map_copy) local Monster38 = CreateChaEx(869, 18963, 8391, 145, 60,map_copy) local Monster39 = CreateChaEx(869, 16101, 6381, 145, 60,map_copy) local Monster40 = CreateChaEx(880, 15389, 6087, 145, 60,map_copy) local Monster41 = CreateChaEx(880, 15126, 6725, 145, 60,map_copy) local Monster42 = CreateChaEx(876, 14694, 7473, 145, 60,map_copy) local Monster43 = CreateChaEx(876, 14046, 10079, 145, 60,map_copy) local Monster44 = CreateChaEx(873, 13561, 9940, 145, 60,map_copy) local Monster45 = CreateChaEx(880, 12202, 10924, 145, 60,map_copy) local Monster46 = CreateChaEx(876, 11824, 10620, 145, 60,map_copy) local Monster47 = CreateChaEx(876, 11026, 11515, 145, 60,map_copy) local Monster48 = CreateChaEx(869, 9987, 11359, 145, 60,map_copy) local Monster49 = CreateChaEx(869, 10050, 10309, 145, 60,map_copy) local Monster50 = CreateChaEx(869, 10009, 8176, 145, 60,map_copy) local Monster51 = CreateChaEx(869, 12256, 6305, 145, 60,map_copy) SetChaLifeTime(Monster30,298050) SetChaLifeTime(Monster31,298100) SetChaLifeTime(Monster32,298150) SetChaLifeTime(Monster33,298200) SetChaLifeTime(Monster34,298250) SetChaLifeTime(Monster35,298300) SetChaLifeTime(Monster36,298350) SetChaLifeTime(Monster37,298400) SetChaLifeTime(Monster38,298450) SetChaLifeTime(Monster39,298500) SetChaLifeTime(Monster40,298550) SetChaLifeTime(Monster41,298600) SetChaLifeTime(Monster42,298650) SetChaLifeTime(Monster43,298700) SetChaLifeTime(Monster44,298750) SetChaLifeTime(Monster45,298800) SetChaLifeTime(Monster46,2910780) SetChaLifeTime(Monster47,298900) SetChaLifeTime(Monster48,298950) SetChaLifeTime(Monster49,299000) SetChaLifeTime(Monster50,299050) SetChaLifeTime(Monster51,299100) end if Every_5_minute == 6 then -- 一转角色 local Monster52 = CreateChaEx(870, 6383, 3326, 130, 60,map_copy) local Monster53 = CreateChaEx(881, 6760, 5283, 310, 60,map_copy) local Monster54 = CreateChaEx(877, 5985, 6834, 85, 60,map_copy) local Monster55 = CreateChaEx(877, 7022, 8707, 70, 60,map_copy) local Monster56 = CreateChaEx(870, 7976, 9655, 280, 60,map_copy) local Monster57 = CreateChaEx(870, 6933, 12327, 280, 60,map_copy) local Monster58 = CreateChaEx(881, 6095, 15473, 55, 60,map_copy) local Monster59 = CreateChaEx(881, 8774, 13019, 145, 60,map_copy) local Monster60 = CreateChaEx(877, 9894, 12745, 175, 60,map_copy) local Monster61 = CreateChaEx(870, 10279, 13445, 310, 60,map_copy) local Monster62 = CreateChaEx(870, 13154, 21932, 145, 60,map_copy) local Monster63 = CreateChaEx(874, 13979, 24290, 280, 60,map_copy) local Monster64 = CreateChaEx(870, 12066, 25739, 10, 60,map_copy) local Monster65 = CreateChaEx(881, 10475, 24473, 115, 60,map_copy) local Monster66 = CreateChaEx(877, 11915, 22670, 145, 60,map_copy) local Monster67 = CreateChaEx(874, 13946, 22903, 265, 60,map_copy) local Monster68 = CreateChaEx(881, 13144, 20195, 100, 60,map_copy) local Monster69 = CreateChaEx(874, 13908, 18644, 235, 60,map_copy) local Monster70 = CreateChaEx(870, 13055, 18537, 85, 60,map_copy) local Monster71 = CreateChaEx(874, 14496, 16124, 280, 60,map_copy) local Monster72 = CreateChaEx(881, 14689, 15746, 340, 60,map_copy) local Monster73 = CreateChaEx(870, 11936, 16302, 70, 60,map_copy) local Monster74 = CreateChaEx(874, 13456, 13442, 340, 60,map_copy) local Monster75 = CreateChaEx(870, 16310, 12095, 220, 60,map_copy) local Monster76 = CreateChaEx(874, 18525, 13386, 325, 60,map_copy) local Monster77 = CreateChaEx(881, 18688, 11302, 175, 60,map_copy) local Monster78 = CreateChaEx(877, 19509, 10124, 160, 60,map_copy) local Monster79 = CreateChaEx(874, 19458, 9739, 205, 60,map_copy) local Monster80 = CreateChaEx(870, 18724, 7861, 175, 60,map_copy) local Monster81 = CreateChaEx(877, 17617, 5696, 175, 60,map_copy) local Monster82 = CreateChaEx(874, 17042, 6149, 145, 60,map_copy) local Monster83 = CreateChaEx(870, 16166, 6177, 190, 60,map_copy) local Monster84 = CreateChaEx(881, 19034, 3793, 145, 60,map_copy) local Monster85 = CreateChaEx(877, 16762, 3079, 145, 60,map_copy) local Monster86 = CreateChaEx(881, 15763, 3315, 145, 60,map_copy) local Monster87 = CreateChaEx(874, 15786, 3892, 145, 60,map_copy) local Monster88 = CreateChaEx(870, 14734, 4920, 145, 60,map_copy) local Monster89 = CreateChaEx(874, 12945, 6454, 145, 60,map_copy) local Monster90 = CreateChaEx(881, 12909, 6129, 145, 60,map_copy) local Monster91 = CreateChaEx(877, 11697, 6337, 145, 60,map_copy) local Monster92 = CreateChaEx(874, 11130, 6266, 145, 60,map_copy) local Monster93 = CreateChaEx(877, 10087, 6876, 145, 60,map_copy) SetChaLifeTime(Monster52,297050) SetChaLifeTime(Monster53,297100) SetChaLifeTime(Monster54,297150) SetChaLifeTime(Monster55,297200) SetChaLifeTime(Monster56,297250) SetChaLifeTime(Monster57,297300) SetChaLifeTime(Monster58,297350) SetChaLifeTime(Monster59,297400) SetChaLifeTime(Monster60,297450) SetChaLifeTime(Monster61,297500) SetChaLifeTime(Monster62,297550) SetChaLifeTime(Monster63,297600) SetChaLifeTime(Monster64,297650) SetChaLifeTime(Monster65,297700) SetChaLifeTime(Monster66,297750) SetChaLifeTime(Monster67,297800) SetChaLifeTime(Monster68,297850) SetChaLifeTime(Monster69,297900) SetChaLifeTime(Monster70,297950) SetChaLifeTime(Monster71,298000) SetChaLifeTime(Monster72,298050) SetChaLifeTime(Monster73,298100) SetChaLifeTime(Monster74,298150) SetChaLifeTime(Monster75,298200) SetChaLifeTime(Monster76,298250) SetChaLifeTime(Monster77,298300) SetChaLifeTime(Monster78,298350) SetChaLifeTime(Monster79,298400) SetChaLifeTime(Monster80,298450) SetChaLifeTime(Monster81,298500) SetChaLifeTime(Monster82,298550) SetChaLifeTime(Monster83,298600) SetChaLifeTime(Monster84,298650) SetChaLifeTime(Monster85,298700) SetChaLifeTime(Monster86,298750) SetChaLifeTime(Monster87,298800) SetChaLifeTime(Monster88,2910780) SetChaLifeTime(Monster89,298900) SetChaLifeTime(Monster90,298950) SetChaLifeTime(Monster91,299000) SetChaLifeTime(Monster92,299050) SetChaLifeTime(Monster93,299100) end if Every_5_minute == 7 then -- 二转角色 local Monster94 = CreateChaEx(883, 8103, 15758, 145, 60,map_copy) local Monster95 = CreateChaEx(884, 6366, 16072, 145, 60,map_copy) local Monster96 = CreateChaEx(885, 6158, 14021, 145, 60,map_copy) local Monster97 = CreateChaEx(886, 6462, 13205, 145, 60,map_copy) local Monster98 = CreateChaEx(884, 18456, 3689, 145, 60,map_copy) local Monster99 = CreateChaEx(886, 17992, 3613, 145, 60,map_copy) local Monster100 = CreateChaEx(884, 15235, 3295, 145, 60,map_copy) local Monster101 = CreateChaEx(885, 11944, 3601, 145, 60,map_copy) local Monster102 = CreateChaEx(883, 12378, 3349, 145, 60,map_copy) local Monster103 = CreateChaEx(884, 11528, 2721, 145, 60,map_copy) local Monster104 = CreateChaEx(884, 9531, 2727, 145, 60,map_copy) local Monster105 = CreateChaEx(885, 8534, 3308, 145, 60,map_copy) local Monster106 = CreateChaEx(885, 7543, 3164, 145, 60,map_copy) local Monster107 = CreateChaEx(886, 6487, 3343, 145, 60,map_copy) local Monster108 = CreateChaEx(884, 7192, 4128, 145, 60,map_copy) local Monster109 = CreateChaEx(883, 6677, 4895, 145, 60,map_copy) local Monster110 = CreateChaEx(885, 6567, 5679, 145, 60,map_copy) local Monster111 = CreateChaEx(886, 6701, 6500, 145, 60,map_copy) local Monster112 = CreateChaEx(886, 6369, 6949, 145, 60,map_copy) local Monster113 = CreateChaEx(884, 6994, 8064, 145, 60,map_copy) local Monster114 = CreateChaEx(885, 6505, 8494, 145, 60,map_copy) local Monster115 = CreateChaEx(883, 6536, 8923, 145, 60,map_copy) local Monster116 = CreateChaEx(883, 6288, 10738, 145, 60,map_copy) local Monster117 = CreateChaEx(883, 5901, 12142, 145, 60,map_copy) local Monster118 = CreateChaEx(886, 13579, 25098, 145, 60,map_copy) local Monster119 = CreateChaEx(885, 12103, 25146, 145, 60,map_copy) local Monster120 = CreateChaEx(883, 12122, 24854, 145, 60,map_copy) local Monster121 = CreateChaEx(883, 11116, 24702, 145, 60,map_copy) local Monster122 = CreateChaEx(883, 10579, 24343, 145, 60,map_copy) local Monster123 = CreateChaEx(886, 10968, 23507, 145, 60,map_copy) local Monster124 = CreateChaEx(884, 13141, 22546, 145, 60,map_copy) local Monster125 = CreateChaEx(885, 13778, 22539, 145, 60,map_copy) local Monster126 = CreateChaEx(885, 13259, 21845, 145, 60,map_copy) local Monster127 = CreateChaEx(884, 14899, 20929, 145, 60,map_copy) local Monster128 = CreateChaEx(886, 14973, 20419, 145, 60,map_copy) local Monster129 = CreateChaEx(883, 13247, 19932, 145, 60,map_copy) local Monster130 = CreateChaEx(884, 13892, 19399, 145, 60,map_copy) local Monster131 = CreateChaEx(886, 13283, 17519, 145, 60,map_copy) local Monster132 = CreateChaEx(883, 18412, 20105, 145, 60,map_copy) local Monster133 = CreateChaEx(883, 22194, 18012, 145, 60,map_copy) local Monster134 = CreateChaEx(883, 21710, 17182, 145, 60,map_copy) local Monster135 = CreateChaEx(884, 20408, 17788, 145, 60,map_copy) local Monster136 = CreateChaEx(885, 20461, 17339, 145, 60,map_copy) local Monster137 = CreateChaEx(886, 19457, 17817, 145, 60,map_copy) local Monster138 = CreateChaEx(886, 16343, 15573, 145, 60,map_copy) local Monster139 = CreateChaEx(883, 14078, 15726, 145, 60,map_copy) local Monster140 = CreateChaEx(883, 12363, 15855, 145, 60,map_copy) local Monster141 = CreateChaEx(883, 11589, 13429, 145, 60,map_copy) local Monster142 = CreateChaEx(884, 11113, 13869, 145, 60,map_copy) local Monster143 = CreateChaEx(886, 10902, 14335, 145, 60,map_copy) local Monster144 = CreateChaEx(885, 9309, 12935, 145, 60,map_copy) local Monster145 = CreateChaEx(886, 12534, 11209, 145, 60,map_copy) local Monster146 = CreateChaEx(884, 12515, 13202, 145, 60,map_copy) local Monster147 = CreateChaEx(885, 14479, 14079, 145, 60,map_copy) local Monster148 = CreateChaEx(884, 16426, 11297, 145, 60,map_copy) local Monster149 = CreateChaEx(885, 16757, 12339, 145, 60,map_copy) local Monster150 = CreateChaEx(885, 17115, 12436, 145, 60,map_copy) local Monster151 = CreateChaEx(886, 18473, 12565, 145, 60,map_copy) local Monster152 = CreateChaEx(886, 20540, 11384, 145, 60,map_copy) local Monster153 = CreateChaEx(885, 20235, 10866, 145, 60,map_copy) local Monster154 = CreateChaEx(884, 20390, 9764, 145, 60,map_copy) local Monster155 = CreateChaEx(883, 19487, 9642, 145, 60,map_copy) local Monster156 = CreateChaEx(886, 19063, 7981, 145, 60,map_copy) local Monster157 = CreateChaEx(884, 110766, 7827, 145, 60,map_copy) local Monster158 = CreateChaEx(885, 19026, 6331, 145, 60,map_copy) local Monster159 = CreateChaEx(883, 18459, 5518, 145, 60,map_copy) local Monster160 = CreateChaEx(883, 17781, 6160, 145, 60,map_copy) local Monster161 = CreateChaEx(883, 15146, 5255, 145, 60,map_copy) local Monster162 = CreateChaEx(885, 15722, 6195, 145, 60,map_copy) local Monster163 = CreateChaEx(886, 15088, 6729, 145, 60,map_copy) local Monster164 = CreateChaEx(884, 15116, 7447, 145, 60,map_copy) local Monster165 = CreateChaEx(885, 12657, 8012, 145, 60,map_copy) local Monster166 = CreateChaEx(884, 11770, 6209, 145, 60,map_copy) local Monster167 = CreateChaEx(883, 10394, 6937, 145, 60,map_copy) SetChaLifeTime(Monster94,296050) SetChaLifeTime(Monster95,296100) SetChaLifeTime(Monster96,296150) SetChaLifeTime(Monster97,296200) SetChaLifeTime(Monster98,296250) SetChaLifeTime(Monster99,296300) SetChaLifeTime(Monster100,296350) SetChaLifeTime(Monster101,296400) SetChaLifeTime(Monster102,296450) SetChaLifeTime(Monster103,296500) SetChaLifeTime(Monster104,296550) SetChaLifeTime(Monster105,296600) SetChaLifeTime(Monster106,296650) SetChaLifeTime(Monster107,296700) SetChaLifeTime(Monster108,296750) SetChaLifeTime(Monster109,296800) SetChaLifeTime(Monster110,296850) SetChaLifeTime(Monster111,296900) SetChaLifeTime(Monster112,296950) SetChaLifeTime(Monster113,297000) SetChaLifeTime(Monster114,297050) SetChaLifeTime(Monster115,297100) SetChaLifeTime(Monster116,297150) SetChaLifeTime(Monster117,297200) SetChaLifeTime(Monster118,297250) SetChaLifeTime(Monster119,297300) SetChaLifeTime(Monster120,297350) SetChaLifeTime(Monster121,297400) SetChaLifeTime(Monster122,297450) SetChaLifeTime(Monster123,297500) SetChaLifeTime(Monster124,297550) SetChaLifeTime(Monster125,297600) SetChaLifeTime(Monster126,297650) SetChaLifeTime(Monster127,297700) SetChaLifeTime(Monster128,297750) SetChaLifeTime(Monster129,297800) SetChaLifeTime(Monster130,297850) SetChaLifeTime(Monster131,297900) SetChaLifeTime(Monster132,297950) SetChaLifeTime(Monster133,298000) SetChaLifeTime(Monster134,298050) SetChaLifeTime(Monster135,298100) SetChaLifeTime(Monster136,298150) SetChaLifeTime(Monster137,298200) SetChaLifeTime(Monster138,298250) SetChaLifeTime(Monster139,298300) SetChaLifeTime(Monster140,298350) SetChaLifeTime(Monster141,298400) SetChaLifeTime(Monster142,298450) SetChaLifeTime(Monster143,298500) SetChaLifeTime(Monster144,298550) SetChaLifeTime(Monster145,298600) SetChaLifeTime(Monster146,298650) SetChaLifeTime(Monster147,298700) SetChaLifeTime(Monster148,298750) SetChaLifeTime(Monster149,298800) SetChaLifeTime(Monster150,2910780) SetChaLifeTime(Monster151,298900) SetChaLifeTime(Monster152,298950) SetChaLifeTime(Monster153,299000) SetChaLifeTime(Monster154,299050) SetChaLifeTime(Monster155,299100) SetChaLifeTime(Monster156,299150) SetChaLifeTime(Monster157,299200) SetChaLifeTime(Monster158,299250) SetChaLifeTime(Monster159,299300) SetChaLifeTime(Monster160,299350) SetChaLifeTime(Monster161,299400) SetChaLifeTime(Monster162,299450) SetChaLifeTime(Monster163,299500) SetChaLifeTime(Monster164,299550) SetChaLifeTime(Monster165,299600) SetChaLifeTime(Monster166,299650) SetChaLifeTime(Monster167,299700) end if Every_5_minute == 8 then -- 黑龙角色 local Monster168 =CreateChaEx(1083, 68, 71, 145, 60,map_copy) local Monster169 =CreateChaEx(1082, 71, 68, 145, 60,map_copy) local Monster170 =CreateChaEx(1083, 9115, 8042, 145, 60,map_copy) local Monster171 =CreateChaEx(1082, 11436, 7740, 145, 60,map_copy) local Monster172 =CreateChaEx(1080, 8201, 8590, 145, 60,map_copy) local Monster173 =CreateChaEx(1082, 9210, 22071, 145, 60,map_copy) local Monster174 =CreateChaEx(1082, 16967, 22831, 100, 60,map_copy) local Monster175 =CreateChaEx(1083, 18003, 21061, 235, 60,map_copy) local Monster176 =CreateChaEx(1082, 18305, 15589, 10, 60,map_copy) local Monster177 =CreateChaEx(1082, 7791, 14993, 70, 60,map_copy) local Monster178 =CreateChaEx(1081, 13397, 10783, 340, 60,map_copy) local Monster179 =CreateChaEx(1081, 6849, 6819, 145, 60,map_copy) local Monster180 =CreateChaEx(1083, 7144, 9232, 145, 60,map_copy) local Monster181 =CreateChaEx(1082, 284, 509, 145, 60,map_copy) local Monster182 =CreateChaEx(1083, 7939, 7260, 145, 60,map_copy) local Monster183 =CreateChaEx(1082, 8185, 11194, 355, 60,map_copy) local Monster184 =CreateChaEx(1080, 6618, 12245, 340, 60,map_copy) local Monster185 =CreateChaEx(1081, 8065, 13506, 325, 60,map_copy) local Monster186 =CreateChaEx(1080, 9233, 14876, 220, 60,map_copy) local Monster187 =CreateChaEx(1083, 6729, 15659, 235, 60,map_copy) local Monster188 =CreateChaEx(1082, 6943, 17451, 160, 60,map_copy) local Monster189 =CreateChaEx(1080, 8245, 16703, 145, 60,map_copy) local Monster190 =CreateChaEx(1082, 9236, 18695, 115, 60,map_copy) local Monster191 =CreateChaEx(1082, 7125, 19397, 220, 60,map_copy) local Monster192 =CreateChaEx(1081, 7029, 20366, 250, 60,map_copy) local Monster193 =CreateChaEx(1080, 8300, 21581, 145, 60,map_copy) local Monster194 =CreateChaEx(1083, 7104, 23177, 235, 60,map_copy) local Monster195 =CreateChaEx(1082, 11047, 22508, 145, 60,map_copy) local Monster196 =CreateChaEx(1083, 12120, 19945, 145, 60,map_copy) local Monster197 =CreateChaEx(1082, 13395, 21325, 145, 60,map_copy) local Monster198 =CreateChaEx(1080, 13305, 23636, 220, 60,map_copy) local Monster199 =CreateChaEx(1082, 14870, 21363, 235, 60,map_copy) local Monster200 =CreateChaEx(1083, 15006, 18640, 145, 60,map_copy) local Monster201 =CreateChaEx(1082, 16444, 11553, 145, 60,map_copy) local Monster202 =CreateChaEx(1083, 15395, 8470, 145, 60,map_copy) local Monster203 =CreateChaEx(1082, 14905, 9146, 145, 60,map_copy) local Monster204 =CreateChaEx(1082, 15951, 9078, 355, 60,map_copy) local Monster205 =CreateChaEx(1081, 15381, 10021, 145, 60,map_copy) local Monster206 =CreateChaEx(1080, 10314, 13037, 145, 60,map_copy) local Monster207 =CreateChaEx(1080, 11545, 15958, 145, 60,map_copy) local Monster208 =CreateChaEx(1083, 11793, 18653, 145, 60,map_copy) local Monster209 =CreateChaEx(1083, 13211, 18723, 145, 60,map_copy) local Monster210 =CreateChaEx(1083, 14214, 16453, 145, 60,map_copy) local Monster211 =CreateChaEx(1083, 16598, 14245, 145, 60,map_copy) local Monster212 =CreateChaEx(1081, 17224, 19508, 145, 60,map_copy) local Monster213 =CreateChaEx(1080, 16758, 15260, 175, 60,map_copy) local Monster214 =CreateChaEx(1082, 9859, 10410, 25, 60,map_copy) local Monster215 =CreateChaEx(1083, 11896, 10259, 85, 60,map_copy) local Monster216 =CreateChaEx(1080, 11154, 11604, 340, 60,map_copy) local Monster217 =CreateChaEx(1082, 23667, 18360, 295, 60,map_copy) local Monster218 =CreateChaEx(1083, 13178, 11824, 265, 60,map_copy) local Monster219 =CreateChaEx(1081, 15014, 13276, 145, 60,map_copy) local Monster220 =CreateChaEx(1082, 13742, 15229, 145, 60,map_copy) local Monster221 =CreateChaEx(1080, 9964, 17242, 145, 60,map_copy) local Monster222 =CreateChaEx(1082, 12829, 13520, 205, 60,map_copy) local Monster223 =CreateChaEx(1083, 17099, 7274, 220, 60,map_copy) local Monster224 =CreateChaEx(1081, 17058, 10237, 130, 60,map_copy) local Monster225 =CreateChaEx(1082, 17010, 16794, 265, 60,map_copy) local Monster226 =CreateChaEx(1080, 16582, 18119, 235, 60,map_copy) local Monster227 =CreateChaEx(1082, 16312, 21211, 145, 60,map_copy) local Monster228 =CreateChaEx(1083, 14695, 19808, 265, 60,map_copy) local Monster229 =CreateChaEx(1082, 18912, 16135, 175, 60,map_copy) local Monster230 =CreateChaEx(1081, 19736, 16999, 145, 60,map_copy) local Monster231 =CreateChaEx(1080, 19740, 16700, 145, 60,map_copy) local Monster232 =CreateChaEx(1082, 18961, 18673, 145, 60,map_copy) local Monster233 =CreateChaEx(1081, 18904, 20313, 145, 60,map_copy) local Monster234 =CreateChaEx(1080, 21648, 20459, 145, 60,map_copy) local Monster235 =CreateChaEx(1082, 22210, 18066, 145, 60,map_copy) local Monster236 =CreateChaEx(1083, 22301, 15984, 145, 60,map_copy) local Monster237 =CreateChaEx(1082, 20626, 18515, 235, 60,map_copy) local Monster238 =CreateChaEx(1081, 20946, 14221, 145, 60,map_copy) local Monster239 =CreateChaEx(1080, 23063, 14130, 145, 60,map_copy) local Monster240 =CreateChaEx(1083, 23735, 20345, 145, 60,map_copy) local Monster241 =CreateChaEx(1083, 23513, 23014, 145, 60,map_copy) local Monster242 =CreateChaEx(1082, 21261, 23534, 145, 60,map_copy) local Monster243 =CreateChaEx(1080, 19474, 23208, 145, 60,map_copy) local Monster244 =CreateChaEx(1083, 19546, 22211, 145, 60,map_copy) local Monster245 =CreateChaEx(1082, 21497, 21932, 145, 60,map_copy) local Monster246 =CreateChaEx(1081, 6555, 14269, 145, 60,map_copy) local Monster247 =CreateChaEx(1083, 8749, 20367, 145, 60,map_copy) local Monster248 =CreateChaEx(1082, 9387, 23221, 145, 60,map_copy) local Monster249 =CreateChaEx(1083, 10137, 6583, 145, 60,map_copy) local Monster250 =CreateChaEx(1083, 10727, 8329, 145, 60,map_copy) local Monster251 =CreateChaEx(1082, 12521, 6892, 145, 60,map_copy) local Monster252 =CreateChaEx(1080, 12633, 8090, 145, 60,map_copy) local Monster253 =CreateChaEx(1083, 18306, 7007, 145, 60,map_copy) local Monster254 =CreateChaEx(1082, 17919, 8062, 145, 60,map_copy) local Monster255 =CreateChaEx(1081, 18241, 9280, 145, 60,map_copy) local Monster256 =CreateChaEx(1080, 18195, 11142, 145, 60,map_copy) local Monster257 =CreateChaEx(1083, 18478, 13058, 145, 60,map_copy) local Monster258 =CreateChaEx(1081, 15415, 7607, 145, 60,map_copy) local Monster259 =CreateChaEx(1080, 14380, 8470, 145, 60,map_copy) local Monster260 =CreateChaEx(1082, 14279, 10057, 145, 60,map_copy) local Monster261 =CreateChaEx(1080, 14500, 11200, 145, 60,map_copy) local Monster262 =CreateChaEx(1083, 15774, 12103, 145, 60,map_copy) local Monster263 =CreateChaEx(1080, 15897, 9088, 145, 60,map_copy) local Monster264 =CreateChaEx(1083, 15927, 9926, 145, 60,map_copy) local Monster265 =CreateChaEx(1082, 15870, 11318, 145, 60,map_copy) local Monster266 =CreateChaEx(1081, 16705, 11009, 145, 60,map_copy) local Monster267 =CreateChaEx(1083, 16991, 10282, 145, 60,map_copy) local Monster268 =CreateChaEx(1082, 16776, 9390, 100, 60,map_copy) local Monster269 =CreateChaEx(1081, 16228, 8008, 145, 60,map_copy) local Monster270 =CreateChaEx(1082, 17340, 5441, 145, 60,map_copy) local Monster271 =CreateChaEx(1083, 16977, 6826, 250, 60,map_copy) local Monster272 =CreateChaEx(1082, 17895, 7596, 145, 60,map_copy) local Monster273 =CreateChaEx(1080, 18350, 9107, 145, 60,map_copy) local Monster274 =CreateChaEx(1081, 17184, 12038, 145, 60,map_copy) local Monster275 =CreateChaEx(1081, 17675, 13625, 280, 60,map_copy) local Monster276 =CreateChaEx(1080, 17292, 14462, 355, 60,map_copy) local Monster277 =CreateChaEx(1082, 18674, 13972, 250, 60,map_copy) local Monster278 =CreateChaEx(1083, 18726, 13152, 235, 60,map_copy) local Monster279 =CreateChaEx(1081, 19140, 11976, 235, 60,map_copy) local Monster280 =CreateChaEx(1082, 19373, 10749, 205, 60,map_copy) local Monster281 =CreateChaEx(1080, 19756, 9173, 250, 60,map_copy) local Monster282 =CreateChaEx(1081, 20326, 10478, 250, 60,map_copy) local Monster283 =CreateChaEx(1082, 21174, 11534, 280, 60,map_copy) local Monster284 =CreateChaEx(1080, 21691, 10492, 220, 60,map_copy) local Monster285 =CreateChaEx(1083, 8797, 15531, 145, 60,map_copy) local Monster286 =CreateChaEx(1083, 20759, 8953, 235, 60,map_copy) local Monster287 =CreateChaEx(1083, 19452, 7657, 220, 60,map_copy) local Monster288 =CreateChaEx(1081, 19486, 6799, 220, 60,map_copy) local Monster289 =CreateChaEx(1082, 20496, 7737, 145, 60,map_copy) local Monster290 =CreateChaEx(1083, 20700, 6806, 145, 60,map_copy) local Monster291 =CreateChaEx(1082, 20642, 5653, 220, 60,map_copy) local Monster292 =CreateChaEx(1080, 19568, 5521, 220, 60,map_copy) local Monster293 =CreateChaEx(1080, 18070, 5694, 145, 60,map_copy) local Monster294 =CreateChaEx(1082, 15987, 6943, 145, 60,map_copy) local Monster295 =CreateChaEx(1083, 14332, 7074, 145, 60,map_copy) local Monster296 =CreateChaEx(1081, 13255, 6892, 145, 60,map_copy) local Monster297 =CreateChaEx(1082, 11828, 7155, 145, 60,map_copy) local Monster298 =CreateChaEx(1083, 10361, 6896, 175, 60,map_copy) local Monster299 =CreateChaEx(1081, 9856, 6512, 145, 60,map_copy) local Monster300 =CreateChaEx(1080, 10510, 5556, 145, 60,map_copy) local Monster301 =CreateChaEx(1083, 11501, 6188, 145, 60,map_copy) local Monster302 =CreateChaEx(1082, 12417, 5925, 175, 60,map_copy) local Monster303 =CreateChaEx(1083, 14962, 6289, 145, 60,map_copy) local Monster304 =CreateChaEx(1081, 14056, 6124, 145, 60,map_copy) local Monster305 =CreateChaEx(1082, 15776, 5999, 190, 60,map_copy) local Monster306 =CreateChaEx(1080, 14497, 4230, 115, 60,map_copy) local Monster307 =CreateChaEx(1080, 17683, 4209, 250, 60,map_copy) local Monster308 =CreateChaEx(1083, 19524, 4054, 220, 60,map_copy) local Monster309 =CreateChaEx(1080, 19698, 3217, 160, 60,map_copy) local Monster310 =CreateChaEx(1083, 19010, 3462, 145, 60,map_copy) local Monster311 =CreateChaEx(1082, 17617, 3373, 145, 60,map_copy) local Monster312 =CreateChaEx(1081, 16722, 2757, 145, 60,map_copy) local Monster313 =CreateChaEx(1080, 15852, 3275, 145, 60,map_copy) local Monster314 =CreateChaEx(1083, 15111, 3340, 145, 60,map_copy) local Monster315 =CreateChaEx(1082, 14381, 2672, 145, 60,map_copy) local Monster316 =CreateChaEx(1081, 13548, 3291, 145, 60,map_copy) local Monster317 =CreateChaEx(1083, 12330, 2930, 145, 60,map_copy) local Monster318 =CreateChaEx(1082, 11616, 3663, 145, 60,map_copy) local Monster319 =CreateChaEx(1081, 10642, 2901, 145, 60,map_copy) local Monster320 =CreateChaEx(1080, 10180, 4087, 145, 60,map_copy) local Monster321 =CreateChaEx(1083, 9541, 3296, 145, 60,map_copy) local Monster322 =CreateChaEx(1082, 9087, 3095, 145, 60,map_copy) local Monster323 =CreateChaEx(1083, 8476, 3854, 145, 60,map_copy) local Monster324 =CreateChaEx(1081, 7821, 3114, 145, 60,map_copy) local Monster325 =CreateChaEx(1080, 6536, 4350, 145, 60,map_copy) local Monster326 =CreateChaEx(1081, 7257, 5414, 115, 60,map_copy) local Monster327 =CreateChaEx(1082, 7122, 7119, 145, 60,map_copy) local Monster328 =CreateChaEx(1083, 7189, 10782, 145, 60,map_copy) local Monster329 =CreateChaEx(1082, 7165, 11359, 145, 60,map_copy) local Monster330 =CreateChaEx(1081, 7175, 13327, 100, 60,map_copy) local Monster331 =CreateChaEx(1080, 7096, 15693, 70, 60,map_copy) local Monster332 =CreateChaEx(1081, 6836, 3723, 145, 60,map_copy) local Monster333 =CreateChaEx(1081, 21369, 9546, 205, 60,map_copy) local Monster334 =CreateChaEx(1081, 21811, 3311, 205, 60,map_copy) SetChaLifeTime(Monster168,290050) SetChaLifeTime(Monster169,290100) SetChaLifeTime(Monster170,290150) SetChaLifeTime(Monster171,290200) SetChaLifeTime(Monster172,290250) SetChaLifeTime(Monster173,290300) SetChaLifeTime(Monster174,290350) SetChaLifeTime(Monster175,290400) SetChaLifeTime(Monster176,290450) SetChaLifeTime(Monster177,290500) SetChaLifeTime(Monster178,290550) SetChaLifeTime(Monster179,290600) SetChaLifeTime(Monster180,290650) SetChaLifeTime(Monster181,290700) SetChaLifeTime(Monster182,290750) SetChaLifeTime(Monster183,290800) SetChaLifeTime(Monster184,290850) SetChaLifeTime(Monster185,290900) SetChaLifeTime(Monster186,290950) SetChaLifeTime(Monster187,291000) SetChaLifeTime(Monster188,291050) SetChaLifeTime(Monster189,291100) SetChaLifeTime(Monster190,291150) SetChaLifeTime(Monster191,291200) SetChaLifeTime(Monster192,291250) SetChaLifeTime(Monster193,291300) SetChaLifeTime(Monster194,291350) SetChaLifeTime(Monster195,291400) SetChaLifeTime(Monster196,291450) SetChaLifeTime(Monster197,291500) SetChaLifeTime(Monster198,291550) SetChaLifeTime(Monster199,291600) SetChaLifeTime(Monster200,291650) SetChaLifeTime(Monster201,291700) SetChaLifeTime(Monster202,291750) SetChaLifeTime(Monster203,291800) SetChaLifeTime(Monster204,291850) SetChaLifeTime(Monster205,291900) SetChaLifeTime(Monster206,291950) SetChaLifeTime(Monster207,292000) SetChaLifeTime(Monster208,292050) SetChaLifeTime(Monster209,292100) SetChaLifeTime(Monster210,292150) SetChaLifeTime(Monster211,292200) SetChaLifeTime(Monster212,292250) SetChaLifeTime(Monster213,292300) SetChaLifeTime(Monster214,292350) SetChaLifeTime(Monster215,292400) SetChaLifeTime(Monster216,292450) SetChaLifeTime(Monster217,292500) SetChaLifeTime(Monster218,292550) SetChaLifeTime(Monster219,292600) SetChaLifeTime(Monster220,292650) SetChaLifeTime(Monster221,292700) SetChaLifeTime(Monster222,292750) SetChaLifeTime(Monster223,292800) SetChaLifeTime(Monster224,292850) SetChaLifeTime(Monster225,292900) SetChaLifeTime(Monster226,292950) SetChaLifeTime(Monster227,293000) SetChaLifeTime(Monster228,293050) SetChaLifeTime(Monster229,293100) SetChaLifeTime(Monster230,293150) SetChaLifeTime(Monster231,293200) SetChaLifeTime(Monster232,293250) SetChaLifeTime(Monster233,293300) SetChaLifeTime(Monster234,293350) SetChaLifeTime(Monster235,293400) SetChaLifeTime(Monster236,293450) SetChaLifeTime(Monster237,293500) SetChaLifeTime(Monster238,293550) SetChaLifeTime(Monster239,293600) SetChaLifeTime(Monster240,293650) SetChaLifeTime(Monster241,293700) SetChaLifeTime(Monster242,293750) SetChaLifeTime(Monster243,293800) SetChaLifeTime(Monster244,293850) SetChaLifeTime(Monster245,293900) SetChaLifeTime(Monster246,293950) SetChaLifeTime(Monster247,294000) SetChaLifeTime(Monster248,294050) SetChaLifeTime(Monster249,294100) SetChaLifeTime(Monster250,294150) SetChaLifeTime(Monster251,294200) SetChaLifeTime(Monster252,294250) SetChaLifeTime(Monster253,294300) SetChaLifeTime(Monster254,294350) SetChaLifeTime(Monster255,294400) SetChaLifeTime(Monster256,294450) SetChaLifeTime(Monster257,294500) SetChaLifeTime(Monster258,294550) SetChaLifeTime(Monster259,294600) SetChaLifeTime(Monster260,294650) SetChaLifeTime(Monster261,294700) SetChaLifeTime(Monster262,294750) SetChaLifeTime(Monster263,294800) SetChaLifeTime(Monster264,294850) SetChaLifeTime(Monster265,294900) SetChaLifeTime(Monster266,294950) SetChaLifeTime(Monster267,295000) SetChaLifeTime(Monster268,295050) SetChaLifeTime(Monster269,295100) SetChaLifeTime(Monster270,295150) SetChaLifeTime(Monster271,295200) SetChaLifeTime(Monster272,295250) SetChaLifeTime(Monster273,295300) SetChaLifeTime(Monster274,295350) SetChaLifeTime(Monster275,295400) SetChaLifeTime(Monster276,295450) SetChaLifeTime(Monster277,295500) SetChaLifeTime(Monster278,295550) SetChaLifeTime(Monster279,295600) SetChaLifeTime(Monster280,295650) SetChaLifeTime(Monster281,295700) SetChaLifeTime(Monster282,295750) SetChaLifeTime(Monster283,295800) SetChaLifeTime(Monster284,295850) SetChaLifeTime(Monster285,295900) SetChaLifeTime(Monster286,295950) SetChaLifeTime(Monster287,296000) SetChaLifeTime(Monster288,296050) SetChaLifeTime(Monster289,296100) SetChaLifeTime(Monster290,296150) SetChaLifeTime(Monster291,296200) SetChaLifeTime(Monster292,296250) SetChaLifeTime(Monster293,296300) SetChaLifeTime(Monster294,296350) SetChaLifeTime(Monster295,296400) SetChaLifeTime(Monster296,296450) SetChaLifeTime(Monster297,296500) SetChaLifeTime(Monster298,296550) SetChaLifeTime(Monster299,296600) SetChaLifeTime(Monster300,296650) SetChaLifeTime(Monster301,296700) SetChaLifeTime(Monster302,296750) SetChaLifeTime(Monster303,296800) SetChaLifeTime(Monster304,296850) SetChaLifeTime(Monster305,296900) SetChaLifeTime(Monster306,296950) SetChaLifeTime(Monster307,297000) SetChaLifeTime(Monster308,297050) SetChaLifeTime(Monster309,297100) SetChaLifeTime(Monster310,297150) SetChaLifeTime(Monster311,297200) SetChaLifeTime(Monster312,297250) SetChaLifeTime(Monster313,297300) SetChaLifeTime(Monster314,297350) SetChaLifeTime(Monster315,297400) SetChaLifeTime(Monster316,297450) SetChaLifeTime(Monster317,297500) SetChaLifeTime(Monster318,297550) SetChaLifeTime(Monster319,297600) SetChaLifeTime(Monster320,297650) SetChaLifeTime(Monster321,297700) SetChaLifeTime(Monster322,297750) SetChaLifeTime(Monster323,297800) SetChaLifeTime(Monster324,297850) SetChaLifeTime(Monster325,297900) SetChaLifeTime(Monster326,297950) SetChaLifeTime(Monster327,298000) SetChaLifeTime(Monster328,298050) SetChaLifeTime(Monster329,298100) SetChaLifeTime(Monster330,298150) SetChaLifeTime(Monster331,298200) SetChaLifeTime(Monster332,298250) SetChaLifeTime(Monster333,298300) SetChaLifeTime(Monster334,298350) end end --每5秒执行一次的 function map_run_chaosicicle( map ) end --地图关闭时执行 function map_copy_before_close_chaosicicle( map_copy ) How_Many_Active = GetMapActivePlayer(map_copy) if How_Many_Active > 0 then DealAllActivePlayerInMap(map_copy,"GiveSpecItem") end How_Many_Active = 0 Money_all = 30000000 Every_5_minute = 0 end function map_copy_close_chaosicicle( map_copy ) ClearAllSubMapCha(map_copy) end -- --地图开关判断—————————————————————————————————————————— function can_open_entry_chaosicicle( map ) -- local time = GetTickCount ( ) local Now_Time = GetNowTime() if Now_Time ==14 or Now_Time == 20 then return 1 else return 1 end end function GiveSpecItem( role ) if How_Many_Active == 0 then return end local Money_chaosicicle = Money_all/How_Many_Active -- SystemNotice(role,How_Many_Active) if How_Many_Active > 5 then AddMoney ( role , 0 , Money_chaosicicle ) -- local message = "今天的乱斗共存活了"..How_Many_Active .. "位玩家,他们每人将获得"..Money_chaosicicle .."的金钱" -- SystemNotice(role,How_Many_Active) return end if How_Many_Active < 6 and How_Many_Active > 1 then local Item_CanGet = GetChaFreeBagGridNum ( role ) if Item_CanGet <= 0 then GiveItemX ( role , 0 , 1031 , 1 , 4 ) else GiveItem ( role , 0 , 1031 , 1 , 4 ) end AddMoney ( role , 0 , Money_chaosicicle ) --SystemNotice(role,How_Many_Active) --local message = "今天的乱斗中共存活了"..How_Many_Active .."位玩家,他们每人将获得"..Money_chaosicicle .."的金钱和1个乱斗之星徽章" --Notice ( message ) return end if How_Many_Active == 1 then local Item_CanGet = GetChaFreeBagGridNum ( role ) if Item_CanGet <= 0 then GiveItemX ( role , 0 , 1032 , 1 , 4 ) else GiveItem ( role , 0 , 1032 , 1 , 4 ) end AddMoney ( role , 0 , Money_chaosicicle ) local cha_name = GetChaDefaultName ( role ) local message = "Congratulations "..cha_name.." you have earned ".. Money_chaosicicle .." gold and 1 King of Ring Emblem" -- SystemNotice(role,How_Many_Active) SystemNotice(role,message) return end end entry.lua --此文件中,凡是可能被多次执行的函数,函数名都要加上地图名前缀,如after_destroy_entry_testpk --此文件每行最大字符个数为255,若有异议,请与程序探讨 function config_entry(entry) SetMapEntryEntiID(entry, 193,1) --设置地图入口实体的编号(该编号对应于characterinfo.txt的索引) end function after_create_entry(entry) local copy_mgr = GetMapEntryCopyObj(entry, 0) --创建副本管理对象,此函数在有显式入口的地图中必须调用,对于隐式入口的地图(如队伍挑战)无要调用该接口 local EntryName = "Chaos Icicle" SetMapEntryEventName( entry, EntryName ) map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) --取地图入口的位置信息(地图名,坐标,目标地图名) Notice("Announcement: According to reports, in Icicle Mirage at ["..posx..","..posy.."] appears a portal to Chaos Icicle. Please check it out.") --通知本组服务器的所有玩家 end function after_destroy_entry_binglang2(entry) map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) Notice("Announcement: According to reports, portal to [Chaos Icicle] has vanished. Check announcement for more details. Enjoy!") end function after_player_login_binglang2(entry, player_name) map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) --取地图入口的位置信息(地图名,坐标,目标地图名) ChaNotice(player_name, "Announcement: According to reports, in Icicle Mirage at ["..posx..","..posy.."] appears a portal to Chaos Icicle. Please check it out.") --通知本组服务器的所有玩家 end --用于检测进入条件 --返回值:0,不满足进入条件。1,成功进入。 function check_can_enter_chaosicicle( role, copy_mgr ) local FightingBook_Num = 0 FightingBook_Num = CheckBagItem( role,3849 ) local Team_In = IsInTeam(role) if Team_In == 1 then SystemNotice ( role , "Cannot Enter in Party to Chaos Icicle" ) return 0 end if FightingBook_Num <= 0 then SystemNotice ( role , "Does not possess Medal of Valor. Unable to pass through Portal to Chaos Icicle" ) return 0 elseif FightingBook_Num > 1 then LG("RYZ_PK","Does not possess Medal of Valor. Unable to pass through Portal to Chaos Icicle") return 0 end local role_RY = GetChaItem2 ( role , 2 , 3849 ) local HonorPoint = GetItemAttr ( role_RY , ITEMATTR_VAL_STR) if HonorPoint < 5 then SystemNotice ( role , "You need 25 Honor Points to enter Chaos Icicle" ) return 0 end if HonorPoint >30000 then SystemNotice ( role , "Too much Honor Points unable to participate" ) return 0 end local Credit_chaosicicle = GetCredit(role) if Credit_chaosicicle < 5 then SystemNotice ( role , "You need 50 Reputation to enter Chaos Icicle" ) return 0 --else -- DelCredit(role,30) end if Lv(role) < 65 then SystemNotice(role, "Only players Lv 65 and above may enter Chaos Icicle") return 0 end local Has_money = check_HasMoney(role) if Has_money == 1 then return 1 else SystemNotice(role,"You dont have enough money...") return 0 end end function check_HasMoney(role) local lv= GetChaAttr(role, ATTR_LV) local Money_Need = lv*50 local Money_Have = GetChaAttr ( role , ATTR_GD ) if Money_Have >= Money_Need then return 1 end end function begin_enter_chaosicicle(role, copy_mgr) local Money_Have = GetChaAttr ( role , ATTR_GD ) local lv= GetChaAttr(role, ATTR_LV) local Money_Need = lv*50 local Money_Now = Money_Have - Money_Need SetChaAttrI( role , ATTR_GD , Money_Now ) DelCredit(role,30) SystemNotice(role,"Enters [Chaos Icicle] Cost "..Money_Need..", will be deducted 30 reputation points.") MoveCity(role, "Chaos Icicle") Money_all = Money_all + Money_Need * 0.8 end
-
Help all my portals are open but cannot enter and system doesnt says its on. heres my ctrl for ca print( "Loading Garner2 Ctrl.lua" ) dofile(GetResPath("garner2/ca.lua")) function config(map) MapCanSavePos(map, garner2.conf['saveSpawn']); MapCanPK(map, garner2.conf['canPk']); MapCanTeam(map, garner2.conf['canTeam']); MapType(map, garner2.conf['mapType']); MapCopyNum(map, garner2.conf['mapCopy']); SingleMapCopyPlyNum(map, garner2.conf['chaAllow']); MapCanStall(map, garner2.conf['canStall']); end function init_entry(map) SetMapEntryMapName(map, garner2.pos['map']) SetMapEntryTime(map, '2006/10/19/14/0', '6/'..garner2.entry['hoursOpen']..'/0', '0/30/'..garner2.entry['closeTime'], '0/45/'..garner2.entry['shutdown'] ) end --function can_open_entry_garner2( map ) -- Specific portal time to open -- local hour = os.date ("%H") -- local hournum = tonumber(hour) -- if hournum == 04 or hournum == 08 or hournum == 12 or hournum == 16 or hournum == 20 or hournum == 24 then -- return 1 -- else -- return 0 -- end --end puzzleworld print( "Loading Demonic World Ctrl.lua" ) dofile(GetResPath("puzzleworld/puzzle1.lua")) function config(map) MapCanSavePos(map, puzzleworld.conf['saveSpawn']); MapCanPK(map, puzzleworld.conf['canPk']); MapCanTeam(map, puzzleworld.conf['canTeam']); MapType(map, puzzleworld.conf['mapType']); MapCopyNum(map, puzzleworld.conf['mapCopy']); SingleMapCopyPlyNum(map, puzzleworld.conf['chaAllow']); MapCanStall(map, puzzleworld.conf['canStall']); end function init_entry(map) SetMapEntryMapName(map, puzzleworld.pos['map']) SetMapEntryTime(map, '2006/10/19/12/0', '3/'..puzzleworld.entry['hoursOpen']..'/0', '0/40/'..puzzleworld.entry['closeTime'], '2/0/'..puzzleworld.entry['shutdown'] ) end --function can_open_entry_puzzleworld( map ) -- Specific portal time to open -- local hour = os.date ("%H") -- local hournum = tonumber(hour) -- if hournum == 04 or hournum == 08 or hournum == 12 or hournum == 16 or hournum == 20 or hournum == 24 then -- return 1 -- else -- return 0 -- end --end puzzleworld 2 -------------------------------------------------------------------------- -- -- -- -- -- ctrl.lua -- -- -- -- -- -------------------------------------------------------------------------- print( "Loading Puzzleworld2 Ctrl.lua" ) function config(map) MapCanSavePos(map, 0) -- 1 = Allow players to save respaw // 0 = Do not allow players to save respaw MapCanPK(map, 1) -- 1 = Turns on PK Mouse Sword Icon // 0 = Turns off PK Mouse Sword Icon ( Need to press CTRL key ) MapCopyNum(map, 1) -- 1 Copy of the map will be generated by GameServer SingleMapCopyPlyNum(map, 300) -- 300 Players are allowed to enter the map MapCanTeam(map , 1) -- 1 = Allow players to create party // 0 = Do not allow Players to create party MapType ( map , 4 ) -- 0 = PvP Off // 1 = PvP Off // 2 = PvP On ( Not allowed to kill Guild and Party Mates ) // 3 = PvP On ( Allowed to kill any player but not Party Mates ) // 4 = PvP On ( Not allowed to kill Guild and Party Mates ) end function get_map_entry_pos_puzzleworld2() local POS_X=172 local POS_Y=165 local a = 100 local k = math.random ( 1 , a ) if k < 25 then POS_X = 172 POS_Y = 165 end if k >= 25 and k < 50 then POS_X = 147 POS_Y = 384 end if k >= 50 and k < 75 then POS_X = 365 POS_Y = 381 end if k >= 75 then POS_X = 365 POS_Y = 171 end return POS_X , POS_Y end function init_entry(map) SetMapEntryMapName(map, "puzzleworld") SetMapEntryTime(map, "2005/8/30/0/0", "0/3/0", "0/1/0", "0/2/0") -- The first set of numbers is the starting point (Year/Month/Day/Hour/Minute), next is opening interval (Day/Hour/Minute), portal open duration (Day/Hour/Minute), and last is the map duration (Day/Hour/Minute) --2005/8/30/0/0 end puzzleworld 3 --此文件中,凡是可能被多次执行的函数,函数名都要加上地图名前缀 function config(map) MapCanSavePos(map, 0) --设置地图是否保存角色位置(地图,坐标,方向),此设置影响该地图的所有副本 MapCanPK(map, 1) --设置地图是否可以PK,此设置影响该地图的所有副本 MapCopyNum(map, 1) --设置地图的副本数目,如果不调用该语句,则使用默认值1 SingleMapCopyPlyNum(map, 300) --设置一个副本的玩家数 MapCanTeam(map , 1) MapType ( map , 4 ) end function get_map_entry_pos_puzzleworld3() --设置入口的位置的坐标(坐标(米)) local POS_X=267 local POS_Y=251 end function init_entry(map) SetMapEntryMapName(map, "puzzleworld2") --设置入口的位置(地图名) SetMapEntryTime(map, "2005/8/30/0/0", "0/3/0", "0/1/0", "0/2/0") --设置入口的时间,地图对象,首次开启时间(年/月/日/时/分),以后再次开启的间隔(日/时/分,全0表示只有首次开启),每次开启到入口消失的间隔(日/时/分,全0表示永不消失),每次开启到地图关闭的间隔(日/时/分,全0表示永不关闭)。。 end
-
Big thanks to you sir ^^