Jump to content
Sign in to follow this  
destroger

ctrl.lua 1.39

Recommended Posts

всем привет. Подскажите с кодом …. пытался взять скрипт спавна моба со сборки 2,5 перенести на 1,39 но скрипт не выполняется 

function map_run_XXX( map )
	GMSendNotice()
	
	local Now_Time = tonumber(os.date("%H"))
	local Now_Minite =tonumber(os.date("%M"))
	local Now_Scend =  tonumber(os.date("%S"))
	local X = math.random(299,495)
	local Y = math.random(665,694)
	local X1 = X*100
	local Y1 = Y*100
	if Now_Time == 19 and Now_Minite ==30 and Now_Scend>0 and Now_Scend <6 then
	      if CheckWXHDead ( wangxiaohu ) == 2 or wangxiaohuflag== 0 then
		    wangxiaohu = CreateCha(XXX, X1, Y1, 90, 60)
			SetChaLifeTime(wangxiaohu,10800000)
			wangxiaohuflag = 1
			ScrollNotice ( "Night event Boss announcement: XXX ("..X..","..Y.."). ",1) 
		 end
	end
	
	if wangxiaohuflag == 1 then 
		local a = CheckWXHDead ( wangxiaohu ,1281)
	end
	
	if Now_Time == 22 and Now_Minite ==30 and Now_Scend>0 and Now_Scend <6 then
	   if wangxiaohuflag == 1 then
			ScrollNotice ( "Daily Boss Event Announcement: XXX",1)
			wangxiaohuflag =0
		end
	end
end

 

Share this post


Link to post
Share on other sites
GMSendNotice()
ScrollNotice ( "Night event Boss announcement: XXX ("..X..","..Y.."). ",1) 

Такого в 1.39 нет.

 

Share this post


Link to post
Share on other sites

Привет, @destroger!

 

Как верно заметил @Fomin, в этом скрипте используются функции, которых нет в 1.3x GameServer.exe/скриптах. Также в скрипте есть неопределенные переменные (wangxiaohu, wangxiaohuflag).


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...