Newbie Spellweaver
- Joined
- Jun 26, 2011
- Messages
- 8
- Reaction score
- 0
When is time to fc, ds or dw in my server they never open, evry time i must reload that map and than open, why do that? how to fix it?
this is the ctrl.lua, for exapmle, of the darkswamp:
--------------------------------------------------------------------------
-- --
-- --
-- ctrl.lua --
-- --
-- --
--------------------------------------------------------------------------
print( "Loading Darkswamp Ctrl.lua" )
--´ËÎļþÖУ¬·²ÊÇ¿ÉÄܱ»¶à´ÎÖ´Ðеĺ¯Êý£¬º¯ÊýÃû¶¼Òª¼ÓÉϵØͼÃûǰ׺
function config(map)
MapCanSavePos(map, 0) -- 1 = Allow players to save respaw // 0 = Do not allow players to save respaw
MapCanPK(map, 1) -- 1 = Turns on PK Mouse Sword Icon // 0 = Turns off PK Mouse Sword Icon ( Need to press CTRL key )
MapCopyNum(map, 1) -- 1 Copy of the map will be generated by GameServer
SingleMapCopyPlyNum(map, 300) -- 300 Players are allowed to enter the map
MapCanTeam(map , 1) -- 1 = Allow players to create party // 0 = Do not allow players to create party
MapType ( map , 4 ) -- 0 = PvP Off // 1 = PvP Off // 2 = PvP On ( Not allowed to kill Guild and Party Mates ) // 3 = PvP On ( Allowed to kill any player but not Party Mates ) // 4 = PvP On ( Not allowed to kill Guild and Party Mates )
end
function get_map_entry_pos_darkswamp() --ÉèÖÃÈë¿ÚµÄλÖõÄ×ø±ê£¨×ø±ê£¨Ã×£©£©
local POS_X=2273
local POS_Y=2887
return POS_X , POS_Y
end
function init_entry(map)
SetMapEntryMapName(map, "garner") --ÉèÖÃÈë¿ÚµÄλÖ㨵ØͼÃû£¬×ø±ê£¨Ã×£©£©
SetMapEntryTime(map, "2011/1/6/1/40", "0/2/0", "0/1/0", "0/2/0") -- The first set of numbers is the starting point (Year/Month/Day/Hour/Minute), next is opening interval (Day/Hour/Minute), portal open duration (Day/Hour/Minute), and last is the map duration (Day/Hour/Minute)
end
if someone can help me i am really happy, if someone want more file to read post here, ty for reading!
this is the ctrl.lua, for exapmle, of the darkswamp:
--------------------------------------------------------------------------
-- --
-- --
-- ctrl.lua --
-- --
-- --
--------------------------------------------------------------------------
print( "Loading Darkswamp Ctrl.lua" )
--´ËÎļþÖУ¬·²ÊÇ¿ÉÄܱ»¶à´ÎÖ´Ðеĺ¯Êý£¬º¯ÊýÃû¶¼Òª¼ÓÉϵØͼÃûǰ׺
function config(map)
MapCanSavePos(map, 0) -- 1 = Allow players to save respaw // 0 = Do not allow players to save respaw
MapCanPK(map, 1) -- 1 = Turns on PK Mouse Sword Icon // 0 = Turns off PK Mouse Sword Icon ( Need to press CTRL key )
MapCopyNum(map, 1) -- 1 Copy of the map will be generated by GameServer
SingleMapCopyPlyNum(map, 300) -- 300 Players are allowed to enter the map
MapCanTeam(map , 1) -- 1 = Allow players to create party // 0 = Do not allow players to create party
MapType ( map , 4 ) -- 0 = PvP Off // 1 = PvP Off // 2 = PvP On ( Not allowed to kill Guild and Party Mates ) // 3 = PvP On ( Allowed to kill any player but not Party Mates ) // 4 = PvP On ( Not allowed to kill Guild and Party Mates )
end
function get_map_entry_pos_darkswamp() --ÉèÖÃÈë¿ÚµÄλÖõÄ×ø±ê£¨×ø±ê£¨Ã×£©£©
local POS_X=2273
local POS_Y=2887
return POS_X , POS_Y
end
function init_entry(map)
SetMapEntryMapName(map, "garner") --ÉèÖÃÈë¿ÚµÄλÖ㨵ØͼÃû£¬×ø±ê£¨Ã×£©£©
SetMapEntryTime(map, "2011/1/6/1/40", "0/2/0", "0/1/0", "0/2/0") -- The first set of numbers is the starting point (Year/Month/Day/Hour/Minute), next is opening interval (Day/Hour/Minute), portal open duration (Day/Hour/Minute), and last is the map duration (Day/Hour/Minute)
end
if someone can help me i am really happy, if someone want more file to read post here, ty for reading!