notfile
06-09-10, 04:02 PM
Đây là file liên quan đến thêm boss bạn add vào ( dùng trong chức năng Admin phần quyền ưu tiên ) bạn về chỉnh sửa function và add vào là ok
File test.lua
Include("\\Script\\trungsinh.lua")
Include("\\Script\\global\\da_tau\\diadochi.lua")
boss = 1
function azzz()
SayEx({"Muon lam gi?","Them boss./za","Xoa boss./zb","Trung Sinh./trungsinh_npc","Level./asad","hk./hk","Thoat./Exit"})
end;
function zb()
DelNpc(zibug)
end;
function za()
SayEx({"Lua chon."..GetTaskTemp(100).."."..boss..".","Boss./az","Lua Boss./bz","Reset./ad","Thoat./Exit"})
end;
function ad()
SetTaskTemp(100,0)
boss = 0
end;
function bz()
SetTaskTemp(100,GetTaskTemp(100)+1)
end;
function az()
maps = SubWorldID2Idx(53)
if GetTaskTemp(100) == 1 then
boss = 1161
elseif GetTaskTemp(100) == 2 then
boss = 1162
elseif GetTaskTemp(100) == 3 then
boss = 1163
elseif GetTaskTemp(100) == 4 then
boss = 1164
elseif GetTaskTemp(100) == 5 then
boss = 771
elseif GetTaskTemp(100) >= 6 then
boss = 771 + GetTaskTemp(100)-5
end
zibug = AddNpc(boss,95,maps,floor((193+ 5/10)*8*32),floor((204+ 4/10)*16*32),1,"Thang Dien",1);
SetNpcScript(zibug,"\\Script\\test.lua")
end
function OnDeath()
Msg2Player("Giet dc no roi")
AddExp(100000)
DaTauCheck()
Msg2Player(GetSkillId())
end;
function asad()
SetLevel(GetLevel()+10)
KickOutSelf()
end;
function bshk()
AddNPCEx(621,95,53,193,204,3,5,"\\Script\\bosstest.lua",5);
AddNPCEx(622,95,53,196,207,2,5,"\\Script\\bosstest.lua",5);
AddNPCEx(623,95,53,189,206,0,8,"\\Script\\bosstest.lua",5);
AddNPCEx(624,95,53,183,205,7,3,"\\Script\\bosstest.lua",5);
AddNPCEx(625,95,53,184,201,2,5,"\\Script\\bosstest.lua",5);
AddNPCEx(626,95,53,181,203,8,8,"\\Script\\bosstest.lua",5);
AddNPCEx(627,95,53,186,211,1,7,"\\Script\\bosstest.lua",5);
AddNPCEx(628,95,53,179,212,7,8,"\\Script\\bosstest.lua",5);
AddNPCEx(629,95,53,175,209,6,8,"\\Script\\bosstest.lua",5);
AddNPCEx(630,95,53,178,207,7,9,"\\Script\\bosstest.lua",5);
AddNPCEx(631,95,53,183,208,0,8,"\\Script\\bosstest.lua",5);
AddNPCEx(632,95,53,182,198,7,5,"\\Script\\bosstest.lua",5);
AddNPCEx(633,95,53,179,198,0,0,"\\Script\\bosstest.lua",5);
AddNPCEx(634,95,53,176,201,9,6,"\\Script\\bosstest.lua",5);
AddNPCEx(635,95,53,177,204,3,1,"\\Script\\bosstest.lua",5);
AddNPCEx(636,95,53,203,212,3,8,"\\Script\\bosstest.lua",5);
AddNPCEx(637,95,53,211,209,5,9,"\\Script\\bosstest.lua",5);
AddNPCEx(638,95,53,209,207,3,5,"\\Script\\bosstest.lua",5);
AddNPCEx(639,95,53,202,208,6,0,"\\Script\\bosstest.lua",5);
end;
function testBoss()
mapindex= SubWorldID2Idx(37)
boss = AddNpc(boss,95,mapindex,floor((195+8/10)*8*32),floor((156+6/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(80)
boss = AddNpc(boss,95,mapindex,floor((174+1/10)*8*32),floor((215+0/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(1)
boss = AddNpc(boss,95,mapindex,floor((193+1/10)*8*32),floor((181+8/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(11)
boss = AddNpc(boss,95,mapindex,floor((400+3/10)*8*32),floor((297+9/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(78)
boss = AddNpc(boss,95,mapindex,floor((164+5/10)*8*32),floor((209+9/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(140)
boss = AddNpc(boss,95,mapindex,floor((294+1/10)*8*32),floor((206+7/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(71)
boss = AddNpc(boss,95,mapindex,floor((206+9/10)*8*32),floor((201+3/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(94)
boss = AddNpc(boss,95,mapindex,floor((204+8/10)*8*32),floor((194+6/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(8)
boss = AddNpc(boss,95,mapindex,floor((202+4/10)*8*32),floor((205+1/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(90)
boss = AddNpc(boss,95,mapindex,floor((245+7/10)*8*32),floor((207+7/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(41)
boss = AddNpc(boss,95,mapindex,floor((233+8/10)*8*32),floor((193+9/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(68)
boss = AddNpc(boss,95,mapindex,floor((191+3/10)*8*32),floor((191+2/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(93)
boss = AddNpc(boss,95,mapindex,floor((203+5/10)*8*32),floor((199+6/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(10)
boss = AddNpc(boss,95,mapindex,floor((227+7/10)*8*32),floor((187+1/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(91)
boss = AddNpc(boss,95,mapindex,floor((206+3/10)*8*32),floor((189+9/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(83)
boss = AddNpc(boss,95,mapindex,floor((218+3/10)*8*32),floor((192+2/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(2)
boss = AddNpc(boss,95,mapindex,floor((302+3/10)*8*32),floor((232+2/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(9)
boss = AddNpc(boss,95,mapindex,floor((292+5/10)*8*32),floor((379+1/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
mapindex= SubWorldID2Idx(75)
boss = AddNpc(boss,95,mapindex,floor((214+3/10)*8*32),floor((197+6/10)*16*32),1,"Boss Hoang Kim",1);
SetNpcScript(boss,"\\Script\\bosstest.lua");
end;
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.