• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Monster Du Vea - untypical Beholder boss.

Oskar1121

Excellent OT User
Joined
Jul 15, 2009
Messages
634
Reaction score
537
Location
Poland
~~MONSTERS~~
Go to data/monsters and make file Du Vea.xml and paste:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Du Vea" nameDescription="Du Vea" race="venom" experience="1055" speed="210" manacost="0">
  <health now="1700" max="1700"/>
  <look type="210" corpse="6037"/>
  <targetchange interval="2000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag convinceable="1"/>
    <flag canpushitems="1"/>
    <flag targetdistance="4"/>
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
  </flags>
    <script>
        <event name="Du Vea"/>
    </script>
  <attacks>
    <attack name="melee" interval="2000" skill="75" attack="35" poison="-100"/>
    <attack name="energy" interval="964" chance="11" target="1" min="-87" max="-143">
      <attribute key="shootEffect" value="energy"/>
      <attribute key="areaEffect" value="purpleenergy"/>
    </attack>
    <attack name="death" interval="986" chance="12" target="1" min="-142" max="-184">
      <attribute key="shootEffect" value="suddendeath"/>
      <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="earth" interval="975" chance="11" target="1" min="-105" max="-132">
      <attribute key="shootEffect" value="earth"/>
      <attribute key="areaEffect" value="carniphila"/>
    </attack>
    <attack name="speed" interval="1003" chance="13" range="7" target="1" speedchange="-321" duration="10000">
      <attribute key="areaEffect" value="bats"/>
    </attack>
    <attack name="poison" interval="1064" chance="12" length="6" spread="2" min="-179" max="-241">
      <attribute key="areaEffect" value="greenbubble"/>
    </attack>
    <attack name="lifedrain" interval="1105" chance="13" length="4" spread="2" min="-142" max="-197">
      <attribute key="areaEffect" value="yellowbubble"/>
    </attack>
    <attack name="manadrain" interval="997" chance="13" target="1" min="-75" max="-99">
      <attribute key="areaEffect" value="teleport"/>
    </attack>
  </attacks>
  <defenses armor="15" defense="20">
    <defense name="healing" interval="897" chance="11" min="85" max="128">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
  </defenses>
    <elements>
        <element holyPercent="-5"/>
        <element firePercent="-10"/>
        <element energyPercent="50"/>
        <element deathPercent="25"/>
    </elements>
  <immunities>
    <immunity paralyze="1"/>
    <immunity earth="1"/>
    <immunity invisible="1"/>
    <immunity lifedrain="1"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="653768764!"/>
    <voice sentence="Inferior creatures, bow before my power!"/>
  </voices>
  <loot>
    <item id="2148" countmax="56" chance="33960"/> --gold
    <item id="2148" countmax="86" chance="33960"/> --gold
    <item id="2397" chance="13540"/> --longsword
    <item id="2175" chance="11560"/> --spellbook
    <item id="7884" chance="4320"/> --terra mantle
    <item id="2181" chance="9300"/> --terra rod
    <item id="5898" chance="100000"/> --beho eye
    <item id="7590" countmax="2" chance="7540"/> --GMP
    <item id="2149" countmax="4" chance="4320"/> --small emerald
    <item id="2509" chance="9890"/> --steel shield
    <item id="3972" chance="2310"/> --beho helmet
    <item id="2377" chance="6540"/> --two handed sword
    <item id="2518" chance="1040"/> --beho shield
    <item id="2394" chance="6540"/> --morning star
    <item id="2512" chance="21050"/> --wooden shield
  </loot>
</monster>
Now make file swampy bilith.xml and paste:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="swampy bilith" nameDescription="a swampy bilith" race="venom" experience="0" speed="0" manacost="0">
  <health now="100" max="100"/>
  <look type="109"/>
  <strategy attack="0" defense="100"/>
  <flags>
    <flag hostile="1"/>
    <flag convinceable="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
  </flags>
  <defenses armor="0" defense="0">
    <defense name="healing" interval="2000" chance="100" min="-100" max="-100">
      <attribute key="areaEffect" value="greenbubble"/>
    </defense>
  </defenses>
  <immunities>
    <immunity physical="1"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity earth="1"/>
    <immunity holy="1"/>
    <immunity death="1"/>
    <immunity ice="1"/>
    <immunity poison="1"/>
    <immunity lifedrain="1"/>
    <immunity paralyze="1"/>
    <immunity outfit="1"/>
    <immunity drunk="1"/>
    <immunity drown="1"/>
    <immunity invisible="1"/>
  </immunities>
