hocdevgame
04-06-17, 11:11 PM
Mình chạy sever của bác Cuongvh93 rất ok, nhưng sau khi chạy tầm 1 tiếng - > 2 tiếng, là bị báo lỗi như hình.
+ May tính mình 8Gb nên chạy sever centos mình chohanwrn 4Gb nên k thể nào thiếu Gb cho máy ảo được. Mình đang chạy trên máy thật + 1 centos share.
<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>
Có 3 dòng chính hiện ra báo Lỗi:
1/ script\\missions\\challengeoftime\\timer_board.lua
-- description : ͨ¸æ¶¨Ê±Æ÷£¬Ă¿·ÖÖÓ´¥·¢̉»´ Î
-- author : wangbin
-- datetime : 2005-06-07
Include("\\script\\missions\\challengeoftime\\include.lua")
function OnTimer()
if (GetMSPlayerCount(MISSION_MATCH) ~= 0) then
local time = GetMissionV(VARV_BOARD_TIMER) + INTERVAL_BOARD * 60;
local batch = GetMissionV(VARV_NPC_BATCH);
local count = GetMissionV(VARV_NPC_COUNT);
SetMissionV(VARV_BOARD_TIMER, time);
local msg = "<#> NhiÖm vô 'Th¸ch thøc Thêi gian' ®· b¾t ®Çu råi" .. floor(time / 60)
.. "phót, b©y giê lµ "
.. batch
.. "®¸m qu¸i, cßn d "
.. count
.. "Con qu¸i.";
Msg2MSAll(MISSION_MATCH, msg);
end
end
2/ script\\missions\\fengling_ferry\\fld_smalltimer.l ua:
Include("\\script\\missions\\fengling_ferry\\fld_head.lua")
Include("\\script\\activitysys\\config\\32\\talkdailytask.l ua")
function OnTimer()
t = GetMissionV(MS_TIMEACC_20SEC) + 1
SetMissionV(MS_TIMEACC_20SEC, t)
local npcindex
if (t == ENDSIGN_TIME) then --±¨Ăûʱ¼ä½áÊø£¬¿ª´¬
RunMission(MISSIONID)
Msg2MSAll(MISSIONID, "Thuỷn ®i råi! 30 phót sau sÏ ®Ơn bê B¾c Phong L¨ng §é.")
-- ÈƠ³£ÈÎÎñË¢Đ¶Ի°NPC
%tbTalkDailyTask:AddTalkNpc(SubWorldIdx2ID(SubWorl d), SubWorldIdx2ID(SubWorld));
end
if (mod(t, 3) == 0) then --Ă¿·ÖÖÓ¼ÆÊư
SetMissionV(MS_TIMEACC_1MIN, GetMissionV(MS_TIMEACC_1MIN) + 1)
end
if (t < ENDSIGN_TIME and mod(t, 9) == 0) then
local bf_mint = 10 - GetMissionV(MS_TIMEACC_1MIN)
Msg2MSAll(MISSIONID, "cßn"..bf_mint.." phót rêi bƠn")
end
if (t >= ENDSIGN_TIME and mod(t, 15) == 0) then
local mint = 39 - GetMissionV(MS_TIMEACC_1MIN)
Msg2MSAll(MISSIONID, "cßn"..mint.." phót sÏ ®Ơn bê B¾c Phong L¨ng §é")
end
if (t == REPORT_TIME) then
local mint = 39 - GetMissionV(MS_TIMEACC_1MIN)
Msg2MSAll(MISSIONID, "cßn"..mint.." phót sÏ ®Ơn bê B¾c Phong L¨ng §é")
end
if (t == UPBOSS_TIME) then -- 15·ÖÖÓ
posx, posy = fld_getadata(npcthiefpos)
npcindex = AddNpc(725, 85, SubWorld, posx, posy, 1, "Thñy tÆc ®Çu lÜnh", 1)
SetNpcDeathScript(npcindex, "\\script\\missions\\fengling_ferry\\bossdeath.lua");
Msg2MSAll(MISSIONID, "Thñy tÆc ®Çu lÜnh ®· xuÊt hiÖn.")
end
if (t == UPBOSS_TIME2) then -- 20·ÖÖÓ
posx, posy = fld_getadata(npcthiefpos)
npcindex = AddNpc(725, 85, SubWorld, posx, posy, 1, "Thñy tÆc ®Çu lÜnh", 1)
SetNpcDeathScript(npcindex, "\\script\\missions\\fengling_ferry\\bossdeath.lua");
Msg2MSAll(MISSIONID, "Thñy tÆc ®Çu lÜnh ®· xuÊt hiÖn.")
if (check_new_shuizeitask() == 1) then
for i = 1, 2 do
posx, posy = fld_getadata(npcthiefpos)
AddNpc(1692, 85, SubWorld, posx, posy, 1, "Thñy TÆc §¹i §Çu LÜnh.", 1)
Msg2MSAll(MISSIONID, "Thñy TÆc §¹i §Çu LÜnh xuÊt hiÖn råi")
end
end
end
if (t == UPBOSS_TIME3) then
posx, posy = fld_getadata(npcthiefpos)
npcindex = AddNpc(725, 85, SubWorld, posx, posy, 1, "Thñy tÆc ®Çu lÜnh", 1)
SetNpcDeathScript(npcindex, "\\script\\missions\\fengling_ferry\\bossdeath.lua");
Msg2MSAll(MISSIONID, "Thñy tÆc ®Çu lÜnh ®· xuÊt hiÖn.")
end
-- »îÔ¾¶È
fld_addhuoyuedu(t)
end
function fld_addhuoyuedu(nPassedTime)
local nMapId = SubWorldIdx2ID(SubWorld)
if nMapId == boatMAPS[3] or nPassedTime ~= (ENDSIGN_TIME + HUOYUEDU_TIME) then
return
end
local nIndex = 0
local nPlayerIndex = 0
local nCount = GetMSPlayerCount(MISSIONID, 0);
for i=1, nCount do
nIndex, nPlayerIndex = GetNextPlayer(MISSIONID, nIndex, 0)
if (nPlayerIndex > 0) then
DynamicExecuteByPlayer(nPlayerIndex, "\\script\\huoyuedu\\huoyuedu.lua", "tbHuoYueDu:AddHuoYueDu", "fenglingdu")
end
if (nIndex == 0) then
break
end
end
end
3/ server1\\script\\activitysys\\g_npcdeath.lua :
-- ====================== Îļ₫ĐÅÏ¢ ======================
-- ½£ÏÀÇéÔµÍøÂç°æ´ó½°æ -
-- Îļ₫ÓĂ;£ºÈ«¾ÖNPCËÀÍö¶¼»áµ ô¸Ă½Å±¾µÄOnGlobalNpcDeathº¯Êư
-- ´´½¨Ơß¡¡£ºZERO.SYS
-- ´´½¨Ê±¼ä£º2009-09-28 17:57:03
-- ================================================== ====
--ĬÈÏÈ«¾ÖPlayerIndexΪÎïÆ·ËùÓĐƠ� �, PlayerIndex
--nNpcIndex ËÀÍöµÄnpcµÄNpcIndex
--nAttackerIndex ×îºó̉»»÷Ơß µÄPlayerIndex£¬,
IncludeLib("NPCINFO")
Include("\\script\\lib\\string.lua")
Include("\\script\\activitysys\\npcfunlib.lua")
Include("\\script\\activitysys\\g_activity.lua")
Include("\\script\\task\\killmonster\\killmonster.lua")
Include("\\script\\missions\\boss\\bigboss.lua");
Include("\\script\\activitysys\\playerfunlib.lua")
Include("\\script\\event\\jiefang_jieri\\201004\\refining_i ron\\head.lua")
Include("\\script\\activitysys\\config\\32\\killdailytask.l ua")
--tinhpn 20100706: Vo Lam Minh Chu
Include("\\script\\bonusvlmc\\killmonster.lua")
Include("\\script\\task\\150skilltask\\g_task.lua")
Include("\\script\\misc\\eventsys\\eventsys.lua")
function OnGlobalNpcDeath(nNpcIndex, nAttackerIndex)
if PlayerIndex and PlayerIndex > 0 then
--PlayerEvent:OnEvent("OnKillNpc", nNpcIndex, nAttackerIndex)
local szNpcName = GetNpcName(nNpcIndex)
if NpcName2Replace then
szNpcName = NpcName2Replace(szNpcName)
end
EventSys:GetType("NpcDeath"):OnEvent(szNpcName, nNpcIndex, nAttackerIndex)
local nTeamSize = GetTeamSize()
if nTeamSize > 0 then
for i=1, nTeamSize do
local nPlayerIndex = GetTeamMember(i)
lib:DoFunByPlayer(nPlayerIndex, tbKillMonster.KillMonster, tbKillMonster, nNpcIndex)
--tinhpn 20100706: VLMC
lib:DoFunByPlayer(nPlayerIndex, VLMC.KillMonster, VLMC, nNpcIndex)
end
else
tbKillMonster:KillMonster(nNpcIndex)
--tinhpn 20100706: VLMC
VLMC:KillMonster(nNpcIndex)
end
tbKillDailyTask:OnKillMonster(nNpcIndex)
G_ACTIVITY:OnMessage("NpcOnDeath", nNpcIndex)
G_TASK:OnMessage("Thóy Yªn", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Nga Mi", nNpcIndex, "KillNpc")
G_TASK:OnMessage("§êng M«n", nNpcIndex, "KillNpc")
G_TASK:OnMessage("C¸i Bang", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Ng̣ §éc", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Thiªn NhÉn", nNpcIndex, "KillNpc")
G_TASK:OnMessage("ThiƠu L©m", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Vâ §ang", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Thiªn V¬ng", nNpcIndex, "KillNpc")
G_TASK:OnMessage("C«n L«n", nNpcIndex, "KillNpc")
DynamicExecute("\\script\\missions\\tianchimijing\\floor4\\bossdea th.lua", "OnDeath", nNpcIndex, PlayerIndex)
-- ´³¹Øµ÷Ơû 2011.03.03
DynamicExecute("\\script\\missions\\challengeoftime\\chuangguang30 .lua", "ChuangGuan30:OnNpcDeath", nNpcIndex, PlayerIndex)
-- תÉú4¹ÖÎïËÀÍöµôÂäÅùö¨µ¯
DynamicExecute("\\script\\task\\metempsychosis\\npcdeath_translife _4.lua", "OnNpcDeath", nNpcIndex, PlayerIndex)
-- Á¶½đ»î¶¯µôÂä
if NpcFunLib:CheckBoatBoss(nNpcIndex) == 1 and tbRefiningIron:IsCarryOn() == 1 then
tbDropTemplet:GiveAwardByList(nNpcIndex, PlayerIndex, {tbProp={6,1, 2293, 1,0,0,},nExpiredTime=tbRefiningIron.nCloseDate,}, "Thñy tÆc ®Çu lÜnh r¬i ë ho¹t ®éng luyÖn kim", 1)
tbDropTemplet:GiveAwardByList(nNpcIndex, PlayerIndex, {tbProp={6,1, 2958, 1,0,0,},nExpiredTime=tbRefiningIron.nCloseDate,}, "Thñy tÆc ®Çu lÜnh r¬i ë ho¹t ®éng luyÖn kim", 1)
end
if (DynamicExecute("\\script\\event\\jiefang_jieri\\201004\\main.lua", "FreedomEvent2010:IsActive1") == 1) then
DynamicExecute("\\script\\event\\jiefang_jieri\\201004\\soldier\\m ain.lua", "Soldier2010:MonsterDrop", nNpcIndex, PlayerIndex);
end
-- »îÔ¾¶ÈÊÀ½çÊ®´óboss
DynamicExecute("\\script\\huoyuedu\\worldtop10.lua", "checkworldtop10", nNpcIndex, PlayerIndex)
end
end
Mong Các bạn giúp đỡ, mình gỡ rối với. chơi cũng k được yên :( !!![-O<[-O<
+ May tính mình 8Gb nên chạy sever centos mình chohanwrn 4Gb nên k thể nào thiếu Gb cho máy ảo được. Mình đang chạy trên máy thật + 1 centos share.
<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>
Có 3 dòng chính hiện ra báo Lỗi:
1/ script\\missions\\challengeoftime\\timer_board.lua
-- description : ͨ¸æ¶¨Ê±Æ÷£¬Ă¿·ÖÖÓ´¥·¢̉»´ Î
-- author : wangbin
-- datetime : 2005-06-07
Include("\\script\\missions\\challengeoftime\\include.lua")
function OnTimer()
if (GetMSPlayerCount(MISSION_MATCH) ~= 0) then
local time = GetMissionV(VARV_BOARD_TIMER) + INTERVAL_BOARD * 60;
local batch = GetMissionV(VARV_NPC_BATCH);
local count = GetMissionV(VARV_NPC_COUNT);
SetMissionV(VARV_BOARD_TIMER, time);
local msg = "<#> NhiÖm vô 'Th¸ch thøc Thêi gian' ®· b¾t ®Çu råi" .. floor(time / 60)
.. "phót, b©y giê lµ "
.. batch
.. "®¸m qu¸i, cßn d "
.. count
.. "Con qu¸i.";
Msg2MSAll(MISSION_MATCH, msg);
end
end
2/ script\\missions\\fengling_ferry\\fld_smalltimer.l ua:
Include("\\script\\missions\\fengling_ferry\\fld_head.lua")
Include("\\script\\activitysys\\config\\32\\talkdailytask.l ua")
function OnTimer()
t = GetMissionV(MS_TIMEACC_20SEC) + 1
SetMissionV(MS_TIMEACC_20SEC, t)
local npcindex
if (t == ENDSIGN_TIME) then --±¨Ăûʱ¼ä½áÊø£¬¿ª´¬
RunMission(MISSIONID)
Msg2MSAll(MISSIONID, "Thuỷn ®i råi! 30 phót sau sÏ ®Ơn bê B¾c Phong L¨ng §é.")
-- ÈƠ³£ÈÎÎñË¢Đ¶Ի°NPC
%tbTalkDailyTask:AddTalkNpc(SubWorldIdx2ID(SubWorl d), SubWorldIdx2ID(SubWorld));
end
if (mod(t, 3) == 0) then --Ă¿·ÖÖÓ¼ÆÊư
SetMissionV(MS_TIMEACC_1MIN, GetMissionV(MS_TIMEACC_1MIN) + 1)
end
if (t < ENDSIGN_TIME and mod(t, 9) == 0) then
local bf_mint = 10 - GetMissionV(MS_TIMEACC_1MIN)
Msg2MSAll(MISSIONID, "cßn"..bf_mint.." phót rêi bƠn")
end
if (t >= ENDSIGN_TIME and mod(t, 15) == 0) then
local mint = 39 - GetMissionV(MS_TIMEACC_1MIN)
Msg2MSAll(MISSIONID, "cßn"..mint.." phót sÏ ®Ơn bê B¾c Phong L¨ng §é")
end
if (t == REPORT_TIME) then
local mint = 39 - GetMissionV(MS_TIMEACC_1MIN)
Msg2MSAll(MISSIONID, "cßn"..mint.." phót sÏ ®Ơn bê B¾c Phong L¨ng §é")
end
if (t == UPBOSS_TIME) then -- 15·ÖÖÓ
posx, posy = fld_getadata(npcthiefpos)
npcindex = AddNpc(725, 85, SubWorld, posx, posy, 1, "Thñy tÆc ®Çu lÜnh", 1)
SetNpcDeathScript(npcindex, "\\script\\missions\\fengling_ferry\\bossdeath.lua");
Msg2MSAll(MISSIONID, "Thñy tÆc ®Çu lÜnh ®· xuÊt hiÖn.")
end
if (t == UPBOSS_TIME2) then -- 20·ÖÖÓ
posx, posy = fld_getadata(npcthiefpos)
npcindex = AddNpc(725, 85, SubWorld, posx, posy, 1, "Thñy tÆc ®Çu lÜnh", 1)
SetNpcDeathScript(npcindex, "\\script\\missions\\fengling_ferry\\bossdeath.lua");
Msg2MSAll(MISSIONID, "Thñy tÆc ®Çu lÜnh ®· xuÊt hiÖn.")
if (check_new_shuizeitask() == 1) then
for i = 1, 2 do
posx, posy = fld_getadata(npcthiefpos)
AddNpc(1692, 85, SubWorld, posx, posy, 1, "Thñy TÆc §¹i §Çu LÜnh.", 1)
Msg2MSAll(MISSIONID, "Thñy TÆc §¹i §Çu LÜnh xuÊt hiÖn råi")
end
end
end
if (t == UPBOSS_TIME3) then
posx, posy = fld_getadata(npcthiefpos)
npcindex = AddNpc(725, 85, SubWorld, posx, posy, 1, "Thñy tÆc ®Çu lÜnh", 1)
SetNpcDeathScript(npcindex, "\\script\\missions\\fengling_ferry\\bossdeath.lua");
Msg2MSAll(MISSIONID, "Thñy tÆc ®Çu lÜnh ®· xuÊt hiÖn.")
end
-- »îÔ¾¶È
fld_addhuoyuedu(t)
end
function fld_addhuoyuedu(nPassedTime)
local nMapId = SubWorldIdx2ID(SubWorld)
if nMapId == boatMAPS[3] or nPassedTime ~= (ENDSIGN_TIME + HUOYUEDU_TIME) then
return
end
local nIndex = 0
local nPlayerIndex = 0
local nCount = GetMSPlayerCount(MISSIONID, 0);
for i=1, nCount do
nIndex, nPlayerIndex = GetNextPlayer(MISSIONID, nIndex, 0)
if (nPlayerIndex > 0) then
DynamicExecuteByPlayer(nPlayerIndex, "\\script\\huoyuedu\\huoyuedu.lua", "tbHuoYueDu:AddHuoYueDu", "fenglingdu")
end
if (nIndex == 0) then
break
end
end
end
3/ server1\\script\\activitysys\\g_npcdeath.lua :
-- ====================== Îļ₫ĐÅÏ¢ ======================
-- ½£ÏÀÇéÔµÍøÂç°æ´ó½°æ -
-- Îļ₫ÓĂ;£ºÈ«¾ÖNPCËÀÍö¶¼»áµ ô¸Ă½Å±¾µÄOnGlobalNpcDeathº¯Êư
-- ´´½¨Ơß¡¡£ºZERO.SYS
-- ´´½¨Ê±¼ä£º2009-09-28 17:57:03
-- ================================================== ====
--ĬÈÏÈ«¾ÖPlayerIndexΪÎïÆ·ËùÓĐƠ� �, PlayerIndex
--nNpcIndex ËÀÍöµÄnpcµÄNpcIndex
--nAttackerIndex ×îºó̉»»÷Ơß µÄPlayerIndex£¬,
IncludeLib("NPCINFO")
Include("\\script\\lib\\string.lua")
Include("\\script\\activitysys\\npcfunlib.lua")
Include("\\script\\activitysys\\g_activity.lua")
Include("\\script\\task\\killmonster\\killmonster.lua")
Include("\\script\\missions\\boss\\bigboss.lua");
Include("\\script\\activitysys\\playerfunlib.lua")
Include("\\script\\event\\jiefang_jieri\\201004\\refining_i ron\\head.lua")
Include("\\script\\activitysys\\config\\32\\killdailytask.l ua")
--tinhpn 20100706: Vo Lam Minh Chu
Include("\\script\\bonusvlmc\\killmonster.lua")
Include("\\script\\task\\150skilltask\\g_task.lua")
Include("\\script\\misc\\eventsys\\eventsys.lua")
function OnGlobalNpcDeath(nNpcIndex, nAttackerIndex)
if PlayerIndex and PlayerIndex > 0 then
--PlayerEvent:OnEvent("OnKillNpc", nNpcIndex, nAttackerIndex)
local szNpcName = GetNpcName(nNpcIndex)
if NpcName2Replace then
szNpcName = NpcName2Replace(szNpcName)
end
EventSys:GetType("NpcDeath"):OnEvent(szNpcName, nNpcIndex, nAttackerIndex)
local nTeamSize = GetTeamSize()
if nTeamSize > 0 then
for i=1, nTeamSize do
local nPlayerIndex = GetTeamMember(i)
lib:DoFunByPlayer(nPlayerIndex, tbKillMonster.KillMonster, tbKillMonster, nNpcIndex)
--tinhpn 20100706: VLMC
lib:DoFunByPlayer(nPlayerIndex, VLMC.KillMonster, VLMC, nNpcIndex)
end
else
tbKillMonster:KillMonster(nNpcIndex)
--tinhpn 20100706: VLMC
VLMC:KillMonster(nNpcIndex)
end
tbKillDailyTask:OnKillMonster(nNpcIndex)
G_ACTIVITY:OnMessage("NpcOnDeath", nNpcIndex)
G_TASK:OnMessage("Thóy Yªn", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Nga Mi", nNpcIndex, "KillNpc")
G_TASK:OnMessage("§êng M«n", nNpcIndex, "KillNpc")
G_TASK:OnMessage("C¸i Bang", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Ng̣ §éc", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Thiªn NhÉn", nNpcIndex, "KillNpc")
G_TASK:OnMessage("ThiƠu L©m", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Vâ §ang", nNpcIndex, "KillNpc")
G_TASK:OnMessage("Thiªn V¬ng", nNpcIndex, "KillNpc")
G_TASK:OnMessage("C«n L«n", nNpcIndex, "KillNpc")
DynamicExecute("\\script\\missions\\tianchimijing\\floor4\\bossdea th.lua", "OnDeath", nNpcIndex, PlayerIndex)
-- ´³¹Øµ÷Ơû 2011.03.03
DynamicExecute("\\script\\missions\\challengeoftime\\chuangguang30 .lua", "ChuangGuan30:OnNpcDeath", nNpcIndex, PlayerIndex)
-- תÉú4¹ÖÎïËÀÍöµôÂäÅùö¨µ¯
DynamicExecute("\\script\\task\\metempsychosis\\npcdeath_translife _4.lua", "OnNpcDeath", nNpcIndex, PlayerIndex)
-- Á¶½đ»î¶¯µôÂä
if NpcFunLib:CheckBoatBoss(nNpcIndex) == 1 and tbRefiningIron:IsCarryOn() == 1 then
tbDropTemplet:GiveAwardByList(nNpcIndex, PlayerIndex, {tbProp={6,1, 2293, 1,0,0,},nExpiredTime=tbRefiningIron.nCloseDate,}, "Thñy tÆc ®Çu lÜnh r¬i ë ho¹t ®éng luyÖn kim", 1)
tbDropTemplet:GiveAwardByList(nNpcIndex, PlayerIndex, {tbProp={6,1, 2958, 1,0,0,},nExpiredTime=tbRefiningIron.nCloseDate,}, "Thñy tÆc ®Çu lÜnh r¬i ë ho¹t ®éng luyÖn kim", 1)
end
if (DynamicExecute("\\script\\event\\jiefang_jieri\\201004\\main.lua", "FreedomEvent2010:IsActive1") == 1) then
DynamicExecute("\\script\\event\\jiefang_jieri\\201004\\soldier\\m ain.lua", "Soldier2010:MonsterDrop", nNpcIndex, PlayerIndex);
end
-- »îÔ¾¶ÈÊÀ½çÊ®´óboss
DynamicExecute("\\script\\huoyuedu\\worldtop10.lua", "checkworldtop10", nNpcIndex, PlayerIndex)
end
end
Mong Các bạn giúp đỡ, mình gỡ rối với. chơi cũng k được yên :( !!![-O<[-O<