Hello Epvpers
Once again im here for my test server, I tryed out the Custom Monster AI release from Nubness. However of some dumb reason i cant get it too work, been scratching my head for hrs without success...
this is my error in the logs about the new .Lua.
.\Data\Lua\119.lua:61: attempt to compare number with nil
And it wont do the stuff i tell it too do. this is the lua it self:
Code:
-- //////////////////////////////////////////////////////////////////////
-- 카일룸 사크라 보스 1차 보스 몬스터_ID-2821 AI 119.Lua ver.090513
-- //////////////////////////////////////////////////////////////////////
-- //////////////////////////////////////////////////////////////////////
Mob = LuaMob(CMob)
-- //////////////////////////////////////////////////////////////////
-- 사용자 변수는 여기에 선언합니다.
-- //////////////////////////////////////////////////////////////////
-- 사용자 함수는 여기에 선언합니다.
-- //////////////////////////////////////////////////////////////////
function Init()
end
-- //////////////////////////////////////////////////////////////////
function OnAttacked( dwTime, dwCharID )
end
-- //////////////////////////////////////////////////////////////////
function OnAttackable( dwTime, dwCharID )
end
-- //////////////////////////////////////////////////////////////////
function OnNormalReset( dwTime )
end
-- //////////////////////////////////////////////////////////////////
function OnDeath( dwTime, dwAttackedCount )
Mob:LuaCreateMob( 2470,1,0.0,0.0 )
end
-- //////////////////////////////////////////////////////////////////
function OnReturnHome( dwTime, dwAttackedCount )
end
-- //////////////////////////////////////////////////////////////////
function OnMoveEnd( dwTime )
end
-- //////////////////////////////////////////////////////////////////
function WhileCombat( dwTime, dwHPPercent, dwAttackedCount )
end
if ( dwHPPercent >= 95 ) then
if ( bMobSay < 1) then
Mob:LuaSayByIndex ( 10130, 200.0 )
bMobSay = bMobSay + 1
end
end
if ( dwHPPercent <= 75 ) then
if ( bMobSay < 2) then
Mob:LuaSayByIndex ( 10130, 200.0 )
bMobSay = bMobSay + 1
end
Mob:LuaCreateMob ( 2803, 1, 0.0, 0.0 )
end
Thanks for the help!