</monster>
Into monsters.xml paste:
PHP:
<monster name="Du Vea" file="Du Vea.xml"/>
<monster name="Swampy Bilith" file="swampy bilith.xml"/>

~~CREATURESCRIPTS~~
Go to data/creaturescripts/scripts and make file Du Vea.lua and paste:
PHP:
local normal_swamp = {4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4749,4750,4751,4752,4753,4754,4755} 
local swamp_walkable = 6353 
local pos = getCreaturePosition 

    function efekty(p)  
    local cid = p.cid 
    local loc = p.loc 
        if isCreature(cid) then 
            doSendMagicEffect(loc, CONST_ME_HITBYPOISON) 
            doSendMagicEffect(loc, CONST_ME_GREEN_RINGS) 
                if p.s < 6 then 
                    addEvent(efekty, 250, p) 
                    p.s = p.s + 1
                else
                    addEvent(kill, 1000, {cid = cid, loc = loc}) 
                end 
        end 
    end     

    function kill(p)  
    local cid = p.cid 
    local loc = p.loc 
        if isCreature(cid) then  
            doSendMagicEffect(loc, CONST_ME_SMALLPLANTS)  
            local creatureFound = getThingFromPos(loc)  
            if isCreature(creatureFound.uid) and creatureFound.uid ~= cid then 
                doTargetCombatHealth(0, creatureFound.uid, COMBAT_EARTHDAMAGE, -getCreatureHealth(creatureFound.uid)*0.25, -getCreatureHealth(creatureFound.uid)*0.75, CONST_ME_SMALLPLANTS) 
            end 
        end 
    end 

