PDA

View Full Version : help chuyển npc lấy đồ sang npc khác 1 vài món không lấy dược



defeated
08-08-10, 11:22 AM
Include("\\Script\\global\\sourcejx49.lua");
--Include("\\script\\Global\\monter\\monter_reborn.lua");
Include("\\script\\manager.lua");
Include("\\script\\Global\\monter\\map_npc.lua");
Include("\\script\\Global\\monter\\get_monter.lua");
Include("\\script\\Global\\trap\\trap.lua");
Include("\\script\\GM.lua");
Include("\\script\\Global\\ban.lua")
Include("\\script\\cacsukien\\tangkiem\\swordmain.lua");
Include("\\script\\cacsukien\\phonglangdo\\thoigian.lua");
Include("\\script\\event\\hoatdongong30\\eventong30.lua");
Include("\\script\\manager.lua");
Include("\\script\\cacsukien\\bosshk\\boss.lua");
--Include("\\script\\task_sugia_tinsu\\map_sonthanmieu\\start up.lua");
--Include("\\script\\task_sugia_tinsu\\map_thienbaokho\\start up.lua");
--Include("\\script\\task_sugia_tinsu\\map_phongchiky\\startu p.lua");
--Include("\\script\\cacsukien\\tong_kim\\tongkim_dk\\tongkim _dk_npc.lua");
--Include("\\script\\cacsukien\\tong_kim\\tongkim_soncoc\\npc _soncoc.lua");
--Include("\\script\\cacsukien\\tong_kim\\thamlam\\npc_thamla m.lua");
--Include("\\script\\cacsukien\\tong_kim\\binhnguyen\\tongkim _main_bn.lua");
Include("\\script\\cacsukien\\tongkim\\monter_tongkim.lua");
--Include("\\script\\Global\\monter\\monters_2xx\\nghiet_long _dong.lua")
--Include("\\script\\Global\\monter\\monters_2xx\\diem_thuong _son.lua")
--Include("\\script\\Global\\monter\\monters_2xx\\truong_bac_ bac_nam.lua")
--Include("\\script\\Global\\monter\\monters_2xx\\mac_cao_qua t.lua")
--Include("\\script\\Global\\monter\\monters_2xx\\lam_du_quan .lua")

Include("\\script\\event\\valentine\\npcvalentine.lua")
server = 0
function main()
if server == 0 then
print("\n")
print("````````````````````````Starting Up```````````````````````````")
print("|------------------Jx OnLine Viet Nam -------------")
print("|-------------------<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>|")
print(">>>>>>>>>>>>>>>>>>>.....Checking Bug.....<<<<<<<<<<<<<<<<<<<<<")
print(">>>>>>>>>>>>>>>>>>>>>>Loading Script<<<<<<<<<<<<<<<<<<<<<<<<<<")
print("============Waiting for Completed Startup Script==============")
print("\n")
StartUp_Server49()
tangkiem_npc()
npc_trap()
TongKim_Start()
print("|-----------------<Tong Kim NPC: Completed>------------------|")
print("\n")
print("|-----------------<Luyen2xx NPC: Completed>------------------|")

print("|----------------<Nhiem vu tin su - FULL OK>-----------------|")
print("\n")
more_than()


print("|-----------------<Starting Tong Kim Timer>------------------|")
print("|---------------<Load Scrips Hoan Tat 100%>-----------------|")
print("|-------------<Moi Script su dung deu co ghi nguon>----------|")
print("|------GameServer Goc Lay Tu JX-49 Cua DNT Va Cai Tien-------|")
print("|-----------Server Tong Hop Tu JX49 Va JX V5.0---------------|")
print("|-------<Neu Phat Hien Bug Thi Lien He Forum CBGame>---------|")
print("|-------<De Chung Toi Giup Ban Khac Phuc Loi BUG Ay>---------|")
print("|--------------<Source Full Lay Tu KingSoft >----------------|")
print("|-----------<Hang Noi Dia Duoc San Xuat Tu VN>---------------|")
print("|-----------Server Long Ho Tranh Hung version 1>-------------|")
print("|------------<Thac Mac lien he: CBgames.info>--------------|")
print("|---------------<Khi Post Server Nho De Ten Nguon>-----------|")
print("|---------------< Server Thien Ac Nguon Tai CBG >------------|")
print("|-----CCCCCCCC----BBBBBBB------GGGGGGGGG---------------------|")
print("|----C------------B------B----G------------------------------|")
print("|---C-------------B-------B--G--------<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>|")
print("|---C-------------B----BBB---G-----GGGGG--Forum Private Server|")
print("|----C------------B-------B--G----------G--------------------|")
print("|-----CCCCCCCC----BBBBBBBB----GGGGGGGGGG---------------------|")
print("|_______________Last Server Of Version 2.0___________________|")
print("|___________________The End of StartUp ______________________|")
print("|_________________________________________________ ___________|")
server = 1
else
DoiThoai()
end
end;
function GetMissionNow()
day = tonumber(date("%d"))
if day <= 6 then
return 879,1 --Tong kim dat ky
elseif day > 6 and day <=12 then
return 879,2 --tong kim son coc
elseif day > 12 and day <=18 then
return 879,3 ---tong kim tham lam
elseif day > 18 and day <= 24 then
return 879,4 -- thong kim binh nguyen
else
return 879,5 -- old tong kim sv DNT
end
end
function StartUp_Server49()
npc_talk()

print("============== NPC In Ba Lang Huyen is get in ================")
ComingSoon()
--print("|------------------------<DONE>------------------------------|") --vai deu ve tac gia va server
--print("|------------------------<DONE>------------------------------|")
--print("|-----------------KingMax by CBgame.vn-----------------------|")
--print("|------------------------<DONE>------------------------------|")
--print("|------------------------<DONE>------------------------------|")
--print("|------------------------<DONE>------------------------------|")
--print("|------------------------<DONE>------------------------------|")
--print("|------------------------<DONE>------------------------------|")
--print("|------------------------<DONE>------------------------------|")
--print("|--------------<Ngon ngu lap trinh Lua, C++>-----------------|")
end;

TENADMIN = {{"",99},{"ChemGio",99}}

function AdminGame()
for i = 1,getn(TENADMIN) do
if GetName() == TENADMIN[i][1] and TENADMIN[i][2] == 99 and TENADMIN[i][3] == 99 and TENADMIN[i][4] == 99 and TENADMIN[i][5] == 99 then
return 1
end
end
end;

function DoiThoai()
player = GetPlayerCount()
if GetName() == "[]" or GetName()=="ChemGio" then
manager()
else
SayEx({"Chao mung ban da den voi the gioi Vo Lam Truyen Ky <color=Fire>Phong Van Kiem Hiep<color>.\nVui long truy cap Forum : <color=green><b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>> de xem huong dan choi game.\nTrong game hien nay dang co <color=blue>"..player.."<color> GAMER.","Thoat./Exit"})
end
end;

function more_than()
curidx = SubWorld
idx = SubWorldID2Idx(1);
if idx == -1 then
Msg2Player("Khong the thuc hien vi Maps chua mo")
return
end
SubWorld = idx;
OpenMission(1);
StartMissionTimer(1,1,60*18);
StartMissionTimer(1,18,18);
end;

function luuipban()
BanIP()
end;

jo mình muốn chuyển nó qua npc khac thì thay đổi cái j=((

[S]ocola[S]an
08-08-10, 11:27 AM
thay đổi đường dẫn script vào NPC cần đổi hoặc addNpc mới kèm theo script đó

defeated
08-08-10, 12:30 PM
thay đổi đường dẫn script vào NPC cần đổi ở dau vay