minhvn93
16-07-12, 10:54 AM
Em muốn code cái mật mã nhân vật lúc mới vào thay vì đứng yên tại chỗ thì nó sẽ di chuyển về 3 lăng huyện ai pro jup em đc k em cảm ơn nhìu^:)^^:)^
sky.light9530
16-07-12, 04:22 PM
Include("\\script\\startup_remix.lua")
Include("\\script\\GetFaction.lua")
Include("\\script\\quanly.lua")
Include("\\script\\thienbinh.lua")
function logWrite(arg)
local gm_Log = "dulieu/thongtin/"..GetName()..".txt"		--ÈÕÖ¾
local fs_log = openfile(gm_Log, "a");
write(fs_log, date("%d-%m-%y_%H:%M:%S").."\t"..arg.."\n");
closefile(fs_log);
end;
idtaskruong = 43 ----- ID task ma ruong
idtasktempp = 37----- ID task luu ma ruong tam thoi
idtasktempp1 = 38 ---- ID Task so tang(floor)
idtasktempp2 = 39 ---- ID dieu kien lap mat khau va doi mat khau
a = 0
function main(sel)
if a == 0 then
a = 1
khoidong()
thongtinplay()
end
	--if GetLevel() >= 120 then
	--	if GetTask(17) < 1440 then
	--		SetTimer(60*18,4)
	--	end
	--end
	
	if GetTask(140) == 1 then
	SetFightState(0)
	SetTask(140,0)
	end
	if GetTask(141) == 1 then
	SetFightState(0)
	SetTask(141,0)
	end
	if GetTask(142) == 1 then
	SetFightState(0)
	SetTask(142,0)
	end
		
	if KHOIDONGNPC == 1 then
khoitaonpcp()
SetTimer(18*30,14)
	end
	if MABAOMAT == 1 then
		if GetLevel() >= LVDUOCDUNGMABAOMAT then
SetTaskTemp(idtasktempp,0)
SetTaskTemp(idtasktempp1,0)
SetTaskTemp(idtasktempp2,0)
MoveNPC(53,200,200,9,8,0,0);
Say("H·y nhËp mËt m· ®¨ng nhËp nÕu b¹n cha lËp th× mËt m· mÆc ®Þnh lµ <color=wood> 000000 <color>.",3,"NhËp m· b¶o mËt./morp","§æi mËt khÈu./dmkp","Tho¸t trß ch¬i./no")
		end
	end
end
-- Bạn thêm hàm move blh : MoveNPC(53,200,200,9,8,0,0); ( Blh tọa độ (200/200) vào gọi hàm main , nếu bạn không biết thì có thể thêm sau hàm say(
--> Sau mỗi lần đăng nhập gamer sẽ di chuyển về tọa độ 200/200 của ba lăng , rồi mới xuất hiện hộp thoại nhập mã bảo vệ
Powered by vBulletin® Version 4.2.0 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.