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

Help me get this monster working!

Pnurt

New Member
Joined
Apr 22, 2009
Messages
205
Reaction score
0
So I found this awesome monster that Scarlet Ayleid created.

This is the monster:
http://otland.net/f83/pisces-zodiac-171756/

I really like the idea of that monster and the script IS WORKING for about 30seconds after engage, then it crashes.

Posted error log here
Monster Pisces of the Zodiac - Page 6

Scarley Ayleid told me this over PM
My guess is that it doesn't like how I'm creating the summons for it, but idk, I didn't had the problem when I created it.



If anyone could help me get this working I would be more then thankful :wub:
 
try this
Lua:
function onStatsChange(cid, attacker, type, combat, value)
    if type == STATSCHANGE_HEALTHLOSS then
        local clone = doCreateMonster("Pisces Clone", getCreaturePosition(cid))
        setCreatureMaxHealth(clone, value)
        doCreatureAddHealth(clone, value)
        doCreatureSetStorage(clone, 2222, cid)
    end
    return true
end
 
try this
Lua:
function onStatsChange(cid, attacker, type, combat, value)
    if type == STATSCHANGE_HEALTHLOSS then
        local clone = doCreateMonster("Pisces Clone", getCreaturePosition(cid))
        setCreatureMaxHealth(clone, value)
        doCreatureAddHealth(clone, value)
        doCreatureSetStorage(clone, 2222, cid)
    end
    return true
end

It worked longer, but it still crashed after a while :/

This comes up as usual
[0:6:37.833] [Error - CreatureScript Interface]
[0:6:37.835] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:37.841] Description:
[0:6:37.843] (LuaInterface::luaSetCreatureMaxHealth) Creature not found

[0:6:37.847] [Error - CreatureScript Interface]
[0:6:37.851] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:37.855] Description:
[0:6:37.856] (LuaInterface::luaDoCreatureAddHealth) Creature not found

[0:6:37.859] [Error - CreatureScript Interface]
[0:6:37.861] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:37.866] Description:
[0:6:37.868] (LuaInterface::luaDoCreatureSetStorage) Creature not found

[0:6:38.074] [Error - CreatureScript Interface]
[0:6:38.078] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:38.081] Description:
[0:6:38.082] (LuaInterface::luaSetCreatureMaxHealth) Creature not found

[0:6:38.085] [Error - CreatureScript Interface]
[0:6:38.087] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:38.091] Description:
[0:6:38.092] (LuaInterface::luaDoCreatureAddHealth) Creature not found

[0:6:38.094] [Error - CreatureScript Interface]
[0:6:38.096] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:38.100] Description:
[0:6:38.101] (LuaInterface::luaDoCreatureSetStorage) Creature not found

[0:6:39.739] [Error - CreatureScript Interface]
[0:6:39.741] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:39.745] Description:
[0:6:39.746] (LuaInterface::luaSetCreatureMaxHealth) Creature not found

[0:6:39.748] [Error - CreatureScript Interface]
[0:6:39.750] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:39.753] Description:
[0:6:39.753] (LuaInterface::luaDoCreatureAddHealth) Creature not found

[0:6:39.756] [Error - CreatureScript Interface]
[0:6:39.758] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:39.760] Description:
[0:6:39.761] (LuaInterface::luaDoCreatureSetStorage) Creature not found

[0:6:39.859] [Error - CreatureScript Interface]
[0:6:39.864] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:39.872] Description:
[0:6:39.874] (LuaInterface::luaSetCreatureMaxHealth) Creature not found

[0:6:39.880] [Error - CreatureScript Interface]
[0:6:39.885] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:39.893] Description:
[0:6:39.896] (LuaInterface::luaDoCreatureAddHealth) Creature not found

[0:6:39.902] [Error - CreatureScript Interface]
[0:6:39.905] data/creaturescripts/scripts/Zodiacs/Pisces_Events.lua:eek:nStatsChang
e
[0:6:39.910] Description:
[0:6:39.911] (LuaInterface::luaDoCreatureSetStorage) Creature not found
 
Last edited:
re you sure that the monster name is Pisces clone? The XML and inside it and inside the monsters.xml?
Because it seems like it's not finding the monster Pisces clone
 
monsters.xml
Code:
<monster name="Pisces" file="Zodiacs/Pisces.xml"/>
<monster name="Pisces Clone" file="Zodiacs/Pisces Clone.xml"/>

Pisces Clone.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Pisces" nameDescription="Pisces of the Zodiac" race="blood" experience="0" speed="550" manacost="0">
    <health now="1" max="1"/>
    <look type="20" corpse="0"/>
    <targetchange interval="1000" chance="100"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="1"/>
        <flag staticattack="90"/>
        <flag targetdistance="1"/>
        <flag runonhealth="0"/>
    </flags>
    <script>
        <event name="Pisces_Clone_Event"/>
    </script>
    <attacks>
        <attack name="melee" interval="2000" skill="80" attack="100"/>
    </attacks>
    <defenses armor="40" defense="60">
    </defenses>
    <elements>
        <element icePercent="100"/>
    </elements>
    <immunities>
        <immunity invisible="1"/>
        <immunity drown="1"/>
        <immunity paralyze="1"/>
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="Feel our Wrath!!"/>
        <voice sentence="Prepare to be swarmed by us"/>
        <voice sentence="Thou shall face us"/>
        <voice sentence="I was created by Scarlet Ayleid @ OTLand"/>
    </voices>
    <loot>
    </loot>
</monster>

But its like that because it's creating illusions, so if all the illusions had another name then there wouldnt be any fun in that :D

- - - Updated - - -

BUMP
 
<monster name="Pisces Clone" file="Zodiacs/Pisces Clone.xml"/>
Do you have this file?
Are you sure that both are inside a folder called Zodiacs
Also what tfs version are you using?
 
<monster name="Pisces Clone" file="Zodiacs/Pisces Clone.xml"/>
Do you have this file?
Are you sure that both are inside a folder called Zodiacs
Also what tfs version are you using?

Yeah, the clone is summoned and working for a little while before it crashes.

Yes I have all the files placed correctly.

I'm using TFS 0.3.7 rev 5928
 
Back
Top Bottom