function onThink(cid) 
local tbl_x, tbl_y, tbl_z = {}, {}, {} 
if isMonster(cid) then 
    if math.random(1, 100) <= 60 then 
        for nx = (pos(cid).x - 5), (pos(cid).x + 5) do 
            for ny = (pos(cid).y - 5), (pos(cid).y + 5) do 
                local itemFound = getTileThingByPos({x=nx, y=ny, z=pos(cid).z}) 
                if itemFound.uid > 0 and isInArray(normal_swamp, itemFound.itemid) then 
                    local item_pos = getThingPos(itemFound.uid) 
                    table.insert(tbl_x, item_pos.x) 
                    table.insert(tbl_y, item_pos.y) 
                    table.insert(tbl_z, item_pos.z) 
                end 
            end 
        end 
        if unpack(tbl_x) ~= nil and unpack(tbl_y) ~= nil and unpack(tbl_z) ~= nil then 
            local x_pos, y_pos, z_pos = tbl_x[math.random(1, #tbl_x)], tbl_y[math.random(1, #tbl_y)], tbl_z[math.random(1, #tbl_z)] 
            local poss = {x=x_pos, y=y_pos, z=z_pos, stackpos=0} 
            local underItemFound_1, bagno = getThingFromPos({x=poss.x, y=poss.y, z=poss.z, stackpos=1}), getTileThingByPos(poss).uid 
            local itemFound = getThingFromPos(poss) 
                if itemFound.uid > 0 and isInArray(normal_swamp, itemFound.itemid) then 
                    local id = getThingFromPos(poss).itemid 
                    if math.random(1,10) <= 7 then 
                        for sx = (pos(cid).x - 5), (pos(cid).x + 5) do 
                        for sy = (pos(cid).y - 5), (pos(cid).y + 5) do 
                        local creatureFound = getThingFromPos({x = sx, y = sy, z = pos(cid).z, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE}) 
                        if creatureFound.uid ~= cid and isCreature(creatureFound.uid) and creatureFound.uid == getCreatureTarget(cid) and isSightClear(pos(cid), pos(creatureFound.uid), true) and isSightClear(poss, pos(creatureFound.uid), true) then 
                            local posit = getThingPos(creatureFound.uid) 
                            if underItemFound_1.uid == 0 then 
                                doTransformItem(bagno, swamp_walkable) 
                                doCreateMonster("Swampy Bilith", poss, false) 
                            else 
                                return true 
                            end 
                                doSendMagicEffect(poss, CONST_ME_GREEN_RINGS) 
                                doTransformItem(bagno, id) 
                                doSendDistanceShoot(poss, posit, CONST_ANI_EARTH) 
                                doSendMagicEffect(posit, CONST_ME_HITBYPOISON) 
                                doSendMagicEffect(posit, CONST_ME_GREEN_RINGS) 
                                addEvent(efekty, 250, {cid = cid, loc = pos(creatureFound.uid), s = 0}) 
                        end 
                        end 
                        end 
                    else 
                        if isSightClear(poss, pos(cid), true) then 
                            if underItemFound_1.uid == 0 then 
                                doTransformItem(bagno, swamp_walkable) 
                                doCreateMonster("Swampy Bilith", poss, false) 
                            else 
                                return true 
                            end 
                                doSendMagicEffect(poss, CONST_ME_GREEN_RINGS) 
                                doTransformItem(bagno, id) 
                                local hape = math.random(getCreatureMaxHealth(cid)*0.1,getCreatureMaxHealth(cid)*0.2) 
                                doSendDistanceShoot(poss, pos(cid), CONST_ANI_EARTH) 
                                doSendMagicEffect(pos(cid), CONST_ME_SMALLPLANTS) 
                                doCreatureAddHealth(cid, hape) 
                                doSendAnimatedText(pos(cid), hape, COLOR_LIGHTGREEN) 
                        end 
                    end 
                end 
        end 
    end 
end 
    return true 
end
Into login.lua before return true paste:
PHP:
registerCreatureEvent(cid, "Du Vea")
Into creaturescripts.xml paste:
PHP:
<event type="think" name="Du Vea" event="script" value="Du Vea.lua"/>

Have Fun.
You should put him near the swamp.
 
Last edited:
Hello Oskar1121. Have this error:

[12/12/2010 21:22:07] [Error - CreatureScript Interface]
[12/12/2010 21:22:07] In a timer event called from:
[12/12/2010 21:22:07] mods/scripts/creaturescripts mod/Du Vea.lua:eek:nThink
[12/12/2010 21:22:07] Description:
[12/12/2010 21:22:07] (luaAddEvent) Callback parameter should be a function.

I use tfs 3.6.
 
just ignore it, its some lua parser or tfs bug, I had this also and when I added second script of this type message from first script disappeared
 
Which error? You do not put him near the void. He must found some ground.
 
I put Du vea in this map:

cave05.jpg


Description:
(luaAddEvent) Callback parameter should be a function.

and this:

[Error - CreatureScript Interface]
In a timer event called from:
 
Last edited:
Try this:
PHP:
local normal_swamp = {4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4749,4750,4751,4752,4753,4754,4755} 
local swamp_walkable = 6353 
local pos = getCreaturePosition 

    local function efekty(p)  
    local cid = p.cid 
    local loc = p.loc 
        if isCreature(cid) then 
            doSendMagicEffect(loc, CONST_ME_HITBYPOISON) 
            doSendMagicEffect(loc, CONST_ME_GREEN_RINGS) 
                if p.s < 6 then 
                    addEvent(efekty, 250, p) 
                    p.s = p.s + 1 
                else 
                    addEvent(kill, 1000, {cid = cid, loc = loc}) 
                end 
        end 
    end     

    local function kill(p)  
    local cid = p.cid 
    local loc = p.loc 
        if isCreature(cid) then  
            doSendMagicEffect(loc, CONST_ME_SMALLPLANTS)  
            local creatureFound = getThingFromPos(loc)  
            if isCreature(creatureFound.uid) and creatureFound.uid ~= cid then 
                doTargetCombatHealth(0, creatureFound.uid, COMBAT_EARTHDAMAGE, -getCreatureHealth(creatureFound.uid)*0.25, -getCreatureHealth(creatureFound.uid)*0.75, CONST_ME_SMALLPLANTS) 
            end 
        end 
    end 

function onThink(cid) 
local tbl_x, tbl_y, tbl_z = {}, {}, {} 
if isMonster(cid) then 
    if math.random(1, 100) <= 60 then 
        for nx = (pos(cid).x - 5), (pos(cid).x + 5) do 
            for ny = (pos(cid).y - 5), (pos(cid).y + 5) do 
                local itemFound = getTileThingByPos({x=nx, y=ny, z=pos(cid).z}) 
                if itemFound.uid > 0 and isInArray(normal_swamp, itemFound.itemid) then 
                    local item_pos = getThingPos(itemFound.uid) 
                    table.insert(tbl_x, item_pos.x) 
                    table.insert(tbl_y, item_pos.y) 
                    table.insert(tbl_z, item_pos.z) 
                end 
            end 
        end 
        if unpack(tbl_x) ~= nil and unpack(tbl_y) ~= nil and unpack(tbl_z) ~= nil then 
            local x_pos, y_pos, z_pos = tbl_x[math.random(1, #tbl_x)], tbl_y[math.random(1, #tbl_y)], tbl_z[math.random(1, #tbl_z)] 
            local poss = {x=x_pos, y=y_pos, z=z_pos, stackpos=0} 
            local underItemFound_1, bagno = getThingFromPos({x=poss.x, y=poss.y, z=poss.z, stackpos=1}), getTileThingByPos(poss).uid 
            local itemFound = getThingFromPos(poss) 
                if itemFound.uid > 0 and isInArray(normal_swamp, itemFound.itemid) then 
                    local id = getThingFromPos(poss).itemid 
                    if math.random(1,10) <= 7 then 
                        for sx = (pos(cid).x - 5), (pos(cid).x + 5) do 
                        for sy = (pos(cid).y - 5), (pos(cid).y + 5) do 
                        local creatureFound = getThingFromPos({x = sx, y = sy, z = pos(cid).z, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE}) 
                        if creatureFound.uid ~= cid and isCreature(creatureFound.uid) and creatureFound.uid == getCreatureTarget(cid) and isSightClear(pos(cid), pos(creatureFound.uid), true) and isSightClear(poss, pos(creatureFound.uid), true) then 
                            local posit = getThingPos(creatureFound.uid) 
                            if underItemFound_1.uid == 0 then 
                                doTransformItem(bagno, swamp_walkable) 
                                doCreateMonster("Swampy Bilith", poss, false) 
                            else 
                                return true 
                            end 
                                doSendMagicEffect(poss, CONST_ME_GREEN_RINGS) 
                                doTransformItem(bagno, id) 
                                doSendDistanceShoot(poss, posit, CONST_ANI_EARTH) 
                                doSendMagicEffect(posit, CONST_ME_HITBYPOISON) 
                                doSendMagicEffect(posit, CONST_ME_GREEN_RINGS) 
                                addEvent(efekty, 250, {cid = cid, loc = pos(creatureFound.uid), s = 0}) 
                        end 
                        end 
                        end 
                    else 
                        if isSightClear(poss, pos(cid), true) then 
                            if underItemFound_1.uid == 0 then 
                                doTransformItem(bagno, swamp_walkable) 
                                doCreateMonster("Swampy Bilith", poss, false) 
                            else 
                                return true 
                            end 
                                doSendMagicEffect(poss, CONST_ME_GREEN_RINGS) 
                                doTransformItem(bagno, id) 
                                local hape = math.random(getCreatureMaxHealth(cid)*0.1,getCreatureMaxHealth(cid)*0.2) 
                                doSendDistanceShoot(poss, pos(cid), CONST_ANI_EARTH) 
                                doSendMagicEffect(pos(cid), CONST_ME_SMALLPLANTS) 
                                doCreatureAddHealth(cid, hape) 
                                doSendAnimatedText(pos(cid), hape, COLOR_LIGHTGREEN) 
                        end 
                    end 
                end 
        end 
    end 
end 
    return true 
end
 
[19/12/2010 23:56:27] [Error - CreatureScript Interface]
[19/12/2010 23:56:27] In a timer event called from:
[19/12/2010 23:56:27] data/creaturescripts/scripts/Du Vea.lua:eek:nThink
[19/12/2010 23:56:27] Description:
[19/12/2010 23:56:27] (luaAddEvent) Callback parameter should be a function.


I use tfs 3.6
 
Last edited:
Now be work:
PHP:
local normal_swamp = {4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4749,4750,4751,4752,4753,4754,4755} 
local swamp_walkable = 6353 
local pos = getCreaturePosition 

    function efekty(p)  
    local cid = p.cid 
    local loc = p.loc 
        if isCreature(cid) then 
            doSendMagicEffect(loc, CONST_ME_HITBYPOISON) 
            doSendMagicEffect(loc, CONST_ME_GREEN_RINGS) 
                if p.s < 6 then 
                    addEvent(efekty, 250, p) 
                    p.s = p.s + 1
                else
                    addEvent(kill, 1000, {cid = cid, loc = loc}) 
                end 
        end 
    end     

    function kill(p)  
    local cid = p.cid 
    local loc = p.loc 
        if isCreature(cid) then  
            doSendMagicEffect(loc, CONST_ME_SMALLPLANTS)  
            local creatureFound = getThingFromPos(loc)  
            if isCreature(creatureFound.uid) and creatureFound.uid ~= cid then 
                doTargetCombatHealth(0, creatureFound.uid, COMBAT_EARTHDAMAGE, -getCreatureHealth(creatureFound.uid)*0.25, -getCreatureHealth(creatureFound.uid)*0.75, CONST_ME_SMALLPLANTS) 
            end 
        end 
    end 

function onThink(cid) 
local tbl_x, tbl_y, tbl_z = {}, {}, {} 
if isMonster(cid) then 
    if math.random(1, 100) <= 60 then 
        for nx = (pos(cid).x - 5), (pos(cid).x + 5) do 
            for ny = (pos(cid).y - 5), (pos(cid).y + 5) do 
                local itemFound = getTileThingByPos({x=nx, y=ny, z=pos(cid).z}) 
                if itemFound.uid > 0 and isInArray(normal_swamp, itemFound.itemid) then 
                    local item_pos = getThingPos(itemFound.uid) 
                    table.insert(tbl_x, item_pos.x) 
                    table.insert(tbl_y, item_pos.y) 
                    table.insert(tbl_z, item_pos.z) 
                end 
            end 
        end 
        if unpack(tbl_x) ~= nil and unpack(tbl_y) ~= nil and unpack(tbl_z) ~= nil then 
            local x_pos, y_pos, z_pos = tbl_x[math.random(1, #tbl_x)], tbl_y[math.random(1, #tbl_y)], tbl_z[math.random(1, #tbl_z)] 
            local poss = {x=x_pos, y=y_pos, z=z_pos, stackpos=0} 
            local underItemFound_1, bagno = getThingFromPos({x=poss.x, y=poss.y, z=poss.z, stackpos=1}), getTileThingByPos(poss).uid 
            local itemFound = getThingFromPos(poss) 
                if itemFound.uid > 0 and isInArray(normal_swamp, itemFound.itemid) then 
                    local id = getThingFromPos(poss).itemid 
                    if math.random(1,10) <= 7 then 
                        for sx = (pos(cid).x - 5), (pos(cid).x + 5) do 
                        for sy = (pos(cid).y - 5), (pos(cid).y + 5) do 
                        local creatureFound = getThingFromPos({x = sx, y = sy, z = pos(cid).z, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE}) 
                        if creatureFound.uid ~= cid and isCreature(creatureFound.uid) and creatureFound.uid == getCreatureTarget(cid) and isSightClear(pos(cid), pos(creatureFound.uid), true) and isSightClear(poss, pos(creatureFound.uid), true) then 
                            local posit = getThingPos(creatureFound.uid) 
                            if underItemFound_1.uid == 0 then 
                                doTransformItem(bagno, swamp_walkable) 
                                doCreateMonster("Swampy Bilith", poss, false) 
                            else 
                                return true 
                            end 
                                doSendMagicEffect(poss, CONST_ME_GREEN_RINGS) 
                                doTransformItem(bagno, id) 
                                doSendDistanceShoot(poss, posit, CONST_ANI_EARTH) 
                                doSendMagicEffect(posit, CONST_ME_HITBYPOISON) 
                                doSendMagicEffect(posit, CONST_ME_GREEN_RINGS) 
                                addEvent(efekty, 250, {cid = cid, loc = pos(creatureFound.uid), s = 0}) 
                        end 
                        end 
                        end 
                    else 
                        if isSightClear(poss, pos(cid), true) then 
                            if underItemFound_1.uid == 0 then 
                                doTransformItem(bagno, swamp_walkable) 
                                doCreateMonster("Swampy Bilith", poss, false) 
                            else 
                                return true 
                            end 
                                doSendMagicEffect(poss, CONST_ME_GREEN_RINGS) 
                                doTransformItem(bagno, id) 
                                local hape = math.random(getCreatureMaxHealth(cid)*0.1,getCreatureMaxHealth(cid)*0.2) 
                                doSendDistanceShoot(poss, pos(cid), CONST_ANI_EARTH) 
                                doSendMagicEffect(pos(cid), CONST_ME_SMALLPLANTS) 
                                doCreatureAddHealth(cid, hape) 
                                doSendAnimatedText(pos(cid), hape, COLOR_LIGHTGREEN) 
                        end 
                    end 
                end 
        end 
    end 
end 
    return true 
end
 
Hi Oskar, in 9.10 have this error:

Code:
[14:22:27.765] [Error - CreatureScript Interface]
[14:22:27.765] In a timer event called from:
[14:22:27.765] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:22:27.765] Description:
[14:22:27.765] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:22:28.390] [Error - CreatureScript Interface]
[14:22:28.390] In a timer event called from:
[14:22:28.390] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:22:28.390] Description:
[14:22:28.390] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:22:40.859] [Error - CreatureScript Interface]
[14:22:40.859] In a timer event called from:
[14:22:40.859] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:22:40.859] Description:
[14:22:40.859] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:22:44.609] [Error - CreatureScript Interface]
[14:22:44.609] In a timer event called from:
[14:22:44.625] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:22:44.625] Description:
[14:22:44.625] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:22:52.734] [Error - CreatureScript Interface]
[14:22:52.734] In a timer event called from:
[14:22:52.750] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:22:52.750] Description:
[14:22:52.750] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:23:08.671] [Error - CreatureScript Interface]
[14:23:08.671] In a timer event called from:
[14:23:08.671] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:23:08.671] Description:
[14:23:08.671] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:23:17.359] [Error - CreatureScript Interface]
[14:23:17.359] In a timer event called from:
[14:23:17.359] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:23:17.359] Description:
[14:23:17.359] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:23:22.359] [Error - CreatureScript Interface]
[14:23:22.359] In a timer event called from:
[14:23:22.359] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:23:22.359] Description:
[14:23:22.359] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:23:34.859] [Error - CreatureScript Interface]
[14:23:34.859] In a timer event called from:
[14:23:34.875] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:23:34.875] Description:
[14:23:34.875] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

[14:23:42.984] [Error - CreatureScript Interface]
[14:23:42.984] In a timer event called from:
[14:23:42.984] data/creaturescripts/scripts/Du Vea.lua:onThink
[14:23:42.984] Description:
[14:23:43.000] (LuaInterface::luaAddEvent) Callback parameter should be a functi
on.

I need to add or do to fix this error? Sorry for my bad english.
 
add
<event type="think" name="Du Vea" event="script" value="Du Vea.lua"/>
in creaturescripts.xml and:
registerCreatureEvent(cid, "Du Vea")
in login.lua
 
Back
Top