[JX] Xin Hỏi Lỗi Viêm Đế
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 4 của 4
  1. #1
    Thành Viên kenlucky2000's Avatar
    Ngày tham gia
    Apr 2014
    Bài viết
    228
    Thanks
    129
    Thanked 16 Times in 15 Posts

    Xin Hỏi Lỗi Viêm Đế

    không hiểu sao đến gặp bình bình cô nương, vào các mốc thời gian như 14:25, 16:25 thì nó lại không hiện ra 2 dòng để chọn tham gia viêm đế, mặc dù có đến 14h20 hoặc 16h20 nhưng đều không được, ai biết lỗi này giúp hộ mình với
    Khách viếng thăm hãy cùng kenlucky2000 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên
    Ngày tham gia
    Jan 2016
    Đang ở
    Bình Dương
    Bài viết
    491
    Thanks
    85
    Thanked 215 Times in 142 Posts

    Ðề: Xin Hỏi Lỗi Viêm Đế

    Trích dẫn Gửi bởi kenlucky2000 [Only registered and activated users can see links. ]
    không hiểu sao đến gặp bình bình cô nương, vào các mốc thời gian như 14:25, 16:25 thì nó lại không hiện ra 2 dòng để chọn tham gia viêm đế, mặc dù có đến 14h20 hoặc 16h20 nhưng đều không được, ai biết lỗi này giúp hộ mình với
    Đã khai báo trong tasklist.ini ở gateway với edit lời thoại chưa anh nhỉ
    Khách viếng thăm hãy cùng ztviet xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. Các thành viên gởi lời cảm ơn đến ztviet vì bài viết này !

    kenlucky2000 (18-06-16)

  4. #3
    Thành Viên kenlucky2000's Avatar
    Ngày tham gia
    Apr 2014
    Bài viết
    228
    Thanks
    129
    Thanked 16 Times in 15 Posts

    Ðề: Xin Hỏi Lỗi Viêm Đế

    Trích dẫn Gửi bởi ztviet [Only registered and activated users can see links. ]
    Đã khai báo trong tasklist.ini ở gateway với edit lời thoại chưa anh nhỉ
    lời thoại thì chuẩn rồi bạn, tasklist thì mình khai báo chuẩn rồi cậu.
    Code:
    [List]
    Count=157
    
    [Task_0]
    TaskFile=announce.lua
    
    [Task_1]
    TaskFile=game_module_settings.lua
    
    [Task_2]
    TaskFile=miao-ru-1200.lua
    ExcutedCount=-1
    
    [Task_3]
    TaskFile=miao-ru-2000.lua
    ExcutedCount=-1
    
    [Task_4]
    TaskFile=miao-ru-2200.lua
    ExcutedCount=-1
    
    [Task_5]
    TaskFile=zhang-zongzheng-1200.lua
    ExcutedCount=-1
    
    [Task_6]
    TaskFile=zhang-zongzheng-2000.lua
    ExcutedCount=-1
    
    [Task_7]
    TaskFile=zhang-zongzheng-2200.lua
    ExcutedCount=-1
    
    [Task_8]
    TaskFile=liu-qingqing-1200.lua
    ExcutedCount=-1
    
    [Task_9]
    TaskFile=liu-qingqing-2000.lua
    ExcutedCount=-1
    
    [Task_10]
    TaskFile=liu-qingqing-2200.lua
    ExcutedCount=-1
    
    [Task_11]
    TaskFile=zhang-zongzheng.lua
    ExcutedCount=-1
    
    [Task_12]
    TaskFile=miao-ru.lua
    ExcutedCount=-1
    
    [Task_13]
    TaskFile=liu-qingqing.lua
    ExcutedCount=-1
    
    [Task_14]
    TaskFile=citywar_01_startsignup.lua
    ExcutedCount=-1
    
    [Task_15]
    TaskFile=citywar_01_endsignup.lua
    ExcutedCount=-1
    
    [Task_16]
    TaskFile=citywar_01_startarena.lua
    ExcutedCount=-1
    
    [Task_17]
    TaskFile=citywar_01_startcitywar.lua
    ExcutedCount=-1
    
    [Task_18]
    TaskFile=citywar_02_startsignup.lua
    ExcutedCount=-1
    
    [Task_19]
    TaskFile=citywar_02_endsignup.lua
    ExcutedCount=-1
    
    [Task_20]
    TaskFile=citywar_02_startarena.lua
    ExcutedCount=-1
    
    [Task_21]
    TaskFile=citywar_02_startcitywar.lua
    ExcutedCount=-1
    
    [Task_22]
    TaskFile=citywar_03_startsignup.lua
    ExcutedCount=-1
    
    [Task_23]
    TaskFile=citywar_03_endsignup.lua
    ExcutedCount=-1
    
    [Task_24]
    TaskFile=citywar_03_startarena.lua
    ExcutedCount=-1
    
    [Task_25]
    TaskFile=citywar_03_startcitywar.lua
    ExcutedCount=-1
    
    [Task_26]
    TaskFile=citywar_04_startsignup.lua
    ExcutedCount=-1
    
    [Task_27]
    TaskFile=citywar_04_endsignup.lua
    ExcutedCount=-1
    
    [Task_28]
    TaskFile=citywar_04_startarena.lua
    ExcutedCount=-1
    
    [Task_29]
    TaskFile=citywar_04_startcitywar.lua
    ExcutedCount=-1
    
    [Task_30]
    TaskFile=citywar_05_startsignup.lua
    ExcutedCount=-1
    
    [Task_31]
    TaskFile=citywar_05_endsignup.lua
    ExcutedCount=-1
    
    [Task_32]
    TaskFile=citywar_05_startarena.lua
    ExcutedCount=-1
    
    [Task_33]
    TaskFile=citywar_05_startcitywar.lua
    ExcutedCount=-1
    
    [Task_34]
    TaskFile=citywar_06_startsignup.lua
    ExcutedCount=-1
    
    [Task_35]
    TaskFile=citywar_06_endsignup.lua
    ExcutedCount=-1
    
    [Task_36]
    TaskFile=citywar_06_startarena.lua
    ExcutedCount=-1
    
    [Task_37]
    TaskFile=citywar_06_startcitywar.lua
    ExcutedCount=-1
    
    [Task_38]
    TaskFile=citywar_07_startsignup.lua
    ExcutedCount=-1
    
    [Task_39]
    TaskFile=citywar_07_endsignup.lua
    ExcutedCount=-1
    
    [Task_40]
    TaskFile=citywar_07_startarena.lua
    ExcutedCount=-1
    
    [Task_41]
    TaskFile=citywar_07_startcitywar.lua
    ExcutedCount=-1
    
    [Task_42]
    TaskFile=battle_1_1000.lua
    ExcutedCount=-1
    
    [Task_43]
    TaskFile=battle_1_1900.lua
    ExcutedCount=-1
    
    [Task_44]
    TaskFile=battle_1_1700.lua
    ExcutedCount=-1
    
    [Task_45]
    TaskFile=battle_1_1100.lua
    ExcutedCount=-1
    
    [Task_46]
    TaskFile=battle_1_0930.lua
    ExcutedCount=-1
    
    [Task_47]
    TaskFile=battle_1_2100.lua
    ExcutedCount=-1
    
    [Task_48]
    TaskFile=battle_1_1500.lua
    ExcutedCount=-1
    
    [Task_49]
    TaskFile=battle_1_1700.lua
    ExcutedCount=-1
    
    [Task_50]
    TaskFile=ladderload.lua
    
    [Task_51]
    TaskFile=battle_1_createnew.lua
    
    [Task_52]
    TaskFile=challengeoftime.lua
    
    [Task_53]
    TaskFile=stat_goodssale.lua
    ExcutedCount=-1
    
    [Task_54]
    TaskFile=great_seed.lua
    
    [Task_55]
    TaskFile=menglanjie_06.lua
    ExcutedCount=-1
    
    [Task_56]
    TaskFile=leaguematch.lua
    
    [Task_57]
    TaskFile=small_goldboss_2000.lua
    
    [Task_58]
    TaskFile=chrismas_shrewmouse.lua
    ExcutedCount=-1
    
    [Task_59]
    TaskFile=tong_springfestival.lua
    
    [Task_60]
    TaskFile=tong_disciple.lua
    
    [Task_61]
    TaskFile=tongwar.lua
    
    [Task_62]
    TaskFile=huangzhizhang.lua
    
    [Task_63]
    TaskFile=citywar_clearchallenger.lua
    ExcutedCount=-1
    
    [Task_64]
    TaskFile=onetong_writememlist.lua
    
    [Task_65]
    TaskFile=tong_init.lua
    ExcutedCount=-1
    
    [Task_66]
    TaskFile=tong_maintain.lua
    
    [Task_67]
    TaskFile=race.lua
    
    [Task_68]
    TaskFile=citydefence_1300.lua
    
    [Task_69]
    TaskFile=close_citydefence_1530.lua
    
    [Task_70]
    TaskFile=hushanqunzhan.lua
    
    [Task_71]
    TaskFile=small_goldboss_0400.lua
    
    [Task_72]
    TaskFile=small_goldboss_1230.lua
    
    [Task_73]
    TaskFile=small_goldboss_2300.lua
    
    [Task_74]
    TaskFile=shengdan0811.lua
    
    [Task_75]
    TaskFile=battle_2_createnew.lua
    
    [Task_76]
    TaskFile=battle_2_2050.lua
    
    [Task_77]
    TaskFile=tongcontribution_clean_once.lua
    ExcutedCount=-1
    
    [Task_78]
    TaskFile=caipiaofix.lua
    ExcutedCount=-1
    
    [Task_79]
    TaskFile=challegeoftime-dailyrank.lua
    
    [Task_80]
    TaskFile=shensuanzi.lua
    
    [Task_81]
    TaskFile=SecondHandStore.lua
    
    [Task_82]
    TaskFile=goldbossadjust_2020.lua
    
    [Task_83]
    TaskFile=sevencity_1.lua
    
    [Task_84]
    TaskFile=sevencity_2.lua
    
    [Task_85]
    TaskFile=sevencity_3.lua
    
    [Task_86]
    TaskFile=sevencity_4.lua
    
    [Task_87]
    TaskFile=sevencity_5.lua
    
    [Task_88]
    TaskFile=fuguijinhe.lua
    
    [Task_89]
    TaskFile=zhongqiu1009.lua
    
    [Task_90]
    TaskFile=yandibaozang.lua
    
    [Task_91]
    TaskFile=battle_1_honour.lua
    
    [Task_92]
    TaskFile=dungeontimer.lua
    
    [Task_93]
    TaskFile=dayanqunxia_2400.lua
    
    [Task_94]
    TaskFile=zhaojingling.lua
    ExcutedCount=-1
    
    [Task_95]
    TaskFile=datusha.lua
    
    [Task_96]
    TaskFile=vn201109.lua
    
    [Task_97]
    TaskFile=goldbossadjust_2010.lua
    
    [Task_98]
    TaskFile=goldbossadjust_2015.lua
    
    [Task_99]
    TaskFile=battle_1_1050.lua
    
    [Task_100]
    TaskFile=battle_1_0950.lua
    
    [Task_101]
    TaskFile=battle_1_1450.lua
    
    [Task_102]
    TaskFile=battle_1_1650.lua
    
    [Task_103]
    TaskFile=battle_1_1850.lua
    
    [Task_104]
    TaskFile=battle_1_1650.lua
    
    [Task_105]
    TaskFile=battle_1_2050.lua
    
    [Task_106]
    TaskFile=teachersday_200910.lua
    
    [Task_107]
    TaskFile=boss_thien_tri_2000.lua
    
    [Task_108]
    TaskFile=make_new_big_boss.lua
    
    [Task_109]
    TaskFile=makegoldboss_0000.lua
    
    [Task_110]
    TaskFile=makegoldboss_0100.lua
    
    [Task_111]
    TaskFile=makegoldboss_0200.lua
    
    [Task_112]
    TaskFile=makegoldboss_0300.lua
    
    [Task_113]
    TaskFile=makegoldboss_0400.lua
    
    [Task_114]
    TaskFile=makegoldboss_0500.lua
    
    [Task_115]
    TaskFile=makegoldboss_0600.lua
    
    [Task_116]
    TaskFile=makegoldboss_0700.lua
    
    [Task_117]
    TaskFile=makegoldboss_0800.lua
    
    [Task_118]
    TaskFile=makegoldboss_0900.lua
    
    [Task_119]
    TaskFile=makegoldboss_1000.lua
    
    [Task_120]
    TaskFile=makegoldboss_1100.lua
    
    [Task_121]
    TaskFile=makegoldboss_1200.lua
    
    [Task_122]
    TaskFile=makegoldboss_1300.lua
    
    [Task_123]
    TaskFile=makegoldboss_1400.lua
    
    [Task_124]
    TaskFile=makegoldboss_1500.lua
    
    [Task_125]
    TaskFile=makegoldboss_1600.lua
    
    [Task_126]
    TaskFile=makegoldboss_1700.lua
    
    [Task_127]
    TaskFile=makegoldboss_1800.lua
    
    [Task_128]
    TaskFile=makegoldboss_1900.lua
    
    [Task_129]
    TaskFile=makegoldboss_2000.lua
    
    [Task_130]
    TaskFile=makegoldboss_2100.lua
    
    [Task_131]
    TaskFile=makegoldboss_2200.lua
    
    [Task_132]
    TaskFile=makegoldboss_2300.lua
    
    [Task_133]
    TaskFile=fengling_ferry_0000.lua
    
    [Task_134]
    TaskFile=fengling_ferry_0100.lua
    
    [Task_135]
    TaskFile=fengling_ferry_0200.lua
    
    [Task_136]
    TaskFile=fengling_ferry_0300.lua
    
    [Task_137]
    TaskFile=fengling_ferry_0400.lua
    
    [Task_138]
    TaskFile=fengling_ferry_0500.lua
    
    [Task_139]
    TaskFile=fengling_ferry_0600.lua
    
    [Task_140]
    TaskFile=fengling_ferry_0700.lua
    
    [Task_141]
    TaskFile=fengling_ferry_0800.lua
    
    [Task_142]
    TaskFile=fengling_ferry_0900.lua
    
    [Task_143]
    TaskFile=fengling_ferry_1000.lua
    
    [Task_144]
    TaskFile=fengling_ferry_1100.lua
    
    [Task_145]
    TaskFile=fengling_ferry_1200.lua
    
    [Task_146]
    TaskFile=fengling_ferry_1300.lua
    
    [Task_147]
    TaskFile=fengling_ferry_1400.lua
    
    [Task_148]
    TaskFile=fengling_ferry_1500.lua
    
    [Task_149]
    TaskFile=fengling_ferry_1600.lua
    
    [Task_150]
    TaskFile=fengling_ferry_1700.lua
    
    [Task_151]
    TaskFile=fengling_ferry_1800.lua
    
    [Task_152]
    TaskFile=fengling_ferry_1900.lua
    
    [Task_153]
    TaskFile=fengling_ferry_2000.lua
    
    [Task_154]
    TaskFile=fengling_ferry_2100.lua
    
    [Task_155]
    TaskFile=fengling_ferry_2200.lua
    
    [Task_156]
    TaskFile=fengling_ferry_2300.lua
    còn đây là npc:
    Code:
    -- Ñ×µÛ±¦²Ø
    -- by Đ¡À˶µ¶µ
    -- 2007.10.24
    -- Î̉..
    -- ƠưÔÚ³¢ÊÔ×Å..
    -- Ñ°Ở×ÅÊôÓÚÎ̉µÄ̀́µØ..
    Include("\\script\\lib\\gb_modulefuncs.lua")
    Include("\\script\\missions\\yandibaozang\\readymap\\include.lua")
    Include("\\script\\missions\\yandibaozang\\include.lua")
    Include("\\script\\missions\\yandibaozang\\npc\\golditem.lua")
    Include("\\script\\missions\\yandibaozang\\npc\\yandituteng.lua")
    Include("\\script\\missions\\yandibaozang\\yandiduihuan.lua")
    --YDBZ_DATE_START = 13	--	¿ªÊ¼Ê±¼ä
    --YDBZ_DATE_END = 23		--	½áÊøʱ¼ä
    ID_PRISONMAN = 96; 		-- ÅжÏÊÇ·ñÔÚ×øÀ뵀 ID
    function main()
    --	Say("¸Ă¹¦ÄÜÔƯʱ±»¹Ø±ƠÁË",0)
    --	do return end
    --	if gb_GetModule("YANDIBAOZANG_TALK") ~= 1 then
    --		Say("¶Ô²»Æđ£¬´Ë¹¦ÄÜÔƯʱ¹Ø±Ơ£¬¿ª·Åʱ¼ä¾´Çë¹Ø×¢¹Ù·½¹«¸æ¡£",0)
    --		return
    --	end
    	local tbarytalk = {
    	"<dec><npc>X«ng míi cöa ¶i că c¹n bÉy míi, néi dung míi, boss míi , b¶n ®å míi , ®Ơm kh«ng hƠt kú tr©n d̃ b¶o, rÊt thƯch hîp chØ ë viªm ®Ơ b¶o tµng míi că hoµng kim trang b̃. C¸c h¹ trang b̃ xong ch­a?",
    	"Xem xĐt t×nh h×nh ®éi/YDBZ_view_player",
    --	"Ñ׵ۻƽđͼÆ׶̉»»/YDBZ_golditem",
    --	"Ñ×µÛͼ̀Ú¶̉»»/YDBZ_tradeYandiTuTeng",
    --	"Î̉Ïë»»Ñ×µÛÁîǼYDBZ_tradeYandiLingQi",
    --	"Î̉Ïë»»Đ₫Ô³Áî/YDBZ_tradeXuanYuanLing",
    --	"Î̉̉ªÖØÖưÑ׵ۻƽđ×°±¸/yandiduihuan_main",
    --	"ÖØÖưÑ׵ۻƽđ×°±¸ËµĂ÷/yandiduihuan_shuoming",
    	"XuÊt xø cña Viªm ®Ơ b¶o tµng/YDBZ_about",
    	"KƠt thóc ®èi tho¹i/NoChoice",
    	}
    	if YDBZ_check_ready_state() == 1 then
    		tinsert(tbarytalk,2,"Ghi danh/YDBZ_want_play")
    		tinsert(tbarytalk,3,"Thµnh viªn tham chiƠn/YDBZ_member_play")
    	end
    	CreateTaskSay(tbarytalk)
    end
    
    function YDBZ_check_ready_state()
    	OldSubWorld = SubWorld
    	for i = 1, getn(YDBZ_READY_MAP) do 
    		sub = SubWorldID2Idx(YDBZ_READY_MAP[i])
    		if (sub >= 0) then
    			SubWorld = sub
    			local state = GetMissionV(YDBZ_READY_STATE)
    			if state == 1 then
    				SubWorld = OldSubWorld
    				return 1
    			end
    		end
    	end
    	SubWorld = OldSubWorld
    	return 0
    end
    function YDBZ_member_play()
    	if YDBZ_checkLimit2() == 1 then
    		return
    	end
    	YDBZ_dragon_mem_join()
    end
    function YDBZ_view_player()
    	if YDBZ_checkLimit() == 1 then
    		return
    	end
    	Say("Tæ ®éi ph¶i ®¸p øng ®ñ ®ỉu kiÖn ®Ó tiƠn vµo b¶o tµng viªm ®Ơ",0)
    end
    
    function YDBZ_checkLimit2()
    	if GetCamp() == 0 then
    			Say("Thµnh viªn ch­a gia nhËp m«n ph¸i kh«ng thÓ tham gia.",0)
    			return 1
    	end 
    	if GetTeamSize() ~= 0 then
    		Say("CÇn tæ ®éi ®Ó tiƠn vµo b¶o tµng viªm ®Ơ, tr­íc m¾t kh«ng thÓ tæ ®éi.",0)
    		return 1
    	end
    	if (GetLevel() < YDBZ_LIMIT_PLAYER_LEVEL) then
    		Say("CÊp bËc kh«ng ®ñ tham gia ho¹t ®éng",0)
    		return 1
    	end
    		
    	--¼́²éĐÅÎï
    	local ndg = YDBZ_LIMIT_DOUBEL_ITEM[1][1]									--ÎïÆ·
    	local ndd = YDBZ_LIMIT_DOUBEL_ITEM[1][2]
    	local ndp = YDBZ_LIMIT_DOUBEL_ITEM[1][3]
    
    	local ndnumzimu = CalcItemCount(3,ndg,ndd,ndp,-1)
    	local ndnumbeibao = CalcItemCount(23,ndg,ndd,ndp,-1)	
    	
    	local g = YDBZ_LIMIT_ITEM[1][1]									--ÎïÆ·
    	local d = YDBZ_LIMIT_ITEM[1][2]
    	local p = YDBZ_LIMIT_ITEM[1][3]
    
    	local numzimu = CalcItemCount(3,g,d,p,-1)
    	local numbeibao = CalcItemCount(23,g,d,p,-1)
    	if ( (numzimu+numbeibao) < YDBZ_LIMIT_ITEM[2] and (ndnumzimu+ndnumbeibao) < YDBZ_LIMIT_DOUBEL_ITEM[2] ) then
    		Say("C¸c h¹ kh«ng că mang anh hïng thiƠp, kh«ng thÓ tham gia viªm ®Ơ.",0)
    		return 1
    	end
    	
    	--¼́²â²Î¼ÓÉÏÏ̃
    	local nweek = tonumber(GetLocalDate("%W"))			--´ÎÊư
    	local nday = tonumber(GetLocalDate("%d"))
    	local noldweek = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,1)
    	local ncount = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,2)
    	local noldday = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,3)
    	local ndaycount = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,4)
    
    	if nweek == noldweek and ncount >= YDBZ_LIMIT_WEEK_COUNT and (ndnumzimu + ndnumbeibao) == 0 then
    			Say("Vèn ng­¬i ®· tham gia ®ñ cÇn sè lÇn.",0)
    			return 1
    	elseif (nday == noldday and ndaycount >= YDBZ_LIMIT_DAY_COUNT and (ndnumzimu + ndnumbeibao) == 0 )then
    			Say("Ngµy ®ă tham gia sè lÇn ®· ®¹t gi¸ tr̃ cao nhÊt.",0)
    			return 1
    	end
    	if nweek ~= noldweek then
    		 YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,1,nweek)
    		 YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,2,0)
    	end
    	if nday ~= noldday then
    		YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,3,nday)
    		YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,4,0)
    	end
    
    	YDBZ_sdl_setTaskByte(YDBZ_ITEM_YANDILING,1,0)
    	YDBZ_sdl_setTaskByte(YDBZ_ITEM_YANDILING,2,0)
    	
    end
    
    -- ¼́²éÓ¢ĐÛ̀û»̣ƠßÑ×µÛÁî²Î¼ÓÑ×µÛĐÔÄÜ- Modified - by AnhHH 20110725
    function YDBZ_checkLimit()
    	local oldplayer = PlayerIndex
    	if (IsCaptain() ~= 1) then
    		local tbarytalk ={
    			"<dec><npc>Tham gia viªm ®Ơ b¶o tµng x«ng quan ho¹t ®éng cÇn tơ ®éi tr­ëng ghi danh míi că thÓ ®i vµo.",
    			"Ta biƠt/NoChoice",
    		}
    		CreateTaskSay(tbarytalk)
    		return 1
    	end
    	if (GetTeamSize() < YDBZ_TEAM_COUNT_LIMIT or GetTeamSize() > YDBZ_TEAM_COUNT_MAXLIMIT) then
    		local tbarytalk ={
    			"<dec><npc>Tæ ®éi cÇn Ưt nhÊt <color=red>"..YDBZ_TEAM_COUNT_LIMIT.."<color> ng­¬i kh«ng thÓ v­ît qua<color=red>"..YDBZ_TEAM_COUNT_MAXLIMIT.."<color>. Tr­íc m¾t häp thµnh ®éi bªn trong nh©n sè kh«ng phï hîp yªu cÇu.",
    			"Ta biƠt/NoChoice",
    		}
    		CreateTaskSay(tbarytalk)
    		return 1
    	end
    	local tbplay = {}
    	local noplaylv = 0
    	local noitem = 0
    	local nocount = 0
    	local nsignweekday = 0
    	local tbstr = {{},{},{},{}}
    	local szstr = ""
    	local	nAcc = 0
    	for i = 1, GetTeamSize() do 
    		PlayerIndex = GetTeamMember(i)
    		if GetCamp() == 0 then
    			PlayerIndex = oldplayer
    			Say("Tæ ®éi că thµnh viªn kh«ng gia nhËp m«n ph¸i, kh«ng thÓ tham gia ho¹t ®éng.",0)
    			return 1
    		end 
    		--¼́²éµÈ¼¶
    		if(GetLevel() < YDBZ_LIMIT_PLAYER_LEVEL) then		--µÈ¼¶
    			noplaylv = noplaylv + 1
    			tbstr[1][noplaylv] = "<color=yellow>"..GetName().."<color>"
    		end
    		
    		--¼́²éĐÅÎï
    		local ndg = YDBZ_LIMIT_DOUBEL_ITEM[1][1]									--ÎïÆ·
    		local ndd = YDBZ_LIMIT_DOUBEL_ITEM[1][2]
    		local ndp = YDBZ_LIMIT_DOUBEL_ITEM[1][3]
    
    		local ndnumzimu = CalcItemCount(3,ndg,ndd,ndp,-1)
    		local ndnumbeibao = CalcItemCount(23,ndg,ndd,ndp,-1)		
    		
    		local g = YDBZ_LIMIT_ITEM[1][1]									--ÎïÆ·
    		local d = YDBZ_LIMIT_ITEM[1][2]
    		local p = YDBZ_LIMIT_ITEM[1][3]
    
    		local numzimu = CalcItemCount(3,g,d,p,-1)
    		local numbeibao = CalcItemCount(23,g,d,p,-1)
    		--print(ndnumzimu + ndnumbeibao)
    --		if ( (numzimu+numbeibao) < YDBZ_LIMIT_ITEM[2] and (ndnumzimu+ndnumbeibao) < YDBZ_LIMIT_DOUBEL_ITEM[2] ) then
    --			noitem = noitem + 1
    --			tbstr[2][noitem] = "<color=yellow>"..GetName().."<color>"
    --		end
    		
    		--¼́²â²Î¼ÓÉÏÏ̃
    		local nweek = tonumber(GetLocalDate("%W"))			--´ÎÊư
    		local nday = tonumber(GetLocalDate("%d"))
    		local noldweek = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,1)
    		local ncount = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,2)
    		local noldday = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,3)
    		local ndaycount = YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,4)
    
    		if nweek == noldweek and ncount >= YDBZ_LIMIT_WEEK_COUNT and (ndnumzimu + ndnumbeibao) == 0 then
    				nocount = nocount + 1
    				tbstr[3][nocount] = "<color=yellow>"..GetName().."<color>"
    				nsignweekday = 1
    		elseif (nday == noldday and ndaycount >= YDBZ_LIMIT_DAY_COUNT and (ndnumzimu + ndnumbeibao) == 0 )then
    				nocount = nocount + 1
    				tbstr[3][nocount] = "<color=yellow>"..GetName().."<color>"
    				nsignweekday = 2
    		end
    		if nweek ~= noldweek then
    			 YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,1,nweek)
    			 YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,2,0)
    		end
    		if nday ~= noldday then
    			YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,3,nday)
    			YDBZ_sdl_setTaskByte(YDBZ_PLAY_LIMIT_COUNT,4,0)
    		end
    
    		YDBZ_sdl_setTaskByte(YDBZ_ITEM_YANDILING,1,0)
    		YDBZ_sdl_setTaskByte(YDBZ_ITEM_YANDILING,2,0)
    		
    		if (YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,4) == 0) then
    		--¸Ä±äÑ×µÛ±¨Ăû·½Ê½®Ơ, µÚ̉»´Î¿É̉ÔʹÓĂÓ¢ĐÛ̀û»̣ƠßÑ×µÛÁî- Modified By DinhHQ - 20120206
    			if ((numzimu+numbeibao) < YDBZ_LIMIT_ITEM[2] and (ndnumzimu+ndnumbeibao) < YDBZ_LIMIT_DOUBEL_ITEM[2]) then
    				noitem = noitem + 1
    				tbstr[2][noitem] = "<color=yellow>"..GetName().."<color>"
    			end
    		elseif (YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,4) >= 1 and YDBZ_sdl_getTaskByte(YDBZ_PLAY_LIMIT_COUNT,4) <= 3) then
    			if ((ndnumzimu+ndnumbeibao) < YDBZ_LIMIT_DOUBEL_ITEM[2])then
    				nAcc = nAcc + 1
    				tbstr[4][nAcc] = "<color=yellow>"..GetName().."<color>"
    			end
    		end
    	end
    	
    	PlayerIndex = oldplayer
    	if noplaylv > 0 then
    		local szstr1 = tbstr[1][1]
    		for i=2,noplaylv do 
    			szstr1 = szstr1 .. ", " .. tbstr[1][i]
    		end
    		szstr = szstr .. format("Ng­êi ch¬i %s ch­a ®¹t cÊp ®é yªu cÇu.",szstr1,YDBZ_LIMIT_PLAYER_LEVEL)
    	end
    	if noitem > 0 then
    		local szstr1 = tbstr[2][1]
    		for i=2,noitem do 
    			szstr1 = szstr1 .. ", " .. tbstr[2][i]
    		end
    		szstr = szstr .. format("Ng­êi ch¬i %s kh«ng că mang %s.",szstr1,YDBZ_LIMIT_ITEM[3])
    	end
    	if nocount > 0 then
    		local szstr1 = tbstr[3][1]
    		for i=2,nocount do 
    			szstr1 = szstr1 .. ", " .. tbstr[3][i]
    		end
    		if nsignweekday == 1 then
    			szstr = szstr .. format("Ng­êi ch¬i %s ®· tham gia sè lÇn ®¹t tíi <color=yellow>%s lÇn<color>, kh«ng thÓ tham gia x«ng quan ho¹t ®éng",szstr1,YDBZ_LIMIT_WEEK_COUNT)	
    		elseif nsignweekday == 2 then
    			szstr = szstr .. format("Ng­êi ch¬i %s ngµy ®ă tham gia sè lÇn ®¹t tíi <color=yellow>%s lÇn<color>, kh«ng thÓ tham gia x«ng quan ho¹t ®éng.",szstr1,YDBZ_LIMIT_DAY_COUNT)	
    		end
    	end
    	if (nAcc > 0) then
    		local szstr1 = tbstr[4][1]
    		for i = 2, nAcc do 
    			szstr1 = szstr1 .. ", " .. tbstr[4][i]
    		end
    		szstr = szstr .. format("Ng­êi ch¬i %s kh«ng că mang %s.",szstr1,YDBZ_LIMIT_DOUBEL_ITEM[3])
    	end
    	
    	if noplaylv + noitem + nAcc +nocount > 0 then
    		Msg2Team(szstr);
    		Say(szstr,0)
    		return 1 	
    	end
    	return 0
    end
    function YDBZ_want_play()
    	OldSubWorld = SubWorld
    	OldPlayer = PlayerIndex
    	local totalboat = 0
    	local freeboat = 0
    	local startboat = 0
    	--if YDBZ_checkLimit2() == 1 then
    		--return		
    	--end
    	if YDBZ_checkLimit() == 1  then
    		return
    	end
    	PlayerIndex = OldPlayer
    	for i = 1, getn(YDBZ_READY_MAP) do 
    		sub = SubWorldID2Idx(YDBZ_READY_MAP[i])
    		if (sub >= 0) then
    			--print("have "..map_map[i])
    			totalboat = totalboat + 1
    			SubWorld = sub
    			--print(sub)
    			local state = GetMissionV(YDBZ_READY_STATE)
    			--print(state)
    			if (state > 0) then
    				startboat = 1
    			end
    			if ( state == 1) then
    				if GetMissionV(YDBZ_READY_TEAM) < YDBZ_LIMIT_TEAMS_COUNT and GetMissionV(YDBZ_READY_TEAM_MAX) < 100 then
    					freeboat = freeboat + 1
    				end
    			end
    			--if (state > 1) then
    				--Say("¹ĂÄ±¾³ÇÇøÑ×µÛ±¦²Ø̉Ѿ­¿ªÊ¼£¬̉ªÏë²Î¼ÓÇëÁổâÏ¢´Î¿ªÊ¼Ê±¼ä¡£",0)
    				--return
    			--end
    		end
    	end
    	--print("total"..totalboat.."free"..freeboat)
    	local	strlevel = "Viªm ®Ơ b¶o tµng x«ng quan"
    	if (startboat == 1) then
    		if (freeboat == 0) then
    			local tbarytalk ={
    			"<dec><npc>Bªn trong thµnh khu vùc"..strlevel.." ®· më míi, kh«ng că chç trèng.",
    			"Ta biƠt/NoChoice",
    		}
    		CreateTaskSay(tbarytalk)
    			return
    		else
    			local tbarytalk ={
    			-- ¸ü»»Í¨ÖªÀ¸ÏÔʾ - Modified - by AnhHH 20110725
    			"<dec><npc>Bªn trong thµnh khu vùc"..strlevel.." tiƠn vµo ghi danh giai ®o¹n , lóc b¾t ®Çu , mçi thµnh viªn cÇn ®ăng <color=red>"..YDBZ_LIMIT_ITEM[2].." Mét "..YDBZ_LIMIT_ITEM[3].."<color>. Tơ lÇn thø hai , mçi thµnh viªn muèn ®ăng<color=red>"..YDBZ_LIMIT_DOUBEL_ITEM[2].." mét "..YDBZ_LIMIT_DOUBEL_ITEM[3].."<color>, ®¹i hiÖp muèn tham gia ?",
    			"§óng vËy, ta muèn tæ ®éi tham gia/YDBZ_dragon_join",
    			"KƠt thóc/NoChoice",
    		}
    		CreateTaskSay(tbarytalk)
    			return
    		end
    	else
    		local tbarytalk ={
    			"<dec><npc>ThËt xin lçi , bªn trong thµnh khu vùc"..strlevel.."tr­íc m¾t kh«ng că bÊt kú viªm ®Ơ b¶o tµng nhiÖm vô că thÓ tham gia. b¾t ®Çu tơ <color=red>14:00 ®Ơn 24:00<color>, xin chó ư th«ng b¸o c̣ng năi tr­íc 5 phót ghi danh.",
    			"KƠt thóc/NoChoice",
    		}
    		CreateTaskSay(tbarytalk)
    		return
    	end
    
    end
    
    function YDBZ_dragon_join()
    	if YDBZ_checkLimit() == 1  then
    		return
    	end	
    		
    	OldSubWorld = SubWorld
    	
    	for i = 1, getn(YDBZ_READY_MAP) do 
    		sub = SubWorldID2Idx(YDBZ_READY_MAP[i])
    		if (sub >= 0) then
    			SubWorld = sub
    			local state = GetMissionV(YDBZ_READY_STATE)
    			 
    			if ( state == 1 and GetMissionV(YDBZ_READY_TEAM) < YDBZ_LIMIT_TEAMS_COUNT ) then
    					
    				local tabplayer = {}
    				for i = 1, GetTeamSize() do 
    					tabplayer[i] = GetTeamMember(i)
    					--print("plal"..tabplayer[i])
    				end
    
    				PlayerIndex = tabplayer[1]
    				w,x,y = GetWorldPos()
    				SetMissionV(YDBZ_READY_SIGNUP_WORLD, w)
    				SetMissionV(YDBZ_READY_SIGNUP_POSX, x)
    				SetMissionV(YDBZ_READY_SIGNUP_POSY, y)
    				local nteammax = GetMissionV(YDBZ_READY_TEAM_MAX)
    				--print(nteammax)
    				SetMissionV(YDBZ_READY_TEAM,GetMissionV(YDBZ_READY_TEAM) + 1)
    				SetMissionV(YDBZ_READY_TEAM_MAX,(nteammax + 1))
    				local szteamname = GetName()
    				SetMissionS((nteammax + 1),szteamname)
    				
    							
    				for i = 1 , getn(tabplayer) do 
    					PlayerIndex = tabplayer[i]
    					--print("player"..PlayerIndex)
    					
    					-- ÔÚƠâÀïÅжÏÊÇ·ñÓĐÔ½ÓüÆóͼ
    					w,x,y = GetWorldPos();
    					if GetTask(ID_PRISONMAN)>100 or w==208 then
    						SetPK(10);
    						Msg2Player("<color=red>Ng­¬i bëi v× că muèn cµng ngôc ®Ưch ư ®å, b̃ t¨ng thªm h×nh ph¹t<color><color=yellow>PK ±10!<color>");
    						for i=1, 3 do
    							Msg2SubWorld("<color=yellow>Ng­êi ch¬i : <color><color=green>"..GetName().."<color><color=yellow> că cµng ngôc ®Ưch ư ®å, b̃ nha sai t¹i chç b¾t ®­îc, ®ång thêi gia t¨ng h×nh ph¹t. Th«ng b¸o kh¾p thiªn h¹ .<color>!");
    						end;
    					else
    						SetTask(YDBZ_TEAMS_TASKID,(nteammax+1))
    						YDBZ_ready_joinmap(PlayerIndex)				
    					end;
    				end
    				BuildATeam(1,0,tabplayer)
    				SubWorld = sub
    				Msg2MSAll(YDBZ_READY_MISSION,format("<color=blue>§éi %s <color> tiƠn vµo viªm ®Ơ b¶o tµng ®¹i m«n.",szteamname))
    				return
    			end
    		end
    	end
    	SubWorld = OldSubWorld
    	PlayerIndex = OldPlayer
    	local	strlevel = "viªm ®Ơ b¶o tµng x«ng quan"
    	Say(format("Tr­íc m¾t<color=red>%s<color> kh«ng că chç trèng.", strlevel),0);
    end
    
    
    function YDBZ_dragon_mem_join()
    	if YDBZ_checkLimit2() == 1  then
    		return
    	end	
    		
    	OldSubWorld = SubWorld
    	
    	for i = 1, getn(YDBZ_READY_MAP) do 
    		sub = SubWorldID2Idx(YDBZ_READY_MAP[i])
    		if (sub >= 0) then
    			SubWorld = sub
    			local state = GetMissionV(YDBZ_READY_STATE)
    			if ( state == 1 ) then
    				if GetTask(YDBZ_MISSIOM_PLAYER_KEY) ~=  GetMissionV(YDBZ_MISSION_KEY) then
    					Say("§¹i hiÖp ®Ưch häp thµnh ®éi ch­a ®ñ lÇn nµy x«ng quan bªn trong.",0)
    					return
    				end
    				local ngroup = GetTask(YDBZ_TEAMS_TASKID)
    				--SetTask(YDBZ_TEAMS_TASKID,(nteammax+1))
    				if GetMSPlayerCount(YDBZ_READY_MISSION,ngroup) == 0 then
    					Say("TiƠn vµo viªm ®Ơ b¶o tµng ®Ưch ®¹i m«n kh«ng că ®¹i hiÖp ®Ưch häp thµnh ®éi , xin/mêi häp thµnh ®éi ghi danh tham gia",0)
    					return
    				end
    				YDBZ_ready_joinmap(PlayerIndex)
    				SubWorld = sub
    				local idx = 0;
    				local ncapter = 0;
    				local pidx;
    				local tbplayer = {}
    				for nj = 1, 10 do
    					idx , pidx = GetNextPlayer(YDBZ_READY_MISSION, idx, ngroup);
    					if (pidx > 0) then
    							tbplayer[nj] = pidx
    							PlayerIndex = pidx
    							if GetName() == GetMissionS(ngroup) then
    									ncapter = nj
    							end
    					end;
    					if (idx <= 0) then
    						break;
    					end;
    				end
    				if ncapter > 0 then
    					tbplayer[1],tbplayer[ncapter] = tbplayer[ncapter],tbplayer[1]
    				end
    				BuildATeam(1,0,tbplayer)
    				return
    			end
    		end
    	end
    	SubWorld = OldSubWorld
    	PlayerIndex = OldPlayer
    	local	strlevel = "viªm ®Ơ x«ng quan b¶o tµng"
    	Say(format("Tr­íc m¾t <color=red>%s<color> kh«ng că chç trèng. Chê chót ®i", strlevel),0);
    	
    end
    
    function YDBZ_about()
    	-- ¸Ä±ä²Î¼Ó±¨ĂûµÄ֪ͨ-Modifiled by AnhHH - 20110802
    	Say(format("X«ng míi cöa ¶i că c¹n bÉy míi, néi dung míi, boss míi , b¶n ®å míi , ®Ơm kh«ng hƠt kú tr©n d̃ b¶o, rÊt thƯch hîp chØ ë viªm ®Ơ b¶o tµng míi că hoµng kim trang b̃. <enter> Mçi ngµy %s, xin/mêi năi tr­íc 5 phót ®Ơn b×nh b×nh c« n­¬ng n¬i ®ă ghi danh .", "14:25, 16:25, 18:25, 20:25, 22:25"),0)
    	
    end

    đã khai đúng rồi mà tới giờ vẫn ko hiện lời thoại
    Khách viếng thăm hãy cùng kenlucky2000 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #4
    Thành Viên kenlucky2000's Avatar
    Ngày tham gia
    Apr 2014
    Bài viết
    228
    Thanks
    129
    Thanked 16 Times in 15 Posts

    Ðề: Xin Hỏi Lỗi Viêm Đế

    upppppppppppppppppppppppppppppppppppp, ai biết chỉ mình với.
    Khách viếng thăm hãy cùng kenlucky2000 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 06:25 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.