• 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!

Kill boss create teleport problem

theBroken

New Member
Joined
Nov 11, 2016
Messages
25
Reaction score
4
I create new quest and i need help
I copy azerus script Kill boss create teleport for 120 seconds i add this to creaturescript scripts and add table to xml and i add
<script>
<event name="azerus3"/>
</script>
And i have warning on tfs exe
[Warning - Monster::Monster] Unkown event name - azerus3
I have creaturescripts-scripts-azerus3
?? Rep for help!
 
I create new quest and i need help
I copy azerus script Kill boss create teleport for 120 seconds i add this to creaturescript scripts and add table to xml and i add
<script>
<event name="azerus3"/>
</script>
And i have warning on tfs exe
[Warning - Monster::Monster] Unkown event name - azerus3
I have creaturescripts-scripts-azerus3
?? Rep for help!

What server are you using and show your azerus creaturescript
 
I download tfs 0.4 dev32 by Fire elemental and i change script azerus for this
Lua:
-- How many seconds shall monster stay alive?
seconds = 300

-- Do you want people to be able to loot monster
-- after it dies by this script? 0 = NO, 1 = YES.
loot = 0


function onThink(cid)
    addEvent(fuckmylife,1000*seconds, {cid=cid})
    return true
end
function fuckmylife(cid)
local cid = cid.cid
    if loot > 0 then
        if isCreature(cid) then
            doCreatureAddHealth(cid, -getCreatureHealth(cid))
        return true
        end
    else
        if isCreature(cid) then
            doRemoveCreature(cid)
        return true
        end
    end
    return true
end


to creaturescript.xml table
Lua:
<event type="think" name="monsterdeath" event="script" value="monsterdeath.lua"/>


and to login.lua

Lua:
registerCreatureEvent(cid, "monsterdeath")


to monster
Lua:
    <script>
   <event name="monsterdeath"/>
   </script>

Why this script not work ? [0 errors and warnings]
 
Back
Top