my problem is i can enter without a party i want to make it with party and if no party you cannot enter, how can i do that? is there anyway to make it?
here is my PartyDungeon.lua
--------------------------------------------------------------------
-- ÃʱâÈ* ----------------------------------------------------------
--------------------------------------------------------------------
dofile( ".\\LuaFunc\\InstanceDungeonBase.lua" )
--------------------------------------------------------------------
--[[
AddDungeon( "WI_DUNGEON_SECRET_L" )
--{
SetClass( dwClass )
SetLevel( nMinLevel, nMaxLevel )
SetCoolTime( dwCoolTime )
SetMonster( nType, strMonsterId, bRed, x, y, z )
:
:
SetTeleportPos( nType, x, y, z )
:
:
--}
--]]
--[[
-- Sample
AddDungeon( "WI_DUNGEON_FL_MAS" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER, CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 1, 300 )
SetCoolTime( MIN(1440) )
SetTeleportPos( ID_NORMAL, 695, 90, 684 ) -- Á¤ÀÇÇÏÁö ¾ÊÀ¸¸é ¸Ê¿¡¼* ¼³Á¤ÇÑ ÁÂÇ¥·Î À̵¿ÇÑ´Ù.
SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
SetMonster( ID_MIDBOSS, "MI_AIBATT1", false, 695, 90, 684 )
SetMonster( ID_BOSS, "MI_AIBATT1", true, 695, 100, 684 )
--}
--]]
AddDungeon( "WI_INSTANCE_OMINOUS" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER )
SetLevel( 90, 120 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_NORMAL, "MI_PRICKANT04", true, 1280, 101, 1640 )
SetMonster( ID_NORMAL, "MI_MAULMOUSE04", true, 1234, 101, 1393 )
SetMonster( ID_NORMAL, "MI_CRIPESCENTIPEDE04", true, 1089, 101, 1590 )
SetMonster( ID_MIDBOSS, "MI_LYCANOS01", true, 1078, 101, 1359 )
SetMonster( ID_BOSS, "MI_VEMPAIN01", true, 1079, 101, 1457 )
--}
AddDungeon( "WI_INSTANCE_OMINOUS_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130, 160 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_NORMAL, "MI_PRICKANT04_1", true, 1280, 101, 1640 )
SetMonster( ID_NORMAL, "MI_MAULMOUSE04_1", true, 1234, 101, 1393 )
SetMonster( ID_NORMAL, "MI_CRIPESCENTIPEDE04_1", true, 1089, 101, 1590 )
SetMonster( ID_MIDBOSS, "MI_LYCANOS01_1", true, 1078, 101, 1359 )
SetMonster( ID_BOSS, "MI_VEMPAIN01_1", true, 1079, 101, 1457 )
--}
AddDungeon( "WI_INSTANCE_DREADFULCAVE" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER, CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 60, 300 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE01", false, 928, 101, 198 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE02", false, 1504, 101, 419 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE03", false, 1397, 101, 893 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE04", false, 764, 101, 867 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE05", false, 675, 101, 560 )
SetMonster( ID_BOSS, "MI_SKELDEVIL", true, 1809, 101, 1395 )
--}
AddDungeon( "WI_INSTANCE_RUSTIA" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER )
SetLevel( 60, 120 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE01", false, 513, 101, 953 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE02", false, 889, 101, 1121 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE03", false, 926, 101, 850 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE04", false, 1247, 101, 1272 )
SetMonster( ID_BOSS, "MI_BESIBIGFOOT01", true, 1126, 103, 1505 )
--}
AddDungeon( "WI_INSTANCE_RUSTIA_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130, 160 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE01", false, 513, 101, 953 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE02", false, 889, 101, 1121 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE03", false, 926, 101, 850 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE04", false, 1247, 101, 1272 )
SetMonster( ID_BOSS, "MI_BESIBIGFOOT02", true, 1126, 103, 1505 )
--}
AddDungeon( "WI_INSTANCE_BEHAMAH" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 160, 190 )
SetCoolTime( MIN(10) )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 697, 101, 374 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 624, 101, 494 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 918, 101, 643 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 897, 101, 784 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 579, 101, 748 )
SetMonster( ID_BOSS, "MI_BEHEMOTH", true, 1260, 101, 1392 )
--}
AddDungeon( "WI_INSTANCE_UPRESIA" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130 , 160 )
SetCoolTime( MIN(90) )
SetMonster( ID_BOSS, "MI_DREAMQEEN01", true, 2151, 100, 1727 )
--}
AddDungeon( "WI_INSTANCE_UPRESIA_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 160 , 190 )
SetCoolTime( MIN(90) )
SetMonster( ID_BOSS, "MI_DREAMQEEN01_1", true, 2151, 100, 1727 )
--}
AddDungeon( "WI_INSTANCE_HERNEOS" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130 , 160 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_HERNSIREN01", true, 689, 100, 508 )
SetMonster( ID_BOSS, "MI_HERNKRAKEN01", true, 1942, 100, 1424 )
--}
AddDungeon( "WI_INSTANCE_HERNEOS_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 160 , 190 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_HERNSIREN01_1", true, 689, 100, 508 )
SetMonster( ID_BOSS, "MI_HERNKRAKEN01_1", true, 1942, 100, 1424 )
--}
AddDungeon( "WI_INSTANCE_SANPRES" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER )
SetLevel( 90 , 120 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_SHIPHIPPOGRIPH", true, 1961, 101, 253 )
SetMonster( ID_BOSS, "MI_SHIPHARPINEES", true, 1362, 109, 1730 )
--}
AddDungeon( "WI_INSTANCE_SANPRES_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130 , 160 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_SHIPHIPPOGRIPH_1", true, 1961, 101, 253 )
SetMonster( ID_BOSS, "MI_SHIPHARPINEES_1", true, 1362, 109, 1730 )
--}
-- ÃʱâÈ* ----------------------------------------------------------
--------------------------------------------------------------------
dofile( ".\\LuaFunc\\InstanceDungeonBase.lua" )
--------------------------------------------------------------------
--[[
AddDungeon( "WI_DUNGEON_SECRET_L" )
--{
SetClass( dwClass )
SetLevel( nMinLevel, nMaxLevel )
SetCoolTime( dwCoolTime )
SetMonster( nType, strMonsterId, bRed, x, y, z )
:
:
SetTeleportPos( nType, x, y, z )
:
:
--}
--]]
--[[
-- Sample
AddDungeon( "WI_DUNGEON_FL_MAS" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER, CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 1, 300 )
SetCoolTime( MIN(1440) )
SetTeleportPos( ID_NORMAL, 695, 90, 684 ) -- Á¤ÀÇÇÏÁö ¾ÊÀ¸¸é ¸Ê¿¡¼* ¼³Á¤ÇÑ ÁÂÇ¥·Î À̵¿ÇÑ´Ù.
SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
SetMonster( ID_MIDBOSS, "MI_AIBATT1", false, 695, 90, 684 )
SetMonster( ID_BOSS, "MI_AIBATT1", true, 695, 100, 684 )
--}
--]]
AddDungeon( "WI_INSTANCE_OMINOUS" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER )
SetLevel( 90, 120 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_NORMAL, "MI_PRICKANT04", true, 1280, 101, 1640 )
SetMonster( ID_NORMAL, "MI_MAULMOUSE04", true, 1234, 101, 1393 )
SetMonster( ID_NORMAL, "MI_CRIPESCENTIPEDE04", true, 1089, 101, 1590 )
SetMonster( ID_MIDBOSS, "MI_LYCANOS01", true, 1078, 101, 1359 )
SetMonster( ID_BOSS, "MI_VEMPAIN01", true, 1079, 101, 1457 )
--}
AddDungeon( "WI_INSTANCE_OMINOUS_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130, 160 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_NORMAL, "MI_PRICKANT04_1", true, 1280, 101, 1640 )
SetMonster( ID_NORMAL, "MI_MAULMOUSE04_1", true, 1234, 101, 1393 )
SetMonster( ID_NORMAL, "MI_CRIPESCENTIPEDE04_1", true, 1089, 101, 1590 )
SetMonster( ID_MIDBOSS, "MI_LYCANOS01_1", true, 1078, 101, 1359 )
SetMonster( ID_BOSS, "MI_VEMPAIN01_1", true, 1079, 101, 1457 )
--}
AddDungeon( "WI_INSTANCE_DREADFULCAVE" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER, CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 60, 300 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE01", false, 928, 101, 198 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE02", false, 1504, 101, 419 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE03", false, 1397, 101, 893 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE04", false, 764, 101, 867 )
SetMonster( ID_MIDBOSS, "MI_DREADSTONE05", false, 675, 101, 560 )
SetMonster( ID_BOSS, "MI_SKELDEVIL", true, 1809, 101, 1395 )
--}
AddDungeon( "WI_INSTANCE_RUSTIA" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER )
SetLevel( 60, 120 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE01", false, 513, 101, 953 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE02", false, 889, 101, 1121 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE03", false, 926, 101, 850 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE04", false, 1247, 101, 1272 )
SetMonster( ID_BOSS, "MI_BESIBIGFOOT01", true, 1126, 103, 1505 )
--}
AddDungeon( "WI_INSTANCE_RUSTIA_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130, 160 )
SetCoolTime( MIN(60) )
--SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
--SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
--SetTeleportPos( ID_BOSS, 695, 100, 684 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE01", false, 513, 101, 953 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE02", false, 889, 101, 1121 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE03", false, 926, 101, 850 )
SetMonster( ID_MIDBOSS, "MI_RUSTIACRASHGATE04", false, 1247, 101, 1272 )
SetMonster( ID_BOSS, "MI_BESIBIGFOOT02", true, 1126, 103, 1505 )
--}
AddDungeon( "WI_INSTANCE_BEHAMAH" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 160, 190 )
SetCoolTime( MIN(10) )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 697, 101, 374 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 624, 101, 494 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 918, 101, 643 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 897, 101, 784 )
SetMonster( ID_MIDBOSS, "MI_BEHESTATUE01", false, 579, 101, 748 )
SetMonster( ID_BOSS, "MI_BEHEMOTH", true, 1260, 101, 1392 )
--}
AddDungeon( "WI_INSTANCE_UPRESIA" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130 , 160 )
SetCoolTime( MIN(90) )
SetMonster( ID_BOSS, "MI_DREAMQEEN01", true, 2151, 100, 1727 )
--}
AddDungeon( "WI_INSTANCE_UPRESIA_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 160 , 190 )
SetCoolTime( MIN(90) )
SetMonster( ID_BOSS, "MI_DREAMQEEN01_1", true, 2151, 100, 1727 )
--}
AddDungeon( "WI_INSTANCE_HERNEOS" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130 , 160 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_HERNSIREN01", true, 689, 100, 508 )
SetMonster( ID_BOSS, "MI_HERNKRAKEN01", true, 1942, 100, 1424 )
--}
AddDungeon( "WI_INSTANCE_HERNEOS_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 160 , 190 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_HERNSIREN01_1", true, 689, 100, 508 )
SetMonster( ID_BOSS, "MI_HERNKRAKEN01_1", true, 1942, 100, 1424 )
--}
AddDungeon( "WI_INSTANCE_SANPRES" )
--{
SetClass( CLASS_NORMAL, CLASS_MASTER )
SetLevel( 90 , 120 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_SHIPHIPPOGRIPH", true, 1961, 101, 253 )
SetMonster( ID_BOSS, "MI_SHIPHARPINEES", true, 1362, 109, 1730 )
--}
AddDungeon( "WI_INSTANCE_SANPRES_1" )
--{
SetClass( CLASS_HERO, CLASS_LEGEND_HERO )
SetLevel( 130 , 160 )
SetCoolTime( MIN(90) )
SetMonster( ID_MIDBOSS, "MI_SHIPHIPPOGRIPH_1", true, 1961, 101, 253 )
SetMonster( ID_BOSS, "MI_SHIPHARPINEES_1", true, 1362, 109, 1730 )
--}
and here is my InstanceDungeonBase.lua
nMaxInstanceDungeon = 40
tDungeon = {}
--------------------------------------------------------------------
-- ½Ã°£ ¼³Á¤ °ü·Ã ÇÔ¼ö ---------------------------------------------
--------------------------------------------------------------------
function SEC( a ) return a * 1000 end
function MIN( a ) return SEC( a ) * 60 end
function AddDungeon( strWorldId )
local nIndex = table.getn( tDungeon ) + 1
tDungeon[nIndex] = {}
tDungeon[nIndex].strWorldId = strWorldId
tDungeon[nIndex].dwClass = 65535
tDungeon[nIndex].nMinLevel = 1
tDungeon[nIndex].nMaxLevel = 120
tDungeon[nIndex].dwCoolTime = MIN( 30 )
tDungeon[nIndex].tMonster = {}
tDungeon[nIndex].tTeleport = {}
end
CLASS_NORMAL = 1
CLASS_MASTER = 2
CLASS_HERO = 4
CLASS_LEGEND_HERO = 8
function SetClass( ... )
local nIndex = table.getn( tDungeon )
local dwClass = 0
if( arg.n > 0 ) then
for indx = 1, arg.n do
dwClass = dwClass + arg[indx]
end
end
tDungeon[nIndex].dwClass = dwClass
end
function SetLevel( nMinLevel, nMaxLevel )
local nIndex = table.getn( tDungeon )
tDungeon[nIndex].nMinLevel = nMinLevel
tDungeon[nIndex].nMaxLevel = nMaxLevel
end
function SetCoolTime( dwCoolTime )
local nIndex = table.getn( tDungeon )
tDungeon[nIndex].dwCoolTime = dwCoolTime
end
ID_NORMAL = 0
ID_MIDBOSS = 1
ID_BOSS = 2
function SetMonster( nType, strMonsterId, bRed, x, y, z )
local nPDIndex = table.getn( tDungeon )
local nMTIndex = table.getn( tDungeon[nPDIndex].tMonster ) + 1
tDungeon[nPDIndex].tMonster[nMTIndex] = {}
tDungeon[nPDIndex].tMonster[nMTIndex].nType = nType
tDungeon[nPDIndex].tMonster[nMTIndex].strMonsterId = strMonsterId
tDungeon[nPDIndex].tMonster[nMTIndex].bRed = bRed
tDungeon[nPDIndex].tMonster[nMTIndex].x = x
tDungeon[nPDIndex].tMonster[nMTIndex].y = y
tDungeon[nPDIndex].tMonster[nMTIndex].z = z
end
function SetTeleportPos( nType, x, y, z )
local nPDIndex = table.getn( tDungeon )
local nTPIndex = table.getn( tDungeon[nPDIndex].tTeleport ) + 1
tDungeon[nPDIndex].tTeleport[nTPIndex] = {}
tDungeon[nPDIndex].tTeleport[nTPIndex].nType = nType
tDungeon[nPDIndex].tTeleport[nTPIndex].x = x
tDungeon[nPDIndex].tTeleport[nTPIndex].y = y
tDungeon[nPDIndex].tTeleport[nTPIndex].z = z
end
tDungeon = {}
--------------------------------------------------------------------
-- ½Ã°£ ¼³Á¤ °ü·Ã ÇÔ¼ö ---------------------------------------------
--------------------------------------------------------------------
function SEC( a ) return a * 1000 end
function MIN( a ) return SEC( a ) * 60 end
function AddDungeon( strWorldId )
local nIndex = table.getn( tDungeon ) + 1
tDungeon[nIndex] = {}
tDungeon[nIndex].strWorldId = strWorldId
tDungeon[nIndex].dwClass = 65535
tDungeon[nIndex].nMinLevel = 1
tDungeon[nIndex].nMaxLevel = 120
tDungeon[nIndex].dwCoolTime = MIN( 30 )
tDungeon[nIndex].tMonster = {}
tDungeon[nIndex].tTeleport = {}
end
CLASS_NORMAL = 1
CLASS_MASTER = 2
CLASS_HERO = 4
CLASS_LEGEND_HERO = 8
function SetClass( ... )
local nIndex = table.getn( tDungeon )
local dwClass = 0
if( arg.n > 0 ) then
for indx = 1, arg.n do
dwClass = dwClass + arg[indx]
end
end
tDungeon[nIndex].dwClass = dwClass
end
function SetLevel( nMinLevel, nMaxLevel )
local nIndex = table.getn( tDungeon )
tDungeon[nIndex].nMinLevel = nMinLevel
tDungeon[nIndex].nMaxLevel = nMaxLevel
end
function SetCoolTime( dwCoolTime )
local nIndex = table.getn( tDungeon )
tDungeon[nIndex].dwCoolTime = dwCoolTime
end
ID_NORMAL = 0
ID_MIDBOSS = 1
ID_BOSS = 2
function SetMonster( nType, strMonsterId, bRed, x, y, z )
local nPDIndex = table.getn( tDungeon )
local nMTIndex = table.getn( tDungeon[nPDIndex].tMonster ) + 1
tDungeon[nPDIndex].tMonster[nMTIndex] = {}
tDungeon[nPDIndex].tMonster[nMTIndex].nType = nType
tDungeon[nPDIndex].tMonster[nMTIndex].strMonsterId = strMonsterId
tDungeon[nPDIndex].tMonster[nMTIndex].bRed = bRed
tDungeon[nPDIndex].tMonster[nMTIndex].x = x
tDungeon[nPDIndex].tMonster[nMTIndex].y = y
tDungeon[nPDIndex].tMonster[nMTIndex].z = z
end
function SetTeleportPos( nType, x, y, z )
local nPDIndex = table.getn( tDungeon )
local nTPIndex = table.getn( tDungeon[nPDIndex].tTeleport ) + 1
tDungeon[nPDIndex].tTeleport[nTPIndex] = {}
tDungeon[nPDIndex].tTeleport[nTPIndex].nType = nType
tDungeon[nPDIndex].tTeleport[nTPIndex].x = x
tDungeon[nPDIndex].tTeleport[nTPIndex].y = y
tDungeon[nPDIndex].tTeleport[nTPIndex].z = z
end
Bump.
bump






